// File: BlinfoldKing[P]lisval/src/lib/evaluator.cpp
// Function: Evaluator::print()
pair<Token*, function<Token*(Token*)>> Evaluator::print() {
    Token* op = new Atom("print");
    Token* input = new Variable("INPUT");
    List* signature = new List();
    signature->list.push_back(op);
    signature->list.push_back(input);
    Token* token = signature;
    auto res = make_pair(token, [this](Token* input) {
            List* input_list = static_cast<List*>(input);
            Token* res = this->eval(input_list->list[1]);
            cout << res->debug() << '\n';

            return res;
    });

    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0xd0(%rbp)
movq %rdi, %rax
movq %rax, -0xc8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xc0(%rbp)
movl $0x28, %edi
callq 0x32b0
movq %rax, -0xb8(%rbp)
movb $0x1, -0x4d(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x34a0
movq -0xb0(%rbp), %rdx
leaq 0x1bcd2(%rip), %rsi     # 0x233b4
leaq -0x38(%rbp), %rdi
callq 0x33b0
jmp 0x76ed
movq -0xb8(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x11960
jmp 0x76ff
movb $0x0, -0x4d(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x31c0
leaq -0x39(%rbp), %rdi
callq 0x3300
movq -0xb8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x28, %edi
callq 0x32b0
movq %rax, -0xe0(%rbp)
movb $0x1, -0x7a(%rbp)
leaq -0x79(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x34a0
movq -0xd8(%rbp), %rdx
leaq 0x1bc8d(%rip), %rsi     # 0x233e0
leaq -0x78(%rbp), %rdi
callq 0x33b0
jmp 0x775e
movq -0xe0(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x11830
jmp 0x7770
movb $0x0, -0x7a(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x31c0
leaq -0x79(%rbp), %rdi
callq 0x3300
movq -0xe0(%rbp), %rax
movq %rax, -0x58(%rbp)
movl $0x20, %edi
callq 0x32b0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xe8(%rbp)
callq 0x11870
jmp 0x77af
movq -0xe8(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdi
addq $0x8, %rdi
leaq -0x18(%rbp), %rsi
callq 0x118b0
movq -0x88(%rbp), %rdi
addq $0x8, %rdi
leaq -0x58(%rbp), %rsi
callq 0x118b0
movq -0xc0(%rbp), %rax
movq -0x88(%rbp), %rcx
movq %rcx, -0x90(%rbp)
movq %rax, -0xa8(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x7900
movq -0xd0(%rbp), %rdi
movq %rax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
leaq -0xa0(%rbp), %rsi
callq 0x7930
movq -0xc8(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x7868
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x31c0
leaq -0x39(%rbp), %rdi
callq 0x3300
testb $0x1, -0x4d(%rbp)
jne 0x7879
jmp 0x788a
movq -0xb8(%rbp), %rdi
movl $0x28, %esi
callq 0x32c0
jmp 0x78f0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x78af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x31c0
leaq -0x79(%rbp), %rdi
callq 0x3300
testb $0x1, -0x7a(%rbp)
jne 0x78c0
jmp 0x78d1
movq -0xe0(%rbp), %rdi
movl $0x28, %esi
callq 0x32c0
jmp 0x78f0
movq -0xe8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x20, %esi
callq 0x32c0
movq -0x48(%rbp), %rdi
callq 0x3490
nopl (%rax)