// File: /workspace/github_c_makefile_star2_O1/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 0x1446a
movq %rdx, %r15
movq %rdi, %r13
leaq 0x24(%rdx), %rax
movq %rax, 0x40(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x20(%rsp)
movq %rdx, 0x10(%rsp)
movq %r13, %r14
movq %r13, %rdi
movl $0xa, %esi
callq 0x3130
testq %rax, %rax
je 0x14202
movq %rax, %r13
movb $0x0, (%rax)
incq %r13
jmp 0x14205
xorl %r13d, %r13d
movl 0x1c(%r15), %eax
movl %eax, 0x18(%rsp)
leaq -0x1(%r14), %rbp
incq %r14
movl $0x1, %ebx
movq %r14, %r12
movsbl 0x1(%rbp), %edi
incq %rbp
callq 0x3070
decq %rbx
incq %r14
testl %eax, %eax
jne 0x14219
testq %rbx, %rbx
sete %al
testb %al, 0x18(%rsp)
je 0x14245
xorl %ecx, %ecx
jmp 0x14436
movq %r13, 0x28(%rsp)
movslq 0x24(%r15), %rax
movq 0x40(%rsp), %rcx
leaq (%rax,%rcx), %r14
testq %rax, %rax
cmoveq %rax, %r14
movslq 0x20(%r15), %rax
testq %rax, %rax
je 0x142a2
leaq (%r14,%rax,8), %r15
movq %r14, %r13
xorl %ebx, %ebx
movslq (%r14), %rax
leaq (%rax,%r13), %rdi
testq %rax, %rax
cmoveq %rax, %rdi
movswq 0x4(%r14), %rdx
movq %rbp, %rsi
callq 0x3170
testl %eax, %eax
cmoveq %r14, %rbx
je 0x142a4
addq $0x8, %r14
addq $0x8, %r13
cmpq %r15, %r14
jne 0x14270
jmp 0x142a4
xorl %ebx, %ebx
testq %rbx, %rbx
movq 0x28(%rsp), %r13
je 0x1442f
movswq 0x4(%rbx), %r14
movsbl (%rbp,%r14), %edi
callq 0x3070
testl %eax, %eax
je 0x1442f
movl 0x18(%rsp), %eax
shrb $0x2, %al
andb $0x1, %al
movb %al, 0xf(%rsp)
addq %r14, %rbp
addq %r14, %r12
movq %rbp, %r15
movq %r12, %r14
incq %rbp
movsbl 0x1(%r15), %edi
callq 0x3070
incq %r12
testl %eax, %eax
jne 0x142dd
movl $0x20, %esi
movl $0x8, %edx
movq 0x38(%rsp), %rdi
callq 0xf030
testb $0x2, 0x18(%rsp)
jne 0x1433a
movq %rax, 0x18(%rsp)
movb (%rbp), %al
movl $0x1, %r13d
testb %al, %al
je 0x1435f
movsbl %al, %edi
callq 0x3070
testl %eax, %eax
jne 0x1435f
movb -0x1(%r12,%r13), %al
incq %r13
jmp 0x14320
movzbl 0x1(%r15), %ecx
addq $0x2, %r15
cmpl $0x22, %ecx
movl $0x9, %r8d
je 0x1439c
cmpl $0x3c, %ecx
je 0x14392
cmpl $0x3e, %ecx
jne 0x143d6
movl $0x3c, %ecx
jmp 0x143a1
cmpq $0x1, %r13
jne 0x14376
xorl %ecx, %ecx
movq 0x10(%rsp), %r15
movq 0x28(%rsp), %r13
jmp 0x14436
movq %r15, %r14
addq %r13, %r14
movq 0x18(%rsp), %rax
movb 0xf(%rsp), %cl
movb %cl, 0x10(%rax)
movq %rbp, %r15
movq 0x28(%rsp), %r13
jmp 0x143df
movl $0x3e, %ecx
movb $0x1, %r9b
jmp 0x143a4
movl $0x22, %ecx
xorl %r9d, %r9d
movq %r15, %rdx
movsbl (%rdx), %edi
incq %rdx
xorl %esi, %esi
testl %edi, %edi
sete %sil
cmpl %edi, %ecx
cmovel %r8d, %esi
incq %r14
testl %esi, %esi
je 0x143a7
cmpl $0x9, %esi
jne 0x143cf
movb %r9b, 0x10(%rax)
movb $0x1, %cl
jmp 0x143db
xorl %ecx, %ecx
movq %rdx, %r14
jmp 0x143db
xorl %ecx, %ecx
movq %r15, %r14
testb %cl, %cl
je 0x1442f
subl %r15d, %r14d
movzwl %r14w, %ebp
movq %rbp, 0x8(%rax)
leaq 0x1(%rbp), %rsi
movl $0x1, %edx
movq 0x38(%rsp), %rdi
movq %rax, %r14
callq 0xf030
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x3290
movq %r14, %rcx
movb $0x0, (%r12,%rbp)
movq %r12, (%r14)
cmpb $0x0, 0x6(%rbx)
setne 0x11(%r14)
movq $0x0, 0x18(%r14)
jmp 0x14431
xorl %ecx, %ecx
movq 0x10(%rsp), %r15
testq %rcx, %rcx
je 0x1444e
cmpq $0x0, 0x20(%rsp)
je 0x14455
movq 0x30(%rsp), %rax
movq %rcx, 0x18(%rax)
jmp 0x1445a
movq 0x30(%rsp), %rcx
jmp 0x1445a
movq %rcx, 0x20(%rsp)
movq %rcx, 0x30(%rsp)
testq %r13, %r13
jne 0x141e2
jmp 0x14473
movq $0x0, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop