// File: /workspace/github_cpp_makefile_star2_O3/Mespyr[P]bop-lisp/src/main.cpp
// Function: evalString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int evalString(std::string code) 
{
    TokenList tokens = tokenize(code);
    AST ast = parse(tokens);

    if (ast.error_found) 
    {
        std::cout << ast.error.error() << std::endl;
        return 1;
    }
    AST_Handler ast_buf{ast};
    Evaluator eval;

    while (!ast_buf.eof) 
    {
        Node node = ast_buf.next();
        // ast_out(node.nodes);
        eval.evaluate(node);
        if (eval.error_found) 
        {
            std::cout << eval.error.error() << std::endl;
            ast_buf.eof = true;
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x348, %rsp            # imm = 0x348
leaq -0xd0(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
addq %rsi, %rdx
leaq -0xe0(%rbp), %rbx
movq %rbx, %rdi
callq 0x3688
leaq -0x1f0(%rbp), %rdi
movq %rbx, %rsi
callq 0x10438
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0xedeb
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x1d8(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x1007e
leaq -0x260(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x11069
leaq -0x1d8(%rbp), %rdi
callq 0x10218
cmpb $0x1, -0x248(%rbp)
jne 0xeeaa
leaq -0x240(%rbp), %rsi
leaq -0x330(%rbp), %rdi
callq 0x3db0
movq -0x330(%rbp), %rsi
movq -0x328(%rbp), %rdx
movq 0xa176(%rip), %rdi      # 0x18fc8
callq 0x2290
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2180
leaq -0x320(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xeea0
movq -0x320(%rbp), %rsi
incq %rsi
callq 0x2240
movl $0x1, %ebx
jmp 0xf2a5
leaq -0xc0(%rbp), %rdi
leaq -0x260(%rbp), %rsi
callq 0xdfe8
movb -0x248(%rbp), %al
leaq -0xa0(%rbp), %rdi
movb %al, -0x8(%rdi)
leaq -0x90(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x240(%rbp), %rsi
movq -0x238(%rbp), %rdx
addq %rsi, %rdx
callq 0x3688
movl -0x220(%rbp), %eax
leaq -0x78(%rbp), %rdi
movl %eax, -0x8(%rdi)
leaq -0x68(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x218(%rbp), %rsi
movq -0x210(%rbp), %rdx
addq %rsi, %rdx
callq 0x3688
movb -0x1f8(%rbp), %al
movb %al, -0x58(%rbp)
movl $0x0, -0x50(%rbp)
movb $0x0, -0x4c(%rbp)
leaq -0x148(%rbp), %rax
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq -0x330(%rbp), %rdi
leaq -0x150(%rbp), %rsi
leaq -0x48(%rbp), %rcx
movl $0x1, %edx
callq 0x10286
leaq -0x150(%rbp), %rdi
callq 0x3670
leaq -0x300(%rbp), %r15
movq %r15, -0x10(%r15)
xorl %eax, %eax
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq -0x2d8(%rbp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq -0x2b0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x280(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movb %al, 0x18(%rcx)
cmpb %al, -0x4c(%rbp)
jne 0xf203
leaq -0x148(%rbp), %r14
leaq -0x1a0(%rbp), %rbx
leaq -0x190(%rbp), %r15
leaq -0x160(%rbp), %r12
leaq -0x150(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x4c74
movl -0x150(%rbp), %eax
movl %eax, -0x1c0(%rbp)
leaq -0x1b8(%rbp), %rdi
movq %r14, %rsi
callq 0xdfe8
movq %r15, -0x1a0(%rbp)
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x3688
movq -0x110(%rbp), %rax
movq %rax, -0x180(%rbp)
movl -0x108(%rbp), %eax
movl %eax, -0x178(%rbp)
movq %r12, -0x170(%rbp)
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x170(%rbp), %rdi
callq 0x3688
leaq -0x370(%rbp), %rdi
leaq -0x330(%rbp), %rsi
leaq -0x1c0(%rbp), %rdx
callq 0x5874
leaq -0x348(%rbp), %rdi
callq 0x2c20
movq -0x368(%rbp), %rdi
leaq -0x358(%rbp), %rax
cmpq %rax, %rdi
je 0xf0bc
movq -0x358(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x170(%rbp), %rdi
cmpq %r12, %rdi
je 0xf0d7
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x1a0(%rbp), %rdi
cmpq %r15, %rdi
je 0xf0f2
movq -0x190(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x1b8(%rbp), %rdi
callq 0xe08a
cmpb $0x1, -0x268(%rbp)
jne 0xf172
leaq -0x48(%rbp), %rdi
leaq -0x318(%rbp), %rsi
callq 0x4b70
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x9ea2(%rip), %rdi      # 0x18fc8
callq 0x2290
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2180
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xf16e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2240
movb $0x1, -0x4c(%rbp)
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0xf194
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
je 0xf1b6
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2240
movq %r14, %rdi
callq 0xe08a
cmpb $0x0, -0x4c(%rbp)
je 0xefe8
movq -0x290(%rbp), %rdi
leaq -0x280(%rbp), %rax
cmpq %rax, %rdi
leaq -0x90(%rbp), %rbx
leaq -0x68(%rbp), %r14
leaq -0x300(%rbp), %r15
leaq -0x2d8(%rbp), %r12
je 0xf203
movq -0x280(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x2c0(%rbp), %rdi
leaq -0x2b0(%rbp), %rax
cmpq %rax, %rdi
je 0xf225
movq -0x2b0(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x2e8(%rbp), %rdi
cmpq %r12, %rdi
je 0xf240
movq -0x2d8(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x310(%rbp), %rdi
cmpq %r15, %rdi
je 0xf25b
movq -0x300(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x330(%rbp), %rdi
callq 0x103e2
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0xf27c
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0xa0(%rbp), %rdi
cmpq %rbx, %rdi
je 0xf297
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0xc0(%rbp), %rdi
callq 0xe08a
xorl %ebx, %ebx
leaq -0x208(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf2c4
movq -0x208(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x230(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf2e3
movq -0x230(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x260(%rbp), %rdi
callq 0xe08a
leaq -0x1f0(%rbp), %rdi
callq 0x10218
movl %ebx, %eax
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x150(%rbp), %rdi
callq 0x3670
jmp 0xf451
movq %rax, %r14
movq -0xa0(%rbp), %rdi
cmpq %rbx, %rdi
je 0xf346
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x2240
jmp 0xf346
movq %rax, %r14
leaq -0xc0(%rbp), %rdi
callq 0xe08a
jmp 0xf45d
jmp 0xf359
movq %rax, %r14
jmp 0xf45d
movq %rax, %r14
leaq -0x1d8(%rbp), %rdi
callq 0x10218
jmp 0xf469
movq %rax, %r14
jmp 0xf469
movq %rax, %r14
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0xf475
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2240
jmp 0xf475
movq %rax, %r14
leaq -0x320(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf45d
movq -0x320(%rbp), %rsi
incq %rsi
callq 0x2240
jmp 0xf45d
jmp 0xf3d6
movq %rax, %r14
jmp 0xf445
movq %rax, %r14
jmp 0xf439
movq %rax, %r14
jmp 0xf3fe
movq %rax, %r14
movq -0x1a0(%rbp), %rdi
cmpq %r15, %rdi
je 0xf3fe
movq -0x190(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x1b8(%rbp), %rdi
callq 0xe08a
jmp 0xf439
movq %rax, %r14
leaq -0x1c0(%rbp), %rdi
callq 0xdccc
jmp 0xf439
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xf439
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x150(%rbp), %rdi
callq 0xdccc
leaq -0x330(%rbp), %rdi
callq 0xff30
leaq -0xc0(%rbp), %rdi
callq 0xffb0
leaq -0x260(%rbp), %rdi
callq 0xfff8
leaq -0x1f0(%rbp), %rdi
callq 0x10218
movq %r14, %rdi
callq 0x23a0