// File: /workspace/github_cpp_makefile_star2_O1/KJTang[P]SimpleCompiler/AST.cpp
// Function: CallFuncAST::eval[abi:cxx11]()
std::string CallFuncAST::eval() {
    std::string str;
    if (mCallee == "input") {   // system func "input(int)"
        str += "SCAN " + mArgs[0]->eval().substr(5);
    } else if (mCallee == "output") {   // system func "output(int)"
        str += mArgs[0]->eval() + "PRIT" + insEnd;
    } else {
        for (auto it = mArgs.begin(); it != mArgs.end(); ++it) {
            str += (*it)->eval();
        }
        str += "CALL " + mCallee + insEnd;
    }
    return str;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movq %rdi, -0x58(%rbp)
movb $0x0, 0x10(%rdi)
leaq 0x10(%rsi), %r15
leaq 0x6b25(%rip), %rsi      # 0xf29b
movq %r15, %rdi
callq 0x30a0
testl %eax, %eax
je 0x883d
leaq 0x6b1a(%rip), %rsi      # 0xf2a7
movq %r15, %rdi
callq 0x30a0
testl %eax, %eax
je 0x88b2
movq %r12, -0x30(%rbp)
movq 0x30(%r14), %rbx
cmpq 0x38(%r14), %rbx
je 0x87e8
leaq -0x40(%rbp), %r13
leaq -0x50(%rbp), %r12
movq (%rbx), %rsi
movq (%rsi), %rax
movq %r12, %rdi
callq *0x18(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x58(%rbp), %rdi
callq 0x30b0
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x87de
callq 0x31c0
addq $0x8, %rbx
cmpq 0x38(%r14), %rbx
jne 0x87b3
leaq 0x6abf(%rip), %rsi      # 0xf2ae
leaq -0x78(%rbp), %rdi
movq %r15, %rdx
callq 0x92c5
movq 0xb9de(%rip), %rsi      # 0x141e0
movq 0xb9df(%rip), %rdx      # 0x141e8
leaq -0x78(%rbp), %rdi
callq 0x30b0
leaq -0x40(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8904
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x890a
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq (%rsi), %rax
leaq -0x98(%rbp), %rdi
callq *0x18(%rax)
leaq -0x78(%rbp), %rdi
leaq -0x98(%rbp), %rsi
movl $0x5, %edx
movq $-0x1, %rcx
callq 0x3200
leaq 0x6a2d(%rip), %rcx      # 0xf2a1
leaq -0x78(%rbp), %rdi
movl $0x5, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x3220
leaq -0x40(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8946
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x894c
movq 0x30(%r14), %rax
movq (%rax), %rsi
movq (%rsi), %rax
leaq -0x98(%rbp), %rdi
callq *0x18(%rax)
leaq 0x677e(%rip), %rsi      # 0xf04b
leaq -0x98(%rbp), %rdi
callq 0x3360
leaq -0x68(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x89bc
movq %rdx, -0x78(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x68(%rbp)
jmp 0x89c3
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x58(%rbp), %rdi
callq 0x30b0
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8940
callq 0x31c0
leaq -0x68(%rbp), %rax
jmp 0x899b
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x58(%rbp), %rdi
callq 0x30b0
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8982
callq 0x31c0
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8994
callq 0x31c0
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x89a9
callq 0x31c0
movq -0x58(%rbp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0x78(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xb7fb(%rip), %rsi      # 0x141e0
movq 0xb7fc(%rip), %rdx      # 0x141e8
callq 0x30b0
leaq -0x40(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8a15
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x8a1b
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x58(%rbp), %rdi
callq 0x30b0
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8a51
callq 0x31c0
movq -0x78(%rbp), %rdi
cmpq %r15, %rdi
jne 0x898f
jmp 0x8994
movq %r12, -0x30(%rbp)
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8a81
callq 0x31c0
jmp 0x8a81
movq %r12, -0x30(%rbp)
movq %rax, %r14
movq -0x78(%rbp), %rdi
cmpq %r15, %rdi
jne 0x8abb
jmp 0x8ac9
jmp 0x8ac2
jmp 0x8ad2
movq %r12, -0x30(%rbp)
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8aae
callq 0x31c0
jmp 0x8aae
movq %r12, -0x30(%rbp)
movq %rax, %r14
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8ac9
callq 0x31c0
jmp 0x8ac9
movq %r12, -0x30(%rbp)
movq %rax, %r14
leaq -0x88(%rbp), %rax
jmp 0x8af2
movq %r12, -0x30(%rbp)
jmp 0x8aff
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8aee
callq 0x31c0
jmp 0x8aee
movq %rax, %r14
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x8b10
jmp 0x8b15
jmp 0x8aff
movq %rax, %r14
jmp 0x8b15
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x8b15
callq 0x31c0
movq -0x58(%rbp), %rax
movq (%rax), %rdi
cmpq -0x30(%rbp), %rdi
je 0x8b27
callq 0x31c0
movq %r14, %rdi
callq 0x3330
nop