// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/src/IncludeScanner.cpp
// Function: t2::ScanIncludesGeneric(char*, t2::MemAllocLinear*, t2::GenericScannerData const&)
IncludeData* ScanIncludesGeneric(char* buffer, MemAllocLinear* allocator, const GenericScannerData& config)
{
  char* linep = buffer;
  IncludeDataList includes;

  while (linep)
  {
    char *line_data = linep;
    linep = GetNextLine(linep);

    if (IncludeData* d = ScanLineGeneric(allocator, line_data, config))
    {
      includes.Add(d);
    }
  }

  return includes.m_Head;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, 0x38(%rsp)
movq %rdi, %r12
movq %rdx, 0x40(%rsp)
leaq 0x24(%rdx), %rax
movq %rax, 0x50(%rsp)
xorl %ecx, %ecx
xorl %edx, %edx
movq %rcx, %r14
testq %r12, %r12
je 0x12448
movq %rdx, %rbp
movq %r12, %rdi
callq 0x12178
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rax
movl 0x1c(%rax), %eax
movl %eax, 0x24(%rsp)
leaq -0x1(%r12), %r13
incq %r12
pushq $0x1
popq %rbx
movq %r12, %r15
movsbl 0x1(%r13), %edi
incq %r13
callq 0x3070
decq %rbx
incq %r12
testl %eax, %eax
jne 0x121ed
testq %rbx, %rbx
sete %al
movq %r14, %rcx
movq %rbp, 0x18(%rsp)
movq %rbp, %rdx
movq 0x8(%rsp), %r12
movl 0x24(%rsp), %esi
testb %al, %sil
jne 0x121ba
movl %esi, %eax
movq %r14, 0x10(%rsp)
shrb $0x2, %al
andb $0x1, %al
movl %eax, 0x34(%rsp)
movq 0x40(%rsp), %rcx
movslq 0x24(%rcx), %rax
movq 0x50(%rsp), %rdx
leaq (%rax,%rdx), %rbp
testq %rax, %rax
cmoveq %rax, %rbp
movslq 0x20(%rcx), %r12
shlq $0x3, %r12
xorl %ebx, %ebx
movq %rbp, 0x48(%rsp)
cmpq %rbx, %r12
je 0x12298
movslq (%rbp), %rax
movq 0x48(%rsp), %rcx
leaq (%rcx,%rbx), %rdi
addq %rax, %rdi
testq %rax, %rax
cmoveq %rax, %rdi
movswq 0x4(%rbp), %r14
movq %r13, %rsi
movq %r14, %rdx
callq 0x3170
testl %eax, %eax
je 0x122ac
addq $0x8, %rbp
addq $0x8, %rbx
jmp 0x1225e
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %r12
jmp 0x121ba
movsbl (%r13,%r14), %edi
callq 0x3070
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %r12
testl %eax, %eax
je 0x121ba
addq %r14, %r13
addq %r14, %r15
movq %r13, %r14
movq %r15, %rbp
incq %r13
movsbl 0x1(%r14), %edi
callq 0x3070
incq %r15
testl %eax, %eax
jne 0x122d4
movq 0x38(%rsp), %rdi
callq 0x1245a
movq %rax, 0x28(%rsp)
testb $0x2, 0x24(%rsp)
jne 0x12329
pushq $-0x1
popq %r14
movq 0x18(%rsp), %r12
movq 0x8(%rsp), %rbp
movsbl (%r15,%r14), %edi
testl %edi, %edi
je 0x12357
callq 0x3070
testl %eax, %eax
jne 0x12357
incq %r14
jmp 0x12312
movzbl 0x1(%r14), %eax
cmpl $0x22, %eax
je 0x12383
cmpl $0x3c, %eax
je 0x1237c
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %r12
cmpl $0x3e, %eax
jne 0x121ba
xorl %r8d, %r8d
pushq $0x3c
jmp 0x12388
movq 0x10(%rsp), %rcx
movq %r12, %rdx
movq %rbp, %r12
cmpq $-0x1, %r14
je 0x121ba
addq %r14, %r15
movq %r15, %rbp
movq %r13, %r14
movl 0x34(%rsp), %r8d
jmp 0x123b1
movb $0x1, %r8b
pushq $0x3e
jmp 0x12388
xorl %r8d, %r8d
pushq $0x22
popq %rcx
addq $0x2, %r14
movq %r14, %rax
pushq $0x9
popq %rdi
movsbl (%rax), %esi
incq %rax
xorl %edx, %edx
testl %esi, %esi
sete %dl
cmpl %esi, %ecx
cmovel %edi, %edx
incq %rbp
testl %edx, %edx
je 0x12393
cmpl $0x9, %edx
jne 0x12429
movq 0x28(%rsp), %rax
movb %r8b, 0x10(%rax)
movq %rbp, %rax
movq 0x10(%rsp), %r15
movq 0x8(%rsp), %r13
subl %r14d, %eax
movzwl %ax, %edx
movq 0x28(%rsp), %r12
movq %rdx, 0x8(%r12)
movq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0xc84b
movq %rax, (%r12)
movq 0x48(%rsp), %rax
cmpb $0x0, 0x6(%rax,%rbx)
setne 0x11(%r12)
andq $0x0, 0x18(%r12)
movq %r12, %rcx
movq %r12, %rdx
movq %r13, %r12
testq %r15, %r15
je 0x121ba
movq 0x18(%rsp), %rax
movq 0x28(%rsp), %rdx
movq %rdx, 0x18(%rax)
movq %r15, %rcx
movq %r13, %r12
jmp 0x121ba
movq 0x10(%rsp), %r15
movq %r15, %rcx
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %r13
movq %r13, %r12
testb %sil, %sil
jne 0x123c7
jmp 0x121ba
movq %r14, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq