// File: /workspace/github_cpp_makefile_star2_O3/taurheim[P]AgNES/scanner.cpp
// Function: Scanner::scan[abi:cxx11]()
std::list<Token> Scanner::scan() {
    std::cout << "Scanning...\n";
    getChar();

    std::list<Token> tokenList;
    while (true) {
        Token t = getNextToken();
        tokenList.push_back(t);

        if (t.type == T_EOF_TOKEN) break;
    }

    if (debug) {
        std::cout << "Scanner output: \n\t";
        for (auto const & i : tokenList) {
            std::cout << tokenToStr(i) << " ";
        }
        std::cout << std::endl;
    }

    return tokenList;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rsi, %r14
movq %rdi, %rbx
movq 0x1040d(%rip), %r12     # 0x17fd0
leaq 0xa6fe(%rip), %rsi      # 0x122c8
movl $0xc, %edx
movq %r12, %rdi
callq 0x32d0
movq (%r14), %rdi
leaq 0x10(%r14), %rsi
callq 0x3320
movb 0x10(%r14), %al
leaq -0x200(%rbp), %r15
movb %al, (%r15)
movl $0x1, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x32d0
movq %rbx, 0x8(%rbx)
movq %rbx, (%rbx)
movq $0x0, 0x10(%rbx)
leaq -0x1e8(%rbp), %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x7476
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8704
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3070
incq 0x10(%rbx)
movl -0x200(%rbp), %r13d
movq -0x1f8(%rbp), %rdi
cmpq %r12, %rdi
je 0x7c54
callq 0x3250
cmpl $0xb, %r13d
jne 0x7c17
cmpb $0x1, 0x11(%r14)
jne 0x7ead
movq 0x10364(%rip), %rdi     # 0x17fd0
leaq 0xa662(%rip), %rsi      # 0x122d5
movl $0x12, %edx
callq 0x32d0
movq (%rbx), %r15
cmpq %rbx, %r15
je 0x7e7e
leaq -0x70(%rbp), %r12
leaq -0x38(%rbp), %r13
movl 0x10(%r15), %eax
movl %eax, -0x78(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
movq 0x18(%r15), %rsi
movq 0x20(%r15), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x6906
movb 0x3c(%r15), %al
movb %al, 0x24(%r12)
movl 0x38(%r15), %eax
movl %eax, 0x20(%r12)
movq 0x1069c(%rip), %rcx     # 0x18368
testq %rcx, %rcx
je 0x7d07
movl -0x78(%rbp), %eax
leaq 0x10685(%rip), %r14     # 0x18360
xorl %edx, %edx
cmpl %eax, 0x20(%rcx)
setl %dl
cmovgeq %rcx, %r14
movq 0x10(%rcx,%rdx,8), %rcx
testq %rcx, %rcx
jne 0x7cdb
leaq 0x10668(%rip), %rcx     # 0x18360
cmpq %rcx, %r14
je 0x7d07
cmpl 0x20(%r14), %eax
jge 0x7db4
movq %r13, -0x48(%rbp)
movq $0x18, -0x200(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x200(%rbp), %rsi
xorl %edx, %edx
callq 0x3430
movq %rax, -0x48(%rbp)
movq -0x200(%rbp), %rcx
movq %rcx, -0x38(%rbp)
movups 0xa5aa(%rip), %xmm0     # 0x122e8
movups %xmm0, (%rax)
movabsq $0x4e454b4f545f474e, %rdx # imm = 0x4E454B4F545F474E
movq %rdx, 0x10(%rax)
movq %rcx, -0x40(%rbp)
movq -0x48(%rbp), %rax
movb $0x0, (%rax,%rcx)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x10266(%rip), %rdi     # 0x17fd0
callq 0x32d0
movl $0x1, %edx
movq %rax, %rdi
leaq 0xaad4(%rip), %rsi      # 0x12852
callq 0x32d0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x7d91
callq 0x3250
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x7da3
callq 0x3250
movq (%r15), %r15
cmpq %rbx, %r15
jne 0x7c91
jmp 0x7e7e
leaq -0x200(%rbp), %rdi
callq 0x31c0
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
leaq -0x1f0(%rbp), %rdi
callq 0x32d0
movl -0x78(%rbp), %eax
cmpl $0x9, %eax
je 0x7e0a
cmpl $0xf, %eax
jne 0x7e4a
movl $0x1, %edx
leaq -0x1f0(%rbp), %rdi
leaq 0xa877(%rip), %rsi      # 0x1266b
callq 0x32d0
movl -0x50(%rbp), %esi
leaq -0x1f0(%rbp), %rdi
callq 0x3410
jmp 0x7e36
movl $0x1, %edx
leaq -0x1f0(%rbp), %rdi
leaq 0xa84e(%rip), %rsi      # 0x1266b
callq 0x32d0
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
leaq -0x1f0(%rbp), %rdi
callq 0x32d0
movl $0x1, %edx
movq %rax, %rdi
leaq 0xa4bc(%rip), %rsi      # 0x12301
callq 0x32d0
leaq -0x48(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
callq 0x33a0
leaq -0x200(%rbp), %rdi
movq 0x10140(%rip), %rsi     # 0x17fa8
callq 0x31e0
leaq -0x180(%rbp), %rdi
callq 0x3100
jmp 0x7d5b
movq 0x1014b(%rip), %rdi     # 0x17fd0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq 0x10130(%rip), %rdi     # 0x17fd0
callq 0x3030
movq %rax, %rdi
callq 0x31a0
movq %rbx, %rax
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7f0f
movq %rax, %r15
movq 0x100da(%rip), %rsi     # 0x17fa8
leaq -0x200(%rbp), %rdi
callq 0x31e0
leaq -0x180(%rbp), %rdi
callq 0x3100
jmp 0x7f00
movq %rax, %r15
jmp 0x7f00
jmp 0x7f0f
movq %rax, %r15
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x7f00
callq 0x3250
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
jne 0x7f23
jmp 0x7f28
movq %rax, %r15
jmp 0x7f28
movq %rax, %r15
movq -0x1f8(%rbp), %rdi
cmpq %r12, %rdi
je 0x7f28
callq 0x3250
movq %rbx, %rdi
callq 0x6584
movq %r15, %rdi
callq 0x3420