// File: /workspace/github_cpp_makefile_star2_O3/s0sasaki[P]ExecutableBlockchain/compiler.cpp
// Function: Compiler::compile(int*, char const*, unsigned int)
void Compiler::compile(int32_t *bin_data, const char *src_data, uint32_t bc_length) {
    std::vector<std::string> strtable;
    int32_t rsp = 0;
    int32_t rspbuf[256];
    int32_t i    = 0;
    int32_t midx = 2; 
    bool capture = false;
    std::string recur = "";
    read(strtable, src_data);
    while(i < strtable.size()) {
        std::string wordstr = strtable[i++];

        if(var_dict.count(wordstr)>0){
            bin_data[midx++] = VM::OP_PUSH;
            bin_data[midx++] = var_dict[wordstr];
            continue;
        }
        
        if(wordstr == "VARIABLE"){
            var_dict[strtable[i]] = (int32_t) stoi(strtable[i+1]);
            i+=2;
            continue;
        }

        if(capture) {
            func_dict[wordstr] = std::make_pair(midx, bc_length);
            capture = false;
            recur = wordstr;
            continue;
        }

        if(wordstr == ":")    {
            capture = true;
            continue;
        }

        if(wordstr == ";")    {
            bin_data[midx++] = VM::OP_RET;
            recur       = "";
            continue;
        }

        if(func_dict.count(wordstr) > 0){
            if(recur == wordstr && strtable[i] == "THEN" && strtable[i+1] == ";") {
                bin_data[midx++] = VM::OP_JMP;
                bin_data[midx++] = func_dict[wordstr].first;
                continue;
            }
            bin_data[midx++] = VM::OP_CALL;
            bin_data[midx++] = func_dict[wordstr].second;
            bin_data[midx++] = func_dict[wordstr].first;
            continue;
        }

        if(isNum(wordstr.c_str())) {
            bin_data[midx++] = VM::OP_PUSH;
            int32_t val = stoi(wordstr);
            bin_data[midx++] = val;
            continue;
        }

        if(wordstr == "IF") {
            bin_data[midx++] = VM::OP_JZ;
            rspbuf[++rsp] = midx++;
            continue;
        }

        if(wordstr == "ELSE") {
            int32_t rsptemp = rspbuf[rsp--];
            bin_data[midx++] = VM::OP_JMP;
            rspbuf[++rsp] = midx++;
            bin_data[rsptemp] = midx;
            continue;
        }

        if(wordstr == "THEN") {
            int32_t rsptemp = rspbuf[rsp--];
            bin_data[rsptemp] = midx;
            continue;
        }

        if(wordstr == "+")    { bin_data[midx++] = VM::OP_ADD;   continue; }
        if(wordstr == "-")    { bin_data[midx++] = VM::OP_SUB;   continue; }
        if(wordstr == "*")    { bin_data[midx++] = VM::OP_MUL;   continue; }
        if(wordstr == "/")    { bin_data[midx++] = VM::OP_DIV;   continue; }
        if(wordstr == ".")    { bin_data[midx++] = VM::OP_DOT;   continue; }
        if(wordstr == "<=")   { bin_data[midx++] = VM::OP_GE;    continue; }
        if(wordstr == ">=")   { bin_data[midx++] = VM::OP_LE;    continue; }
        if(wordstr == "<")    { bin_data[midx++] = VM::OP_GNE;   continue; }
        if(wordstr == ">")    { bin_data[midx++] = VM::OP_LNE;   continue; }
        if(wordstr == "HALT") { bin_data[midx++] = VM::OP_HALT;  continue; }
        if(wordstr == "POP")  { bin_data[midx++] = VM::OP_POP;   continue; }
        if(wordstr == "DROP") { bin_data[midx++] = VM::OP_DROP;  continue; }
        if(wordstr == "DUP")  { bin_data[midx++] = VM::OP_DUP;   continue; }
        if(wordstr == "OVER") { bin_data[midx++] = VM::OP_OVER;  continue; }
        if(wordstr == "SWAP") { bin_data[midx++] = VM::OP_SWAP;  continue; }
        if(wordstr == "@")    { bin_data[midx++] = VM::OP_LOAD;  continue; }
        if(wordstr == "!")    { bin_data[midx++] = VM::OP_STORE; continue; }

        std::cout << "ERROR UNKNOWN WORD: " << wordstr << std::endl;
        for(int32_t i = 0; i < Block::DATA_SIZE; i++) {
            bin_data[i] = VM::OP_HALT;
        }
        return;
    }
    if (func_dict.count("MAIN") > 0 && func_dict["MAIN"].second == bc_length ){
        bin_data[0]  = VM::OP_JMP;
        bin_data[1]  = func_dict["MAIN"].first;
    } else {
        bin_data[0]  = VM::OP_HALT;
        bin_data[1]  = VM::OP_HALT;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4c8, %rsp            # imm = 0x4C8
movl %ecx, -0x7c(%rbp)
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, -0x88(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0xa0(%rbp)
movq $0x0, -0x90(%rbp)
leaq -0xb8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x45f1(%rip), %rdx      # 0x733a
leaq -0xc8(%rbp), %rdi
movq %rdx, %rsi
callq 0x3cd4
leaq -0xa0(%rbp), %rsi
movq %r14, %rdx
callq 0x2be4
leaq -0x60(%rbp), %r15
movq -0x88(%rbp), %rcx
leaq 0x8(%rcx), %rax
movq %rax, -0xf0(%rbp)
leaq 0x30(%rcx), %rax
movq %rax, -0x50(%rbp)
leaq 0x38(%rcx), %rax
movq %rax, -0xa8(%rbp)
movq $0x0, -0x40(%rbp)
movl $0x2, %eax
movq %rax, -0x38(%rbp)
leaq -0x70(%rbp), %rbx
xorl %r12d, %r12d
movl $0x0, -0x44(%rbp)
movq %r13, -0x78(%rbp)
movslq %r12d, %r14
movq -0xa0(%rbp), %rax
movq -0x98(%rbp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %r14, %rcx
jbe 0x360e
shlq $0x5, %r14
movq %r15, -0x70(%rbp)
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x39cc
movq -0x88(%rbp), %rdi
movq %rbx, %rsi
callq 0x3d72
leal 0x1(%r12), %ecx
movl %ecx, -0x2c(%rbp)
cmpq -0xf0(%rbp), %rax
je 0x2e42
movslq -0x38(%rbp), %rbx
movl $0x9, (%r13,%rbx,4)
movq -0x88(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x37f4
movl (%rax), %eax
leal 0x2(%rbx), %ecx
movq %rcx, -0x38(%rbp)
movl %eax, 0x4(%r13,%rbx,4)
movb $0x1, %bl
jmp 0x3077
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
leaq 0x42de(%rip), %rsi      # 0x712e
callq 0x2090
testl %eax, %eax
je 0x2e99
testb $0x1, -0x40(%rbp)
je 0x2f37
movq -0x50(%rbp), %rdi
movq %rbx, %rsi
callq 0x3874
movq -0x38(%rbp), %rcx
movl %ecx, (%rax)
movl -0x7c(%rbp), %ecx
movl %ecx, 0x4(%rax)
leaq -0xc8(%rbp), %rdi
movq %rbx, %rsi
callq 0x2100
movb $0x1, %bl
movq $0x0, -0x40(%rbp)
jmp 0x3077
movq -0xa0(%rbp), %rax
movq 0x40(%rax,%r14), %rbx
callq 0x2050
movq %rax, %r15
movl (%rax), %r13d
movl $0x0, (%rax)
movq %rbx, %rdi
leaq -0xe8(%rbp), %rsi
movl $0xa, %edx
callq 0x2260
cmpq %rbx, -0xe8(%rbp)
je 0x372c
movq %rax, %r14
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x3738
movl (%r15), %eax
cmpl $0x22, %eax
je 0x3738
testl %eax, %eax
jne 0x2f06
movl %r13d, (%r15)
movslq -0x2c(%rbp), %rsi
shlq $0x5, %rsi
addq -0xa0(%rbp), %rsi
movq -0x88(%rbp), %rdi
leaq -0x60(%rbp), %r15
callq 0x37f4
movq -0x78(%rbp), %r13
movl %r14d, (%rax)
addl $0x3, %r12d
movb $0x1, %bl
jmp 0x307d
movq %rbx, %rdi
leaq 0x41f6(%rip), %rsi      # 0x7137
callq 0x2090
movq %rbx, %r12
movb $0x1, %bl
testl %eax, %eax
je 0x3031
movq %r12, %rdi
leaq 0x41dc(%rip), %rsi      # 0x7139
callq 0x2090
testl %eax, %eax
je 0x3039
movq -0x50(%rbp), %rdi
movq %r12, %rsi
callq 0x4556
cmpq -0xa8(%rbp), %rax
je 0x309c
movq -0xc0(%rbp), %rdx
cmpq -0x68(%rbp), %rdx
jne 0x2feb
testq %rdx, %rdx
je 0x2fa9
movq -0x70(%rbp), %rsi
movq -0xc8(%rbp), %rdi
callq 0x2210
testl %eax, %eax
jne 0x2feb
movslq -0x2c(%rbp), %rdi
shlq $0x5, %rdi
addq -0xa0(%rbp), %rdi
leaq 0x417c(%rip), %rsi      # 0x713b
callq 0x2090
testl %eax, %eax
jne 0x2feb
movq -0xa0(%rbp), %rax
leaq (%rax,%r14), %rdi
addq $0x40, %rdi
leaq 0x415b(%rip), %rsi      # 0x7139
callq 0x2090
testl %eax, %eax
je 0x3406
movslq -0x38(%rbp), %r14
movl $0x1, (%r13,%r14,4)
movq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x3874
movl 0x4(%rax), %eax
movl %eax, 0x4(%r13,%r14,4)
movq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x3874
movl (%rax), %eax
movq -0x38(%rbp), %rcx
addl $0x3, %ecx
movq %rcx, -0x38(%rbp)
movl %eax, 0x8(%r13,%r14,4)
jmp 0x2e8c
movb $0x1, %al
movq %rax, -0x40(%rbp)
jmp 0x3077
movslq -0x38(%rbp), %rax
movl $0x0, (%r13,%rax,4)
movq $0x0, -0x40(%rbp)
movq -0xc0(%rbp), %rdx
leaq -0xc8(%rbp), %rdi
xorl %esi, %esi
leaq 0x42d5(%rip), %rcx      # 0x733a
xorl %r8d, %r8d
callq 0x22a0
movq -0x38(%rbp), %rax
incl %eax
movq %rax, -0x38(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, %r12d
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x308b
callq 0x21d0
testb %bl, %bl
leaq -0x70(%rbp), %rbx
jne 0x2db3
jmp 0x36f6
movq -0x70(%rbp), %r14
movq %r14, %rax
movsbl (%rax), %ecx
incq %rax
leal -0x3a(%rcx), %edx
cmpl $-0xb, %edx
ja 0x30a3
testb %cl, %cl
je 0x32e1
leaq -0x70(%rbp), %r14
movq %r14, %rdi
leaq 0x4079(%rip), %rsi      # 0x7140
callq 0x2090
testl %eax, %eax
je 0x337d
movq %r14, %rdi
leaq 0x4065(%rip), %rsi      # 0x7143
callq 0x2090
testl %eax, %eax
je 0x33ae
movq %r14, %rdi
leaq 0x4046(%rip), %rsi      # 0x713b
callq 0x2090
testl %eax, %eax
je 0x33e5
movq %r14, %rdi
leaq 0x403c(%rip), %rsi      # 0x7148
callq 0x2090
testl %eax, %eax
je 0x3437
movq %r14, %rdi
leaq 0x4027(%rip), %rsi      # 0x714a
callq 0x2090
testl %eax, %eax
je 0x3452
movq %r14, %rdi
leaq 0x4012(%rip), %rsi      # 0x714c
callq 0x2090
testl %eax, %eax
je 0x346d
movq %r14, %rdi
leaq 0x3ffd(%rip), %rsi      # 0x714e
callq 0x2090
testl %eax, %eax
je 0x3488
movq %r14, %rdi
leaq 0x3fe8(%rip), %rsi      # 0x7150
callq 0x2090
testl %eax, %eax
je 0x34a3
movq %r14, %rdi
leaq 0x3fd3(%rip), %rsi      # 0x7152
callq 0x2090
testl %eax, %eax
je 0x34be
movq %r14, %rdi
leaq 0x3fbf(%rip), %rsi      # 0x7155
callq 0x2090
testl %eax, %eax
je 0x34d9
movq %r14, %rdi
leaq 0x3fab(%rip), %rsi      # 0x7158
callq 0x2090
testl %eax, %eax
je 0x34f4
movq %r14, %rdi
leaq 0x3f96(%rip), %rsi      # 0x715a
callq 0x2090
testl %eax, %eax
je 0x350f
movq %r14, %rdi
leaq 0x3f81(%rip), %rsi      # 0x715c
callq 0x2090
testl %eax, %eax
je 0x352a
movq %r14, %rdi
leaq 0x3f6f(%rip), %rsi      # 0x7161
callq 0x2090
testl %eax, %eax
je 0x3545
movq %r14, %rdi
leaq 0x3f5c(%rip), %rsi      # 0x7165
callq 0x2090
testl %eax, %eax
je 0x3560
movq %r14, %rdi
leaq 0x3f4a(%rip), %rsi      # 0x716a
callq 0x2090
testl %eax, %eax
je 0x357b
movq %r14, %rdi
leaq 0x3f37(%rip), %rsi      # 0x716e
callq 0x2090
testl %eax, %eax
je 0x3596
leaq -0x70(%rbp), %rdi
leaq 0x3f24(%rip), %rsi      # 0x7173
callq 0x2090
testl %eax, %eax
je 0x35b1
leaq -0x70(%rbp), %rdi
leaq 0x3f11(%rip), %rsi      # 0x7178
callq 0x2090
testl %eax, %eax
je 0x35d0
leaq -0x70(%rbp), %rdi
leaq 0x3efb(%rip), %rsi      # 0x717a
callq 0x2090
testl %eax, %eax
je 0x35ef
movl $0x14, %edx
movq 0x6d40(%rip), %rdi      # 0x9fd8
leaq 0x3edd(%rip), %rsi      # 0x717c
callq 0x2240
movq -0x78(%rbp), %r13
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq 0x6d21(%rip), %rdi      # 0x9fd8
callq 0x2240
movq %rax, %rdi
callq 0x20e0
xorl %eax, %eax
movl $0x14, (%r13,%rax,4)
incq %rax
xorl %ebx, %ebx
cmpq $0x400, %rax            # imm = 0x400
jne 0x32c6
jmp 0x3366
movq %r13, %rax
movslq -0x38(%rbp), %r13
movl $0x9, (%rax,%r13,4)
callq 0x2050
movq %rax, %r15
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r14, %rdi
leaq -0xe8(%rbp), %rsi
movl $0xa, %edx
callq 0x2260
cmpq %r14, -0xe8(%rbp)
je 0x3750
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x3744
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x3744
testl %ecx, %ecx
jne 0x334f
movl %r12d, (%r15)
movq -0x38(%rbp), %rcx
addl $0x2, %ecx
movq %rcx, -0x38(%rbp)
movq -0x78(%rbp), %rcx
movl %eax, 0x4(%rcx,%r13,4)
movq %rcx, %r13
movq $0x0, -0x40(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, %r12d
leaq -0x60(%rbp), %r15
jmp 0x307d
movq -0x38(%rbp), %rdx
leal 0x1(%rdx), %eax
movslq %edx, %rcx
movl $0x3, (%r13,%rcx,4)
addl $0x2, %edx
movq %rdx, -0x38(%rbp)
movl -0x44(%rbp), %edx
movslq %edx, %rcx
incl %edx
movl %edx, -0x44(%rbp)
movl %eax, -0x4ec(%rbp,%rcx,4)
jmp 0x2e8c
movslq -0x44(%rbp), %rax
movslq -0x4f0(%rbp,%rax,4), %rcx
movq -0x38(%rbp), %rdi
leal 0x1(%rdi), %edx
movslq %edi, %rsi
movl $0x2, (%r13,%rsi,4)
addl $0x2, %edi
movl %edx, -0x4f0(%rbp,%rax,4)
movq %rdi, -0x38(%rbp)
movl %edi, (%r13,%rcx,4)
jmp 0x2e8c
movl -0x44(%rbp), %ecx
movslq %ecx, %rax
decl %ecx
movl %ecx, -0x44(%rbp)
movslq -0x4f0(%rbp,%rax,4), %rax
movq -0x38(%rbp), %rcx
movl %ecx, (%r13,%rax,4)
jmp 0x2e8c
movslq -0x38(%rbp), %r14
movl $0x2, (%r13,%r14,4)
movq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x3874
movl (%rax), %eax
movq -0x38(%rbp), %rcx
addl $0x2, %ecx
movq %rcx, -0x38(%rbp)
movl %eax, 0x4(%r13,%r14,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0xf, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0x10, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0x11, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0x12, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0x13, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0x5, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0x6, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0x7, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0x8, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0x14, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0xa, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0xe, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0xb, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movl $0xc, (%r13,%rax,4)
jmp 0x2e8c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x78(%rbp), %r13
movl $0xd, (%r13,%rax,4)
jmp 0x3366
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x78(%rbp), %r13
movl $0x16, (%r13,%rax,4)
jmp 0x3366
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x78(%rbp), %r13
movl $0x17, (%r13,%rax,4)
jmp 0x3366
leaq -0x70(%rbp), %rdi
movq %r15, (%rdi)
leaq 0x3b75(%rip), %rsi      # 0x7191
leaq 0x3b72(%rip), %rdx      # 0x7195
callq 0x3cd4
leaq -0x70(%rbp), %rsi
movq -0x50(%rbp), %rdi
callq 0x4556
cmpq -0xa8(%rbp), %rax
je 0x368f
leaq -0xd8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3b41(%rip), %rsi      # 0x7191
leaq 0x3b3e(%rip), %rdx      # 0x7195
leaq -0xe8(%rbp), %rdi
callq 0x3cd4
leaq -0xe8(%rbp), %rsi
movq -0x50(%rbp), %rdi
callq 0x38f4
movl -0x7c(%rbp), %ecx
cmpl %ecx, 0x4(%rax)
sete %bl
movq -0xe8(%rbp), %rdi
cmpq %r14, %rdi
je 0x3691
callq 0x21d0
jmp 0x3691
xorl %ebx, %ebx
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x369f
callq 0x21d0
testb %bl, %bl
je 0x36e8
movl $0x2, (%r13)
leaq -0x70(%rbp), %rdi
movq %r15, (%rdi)
leaq 0x3ad8(%rip), %rsi      # 0x7191
leaq 0x3ad5(%rip), %rdx      # 0x7195
callq 0x3cd4
leaq -0x70(%rbp), %rsi
movq -0x50(%rbp), %rdi
callq 0x38f4
movl (%rax), %eax
movl %eax, 0x4(%r13)
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x36f6
callq 0x21d0
jmp 0x36f6
movabsq $0x1400000014, %rax     # imm = 0x1400000014
movq %rax, (%r13)
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x370e
callq 0x21d0
leaq -0xa0(%rbp), %rdi
callq 0x3974
addq $0x4c8, %rsp            # imm = 0x4C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3a63(%rip), %rdi      # 0x7196
callq 0x2120
leaq 0x3a57(%rip), %rdi      # 0x7196
callq 0x2270
leaq 0x3a4b(%rip), %rdi      # 0x7196
callq 0x2270
leaq 0x3a3f(%rip), %rdi      # 0x7196
callq 0x2120
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x37b5
movl %r12d, (%r15)
jmp 0x37b5
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
jne 0x37c2
jmp 0x37c7
jmp 0x37ad
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
cmpq %r14, %rdi
je 0x37b5
callq 0x21d0
jmp 0x37b5
jmp 0x37b2
jmp 0x37b2
jmp 0x37ad
jmp 0x37ad
movq %rax, %rbx
jmp 0x37df
jmp 0x37b2
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x37b5
movl %r13d, (%r15)
jmp 0x37b5
movq %rax, %rbx
jmp 0x37c7
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x37c7
callq 0x21d0
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x37df
callq 0x21d0
leaq -0xa0(%rbp), %rdi
callq 0x3974
movq %rbx, %rdi
callq 0x22e0
nop