// File: /workspace/github_cpp_makefile_star2_O1/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 0x367e
leaq -0x1f0(%rbp), %rdi
movq %rbx, %rsi
callq 0x10474
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0xee27
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x1d8(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x100c4
leaq -0x260(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x11040
leaq -0x1d8(%rbp), %rdi
callq 0x1025e
cmpb $0x1, -0x248(%rbp)
jne 0xeee6
leaq -0x240(%rbp), %rsi
leaq -0x330(%rbp), %rdi
callq 0x3db0
movq -0x330(%rbp), %rsi
movq -0x328(%rbp), %rdx
movq 0xa13a(%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 0xeedc
movq -0x320(%rbp), %rsi
incq %rsi
callq 0x2240
movl $0x1, %ebx
jmp 0xf2e2
leaq -0xc0(%rbp), %rdi
leaq -0x260(%rbp), %rsi
callq 0xe02a
movb -0x248(%rbp), %al
leaq -0xa0(%rbp), %rdi
movb %al, -0x8(%rdi)
leaq -0x90(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x240(%rbp), %rsi
movq -0x238(%rbp), %rdx
addq %rsi, %rdx
callq 0x367e
movl -0x220(%rbp), %eax
leaq -0x78(%rbp), %rdi
movl %eax, -0x8(%rdi)
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x218(%rbp), %rsi
movq -0x210(%rbp), %rdx
addq %rsi, %rdx
callq 0x367e
movb -0x1f8(%rbp), %al
movb %al, -0x58(%rbp)
movl $0x0, -0x50(%rbp)
movb $0x0, -0x4c(%rbp)
leaq -0x148(%rbp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x8(%rax)
movaps %xmm0, 0x18(%rax)
movaps %xmm0, -0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq $0x0, 0x20(%rax)
leaq -0x330(%rbp), %rdi
leaq -0x150(%rbp), %rsi
leaq -0x48(%rbp), %rcx
movl $0x1, %edx
callq 0x102c8
leaq -0x150(%rbp), %rdi
callq 0x3666
leaq -0x300(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x2d8(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
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 0xf205
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 0x4c94
movl -0x150(%rbp), %eax
movl %eax, -0x1c0(%rbp)
leaq -0x1b8(%rbp), %rdi
movq %r14, %rsi
callq 0xe02a
movq %r15, -0x1a0(%rbp)
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x367e
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 0x367e
leaq -0x370(%rbp), %rdi
leaq -0x330(%rbp), %rsi
leaq -0x1c0(%rbp), %rdx
callq 0x5894
leaq -0x348(%rbp), %rdi
callq 0x2c20
movq -0x368(%rbp), %rdi
leaq -0x358(%rbp), %rax
cmpq %rax, %rdi
je 0xf0f9
movq -0x358(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x170(%rbp), %rdi
cmpq %r12, %rdi
je 0xf114
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x1a0(%rbp), %rdi
cmpq %r15, %rdi
je 0xf12f
movq -0x190(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x1b8(%rbp), %rdi
callq 0xe0cc
cmpb $0x1, -0x268(%rbp)
jne 0xf1af
leaq -0x48(%rbp), %rdi
leaq -0x318(%rbp), %rsi
callq 0x4b8e
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x9e65(%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 0xf1ab
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2240
movb $0x1, -0x4c(%rbp)
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0xf1d1
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
je 0xf1f3
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2240
movq %r14, %rdi
callq 0xe0cc
cmpb $0x0, -0x4c(%rbp)
je 0xf025
movq -0x290(%rbp), %rdi
leaq -0x280(%rbp), %rax
cmpq %rax, %rdi
je 0xf227
movq -0x280(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x2c0(%rbp), %rdi
leaq -0x2b0(%rbp), %rax
cmpq %rax, %rdi
je 0xf249
movq -0x2b0(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x2e8(%rbp), %rdi
leaq -0x2d8(%rbp), %rax
cmpq %rax, %rdi
je 0xf26b
movq -0x2d8(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x310(%rbp), %rdi
leaq -0x300(%rbp), %rax
cmpq %rax, %rdi
je 0xf28d
movq -0x300(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x330(%rbp), %rdi
callq 0x10424
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0xf2b2
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0xf2d4
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0xc0(%rbp), %rdi
callq 0xe0cc
xorl %ebx, %ebx
leaq -0x208(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf301
movq -0x208(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x230(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf320
movq -0x230(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x260(%rbp), %rdi
callq 0xe0cc
leaq -0x1f0(%rbp), %rdi
callq 0x1025e
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 0x3666
jmp 0xf495
movq %rax, %r14
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0xf38a
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x2240
jmp 0xf38a
movq %rax, %r14
leaq -0xc0(%rbp), %rdi
callq 0xe0cc
jmp 0xf4a1
jmp 0xf39d
movq %rax, %r14
jmp 0xf4a1
movq %rax, %r14
leaq -0x1d8(%rbp), %rdi
callq 0x1025e
jmp 0xf4ad
movq %rax, %r14
jmp 0xf4ad
movq %rax, %r14
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0xf4b9
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2240
jmp 0xf4b9
movq %rax, %r14
leaq -0x320(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf4a1
movq -0x320(%rbp), %rsi
incq %rsi
callq 0x2240
jmp 0xf4a1
jmp 0xf41a
movq %rax, %r14
jmp 0xf489
movq %rax, %r14
jmp 0xf47d
movq %rax, %r14
jmp 0xf442
movq %rax, %r14
movq -0x1a0(%rbp), %rdi
cmpq %r15, %rdi
je 0xf442
movq -0x190(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x1b8(%rbp), %rdi
callq 0xe0cc
jmp 0xf47d
movq %rax, %r14
leaq -0x1c0(%rbp), %rdi
callq 0xdd46
jmp 0xf47d
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xf47d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x150(%rbp), %rdi
callq 0xdd46
leaq -0x330(%rbp), %rdi
callq 0xff76
leaq -0xc0(%rbp), %rdi
callq 0xfff6
leaq -0x260(%rbp), %rdi
callq 0x1003e
leaq -0x1f0(%rbp), %rdi
callq 0x1025e
movq %r14, %rdi
callq 0x23a0