// File: /workspace/github_cpp_makefile_star2_O1/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 $0x4d8, %rsp            # imm = 0x4D8
movl %ecx, -0x7c(%rbp)
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, -0xb0(%rbp)
movq $0x0, -0xa0(%rbp)
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x45dd(%rip), %rdx      # 0x733a
leaq -0xd0(%rbp), %rdi
movq %rdx, %rsi
callq 0x3d02
movq %rbx, -0x40(%rbp)
leaq -0xb0(%rbp), %rsi
movq %r14, %rdx
callq 0x2bf0
leaq -0x60(%rbp), %r13
leaq 0x8(%r15), %rax
movq %rax, -0xf8(%rbp)
leaq 0x30(%r15), %rax
movq %rax, -0x50(%rbp)
leaq 0x38(%r15), %rax
movq %rax, -0x88(%rbp)
movq $0x0, -0x90(%rbp)
movl $0x2, %eax
movq %rax, -0x38(%rbp)
leaq -0x70(%rbp), %r14
xorl %r12d, %r12d
movl $0x0, -0x44(%rbp)
movq %r15, -0x78(%rbp)
movslq %r12d, %rbx
movq -0xb0(%rbp), %rax
movq -0xa8(%rbp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %rbx, %rcx
jbe 0x3633
shlq $0x5, %rbx
movq %r13, -0x70(%rbp)
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x39fe
movq %r15, %rdi
movq %r14, %rsi
callq 0x3d9c
leal 0x1(%r12), %ecx
movl %ecx, -0x2c(%rbp)
cmpq -0xf8(%rbp), %rax
je 0x2e73
movslq -0x38(%rbp), %rbx
movq -0x40(%rbp), %rax
movl $0x9, (%rax,%rbx,4)
movq %r15, %rdi
leaq -0x70(%rbp), %rsi
callq 0x3830
movl (%rax), %eax
leal 0x2(%rbx), %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl %eax, 0x4(%rcx,%rbx,4)
movb $0x1, %bl
movl -0x2c(%rbp), %eax
movl %eax, %r12d
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x2e62
callq 0x21d0
testb %bl, %bl
leaq -0x70(%rbp), %r14
jne 0x2dc7
jmp 0x3733
leaq -0x70(%rbp), %r14
movq %r14, %rdi
leaq 0x42ad(%rip), %rsi      # 0x712e
callq 0x2090
testl %eax, %eax
je 0x2ecd
testb $0x1, -0x90(%rbp)
je 0x2f67
movq -0x50(%rbp), %rdi
movq %r14, %rsi
callq 0x38b0
movq -0x38(%rbp), %rcx
movl %ecx, (%rax)
movl -0x7c(%rbp), %ecx
movl %ecx, 0x4(%rax)
leaq -0xd0(%rbp), %rdi
movq %r14, %rsi
callq 0x2100
movb $0x1, %bl
movq $0x0, -0x90(%rbp)
jmp 0x2e4e
movq -0xb0(%rbp), %rax
movq 0x40(%rax,%rbx), %rbx
callq 0x2050
movq %rax, %r15
movl (%rax), %r13d
movl $0x0, (%rax)
movq %rbx, %rdi
leaq -0xf0(%rbp), %rsi
movl $0xa, %edx
callq 0x2260
cmpq %rbx, -0xf0(%rbp)
je 0x3769
movq %rax, %r14
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x3775
movl (%r15), %eax
cmpl $0x22, %eax
je 0x3775
testl %eax, %eax
jne 0x2f3a
movl %r13d, (%r15)
movslq -0x2c(%rbp), %rsi
shlq $0x5, %rsi
addq -0xb0(%rbp), %rsi
movq -0x78(%rbp), %r15
movq %r15, %rdi
leaq -0x60(%rbp), %r13
callq 0x3830
movl %r14d, (%rax)
addl $0x3, %r12d
movb $0x1, %bl
jmp 0x2e54
movq %r14, %rdi
leaq 0x41c6(%rip), %rsi      # 0x7137
callq 0x2090
testl %eax, %eax
je 0x3064
movq %r14, %rdi
leaq 0x41b1(%rip), %rsi      # 0x7139
callq 0x2090
testl %eax, %eax
je 0x3074
movq -0x50(%rbp), %rdi
movq %r14, %rsi
callq 0x4594
cmpq -0x88(%rbp), %rax
je 0x30b1
movq -0xc8(%rbp), %rdx
cmpq -0x68(%rbp), %rdx
jne 0x3016
testq %rdx, %rdx
je 0x2fd4
movq -0x70(%rbp), %rsi
movq -0xd0(%rbp), %rdi
callq 0x2210
testl %eax, %eax
jne 0x3016
movslq -0x2c(%rbp), %rdi
shlq $0x5, %rdi
addq -0xb0(%rbp), %rdi
leaq 0x4151(%rip), %rsi      # 0x713b
callq 0x2090
testl %eax, %eax
jne 0x3016
movq -0xb0(%rbp), %rax
leaq (%rax,%rbx), %rdi
addq $0x40, %rdi
leaq 0x4130(%rip), %rsi      # 0x7139
callq 0x2090
testl %eax, %eax
je 0x3416
movslq -0x38(%rbp), %rbx
movq -0x40(%rbp), %rax
movl $0x1, (%rax,%rbx,4)
movq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x38b0
movl 0x4(%rax), %eax
movq -0x40(%rbp), %rcx
movl %eax, 0x4(%rcx,%rbx,4)
movq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x38b0
movl (%rax), %eax
movq -0x38(%rbp), %rcx
addl $0x3, %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl %eax, 0x8(%rcx,%rbx,4)
jmp 0x2e4c
movb $0x1, %bl
movb $0x1, %al
movq %rax, -0x90(%rbp)
jmp 0x2e4e
movslq -0x38(%rbp), %rax
movq -0x40(%rbp), %rcx
movl $0x0, (%rcx,%rax,4)
movq -0xc8(%rbp), %rdx
leaq -0xd0(%rbp), %rdi
xorl %esi, %esi
leaq 0x42a0(%rip), %rcx      # 0x733a
xorl %r8d, %r8d
callq 0x22a0
movq -0x38(%rbp), %rax
incl %eax
movq %rax, -0x38(%rbp)
jmp 0x2e4c
movq -0x70(%rbp), %r14
movq %r14, %rax
movsbl (%rax), %ecx
incq %rax
leal -0x3a(%rcx), %edx
cmpl $-0xb, %edx
ja 0x30b8
testb %cl, %cl
je 0x32f4
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
leaq 0x4064(%rip), %rsi      # 0x7140
callq 0x2090
testl %eax, %eax
je 0x3386
movq %rbx, %rdi
leaq 0x4050(%rip), %rsi      # 0x7143
callq 0x2090
testl %eax, %eax
je 0x33b9
movq %rbx, %rdi
leaq 0x4031(%rip), %rsi      # 0x713b
callq 0x2090
testl %eax, %eax
je 0x33f3
movq %rbx, %rdi
leaq 0x4027(%rip), %rsi      # 0x7148
callq 0x2090
testl %eax, %eax
je 0x3440
movq %rbx, %rdi
leaq 0x4012(%rip), %rsi      # 0x714a
callq 0x2090
testl %eax, %eax
je 0x345d
movq %rbx, %rdi
leaq 0x3ffd(%rip), %rsi      # 0x714c
callq 0x2090
testl %eax, %eax
je 0x347a
movq %rbx, %rdi
leaq 0x3fe8(%rip), %rsi      # 0x714e
callq 0x2090
testl %eax, %eax
je 0x3497
movq %rbx, %rdi
leaq 0x3fd3(%rip), %rsi      # 0x7150
callq 0x2090
testl %eax, %eax
je 0x34b4
movq %rbx, %rdi
leaq 0x3fbe(%rip), %rsi      # 0x7152
callq 0x2090
testl %eax, %eax
je 0x34d1
movq %rbx, %rdi
leaq 0x3faa(%rip), %rsi      # 0x7155
callq 0x2090
testl %eax, %eax
je 0x34ee
movq %rbx, %rdi
leaq 0x3f96(%rip), %rsi      # 0x7158
callq 0x2090
testl %eax, %eax
je 0x350b
movq %rbx, %rdi
leaq 0x3f81(%rip), %rsi      # 0x715a
callq 0x2090
testl %eax, %eax
je 0x3528
movq %rbx, %rdi
leaq 0x3f6c(%rip), %rsi      # 0x715c
callq 0x2090
testl %eax, %eax
je 0x3545
movq %rbx, %rdi
leaq 0x3f5a(%rip), %rsi      # 0x7161
callq 0x2090
testl %eax, %eax
je 0x3562
movq %rbx, %rdi
leaq 0x3f47(%rip), %rsi      # 0x7165
callq 0x2090
testl %eax, %eax
je 0x357f
movq %rbx, %rdi
leaq 0x3f35(%rip), %rsi      # 0x716a
callq 0x2090
testl %eax, %eax
je 0x359c
movq %rbx, %rdi
leaq 0x3f22(%rip), %rsi      # 0x716e
callq 0x2090
testl %eax, %eax
je 0x35b9
leaq -0x70(%rbp), %rdi
leaq 0x3f0f(%rip), %rsi      # 0x7173
callq 0x2090
testl %eax, %eax
je 0x35d6
leaq -0x70(%rbp), %rdi
leaq 0x3efc(%rip), %rsi      # 0x7178
callq 0x2090
testl %eax, %eax
je 0x35f0
leaq -0x70(%rbp), %rdi
leaq 0x3ee6(%rip), %rsi      # 0x717a
callq 0x2090
testl %eax, %eax
je 0x360a
movl $0x14, %edx
movq 0x6d2b(%rip), %rdi      # 0x9fd8
leaq 0x3ec8(%rip), %rsi      # 0x717c
callq 0x2240
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq 0x6d10(%rip), %rdi      # 0x9fd8
callq 0x2240
movq %rax, %rdi
callq 0x20e0
xorl %eax, %eax
movq -0x40(%rbp), %rcx
movl $0x14, (%rcx,%rax,4)
incq %rax
xorl %ebx, %ebx
cmpq $0x400, %rax            # imm = 0x400
jne 0x32db
jmp 0x3624
movslq -0x38(%rbp), %rbx
movq -0x40(%rbp), %rax
movl $0x9, (%rax,%rbx,4)
callq 0x2050
movq %rax, %r15
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r14, %rdi
leaq -0xf0(%rbp), %rsi
movl $0xa, %edx
callq 0x2260
cmpq %r14, -0xf0(%rbp)
je 0x378d
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x3781
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x3781
testl %ecx, %ecx
jne 0x3362
movl %r12d, (%r15)
movq -0x38(%rbp), %rcx
addl $0x2, %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl %eax, 0x4(%rcx,%rbx,4)
movb $0x1, %bl
movl -0x2c(%rbp), %eax
movl %eax, %r12d
movq -0x78(%rbp), %r15
jmp 0x2e54
movq -0x38(%rbp), %rsi
leal 0x1(%rsi), %eax
movslq %esi, %rcx
movq -0x40(%rbp), %rdx
movl $0x3, (%rdx,%rcx,4)
addl $0x2, %esi
movq %rsi, -0x38(%rbp)
movl -0x44(%rbp), %edx
movslq %edx, %rcx
incl %edx
movl %edx, -0x44(%rbp)
movl %eax, -0x4fc(%rbp,%rcx,4)
jmp 0x2e4c
movslq -0x44(%rbp), %rax
movslq -0x500(%rbp,%rax,4), %rcx
movq -0x38(%rbp), %r8
leal 0x1(%r8), %edx
movslq %r8d, %rsi
movq -0x40(%rbp), %rdi
movl $0x2, (%rdi,%rsi,4)
addl $0x2, %r8d
movl %edx, -0x500(%rbp,%rax,4)
movq %r8, -0x38(%rbp)
movl %r8d, (%rdi,%rcx,4)
jmp 0x2e4c
movl -0x44(%rbp), %ecx
movslq %ecx, %rax
decl %ecx
movl %ecx, -0x44(%rbp)
movslq -0x500(%rbp,%rax,4), %rax
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rdx
movl %edx, (%rcx,%rax,4)
jmp 0x2e4c
movslq -0x38(%rbp), %rbx
movq -0x40(%rbp), %rax
movl $0x2, (%rax,%rbx,4)
movq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x38b0
movl (%rax), %eax
movq -0x38(%rbp), %rcx
addl $0x2, %ecx
jmp 0x2e40
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0xf, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0x10, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0x11, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0x12, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0x13, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0x5, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0x6, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0x7, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0x8, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0x14, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0xa, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0xe, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0xb, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0xc, (%rcx,%rax,4)
jmp 0x2e4c
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0xd, (%rcx,%rax,4)
jmp 0x3622
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0x16, (%rcx,%rax,4)
jmp 0x3622
movq -0x38(%rbp), %rcx
movslq %ecx, %rax
incl %ecx
movq %rcx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movl $0x17, (%rcx,%rax,4)
movb $0x1, %bl
movl -0x2c(%rbp), %eax
movl %eax, %r12d
leaq -0x60(%rbp), %r13
jmp 0x337d
leaq -0x70(%rbp), %rdi
movq %r13, (%rdi)
leaq 0x3b50(%rip), %rsi      # 0x7191
leaq 0x3b4d(%rip), %rdx      # 0x7195
callq 0x3d02
leaq -0x70(%rbp), %rsi
movq -0x50(%rbp), %rdi
callq 0x4594
movq %rax, %r15
cmpq -0x88(%rbp), %rax
je 0x36a6
leaq -0xe0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3b19(%rip), %rsi      # 0x7191
leaq 0x3b16(%rip), %rdx      # 0x7195
leaq -0xf0(%rbp), %rdi
callq 0x3d02
leaq -0xf0(%rbp), %rsi
movq -0x50(%rbp), %rdi
callq 0x3930
movl -0x7c(%rbp), %ecx
cmpl %ecx, 0x4(%rax)
sete %bl
jmp 0x36a8
xorl %ebx, %ebx
cmpq -0x88(%rbp), %r15
je 0x36c6
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x36c6
callq 0x21d0
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x36d4
callq 0x21d0
testb %bl, %bl
je 0x3722
movq -0x40(%rbp), %rax
movl $0x2, (%rax)
leaq -0x70(%rbp), %rdi
movq %r13, (%rdi)
leaq 0x3aa1(%rip), %rsi      # 0x7191
leaq 0x3a9e(%rip), %rdx      # 0x7195
callq 0x3d02
leaq -0x70(%rbp), %rsi
movq -0x50(%rbp), %rdi
callq 0x3930
movl (%rax), %eax
movq -0x40(%rbp), %rcx
movl %eax, 0x4(%rcx)
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x3733
callq 0x21d0
jmp 0x3733
movabsq $0x1400000014, %rax     # imm = 0x1400000014
movq -0x40(%rbp), %rcx
movq %rax, (%rcx)
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x374b
callq 0x21d0
leaq -0xb0(%rbp), %rdi
callq 0x39b0
addq $0x4d8, %rsp            # imm = 0x4D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3a26(%rip), %rdi      # 0x7196
callq 0x2120
leaq 0x3a1a(%rip), %rdi      # 0x7196
callq 0x2270
leaq 0x3a0e(%rip), %rdi      # 0x7196
callq 0x2270
leaq 0x3a02(%rip), %rdi      # 0x7196
callq 0x2120
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x37f2
movl %r12d, (%r15)
jmp 0x37f2
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
jne 0x37ff
jmp 0x3804
jmp 0x37ea
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
cmpq %r14, %rdi
je 0x37f2
callq 0x21d0
jmp 0x37f2
jmp 0x37ef
jmp 0x37ef
jmp 0x37ea
jmp 0x37ea
movq %rax, %rbx
jmp 0x381c
jmp 0x37ef
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x37f2
movl %r13d, (%r15)
jmp 0x37f2
movq %rax, %rbx
jmp 0x3804
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3804
callq 0x21d0
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x381c
callq 0x21d0
leaq -0xb0(%rbp), %rdi
callq 0x39b0
movq %rbx, %rdi
callq 0x22e0