// File: /workspace/github_c_makefile_star2_O3/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 $0x48, %rsp
movq %rsi, 0x38(%rsp)
testq %rdi, %rdi
je 0x13d09
movq %rdx, %r12
movq %rdi, %r13
leaq 0x24(%rdx), %rax
movq %rax, 0x40(%rsp)
xorl %eax, %eax
movq $0x0, 0x28(%rsp)
movq %rdx, 0x10(%rsp)
movq %rax, 0x8(%rsp)
movq %r13, %r14
movq %r13, %rdi
movl $0xa, %esi
callq 0x3130
testq %rax, %rax
je 0x13ac8
movq %rax, %r13
movb $0x0, (%rax)
incq %r13
jmp 0x13acb
xorl %r13d, %r13d
movl 0x1c(%r12), %eax
movl %eax, 0x24(%rsp)
leaq -0x1(%r14), %rbp
incq %r14
movl $0x1, %r15d
movq %r14, %rbx
movsbl 0x1(%rbp), %edi
incq %rbp
callq 0x3070
decq %r15
incq %r14
testl %eax, %eax
jne 0x13ae1
testq %r15, %r15
sete %al
testb %al, 0x24(%rsp)
jne 0x13b73
movslq 0x24(%r12), %rax
movq 0x40(%rsp), %rcx
leaq (%rax,%rcx), %r15
testq %rax, %rax
cmoveq %rax, %r15
movslq 0x20(%r12), %rax
testq %rax, %rax
je 0x13b73
movq %r13, 0x18(%rsp)
movl 0x24(%rsp), %ecx
shrb $0x2, %cl
andb $0x1, %cl
movl %ecx, 0x34(%rsp)
leaq (%r15,%rax,8), %r13
movq %r15, %r12
movslq (%r15), %rax
leaq (%r12,%rax), %rdi
testq %rax, %rax
cmoveq %rax, %rdi
movswq 0x4(%r15), %r14
movq %rbp, %rsi
movq %r14, %rdx
callq 0x3170
testl %eax, %eax
je 0x13b7d
addq $0x8, %r15
addq $0x8, %r12
cmpq %r13, %r15
jne 0x13b3f
jmp 0x13ce5
movq 0x8(%rsp), %rcx
jmp 0x13cf4
movsbl (%rbp,%r14), %edi
callq 0x3070
testl %eax, %eax
je 0x13ce5
addq %r14, %rbp
addq %r14, %rbx
movq %rbp, %r13
movq %rbx, %r14
incq %rbp
movsbl 0x1(%r13), %edi
callq 0x3070
incq %rbx
testl %eax, %eax
jne 0x13b96
movl $0x20, %esi
movl $0x8, %edx
movq 0x38(%rsp), %rdi
callq 0xe950
testb $0x2, 0x24(%rsp)
movl $0x9, %edi
jne 0x13bfe
movb (%rbp), %cl
testb %cl, %cl
je 0x13ce5
movq %rax, %r12
movl $0x1, %r14d
movsbl %cl, %edi
callq 0x3070
testl %eax, %eax
jne 0x13c1e
movb -0x1(%rbx,%r14), %cl
incq %r14
testb %cl, %cl
jne 0x13be4
jmp 0x13c28
movzbl 0x1(%r13), %ecx
cmpl $0x22, %ecx
je 0x13c46
cmpl $0x3c, %ecx
je 0x13c3b
cmpl $0x3e, %ecx
jne 0x13ce5
movl $0x3c, %r8d
jmp 0x13c4c
cmpq $0x1, %r14
je 0x13ce5
addq %r14, %r13
movq %r13, %r14
movq %rbp, %r13
movq %r12, %rax
movl 0x34(%rsp), %r9d
jmp 0x13c76
movl $0x3e, %r8d
movb $0x1, %r9b
jmp 0x13c4f
movl $0x22, %r8d
xorl %r9d, %r9d
addq $0x2, %r13
movq %r13, %rcx
movsbl (%rcx), %edx
incq %rcx
xorl %esi, %esi
testl %edx, %edx
sete %sil
cmpl %edx, %r8d
cmovel %edi, %esi
incq %r14
testl %esi, %esi
je 0x13c56
cmpl $0x9, %esi
jne 0x13c7f
movb %r9b, 0x10(%rax)
movq %r14, %rcx
jmp 0x13c83
testb %dl, %dl
je 0x13ce5
subl %r13d, %ecx
movzwl %cx, %r14d
movq %r14, 0x8(%rax)
leaq 0x1(%r14), %rsi
movl $0x1, %edx
movq 0x38(%rsp), %rdi
movq %rax, %rbx
callq 0xe950
movq %rax, %rbp
movq %rax, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x3290
movq %rbx, %rcx
movb $0x0, (%rbp,%r14)
movq %rbp, (%rbx)
cmpb $0x0, 0x6(%r15)
setne 0x11(%rbx)
movq $0x0, 0x18(%rbx)
cmpq $0x0, 0x28(%rsp)
je 0x13d02
movq 0x8(%rsp), %rax
movq %rcx, 0x18(%rax)
jmp 0x13cea
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %r13
movq %rcx, %rax
testq %r13, %r13
jne 0x13aa3
jmp 0x13d12
movq %rcx, 0x28(%rsp)
jmp 0x13cea
movq $0x0, 0x28(%rsp)
movq 0x28(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop