LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/umatin[P]LogarithmicErrorRegression/./src/helpers/regression_benchmark.h
// Function: perform_benchmark(linear_regression, std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&, int)
std::vector<long> perform_benchmark(linear_regression lr, std::vector<double>& data, std::vector<double>& lookups, int num){
    std::vector<long> measurements;
    for (int i = 0; i < num; i++){
        long time = benchmark_lookup_linear_regression(data, lookups, lr);
        measurements.push_back(time);
    }

    std::sort(measurements.begin(), measurements.end());
    return measurements;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
vmovsd %xmm0, 0x8(%rsp)
vxorps %xmm0, %xmm0, %xmm0
vmovsd %xmm1, 0x10(%rsp)
movq %rdi, %rbx
movq $0x0, 0x10(%rdi)
vmovups %xmm0, (%rdi)
testl %ecx, %ecx
jle 0x2f05
leaq 0x20(%rsp), %r12
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %r12, %rdi
movq %r14, %rsi
callq 0x4a66
vmovsd 0x8(%rsp), %xmm0
vmovsd 0x10(%rsp), %xmm1
movq %r15, %rdi
movq %r12, %rsi
callq 0x2d70
movq 0x20(%rsp), %rdi
movq %rax, %r13
testq %rdi, %rdi
je 0x2ea1
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
movq 0x8(%rbx), %rsi
movq %r13, 0x18(%rsp)
cmpq 0x10(%rbx), %rsi
je 0x2ebd
movq %r13, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2eca
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x73ae
decl %ebp
jne 0x2e65
movq (%rbx), %r14
movq 0x8(%rbx), %r15
cmpq %r15, %r14
je 0x2f05
movq %r15, %rax
subq %r14, %rax
sarq $0x3, %rax
lzcntq %rax, %rdx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x74e1
movq %r14, %rdi
movq %r15, %rsi
callq 0x75ca
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f35
movq 0x20(%rsp), %rdi
movq %rax, %r14
testq %rdi, %rdi
je 0x2f38
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
jmp 0x2f38
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2f4c
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2260
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O3/umatin[P]LogarithmicErrorRegression/./src/helpers/io_handler.h
// Function: std::vector<unsigned long, std::allocator<unsigned long>> load_data<unsigned long>(char*)
static std::vector<T> load_data(char * filename_cs) {
    std::string filename(filename_cs);
    std::vector<T> data;

    std::ifstream in(filename, std::ios::binary);
    if (!in.is_open()) {
        std::cerr << "unable to open " << filename << std::endl;
        exit(EXIT_FAILURE);
    }
    // Read size.
    uint64_t size;
    in.read(reinterpret_cast<char*>(&size), sizeof(uint64_t));
    data.resize(size);
    // Read values.
    in.read(reinterpret_cast<char*>(data.data()), size*sizeof(T));
    in.close();
    
    return data;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
leaq 0x10(%rsp), %r14
leaq 0x30(%rsp), %rdx
movq %rdi, %rbx
movq %r14, %rdi
callq 0x4e74
vxorps %xmm0, %xmm0, %xmm0
movq $0x0, 0x10(%rbx)
vmovups %xmm0, (%rbx)
leaq 0x30(%rsp), %rdi
movl $0x4, %edx
movq %r14, %rsi
callq 0x2320
leaq 0xa8(%rsp), %rdi
callq 0x2060
testb %al, %al
je 0x3885
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x8, %edx
callq 0x2290
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x80bc
movq 0x8(%rsp), %rdx
movq (%rbx), %rsi
shlq $0x3, %rdx
leaq 0x30(%rsp), %rdi
callq 0x2290
leaq 0x30(%rsp), %rdi
callq 0x2050
leaq 0x30(%rsp), %rdi
callq 0x2070
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x387a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2260
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r14
retq
movq 0x9764(%rip), %rdi      # 0xcff0
leaq 0x6a55(%rip), %rsi      # 0xa2e8
movl $0xf, %edx
callq 0x2270
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rsi
movq 0x9742(%rip), %rdi      # 0xcff0
callq 0x2270
movq %rax, %rdi
callq 0x20f0
movl $0x1, %edi
callq 0x2280
jmp 0x38cc
movq %rax, %r14
jmp 0x38ed
leaq 0x30(%rsp), %rdi
movq %rax, %r14
callq 0x2070
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x38ed
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2260
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3908
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2260
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O3/umatin[P]LogarithmicErrorRegression/./src/fast_brute_force.h
// Function: find_min_idx(std::vector<double, std::allocator<double>>&, linear_regression, long)
long find_min_idx(std::vector<double>& data, linear_regression lr, long selfi){
    long min_idx = -1;
    double min_err = std::numeric_limits<double>::infinity();
    for(int i = 0; i < data.size(); i++){
        if(i != selfi){
            double err = calculate_error_single_element<L1Norm, false, false>(data, lr.a, lr.b, i);
            if (err < min_err){
                min_idx = i;
                min_err = err;
            }
        }
    }
    return min_idx;
}

// Assembly:
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
subq %rcx, %rdx
je 0x3ff8
vmovsd 0x6065(%rip), %xmm2     # 0xa010
vmovddup 0x60bd(%rip), %xmm3     # xmm3 = mem[0,0]
sarq $0x3, %rdx
movq $-0x1, %rax
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %edi, %edi
cmpq %rdi, %rsi
je 0x3fef
vmovsd (%rcx,%rdi,8), %xmm5
vcvtsi2sd %edi, %xmm6, %xmm4
vfmadd213sd %xmm1, %xmm0, %xmm5 # xmm5 = (xmm0 * xmm5) + xmm1
vsubsd %xmm5, %xmm4, %xmm4
vandpd %xmm3, %xmm4, %xmm4
vucomisd %xmm4, %xmm2
vminsd %xmm2, %xmm4, %xmm2
cmovaq %rdi, %rax
incq %rdi
cmpq %rdi, %rdx
jne 0x3fc8
retq
movq $-0x1, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/umatin[P]LogarithmicErrorRegression/./src/fast_brute_force.h
// Function: build_regression_direct_descent(std::vector<double, std::allocator<double>>&, int)
linear_regression build_regression_direct_descent(std::vector<double>& data, int num){
    srand(time(nullptr));
    long index = rand()%data.size();

    linear_regression lr;
    for(int i = 0; i < num; i++){
        double a,b;
        std::pair<linear_regression, long> p = build_regression_i(data, index);
        lr = p.first;
        long cost = p.second;
        index = find_min_idx(data, lr, index);
        //std::cout << calculate_error<DiscreteLogNorm>(data, lr) << std::endl;
    }
    return lr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
xorl %edi, %edi
movl %esi, %ebx
callq 0x21f0
movl %eax, %edi
callq 0x2220
callq 0x2080
testl %ebx, %ebx
jle 0x407a
movq 0x8(%r14), %rcx
cltq
xorl %edx, %edx
leaq 0x10(%rsp), %r15
subq (%r14), %rcx
sarq $0x3, %rcx
divq %rcx
movq %rdx, %r12
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x3b48
vmovsd 0x10(%rsp), %xmm0
vmovsd 0x18(%rsp), %xmm1
movq %r14, %rdi
movq %r12, %rsi
vmovsd %xmm0, 0x8(%rsp)
vmovsd %xmm1, (%rsp)
callq 0x3f97
decl %ebx
movq %rax, %r12
jne 0x4041
jmp 0x4089
vxorps %xmm0, %xmm0, %xmm0
vmovsd %xmm0, 0x8(%rsp)
vmovsd %xmm0, (%rsp)
vmovsd 0x8(%rsp), %xmm0
vmovsd (%rsp), %xmm1
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/umatin[P]LogarithmicErrorRegression/./src/median.h
// Function: double quickselect<double>(std::vector<double, std::allocator<double>>&, int, int, int)
T quickselect(std::vector<T>& data, int k, int lo, int hi){
    int i = hoare_partition(data, lo, hi, data[(lo+hi)/2]);
    if(i == k){
        return data[i];
    }
    else if(i < k){
        return quickselect(data, k, i+1, hi);
    }
    else{
        return quickselect(data, k, lo, i-1);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rdi), %rax
movl %esi, %edi
negl %edi
movabsq $-0x100000000, %r8      # imm = 0xFFFFFFFF00000000
leal -0x1(%rdx), %r9d
leal (%rcx,%rdx), %r10d
movl %r10d, %r11d
shrl $0x1f, %r11d
addl %r10d, %r11d
sarl %r11d
movslq %r11d, %r10
movl %r9d, %r11d
vmovsd (%rax,%r10,8), %xmm0
leal 0x1(%rcx), %r10d
movslq %r11d, %r11
vmovsd 0x8(%rax,%r11,8), %xmm1
incq %r11
vucomisd %xmm1, %xmm0
ja 0x4c94
movslq %r10d, %r13
xorl %ebx, %ebx
leaq (%rax,%r13,8), %r15
movq %r13, %r14
shlq $0x20, %r14
vmovsd -0x8(%r15,%rbx,8), %xmm2
addq %r8, %r14
decq %rbx
vucomisd %xmm0, %xmm2
ja 0x4cb4
movl %r13d, %r12d
addq %rbx, %r13
cmpq %r13, %r11
jge 0x4ce6
addq %rbx, %r12
vmovsd %xmm2, (%rax,%r11,8)
vmovsd %xmm1, (%r15,%rbx,8)
movl %r12d, %r10d
jmp 0x4c91
leal (%rdi,%r10), %r11d
movl %ebx, %ebp
addl %r11d, %ebp
je 0x4d0d
addq %rbx, %r12
cmpl %esi, %r12d
jl 0x4d03
leal -0x1(%r10,%rbx), %ecx
jmp 0x4c70
leal 0x1(%r10,%rbx), %edx
jmp 0x4c6c
sarq $0x1d, %r14
vmovsd (%rax,%r14), %xmm0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/umatin[P]LogarithmicErrorRegression/./src/log_regression.h
// Function: linear_regression create_regression_tournament_selection<(ERROR_TYPE)1, true, true>(std::vector<double, std::allocator<double>>&)
linear_regression create_regression_tournament_selection(std::vector<double>& data){
    long s = std::pow(2, (int)std::ceil(log2(data.size())));
    std::vector<int> tournament;
    tournament.resize(s);
    for (int i = 0; i < s/2; i++){
        int fr = rand() % data.size();
        int to;
        do{
            to = rand() % data.size();
        }while(fr == to);
        tournament[2*i] = fr;
        tournament[2*i + 1] = to;
    }
    double error;
    return create_regression_tournament_selection_recursive<E,ROUND,BOUNDED>(data, tournament, 0, s, error);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq 0x8(%rdi), %rax
movq %rdi, %rbx
subq (%rdi), %rax
sarq $0x3, %rax
vcvtusi2sd %rax, %xmm0, %xmm0
callq 0x2370
vroundsd $0xa, %xmm0, %xmm0, %xmm0
vcvttsd2si %xmm0, %edi
vmovsd 0x46bb(%rip), %xmm0     # 0xa078
callq 0x22f0
vcvttsd2si %xmm0, %r14
vxorpd %xmm0, %xmm0, %xmm0
movq %rsp, %rdi
movq $0x0, 0x10(%rdi)
vmovapd %xmm0, (%rdi)
movq %r14, %rsi
callq 0x89fc
cmpq $0x2, %r14
jl 0x5a43
movq %r14, %r12
shrq $0x3f, %r12
xorl %r13d, %r13d
addq %r14, %r12
sarq %r12
callq 0x2080
movq 0x8(%rbx), %rcx
cltq
xorl %edx, %edx
subq (%rbx), %rcx
sarq $0x3, %rcx
divq %rcx
movq %rdx, %r15
callq 0x2080
movq 0x8(%rbx), %rcx
cltq
xorl %edx, %edx
subq (%rbx), %rcx
sarq $0x3, %rcx
divq %rcx
cmpl %edx, %r15d
je 0x5a12
movq (%rsp), %rax
movl %r15d, (%rax,%r13,8)
movl %edx, 0x4(%rax,%r13,8)
incq %r13
cmpq %r12, %r13
jne 0x59f8
leaq 0x28(%rsp), %r8
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
movl %r14d, %ecx
callq 0x8a2d
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5a86
movq 0x10(%rsp), %rsi
vmovsd %xmm0, 0x20(%rsp)
vmovsd %xmm1, 0x18(%rsp)
subq %rdi, %rsi
callq 0x2260
vmovsd 0x18(%rsp), %xmm1
vmovsd 0x20(%rsp), %xmm0
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x5a96
movq (%rsp), %rdi
movq %rax, %rbx
testq %rdi, %rdi
je 0x5aaf
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O3/umatin[P]LogarithmicErrorRegression/./src/error_function.h
// Function: long double calculate_error<(ERROR_TYPE)3, true, false>(std::vector<double, std::allocator<double>>&, linear_regression)
long double calculate_error(std::vector<double>& data, linear_regression lr){
    long double total_error = 0;
    for(long i = 0; i < data.size(); i++){
        total_error += calculate_error_single_element<E, CORRECT, BOUNDED>(data, lr, i);
    }
    return total_error;
}

// Assembly:
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
fldz
subq %rax, %rcx
je 0x89fb
sarq $0x3, %rcx
movabsq $0x100000000, %rsi      # imm = 0x100000000
fstp %st(0)
fldz
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %edx, %edx
xorl %edi, %edi
movq %rdx, %r8
sarq $0x1d, %r8
vcvtsi2sd %edi, %xmm4, %xmm2
incq %rdi
addq %rsi, %rdx
vmovsd (%rax,%r8), %xmm3
vfmadd213sd %xmm1, %xmm0, %xmm3 # xmm3 = (xmm0 * xmm3) + xmm1
vroundsd $0x9, %xmm3, %xmm3, %xmm3
vsubsd %xmm3, %xmm2, %xmm2
vmovsd %xmm2, -0x8(%rsp)
fldl -0x8(%rsp)
fmul %st, %st(0)
fstpl -0x10(%rsp)
vmovsd -0x10(%rsp), %xmm2
vmovsd %xmm2, -0x18(%rsp)
faddl -0x18(%rsp)
cmpq %rdi, %rcx
jne 0x89b0
retq
// File: /workspace/github_cpp_makefile_star2_O3/umatin[P]LogarithmicErrorRegression/./src/error_function.h
// Function: long double calculate_error<(ERROR_TYPE)0, true, true>(std::vector<double, std::allocator<double>>&, double, double)
long double calculate_error(std::vector<double>& data, double a, double b){
    long double total_error = 0;
    for(long i = 0; i < data.size(); i++){
        total_error += calculate_error_single_element<E, CORRECT, BOUNDED>(data, a, b, i);
    }
    return total_error;
}

// Assembly:
movq (%rdi), %rax
movq 0x8(%rdi), %rdx
fldz
fldz
fldz
subq %rax, %rdx
je 0x91fd
vmovddup 0xf05(%rip), %xmm2      # xmm2 = mem[0,0]
movq %rdx, %rcx
shrq $0x3, %rdx
fstp %st(1)
fstp %st(1)
fstp %st(0)
sarq $0x3, %rcx
movabsq $0x100000000, %rsi      # imm = 0x100000000
decl %edx
cmpq $0x1, %rcx
movl %edx, -0x1c(%rsp)
adcq $0x0, %rcx
xorl %edx, %edx
xorl %edi, %edi
fildl -0x1c(%rsp)
fldz
fld %st(0)
fxch %st(2)
fxch %st(1)
movq %rdx, %r8
sarq $0x1d, %r8
vmovsd (%rax,%r8), %xmm3
vfmadd213sd %xmm1, %xmm0, %xmm3 # xmm3 = (xmm0 * xmm3) + xmm1
vmovsd %xmm3, -0x8(%rsp)
vcvtsi2sd %edi, %xmm5, %xmm3
fldl -0x8(%rsp)
fucomi %st(2), %st
fcmovnbe %st(2), %st
fxch %st(1)
fucomi %st(1), %st
fxch %st(1)
fcmovnbe %st(1), %st
fstpl -0x10(%rsp)
incq %rdi
addq %rsi, %rdx
vroundsd $0x9, -0x10(%rsp), %xmm5, %xmm4
vsubsd %xmm4, %xmm3, %xmm3
vandpd %xmm2, %xmm3, %xmm3
vmovlpd %xmm3, -0x18(%rsp)
fxch %st(2)
faddl -0x18(%rsp)
fxch %st(2)
cmpq %rdi, %rcx
jne 0x91a4
fstp %st(1)
fstp %st(0)
retq
// File: /workspace/github_cpp_makefile_star2_O3/ef-gy[P]libefgy/include/ef.gy/continued-fractions.h
// Function: efgy::math::numeric::continuedFractional<long long>::continuedFractional(efgy::math::numeric::fractional<long long> const&)
continuedFractional(const fractional<N> &pF)
      : coefficient(), negative(false) {
    N i = N(0);
    for (fractional<N> f = pF;
         (f.numerator != zero()) && (f.denominator != zero());
         f = reciprocal(f - i)) {
      i = N(f);

      if (i < zero()) {
        coefficient.push_back(-i);
        negative = true;
      } else {
        coefficient.push_back(i);
      }

      if (f < zero()) {
        f *= N(-1);
        i = -i;
      }
    }

    if ((coefficient.size() > one()) && (coefficient.back() == N(1))) {
      coefficient.push_back(N(1));
    }
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x9(%rdi)
movups %xmm0, (%rdi)
movq $0x0, 0x8(%rsp)
movups (%rsi), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x5882
leaq 0x10(%rsp), %r14
movq 0x8(%r14), %rcx
leaq 0x20(%rsp), %r15
leaq 0x30(%rsp), %r12
leaq 0x8(%rsp), %r13
testq %rcx, %rcx
je 0x5879
cqto
idivq %rcx
movq %rax, 0x8(%rsp)
testq %rax, %rax
js 0x57c6
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x57e5
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x5801
negq %rax
movq %rax, 0x20(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x57f2
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x57fd
movq %rbx, %rdi
movq %r13, %rdx
callq 0x1403c
jmp 0x5801
movq %rbx, %rdi
movq %r15, %rdx
callq 0x13f00
movb $0x1, 0x18(%rbx)
movq 0x10(%rsp), %rax
testq %rax, %rax
js 0x5812
movq 0x8(%rsp), %rcx
jmp 0x5833
negq %rax
movq %rax, 0x10(%rsp)
movq %r14, %rdi
callq 0x13e3e
xorl %ecx, %ecx
subq 0x8(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdx
imulq %rdx, %rcx
subq %rcx, %rax
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq %r15, %rdi
callq 0x13e3e
movaps 0x20(%rsp), %xmm0
movaps %xmm0, 0x30(%rsp)
movq %r12, %rdi
callq 0x13ec3
movq %rdx, %rcx
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
testq %rax, %rax
jne 0x5797
movq (%rbx), %rax
movq 0x8(%rbx), %rsi
jmp 0x5886
xorl %eax, %eax
xorl %esi, %esi
movq %rsi, %rcx
subq %rax, %rcx
cmpq $0x8, %rcx
jbe 0x58c6
cmpq $0x1, -0x8(%rsi)
jne 0x58c6
movq $0x1, 0x20(%rsp)
cmpq 0x10(%rbx), %rsi
je 0x58b9
movq $0x1, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x58c6
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x13f00
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x58dc
jmp 0x58dc
jmp 0x58dc
jmp 0x58dc
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x58f3
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x4250
movq %r14, %rdi
callq 0x43c0
// File: /workspace/github_cpp_makefile_star2_O3/ef-gy[P]libefgy/include/ef.gy/continued-fractions.h
// Function: efgy::math::numeric::continuedFractional<long long>::operator efgy::math::numeric::fractional<long long>() const
operator fractional<N>(void) const {
    fractional<N> rv;
    N j = coefficient.size() - N(1);
    for (N i = j; i >= N(0); i--) {
      if (i == j) {
        rv = fractional<N>(N(coefficient[i]));
      } else {
        rv = reciprocal(rv) + coefficient[i];
      }
    }
    if (negative) {
      rv *= N(-1);
    }
    return rv;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq $0x0, 0x8(%rsp)
movq $0x1, 0x10(%rsp)
movq 0x8(%rdi), %r12
subq (%rdi), %r12
sarq $0x3, %r12
testq %r12, %r12
jle 0x59d2
xorl %r13d, %r13d
leaq 0x8(%rsp), %r14
leaq 0x18(%rsp), %r15
movq %r12, %rbp
testq %r13, %r13
je 0x59b1
movq %r14, %rdi
callq 0x13ec3
movq (%rbx), %rcx
movq -0x8(%rcx,%rbp,8), %rcx
imulq %rdx, %rcx
addq %rax, %rcx
movq %rcx, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq %r15, %rdi
callq 0x13e3e
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rdx
jmp 0x59be
movq (%rbx), %rax
movq -0x8(%rax,%r12,8), %rax
movl $0x1, %edx
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
incq %r13
decq %rbp
jg 0x5977
jmp 0x59d9
movl $0x1, %edx
xorl %eax, %eax
cmpb $0x0, 0x18(%rbx)
je 0x59f9
negq %rax
leaq 0x8(%rsp), %rbx
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0x13e3e
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/ef-gy[P]libefgy/include/ef.gy/continued-fractions.h
// Function: std::basic_ostream<char, std::char_traits<char>>& efgy::math::numeric::operator<<<char, long long>(std::basic_ostream<char, std::char_traits<char>>&, efgy::math::numeric::continuedFractional<long long> const&)
std::basic_ostream<C> &operator<<(std::basic_ostream<C> &out,
                                  const continuedFractional<N> &f) {
  if (f.coefficient.size() == N(0)) {
    return out << "[ 0 ]";
  }

  if (f.negative) {
    out << "- ";
  }
  out << "[";
  for (N i = N(0); i < f.coefficient.size(); i++) {
    if (i == N(0)) {
      out << " " << f.coefficient[i];
    } else if (i == N(1)) {
      out << "; " << f.coefficient[i];
    } else {
      out << ", " << f.coefficient[i];
    }
  }

  return out << " ]";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rsi), %rax
cmpq (%rsi), %rax
je 0x5af7
movq %rsi, %r14
cmpb $0x1, 0x18(%rsi)
jne 0x5a40
leaq 0xf6f0(%rip), %rsi      # 0x15123
movl $0x2, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x10095(%rip), %rsi     # 0x15adc
movl $0x1, %edx
movq %rbx, %rdi
callq 0x42b0
movq 0x8(%r14), %rax
cmpq (%r14), %rax
je 0x5ae9
xorl %ebp, %ebp
leaq 0x1001b(%rip), %r12     # 0x15a85
leaq 0x10070(%rip), %r13     # 0x15ae1
xorl %r15d, %r15d
cmpq $0x1, %r15
je 0x5a94
testq %r15, %r15
jne 0x5ab1
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x42b0
movq (%r14), %rax
jmp 0x5ac7
movl $0x2, %edx
movq %rbx, %rdi
leaq 0x1003b(%rip), %rsi     # 0x15ade
callq 0x42b0
movq (%r14), %rax
addq $0x8, %rax
jmp 0x5ac7
movl $0x2, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x42b0
movq (%r14), %rax
addq %rbp, %rax
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x40b0
movq 0x8(%r14), %rax
subq (%r14), %rax
incq %r15
sarq $0x3, %rax
addq $0x8, %rbp
cmpq %rax, %r15
jb 0x5a74
leaq 0xffe9(%rip), %rsi      # 0x15ad9
movl $0x2, %edx
jmp 0x5b03
leaq 0xffd8(%rip), %rsi      # 0x15ad6
movl $0x5, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/ef-gy[P]libefgy/include/ef.gy/continued-fractions.h
// Function: efgy::math::numeric::continuedFractional<long long>::operator,(long long const&) const
continuedFractional operator,(const N &pB) const {
    continuedFractional rv = *this;
    N b = pB;
    if (b < zero()) {
      rv.negative = true;
      rv.coefficient.push_back(-b);
    } else {
      rv.coefficient.push_back(b);
    }
    return rv;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x14880
movb 0x18(%r15), %al
movb %al, 0x18(%rbx)
movq (%r14), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
js 0x14824
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
jne 0x14839
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x1403c
jmp 0x14844
movb $0x1, 0x18(%rbx)
negq %rax
movq %rax, (%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x14851
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x13f00
jmp 0x14844
jmp 0x14860
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x14877
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x4250
movq %r14, %rdi
callq 0x43c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/main.cpp
// Function: main
int main(int argc, char *args[]) {
    if (argc != 2) {
        std::cout<<"code file not given"<<std::endl;
        return 0;
    }
    std::ifstream fin(args[1]);
    std::string str((std::istreambuf_iterator<char>(fin)), std::istreambuf_iterator<char>());

    Lexer lexer(str);
    lexer.lex();
    // lexer.debug();

    Parser parser(lexer.getTokens());
    parser.parse();
    // parser.debug();

    Assembler assembler(parser.getAsmCode());
    assembler.assemble();
    // assembler.debug();

    VirtualMachine vm(assembler.getBinCode());
    vm.execute();
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x540, %rsp            # imm = 0x540
cmpl $0x2, %edi
jne 0x3825
movq 0x8(%rsi), %rsi
leaq -0x548(%rbp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x3350
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq -0x460(%rbp,%rax), %rsi
leaq -0x20(%rbp), %r14
movq %r14, -0x10(%r14)
leaq -0x30(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x4e96
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x42b0
leaq -0x70(%rbp), %rdi
movl $0x0, 0x20(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movq $0x0, 0x38(%rdi)
callq 0x59f6
leaq -0x48(%rbp), %rsi
leaq -0x190(%rbp), %rdi
callq 0x435c
leaq -0x248(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x38f8
leaq -0x190(%rbp), %rdi
callq 0x39cc
leaq -0x248(%rbp), %rdi
callq 0x97b0
leaq -0x210(%rbp), %rsi
leaq -0x190(%rbp), %rdi
callq 0x3a26
leaq -0x190(%rbp), %rdi
callq 0xb92c
leaq -0x170(%rbp), %rsi
leaq -0x340(%rbp), %rdi
callq 0xcfe0
leaq -0x340(%rbp), %rdi
callq 0xd3e0
leaq -0x340(%rbp), %rdi
callq 0x4136
leaq -0x190(%rbp), %rdi
callq 0x418a
leaq -0x248(%rbp), %rdi
callq 0x41f6
leaq -0x70(%rbp), %rdi
callq 0x4284
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x3817
callq 0x31c0
leaq -0x548(%rbp), %rdi
callq 0x3080
jmp 0x3867
movq 0x107a4(%rip), %rbx     # 0x13fd0
leaq 0xb7d1(%rip), %rsi      # 0xf004
movl $0x13, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3150
xorl %eax, %eax
addq $0x540, %rsp            # imm = 0x540
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x340(%rbp), %rdi
callq 0x4136
jmp 0x388b
jmp 0x3888
movq %rax, %rbx
leaq -0x190(%rbp), %rdi
callq 0x418a
jmp 0x389e
jmp 0x389b
movq %rax, %rbx
leaq -0x248(%rbp), %rdi
callq 0x41f6
jmp 0x38c2
movq %rax, %rbx
leaq -0x190(%rbp), %rdi
callq 0x39cc
jmp 0x38c2
jmp 0x38bf
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x4284
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x38d9
callq 0x31c0
leaq -0x548(%rbp), %rdi
callq 0x3080
movq %rbx, %rdi
callq 0x3330
movq %rax, %rbx
jmp 0x38cb
movq %rax, %rbx
jmp 0x38d9
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/AST.cpp
// Function: BlockAST::print()
void BlockAST::print() {
    std::cout<<"block: {"<<std::endl;
    for (auto it = statements.begin(); it != statements.end(); ++it) {
        (*it)->print();
    }
    std::cout<<"}"<<std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0xe1cc(%rip), %rbx      # 0x13fd0
leaq 0x940f(%rip), %rsi      # 0xf21a
movl $0x8, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3150
movq 0x10(%r14), %r15
cmpq 0x18(%r14), %r15
je 0x5e58
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
addq $0x8, %r15
jmp 0x5e43
leaq 0x93c4(%rip), %rsi      # 0xf223
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3150
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/AST.cpp
// Function: IfExprAST::print()
void IfExprAST::print() {
    std::cout<<"if\t";
    condAST->print();
    ifBlockAST->print();
    if (elseBlockAST) {
        std::cout<<"else\t";
        elseBlockAST->print();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xe122(%rip), %rdi      # 0x13fd0
leaq 0x9370(%rip), %rsi      # 0xf225
movl $0x3, %edx
callq 0x3230
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq 0x18(%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
cmpq $0x0, 0x20(%rbx)
je 0x5f02
movq 0xe0ef(%rip), %rdi      # 0x13fd0
leaq 0x9341(%rip), %rsi      # 0xf229
movl $0x5, %edx
callq 0x3230
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/AST.cpp
// Function: CallFuncAST::print()
void CallFuncAST::print() {
    std::cout<<"call func: "<<mCallee<<"("<<std::endl;
    for (auto it = mArgs.begin(); it != mArgs.end(); ++it) {
        (*it)->print();
    }
    std::cout<<")"<<std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0xe076(%rip), %rbx      # 0x13fd0
leaq 0x92d5(%rip), %rsi      # 0xf236
movl $0xb, %edx
movq %rbx, %rdi
callq 0x3230
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
movq %rbx, %rdi
callq 0x3230
movq %rax, %r15
leaq 0x92c6(%rip), %rsi      # 0xf24e
movl $0x1, %edx
movq %rax, %rdi
callq 0x3230
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3150
movq 0x30(%r14), %r15
cmpq 0x38(%r14), %r15
je 0x5fd5
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
addq $0x8, %r15
jmp 0x5fc0
leaq 0x9332(%rip), %rsi      # 0xf30e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3150
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/AST.cpp
// Function: FunctionAST::print()
void FunctionAST::print() {
    std::cout<<"def func "<<mFunc.second<<": (";
    for (auto it = mArgs.begin(); it != mArgs.end(); ++it) {
        std::cout<<(*it).second<<", ";
    }
    std::cout<<"nullptr) ";
    blockAST->print();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0xdfa1(%rip), %r14      # 0x13fd0
leaq 0x920c(%rip), %rsi      # 0xf242
movl $0x9, %edx
movq %r14, %rdi
callq 0x3230
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
movq %r14, %rdi
callq 0x3230
leaq 0x91f2(%rip), %rsi      # 0xf24c
movl $0x3, %edx
movq %rax, %rdi
callq 0x3230
movq 0x38(%rbx), %r12
cmpq 0x40(%rbx), %r12
je 0x60ab
movq 0xdf58(%rip), %r14      # 0x13fd0
leaq 0x91d1(%rip), %r15      # 0xf250
movq 0x8(%r12), %rsi
movq 0x10(%r12), %rdx
movq %r14, %rdi
callq 0x3230
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3230
addq $0x28, %r12
cmpq 0x40(%rbx), %r12
jne 0x607f
movq 0xdf1e(%rip), %rdi      # 0x13fd0
leaq 0x919a(%rip), %rsi      # 0xf253
movl $0x9, %edx
callq 0x3230
movq 0x50(%rbx), %rdi
movq (%rdi), %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmpq *0x10(%rax)
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/AST.cpp
// Function: BlockAST::eval[abi:cxx11]()
std::string BlockAST::eval() {
    std::string str;
    for (auto it = statements.begin(); it != statements.end(); ++it) {
        str += (*it)->eval();
    }
    return str;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x30(%rbp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x10(%rsi), %r12
cmpq 0x18(%rsi), %r12
je 0x7a43
movq %rsi, %r14
leaq -0x40(%rbp), %r13
leaq -0x50(%rbp), %r15
movq (%r12), %rsi
movq (%rsi), %rax
movq %r15, %rdi
callq *0x18(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %rbx, %rdi
callq 0x30b0
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x7a39
callq 0x31c0
addq $0x8, %r12
cmpq 0x18(%r14), %r12
jne 0x7a0e
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x7a6b
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x7a6b
callq 0x31c0
movq (%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x7a79
callq 0x31c0
movq %r14, %rdi
callq 0x3330
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/./AST.h
// Function: IfExprAST::~IfExprAST()
~IfExprAST() {
        delete condAST;
        delete ifBlockAST;
        if (elseBlockAST) {
            delete elseBlockAST;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xa6ac(%rip), %rax      # 0x13c40
movq %rax, (%rdi)
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x95a6
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x95b5
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x95ca
movq (%rdi), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/Parser.cpp
// Function: Parser::parse()
bool Parser::parse() {
    getNextToken(); // start parsing
    ASTNode *newStat = nullptr;
    while (curToken.first != Token::END_OF_FILE) {
        newStat = this->parseStatement();
        if (newStat) {
            ASTList.push_back(newStat);
        }
    }
    for (auto it = ASTList.begin(); it != ASTList.end(); ++it) {
        #ifdef DEBUG
        std::string temp = (*it)->eval();
        std::cout<<temp<<"<<"<<std::endl;
        asmcode += temp;
        #else
        asmcode += (*it)->eval();
        #endif
    }
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movslq 0x80(%rdi), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%rdi)
movq (%rdi), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%rdi)
addq $0x60, %rdi
callq 0x3130
movq $0x0, -0x30(%rbp)
cmpl $-0x1, 0x58(%rbx)
je 0x983b
leaq 0x18(%rbx), %r14
leaq -0x30(%rbp), %r15
movq %rbx, %rdi
callq 0x98b0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x9835
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x982a
movq %rax, (%rsi)
addq $0x8, 0x20(%rbx)
jmp 0x9835
movq %r14, %rdi
movq %r15, %rdx
callq 0xb030
cmpl $-0x1, 0x58(%rbx)
jne 0x9805
movq 0x18(%rbx), %r12
cmpq 0x20(%rbx), %r12
je 0x9886
leaq 0x38(%rbx), %r14
leaq -0x40(%rbp), %r13
leaq -0x50(%rbp), %r15
movq (%r12), %rsi
movq (%rsi), %rax
movq %r15, %rdi
callq *0x18(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r14, %rdi
callq 0x30b0
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x987c
callq 0x31c0
addq $0x8, %r12
cmpq 0x20(%rbx), %r12
jne 0x9851
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x98a8
callq 0x31c0
movq %rbx, %rdi
callq 0x3330
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/Parser.cpp
// Function: Parser::parseStatement()
ASTNode *Parser::parseStatement() {
    #ifdef DEBUG
    std::cout<<curToken.second<<"\tparseStatement"<<std::endl;
    #endif
    switch (curToken.first) {
        case Token::KEYWORD_IF: {
            return this->parseIfExpr();
        }
        case Token::KEYWORD_WHILE: {
            return this->parseWhileExpr();
        }
        case Token::TYPE_INT: {
            return this->parseDeclaration();
        }
        case Token::KEYWORD_RET: {
            return this->parseFuncReturn();
        }
        default: {
            return this->parseExpression();
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x58(%rdi), %eax
addl $-0x6, %eax
cmpl $0x4, %eax
ja 0x98e7
leaq 0x59f6(%rip), %rcx      # 0xf2bc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
popq %rbp
jmp 0x98ee
popq %rbp
jmp 0x9a7c
popq %rbp
jmp 0x99de
popq %rbp
jmp 0x9a56
popq %rbp
jmp 0x9b8a
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/Parser.cpp
// Function: Parser::parseIfExpr()
ASTNode *Parser::parseIfExpr() {
    #ifdef DEBUG
    std::cout<<curToken.second<<"\tparseIfExpr"<<std::endl;
    #endif
    getNextToken(); // eat "if"
    ASTNode *cond = this->parseParenExpr();
    ASTNode *ifblock = this->parseBlock();
    ASTNode *elseblock = nullptr;
    if (curToken.second == "else") {
        getNextToken(); // eat "else"
        if (curToken.second == "if") {  // "else if"
            elseblock = this->parseIfExpr();
        } else {
            elseblock = this->parseBlock();   // "else {}"
        }
    }
    ASTNode *ifExpr = new IfExprAST(cond, ifblock, elseblock);
    return ifExpr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r15
movslq 0x80(%rdi), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%rdi)
movq (%rdi), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%rdi)
leaq 0x60(%rdi), %r12
movq %r12, %rdi
callq 0x3130
movq %r15, %rdi
callq 0xa1de
movq %rax, %rbx
movq %r15, %rdi
callq 0xa488
movq %rax, %r14
leaq 0x57c4(%rip), %rsi      # 0xf10b
movq %r12, %rdi
callq 0x30a0
testl %eax, %eax
je 0x9958
xorl %r15d, %r15d
jmp 0x99a9
movslq 0x80(%r15), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%r15)
movq (%r15), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%r15)
movq %r12, %rdi
callq 0x3130
leaq 0x577d(%rip), %rsi      # 0xf108
movq %r12, %rdi
callq 0x30a0
movq %r15, %rdi
testl %eax, %eax
je 0x99a1
callq 0xa488
jmp 0x99a6
callq 0x98ee
movq %rax, %r15
movl $0x28, %edi
callq 0x31e0
movl $0x0, 0x8(%rax)
leaq 0xa26f(%rip), %rcx      # 0x13c30
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rbx, 0x10(%rax)
movq %r14, 0x18(%rax)
movq %r15, 0x20(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/Parser.cpp
// Function: Parser::parseWhileExpr()
ASTNode *Parser::parseWhileExpr() {
    #ifdef DEBUG
    std::cout<<curToken.second<<"\tparseWhileExpr"<<std::endl;
    #endif
    getNextToken(); // eat "while"
    ASTNode *cond = this->parseParenExpr();
    ASTNode *block = this->parseBlock();
    ASTNode *whileExpr = new WhileExprAST(cond, block);
    return whileExpr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movslq 0x80(%rdi), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%rdi)
movq (%rdi), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%rdi)
addq $0x60, %rdi
callq 0x3130
movq %rbx, %rdi
callq 0xa1de
movq %rax, %r14
movq %rbx, %rdi
callq 0xa488
movq %rax, %rbx
movl $0x20, %edi
callq 0x31e0
movl $0x0, 0x8(%rax)
leaq 0xa237(%rip), %rcx      # 0x13c78
addq $0x10, %rcx
movq %rcx, (%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x18(%rax)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/Parser.cpp
// Function: Parser::parseFuncReturn()
ASTNode *Parser::parseFuncReturn() {
    #ifdef DEBUG
    std::cout<<curToken.second<<"\tparseFuncReturn"<<std::endl;
    #endif
    getNextToken(); // eat "return"
    ASTNode *retExpr = this->parseExpression();
    if (!retExpr) {
        retExpr = new NumberAST("0");
    }
    return new ReturnAST(retExpr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movslq 0x80(%rdi), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%rdi)
movq (%rdi), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%rdi)
addq $0x60, %rdi
callq 0x3130
movq %rbx, %rdi
callq 0x9b8a
movq %rax, %rbx
testq %rax, %rax
jne 0x9b35
movl $0x30, %edi
callq 0x31e0
movq %rax, %rbx
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x57fb(%rip), %rsi      # 0xf2de
leaq 0x57f5(%rip), %rdx      # 0xf2df
leaq -0x38(%rbp), %rdi
callq 0x47d0
movl $0x0, 0x8(%rbx)
leaq 0x9fc7(%rip), %rax      # 0x13ac8
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x10(%rbx), %rdi
movq %rbx, %rax
addq $0x20, %rax
movq %rax, 0x10(%rbx)
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
addq %rsi, %rdx
callq 0x42b0
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x9b35
callq 0x31c0
movl $0x18, %edi
callq 0x31e0
movl $0x0, 0x8(%rax)
leaq 0xa1bb(%rip), %rcx      # 0x13d08
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rbx, 0x10(%rax)
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x9b79
callq 0x31c0
jmp 0x9b79
movq %rax, %r14
movq %rbx, %rdi
callq 0x31c0
movq %r14, %rdi
callq 0x3330
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/Parser.cpp
// Function: Parser::parseParenExpr()
ASTNode *Parser::parseParenExpr() {
    #ifdef DEBUG
    std::cout<<curToken.second<<"\tparseParenExpr"<<std::endl;
    #endif
    getNextToken();  // eat '('
    ASTNode *expr = this->parseExpression();
    if (curToken.first != static_cast<Token>(')')) {
        std::cout<<"expected \')\'"<<std::endl;
    }
    getNextToken();  // eat ')'
    return expr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movslq 0x80(%rdi), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%rdi)
movq (%rdi), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%rdi)
leaq 0x60(%rdi), %r14
movq %r14, %rdi
callq 0x3130
movq %rbx, %rdi
callq 0x9b8a
movq %rax, %r15
cmpl $0x29, 0x58(%rbx)
je 0xa26e
movq 0x9d9e(%rip), %r12      # 0x13fd0
leaq 0x5098(%rip), %rsi      # 0xf2d1
movl $0xc, %edx
movq %r12, %rdi
callq 0x3230
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3150
movslq 0x80(%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%rbx)
movq (%rbx), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%rbx)
movq %r14, %rdi
callq 0x3130
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/Parser.cpp
// Function: Parser::parseIdentifier()
ASTNode *Parser::parseIdentifier() {
    #ifdef DEBUG
    std::cout<<curToken.second<<"\tparseIdentifier"<<std::endl;
    #endif
    std::string identifier = curToken.second;
    getNextToken();
    // variable name
    if (curToken.first != static_cast<Token>('(')) {
        return new VariableAST(identifier);
    }
    // function call
    getNextToken(); // eat '('
    std::vector<ASTNode*> args;
    while (true) {
        ASTNode *arg = parseExpression();
        if (arg) {
            args.push_back(arg);
        }
        if (curToken.first == static_cast<Token>(')')) {
            getNextToken(); // eat ')'
            break;
        }
    }
    return new CallFuncAST(identifier, args);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
leaq 0x60(%rdi), %rbx
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0x60(%rdi), %rsi
movq 0x68(%rdi), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x42b0
movslq 0x80(%r14), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%r14)
movq (%r14), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%r14)
movq %rbx, %rdi
callq 0x3130
cmpl $0x28, 0x58(%r14)
jne 0xa3e2
movslq 0x80(%r14), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%r14)
movq (%r14), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%r14)
movq %rbx, %rdi
callq 0x3130
xorps %xmm0, %xmm0
leaq -0x40(%rbp), %r15
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
leaq -0x48(%rbp), %r12
movq %r14, %rdi
callq 0x9b8a
movq %rax, -0x48(%rbp)
testq %rax, %rax
je 0xa382
movq -0x38(%rbp), %rsi
cmpq -0x30(%rbp), %rsi
je 0xa377
movq %rax, (%rsi)
addq $0x8, -0x38(%rbp)
jmp 0xa382
movq %r15, %rdi
movq %r12, %rdx
callq 0xb030
cmpl $0x29, 0x58(%r14)
jne 0xa352
movslq 0x80(%r14), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%r14)
movq (%r14), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%r14)
movq %rbx, %rdi
callq 0x3130
movl $0x48, %edi
callq 0x31e0
movq %rax, %rbx
leaq -0x68(%rbp), %rsi
leaq -0x40(%rbp), %rdx
movq %rax, %rdi
callq 0xacec
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0xa423
callq 0x31c0
jmp 0xa423
movl $0x30, %edi
callq 0x31e0
movq %rax, %rbx
movl $0x0, 0x8(%rax)
leaq 0x9713(%rip), %rax      # 0x13b10
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x10(%rbx), %rdi
movq %rbx, %rax
addq $0x20, %rax
movq %rax, 0x10(%rbx)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
callq 0x42b0
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0xa431
callq 0x31c0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x31c0
jmp 0xa464
jmp 0xa461
jmp 0xa461
movq %rax, %r14
movq %rbx, %rdi
jmp 0xa46d
movq %rax, %r14
jmp 0xa472
movq %rax, %r14
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0xa472
callq 0x31c0
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0xa480
callq 0x31c0
movq %r14, %rdi
callq 0x3330
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/Parser.cpp
// Function: Parser::parseBlock()
ASTNode *Parser::parseBlock() {
    #ifdef DEBUG
    std::cout<<curToken.second<<"\tparseBlock"<<std::endl;
    #endif
    getNextToken(); // eat '{'
    std::vector<ASTNode*> stats;
    while (curToken.first != static_cast<Token>('}')) {
        ASTNode *newStat = this->parseStatement();
        if (newStat) {
            stats.push_back(newStat);
        }
    }
    ASTNode *block = new BlockAST(stats);
    getNextToken(); // eat '}'
    return block;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movslq 0x80(%rdi), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%rdi)
movq (%rdi), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%rdi)
leaq 0x60(%rdi), %r14
movq %r14, %rdi
callq 0x3130
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
cmpl $0x7d, 0x58(%rbx)
je 0xa51b
leaq -0x40(%rbp), %r15
leaq -0x48(%rbp), %r12
movq %rbx, %rdi
callq 0x98b0
movq %rax, -0x48(%rbp)
testq %rax, %rax
je 0xa515
movq -0x38(%rbp), %rsi
cmpq -0x30(%rbp), %rsi
je 0xa50a
movq %rax, (%rsi)
addq $0x8, -0x38(%rbp)
jmp 0xa515
movq %r15, %rdi
movq %r12, %rdx
callq 0xb030
cmpl $0x7d, 0x58(%rbx)
jne 0xa4e5
movl $0x28, %edi
callq 0x31e0
movq %rax, %r15
movl $0x0, 0x8(%rax)
leaq 0x96b2(%rip), %rax      # 0x13be8
addq $0x10, %rax
movq %rax, (%r15)
movq %r15, %rdi
addq $0x10, %rdi
leaq -0x40(%rbp), %rsi
callq 0xadee
movslq 0x80(%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%rbx)
movq (%rbx), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%rbx)
movq %r14, %rdi
callq 0x3130
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0xa585
callq 0x31c0
movq %r15, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r15, %rdi
callq 0x31c0
jmp 0xa5a7
jmp 0xa5a4
movq %rax, %rbx
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0xa5b5
callq 0x31c0
movq %rbx, %rdi
callq 0x3330
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/Assembler.cpp
// Function: Assembler::assemble()
bool Assembler::assemble() {
    this->init();
    this->redirect();
    this->interpret();
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xb954
movq %rbx, %rdi
callq 0xbf56
movq %rbx, %rdi
callq 0xc206
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/Assembler.cpp
// Function: Assembler::interpret()
bool Assembler::interpret() {
    std::ostringstream oss;
    for (auto it = this->instructions.begin(); it != this->instructions.end(); ++it) {
        oss<<static_cast<int>(it->op)<<" ";
        for (int i = 0; i != it->args.size(); ++i) {
            oss<<it->args[i]<<" ";
        }
    }
    this->binCode = oss.str();
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rdi, %rbx
leaq -0x1c8(%rbp), %rdi
callq 0x3280
movq 0x70(%rbx), %r12
movq %rbx, -0x30(%rbp)
cmpq 0x78(%rbx), %r12
je 0xc2c6
leaq -0x1c8(%rbp), %r14
leaq 0x3012(%rip), %r15      # 0xf25b
movl 0x20(%r12), %esi
movq %r14, %rdi
callq 0x3320
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3230
movq 0x28(%r12), %rax
cmpq %rax, 0x30(%r12)
je 0xc2b8
movl $0x8, %r13d
xorl %ebx, %ebx
movq -0x8(%rax,%r13), %rsi
movq (%rax,%r13), %rdx
movq %r14, %rdi
callq 0x3230
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3230
incq %rbx
movq 0x28(%r12), %rax
movq 0x30(%r12), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r13
cmpq %rcx, %rbx
jne 0xc27a
addq $0x40, %r12
movq -0x30(%rbp), %rax
cmpq 0x78(%rax), %r12
jne 0xc249
leaq -0x1c0(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x32d0
movq -0x30(%rbp), %rdi
addq $0x20, %rdi
leaq -0x50(%rbp), %r14
movq %r14, %rsi
callq 0x3250
movq (%r14), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xc2fb
callq 0x31c0
movq 0x7cc6(%rip), %rsi      # 0x13fc8
leaq -0x1c8(%rbp), %rdi
callq 0x3120
leaq -0x158(%rbp), %rdi
callq 0x30c0
movb $0x1, %al
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc332
jmp 0xc332
movq %rax, %rbx
movq 0x7c8c(%rip), %rsi      # 0x13fc8
leaq -0x1c8(%rbp), %rdi
callq 0x3120
leaq -0x158(%rbp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x3330
// File: /workspace/github_cpp_makefile_star2_O3/KJTang[P]SimpleCompiler/VirtualMachine.cpp
// Function: VirtualMachine::printStack()
void VirtualMachine::printStack() {
    if (!this->stack.empty()) {
        std::cout<<"stack top: "<<this->stack.top()<<std::endl;
    } else {
        std::cout<<"stack top: none"<<std::endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x48(%rdi), %rax
cmpq 0x28(%rdi), %rax
je 0xd27e
movq %rdi, %rbx
movq 0x6d8e(%rip), %rdi      # 0x13fd0
leaq 0x21db(%rip), %rsi      # 0xf424
movl $0xb, %edx
callq 0x3230
movq 0x48(%rbx), %rax
cmpq 0x50(%rbx), %rax
jne 0xd26a
movq 0x60(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movl -0x4(%rax), %esi
movq 0x6d5c(%rip), %rdi      # 0x13fd0
callq 0x3320
movq %rax, %rbx
jmp 0xd299
movq 0x6d4b(%rip), %rbx      # 0x13fd0
leaq 0x21a4(%rip), %rsi      # 0xf430
movl $0xf, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3150