// File: /workspace/github_cpp_makefile_star2_O1/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 0x103cf(%rip), %r12     # 0x17fd0
leaq 0xa6c0(%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 0x749e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x876e
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3070
incq 0x10(%rbx)
movl -0x200(%rbp), %r13d
movq -0x1f8(%rbp), %rdi
cmpq %r12, %rdi
je 0x7c92
callq 0x3250
cmpl $0xb, %r13d
jne 0x7c55
cmpb $0x1, 0x11(%r14)
jne 0x7f01
movq 0x10326(%rip), %rdi     # 0x17fd0
leaq 0xa624(%rip), %rsi      # 0x122d5
movl $0x12, %edx
callq 0x32d0
movq (%rbx), %r12
cmpq %rbx, %r12
je 0x7ed2
leaq -0x70(%rbp), %r15
leaq 0x1068e(%rip), %r13     # 0x18360
movl 0x10(%r12), %eax
movl %eax, -0x78(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
movq 0x18(%r12), %rsi
movq 0x20(%r12), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x6992
movb 0x3c(%r12), %al
movb %al, 0x24(%r15)
movl 0x38(%r12), %eax
movl %eax, 0x20(%r15)
movq 0x10658(%rip), %rcx     # 0x18368
movq %r13, %rax
testq %rcx, %rcx
je 0x7d35
movl -0x78(%rbp), %edx
movq %r13, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x7d1e
movq %r13, %r14
cmpq %r13, %rax
je 0x7d4a
movl -0x78(%rbp), %ecx
cmpl 0x20(%rax), %ecx
cmovlq %r13, %rax
movq %rax, %r14
cmpq %r13, %r14
je 0x7db0
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 0xa8d4(%rip), %rsi      # 0x1266b
callq 0x32d0
movl -0x50(%rbp), %esi
leaq -0x1f0(%rbp), %rdi
callq 0x3410
jmp 0x7e36
leaq -0x38(%rbp), %rax
movq %rax, -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 0xa4fd(%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)
jmp 0x7e79
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
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x10148(%rip), %rdi     # 0x17fd0
callq 0x32d0
movl $0x1, %edx
movq %rax, %rdi
leaq 0xa9b6(%rip), %rsi      # 0x12852
callq 0x32d0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x7eb3
callq 0x3250
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x7ec5
callq 0x3250
movq (%r12), %r12
cmpq %rbx, %r12
jne 0x7cd2
movq 0x100f7(%rip), %rdi     # 0x17fd0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq 0x100dc(%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 0x7f67
jmp 0x7f67
movq %rax, %r14
jmp 0x7f58
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x7f58
callq 0x3250
jmp 0x7f58
movq %rax, %r14
movq 0x10068(%rip), %rsi     # 0x17fa8
leaq -0x200(%rbp), %rdi
callq 0x31e0
leaq -0x180(%rbp), %rdi
callq 0x3100
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
jne 0x7f7b
jmp 0x7f80
movq %rax, %r14
jmp 0x7f80
movq %rax, %r14
movq -0x1f8(%rbp), %rdi
cmpq %r12, %rdi
je 0x7f80
callq 0x3250
movq %rbx, %rdi
callq 0x6604
movq %r14, %rdi
callq 0x3420