// File: Konano[P]UselessDatabase/Table.cpp
// Function: Table::updateRecords(std::vector<std::pair<int, Any>, std::allocator<std::pair<int, Any>>>&, std::vector<WhereStmt, std::allocator<WhereStmt>>&)
int Table::updateRecords(vector<Pia> &set, vector<WhereStmt> &where) {
    for (auto it: set) {
        if (col_ty[it.first].beNull() == false && it.second.isNull() == true) return -1;
    }
    vector<uint> _cols = findWheres(where), cols;
    vector<Anys> pk_add, pk_del, _pk_add, _pk_del;
    for (auto i: _cols) {
        Pointer p(this, i);
        Anys data = p.get();
        if (checkWheres(data, where)) {
            bool modify = false;
            for (auto it: set) for (auto _i: p_key->v) if (_i == (uint)it.first) {
                modify = true;
                goto BK1;
            }
            BK1: if (modify) pk_del.push_back(chooseData(data, p_key->v));
            for (auto it: set) data[it.first] = it.second;
            if (modify) pk_add.push_back(chooseData(data, p_key->v));
            for (auto it: f_key) {
                for (auto _it: set) for (auto _i: it->v) if (_i == (uint)_it.first) goto BK2;
                continue;
                BK2: Anys val = chooseData(data, it->v);
                vector<int> ans;
                Table* p_table = it->p->table;
                ans = p_table->index[p_table->p_key_index].queryRecord(&val);
                printf("%d %d\n", val[0].anyRefCast<int>(), val.size());
                if (ans.size() == 0) goto FAIL;
            }
            cols.push_back(i);
            FAIL:;
        }
    }

    sort(pk_add.begin(), pk_add.end());
    sort(pk_del.begin(), pk_del.end());
    vector<Anys>::iterator add_it = pk_add.begin(), del_it = pk_del.begin(), it;
    while (add_it != pk_add.end() && del_it != pk_del.end()) {
        if (*add_it == *del_it) add_it++, del_it++; 
        else if (*add_it < *del_it) _pk_add.push_back(*add_it), add_it++;
        else _pk_del.push_back(*del_it), del_it++;
    }
    while (add_it != pk_add.end()) _pk_add.push_back(*add_it), add_it++;
    while (del_it != pk_del.end()) _pk_del.push_back(*del_it), del_it++;

    for (uint i = 1; i < _pk_add.size(); i++) if (_pk_add[i-1] == _pk_add[i]) return -5;
    for (uint i = 0; i < _pk_add.size(); i++) {
        vector<int> ans = this->index[p_key_index].queryRecord(&_pk_add[i]);
        if (ans.size() != 0) return -7;
    }
    
    for (auto i: cols) updateRecord(i, set);
    for (auto it: pk_del) {
        for (uint i = 0;i < db->table_num;i ++){
            for(uint j = 0;j < db->table[i]->f_key.size();j ++){
                if(db->table[i]->f_key[j]->p->table == this){
                    std::vector <int> ans;
                    if(db->table[i]->index[db->table[i]->f_key_index[j]].fileID == -1){
                        db->table[i]->index[db->table[i]->f_key_index[j]].open();
                        ans = db->table[i]->index[db->table[i]->f_key_index[j]].queryRecord(&it);
                        db->table[i]->index[db->table[i]->f_key_index[j]].close();
                    }
                    else {
                        ans = db->table[i]->index[db->table[i]->f_key_index[j]].queryRecord(&it);
                    }
                    for(uint k = 0;k < ans.size();k ++){
                        if(db->table[i]->index[db->table[i]->f_key_index[j]].fileID == -1){
                            db->table[i]->index[db->table[i]->f_key_index[j]].open();
                            db->table[i]->index[db->table[i]->f_key_index[j]].removeRecord(&it,ans[k]);
                            Anys nullkey;
                            for(uint m = 0;m < it.size();m ++)nullkey.push_back(Any());
                            db->table[i]->index[db->table[i]->f_key_index[j]].insertRecord(&nullkey,ans[k]);
                            db->table[i]->index[db->table[i]->f_key_index[j]].close();
                        }
                        else {
                            db->table[i]->index[db->table[i]->f_key_index[j]].removeRecord(&it,ans[k]);
                            Anys nullkey;
                            for(uint m = 0;m < it.size();m ++)nullkey.push_back(Any());
                            db->table[i]->index[db->table[i]->f_key_index[j]].insertRecord(&nullkey,ans[k]);
                        }
                        Anys pre = db->table[i]->queryRecord(ans[k]);
                        Anys after;
                        vector<bool> mark;
                        for(uint m = 0;m < pre.size();m ++)mark.push_back(true);
                        for(uint m = 0;m < db->table[i]->f_key[j]->v.size();m ++)mark[db->table[i]->f_key[j]->v[m]] = false;
                        for(uint m = 0;m < pre.size();m ++){
                            if(mark[m]) after.push_back(pre[m]);
                            else after.push_back(Any());
                        }
                        int index;
                        BufType buf = bpm->getPage(main_file, ans[k] / record_onepg, index);
                        buf += (record_onepg - 1) / 8 + 1;
                        buf += record_size * (ans[k] % record_onepg);
                        for (uint i = 0; i < col_num; i++) {
                            insert(after[i], col_ty[i].ty, col_ty[i].size(), buf);
                        }
                        bpm->markDirty(index);
                    }
                }
            }
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x6c0, %rsp            # imm = 0x6C0
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x508(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x52e20
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
callq 0x52e50
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x52e80
testb $0x1, %al
jne 0x504ba
jmp 0x50579
leaq -0x30(%rbp), %rdi
callq 0x52ec0
movq %rax, %rsi
leaq -0x48(%rbp), %rdi
callq 0x52ee0
movq -0x508(%rbp), %rax
movslq -0x48(%rbp), %rcx
imulq $0x38, %rcx, %rcx
leaq 0x58(%rax,%rcx), %rdi
callq 0x53200
movb %al, -0x509(%rbp)
jmp 0x504f0
movb -0x509(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x5054b
leaq -0x40(%rbp), %rdi
callq 0xc920
movb %al, -0x50a(%rbp)
jmp 0x50511
movb -0x50a(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x5054b
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl $0x1, -0x58(%rbp)
jmp 0x50552
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x52f20
jmp 0x52139
movl $0x0, -0x58(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x52f20
movl -0x58(%rbp), %eax
testl %eax, %eax
je 0x50569
jmp 0x50564
jmp 0x5212d
jmp 0x5056b
leaq -0x30(%rbp), %rdi
callq 0x52f40
jmp 0x504a4
movq -0x508(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq -0x70(%rbp), %rdi
callq 0x4feb0
leaq -0x88(%rbp), %rdi
callq 0xec40
leaq -0xa0(%rbp), %rdi
callq 0xeab0
leaq -0xb8(%rbp), %rdi
callq 0xeab0
leaq -0xd0(%rbp), %rdi
callq 0xeab0
leaq -0xe8(%rbp), %rdi
callq 0xeab0
leaq -0x70(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rdi
callq 0x3d210
movq %rax, -0xf8(%rbp)
movq -0xf0(%rbp), %rdi
callq 0x3d240
movq %rax, -0x100(%rbp)
leaq -0xf8(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x3d270
testb $0x1, %al
jne 0x50616
jmp 0x50d57
leaq -0xf8(%rbp), %rdi
callq 0x3d2b0
movq -0x508(%rbp), %rsi
movl (%rax), %eax
movl %eax, -0x104(%rbp)
movl -0x104(%rbp), %edx
leaq -0x120(%rbp), %rdi
callq 0x47150
jmp 0x50645
leaq -0x138(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x471c0
jmp 0x5065a
leaq -0x150(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0xc400
jmp 0x5066f
movq -0x508(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq -0x150(%rbp), %rsi
callq 0x4fbf0
movb %al, -0x50b(%rbp)
jmp 0x5068e
leaq -0x150(%rbp), %rdi
callq 0xc430
movb -0x50b(%rbp), %al
testb $0x1, %al
jne 0x506a9
jmp 0x50d29
movb $0x0, -0x151(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rdi
callq 0x52e20
movq %rax, -0x168(%rbp)
movq -0x160(%rbp), %rdi
callq 0x52e50
movq %rax, -0x170(%rbp)
leaq -0x168(%rbp), %rdi
leaq -0x170(%rbp), %rsi
callq 0x52e80
testb $0x1, %al
jne 0x506fd
jmp 0x5082a
leaq -0x168(%rbp), %rdi
callq 0x52ec0
movq %rax, %rsi
leaq -0x180(%rbp), %rdi
callq 0x52ee0
jmp 0x5071a
movq -0x508(%rbp), %rax
movq 0x758(%rax), %rax
addq $0x30, %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rdi
callq 0x3d210
movq %rax, -0x190(%rbp)
movq -0x188(%rbp), %rdi
callq 0x3d240
movq %rax, -0x198(%rbp)
leaq -0x190(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x3d270
testb $0x1, %al
jne 0x50775
jmp 0x507f9
leaq -0x190(%rbp), %rdi
callq 0x3d2b0
movl (%rax), %eax
movl %eax, -0x19c(%rbp)
movl -0x19c(%rbp), %eax
cmpl -0x180(%rbp), %eax
jne 0x507e6
movb $0x1, -0x151(%rbp)
movl $0xa, -0x58(%rbp)
jmp 0x50800
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x520e6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x50d46
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x150(%rbp), %rdi
callq 0xc430
jmp 0x50d46
jmp 0x507e8
leaq -0x190(%rbp), %rdi
callq 0x3d3b0
jmp 0x50759
movl $0x0, -0x58(%rbp)
leaq -0x180(%rbp), %rdi
callq 0x52f20
movl -0x58(%rbp), %eax
testl %eax, %eax
je 0x50817
jmp 0x50815
jmp 0x5082c
jmp 0x50819
leaq -0x168(%rbp), %rdi
callq 0x52f40
jmp 0x506e1
jmp 0x5082c
testb $0x1, -0x151(%rbp)
je 0x5089c
movq -0x508(%rbp), %rsi
movq 0x758(%rsi), %rcx
addq $0x30, %rcx
leaq -0x1b8(%rbp), %rdi
leaq -0x138(%rbp), %rdx
callq 0x4b630
jmp 0x5085c
leaq -0xb8(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
callq 0x539f0
jmp 0x50871
leaq -0x1b8(%rbp), %rdi
callq 0xc430
jmp 0x5089c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0xc430
jmp 0x50d46
movq -0x18(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x1c0(%rbp), %rdi
callq 0x52e20
movq %rax, -0x1c8(%rbp)
movq -0x1c0(%rbp), %rdi
callq 0x52e50
movq %rax, -0x1d0(%rbp)
leaq -0x1c8(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x52e80
testb $0x1, %al
jne 0x508e9
jmp 0x5097e
leaq -0x1c8(%rbp), %rdi
callq 0x52ec0
movq %rax, %rsi
leaq -0x1e0(%rbp), %rdi
callq 0x52ee0
jmp 0x50906
leaq -0x1d8(%rbp), %rax
movq %rax, -0x520(%rbp)
movl -0x1e0(%rbp), %esi
leaq -0x138(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x518(%rbp)
jmp 0x5092f
movq -0x520(%rbp), %rsi
movq -0x518(%rbp), %rdi
callq 0xd320
jmp 0x50944
leaq -0x1e0(%rbp), %rdi
callq 0x52f20
leaq -0x1c8(%rbp), %rdi
callq 0x52f40
jmp 0x508cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x1e0(%rbp), %rdi
callq 0x52f20
jmp 0x50d46
testb $0x1, -0x151(%rbp)
je 0x509ee
movq -0x508(%rbp), %rsi
movq 0x758(%rsi), %rcx
addq $0x30, %rcx
leaq -0x1f8(%rbp), %rdi
leaq -0x138(%rbp), %rdx
callq 0x4b630
jmp 0x509ae
leaq -0xa0(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
callq 0x539f0
jmp 0x509c3
leaq -0x1f8(%rbp), %rdi
callq 0xc430
jmp 0x509ee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x1f8(%rbp), %rdi
callq 0xc430
jmp 0x50d46
movq -0x508(%rbp), %rax
addq $0x760, %rax            # imm = 0x760
movq %rax, -0x200(%rbp)
movq -0x200(%rbp), %rdi
callq 0x446e0
movq %rax, -0x208(%rbp)
movq -0x200(%rbp), %rdi
callq 0x44530
movq %rax, -0x210(%rbp)
leaq -0x208(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0x525a0
testb $0x1, %al
jne 0x50a44
jmp 0x50d10
leaq -0x208(%rbp), %rdi
callq 0x44ab0
movq (%rax), %rax
movq %rax, -0x218(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x220(%rbp), %rdi
callq 0x52e20
movq %rax, -0x228(%rbp)
movq -0x220(%rbp), %rdi
callq 0x52e50
movq %rax, -0x230(%rbp)
leaq -0x228(%rbp), %rdi
leaq -0x230(%rbp), %rsi
callq 0x52e80
testb $0x1, %al
jne 0x50aa7
jmp 0x50b81
leaq -0x228(%rbp), %rdi
callq 0x52ec0
movq %rax, %rsi
leaq -0x240(%rbp), %rdi
callq 0x52ee0
jmp 0x50ac4
movq -0x218(%rbp), %rax
addq $0x30, %rax
movq %rax, -0x248(%rbp)
movq -0x248(%rbp), %rdi
callq 0x3d210
movq %rax, -0x250(%rbp)
movq -0x248(%rbp), %rdi
callq 0x3d240
movq %rax, -0x258(%rbp)
leaq -0x250(%rbp), %rdi
leaq -0x258(%rbp), %rsi
callq 0x3d270
testb $0x1, %al
jne 0x50b15
jmp 0x50b50
leaq -0x250(%rbp), %rdi
callq 0x3d2b0
movl (%rax), %eax
movl %eax, -0x25c(%rbp)
movl -0x25c(%rbp), %eax
cmpl -0x240(%rbp), %eax
jne 0x50b40
movl $0x13, -0x58(%rbp)
jmp 0x50b57
jmp 0x50b42
leaq -0x250(%rbp), %rdi
callq 0x3d3b0
jmp 0x50afc
movl $0x0, -0x58(%rbp)
leaq -0x240(%rbp), %rdi
callq 0x52f20
movl -0x58(%rbp), %eax
testl %eax, %eax
je 0x50b6e
jmp 0x50b6c
jmp 0x50b86
jmp 0x50b70
leaq -0x228(%rbp), %rdi
callq 0x52f40
jmp 0x50a8b
jmp 0x50cff
movq -0x508(%rbp), %rsi
movq -0x218(%rbp), %rcx
addq $0x30, %rcx
leaq -0x278(%rbp), %rdi
leaq -0x138(%rbp), %rdx
callq 0x4b630
jmp 0x50bad
leaq -0x290(%rbp), %rdi
callq 0xd880
movq -0x218(%rbp), %rax
movq 0x50(%rax), %rax
movq 0x48(%rax), %rax
movq %rax, -0x298(%rbp)
movq -0x298(%rbp), %rax
movslq 0x778(%rax), %rcx
imulq $0x98, %rcx, %rcx
leaq 0x7a0(%rax,%rcx), %rsi
leaq -0x2b0(%rbp), %rdi
leaq -0x278(%rbp), %rdx
callq 0x37aa0
jmp 0x50c01
leaq -0x290(%rbp), %rdi
leaq -0x2b0(%rbp), %rsi
movq %rsi, -0x530(%rbp)
callq 0x52d90
movq -0x530(%rbp), %rdi
callq 0xde10
leaq -0x278(%rbp), %rdi
xorl %esi, %esi
callq 0xc8f0
movq %rax, -0x528(%rbp)
jmp 0x50c3e
movq -0x528(%rbp), %rdi
callq 0xd670
movq %rax, -0x538(%rbp)
jmp 0x50c53
movq -0x538(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x540(%rbp)
leaq -0x278(%rbp), %rdi
callq 0xcd90
movl %eax, -0x53c(%rbp)
jmp 0x50c76
movl -0x53c(%rbp), %edx
movl -0x540(%rbp), %esi
leaq 0x32fd9(%rip), %rdi     # 0x83c62
xorl %eax, %eax
callq 0x6090
jmp 0x50c92
leaq -0x290(%rbp), %rdi
callq 0x3d860
cmpq $0x0, %rax
jne 0x50cd3
movl $0x14, -0x58(%rbp)
jmp 0x50cda
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x290(%rbp), %rdi
callq 0xde10
leaq -0x278(%rbp), %rdi
callq 0xc430
jmp 0x50d46
movl $0x0, -0x58(%rbp)
leaq -0x290(%rbp), %rdi
callq 0xde10
leaq -0x278(%rbp), %rdi
callq 0xc430
movl -0x58(%rbp), %eax
testl %eax, %eax
je 0x50cfd
jmp 0x50cfb
jmp 0x50d27
jmp 0x50cff
leaq -0x208(%rbp), %rdi
callq 0x525e0
jmp 0x50a28
leaq -0x88(%rbp), %rdi
leaq -0x104(%rbp), %rsi
callq 0x3d2d0
jmp 0x50d25
jmp 0x50d27
jmp 0x50d29
leaq -0x138(%rbp), %rdi
callq 0xc430
leaq -0xf8(%rbp), %rdi
callq 0x3d3b0
jmp 0x505fa
leaq -0x138(%rbp), %rdi
callq 0xc430
jmp 0x520e6
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x548(%rbp)
callq 0xd260
movq -0x548(%rbp), %rdi
movq %rax, -0x2b8(%rbp)
callq 0xd290
movq %rax, -0x2c0(%rbp)
movq -0x2b8(%rbp), %rdi
movq -0x2c0(%rbp), %rsi
callq 0x53a20
jmp 0x50d99
leaq -0xb8(%rbp), %rdi
movq %rdi, -0x550(%rbp)
callq 0xd260
movq -0x550(%rbp), %rdi
movq %rax, -0x2c8(%rbp)
callq 0xd290
movq %rax, -0x2d0(%rbp)
movq -0x2c8(%rbp), %rdi
movq -0x2d0(%rbp), %rsi
callq 0x53a20
jmp 0x50ddb
leaq -0xa0(%rbp), %rdi
callq 0xd260
movq %rax, -0x2d8(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0xd260
movq %rax, -0x2e0(%rbp)
leaq -0x2e8(%rbp), %rdi
callq 0x53a60
leaq -0xa0(%rbp), %rdi
callq 0xd290
movq %rax, -0x2f0(%rbp)
leaq -0x2d8(%rbp), %rdi
leaq -0x2f0(%rbp), %rsi
callq 0xd2c0
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0x551(%rbp)
jne 0x50e44
jmp 0x50e70
leaq -0xb8(%rbp), %rdi
callq 0xd290
movq %rax, -0x2f8(%rbp)
leaq -0x2e0(%rbp), %rdi
leaq -0x2f8(%rbp), %rsi
callq 0xd2c0
movb %al, -0x551(%rbp)
movb -0x551(%rbp), %al
testb $0x1, %al
jne 0x50e7f
jmp 0x50f9f
leaq -0x2d8(%rbp), %rdi
callq 0xd300
movq %rax, -0x560(%rbp)
leaq -0x2e0(%rbp), %rdi
callq 0xd300
movq -0x560(%rbp), %rdi
movq %rax, %rsi
callq 0xc500
movb %al, -0x552(%rbp)
jmp 0x50eb5
movb -0x552(%rbp), %al
testb $0x1, %al
jne 0x50ec1
jmp 0x50ef0
leaq -0x2d8(%rbp), %rdi
xorl %esi, %esi
callq 0x53a80
movq %rax, -0x300(%rbp)
leaq -0x2e0(%rbp), %rdi
xorl %esi, %esi
callq 0x53a80
movq %rax, -0x308(%rbp)
jmp 0x50f9a
leaq -0x2d8(%rbp), %rdi
callq 0xd300
movq %rax, -0x570(%rbp)
leaq -0x2e0(%rbp), %rdi
callq 0xd300
movq -0x570(%rbp), %rdi
movq %rax, %rsi
callq 0xc630
movb %al, -0x561(%rbp)
jmp 0x50f26
movb -0x561(%rbp), %al
testb $0x1, %al
jne 0x50f32
jmp 0x50f66
leaq -0x2d8(%rbp), %rdi
callq 0xd300
movq %rax, %rsi
leaq -0xd0(%rbp), %rdi
callq 0xcdb0
jmp 0x50f4f
leaq -0x2d8(%rbp), %rdi
xorl %esi, %esi
callq 0x53a80
movq %rax, -0x310(%rbp)
jmp 0x50f98
leaq -0x2e0(%rbp), %rdi
callq 0xd300
movq %rax, %rsi
leaq -0xe8(%rbp), %rdi
callq 0xcdb0
jmp 0x50f83
leaq -0x2e0(%rbp), %rdi
xorl %esi, %esi
callq 0x53a80
movq %rax, -0x318(%rbp)
jmp 0x50f9a
jmp 0x50e0d
jmp 0x50fa1
leaq -0xa0(%rbp), %rdi
callq 0xd290
movq %rax, -0x320(%rbp)
leaq -0x2d8(%rbp), %rdi
leaq -0x320(%rbp), %rsi
callq 0xd2c0
testb $0x1, %al
jne 0x50fcd
jmp 0x51001
leaq -0x2d8(%rbp), %rdi
callq 0xd300
movq %rax, %rsi
leaq -0xd0(%rbp), %rdi
callq 0xcdb0
jmp 0x50fea
leaq -0x2d8(%rbp), %rdi
xorl %esi, %esi
callq 0x53a80
movq %rax, -0x328(%rbp)
jmp 0x50fa1
jmp 0x51003
leaq -0xb8(%rbp), %rdi
callq 0xd290
movq %rax, -0x330(%rbp)
leaq -0x2e0(%rbp), %rdi
leaq -0x330(%rbp), %rsi
callq 0xd2c0
testb $0x1, %al
jne 0x5102f
jmp 0x51063
leaq -0x2e0(%rbp), %rdi
callq 0xd300
movq %rax, %rsi
leaq -0xe8(%rbp), %rdi
callq 0xcdb0
jmp 0x5104c
leaq -0x2e0(%rbp), %rdi
xorl %esi, %esi
callq 0x53a80
movq %rax, -0x338(%rbp)
jmp 0x51003
movl $0x1, -0x33c(%rbp)
movl -0x33c(%rbp), %eax
movq %rax, -0x578(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x34630
movq %rax, %rcx
movq -0x578(%rbp), %rax
cmpq %rcx, %rax
jae 0x5111d
movl -0x33c(%rbp), %eax
decl %eax
movl %eax, %esi
leaq -0xd0(%rbp), %rdi
movq %rdi, -0x590(%rbp)
callq 0x52170
movq -0x590(%rbp), %rdi
movq %rax, -0x588(%rbp)
movl -0x33c(%rbp), %eax
movl %eax, %esi
callq 0x52170
movq -0x588(%rbp), %rdi
movq %rax, %rsi
callq 0xc500
movb %al, -0x579(%rbp)
jmp 0x510e8
movb -0x579(%rbp), %al
testb $0x1, %al
jne 0x510f4
jmp 0x51107
movl $0xfffffffb, -0x4(%rbp) # imm = 0xFFFFFFFB
movl $0x1, -0x58(%rbp)
jmp 0x5209f
jmp 0x51109
movl -0x33c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x33c(%rbp)
jmp 0x5106d
movl $0x0, -0x340(%rbp)
movl -0x340(%rbp), %eax
movq %rax, -0x598(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x34630
movq %rax, %rcx
movq -0x598(%rbp), %rax
cmpq %rcx, %rax
jae 0x511fb
movq -0x508(%rbp), %rax
movslq 0x778(%rax), %rcx
imulq $0x98, %rcx, %rcx
leaq 0x7a0(%rax,%rcx), %rax
movq %rax, -0x5a0(%rbp)
movl -0x340(%rbp), %eax
movl %eax, %esi
leaq -0xd0(%rbp), %rdi
callq 0x52170
movq -0x5a0(%rbp), %rsi
movq %rax, %rdx
leaq -0x358(%rbp), %rdi
callq 0x37aa0
jmp 0x511a3
leaq -0x358(%rbp), %rdi
callq 0x3d860
cmpq $0x0, %rax
je 0x511c5
movl $0xfffffff9, -0x4(%rbp) # imm = 0xFFFFFFF9
movl $0x1, -0x58(%rbp)
jmp 0x511cc
movl $0x0, -0x58(%rbp)
leaq -0x358(%rbp), %rdi
callq 0xde10
movl -0x58(%rbp), %eax
testl %eax, %eax
jne 0x5209f
jmp 0x511e5
jmp 0x511e7
movl -0x340(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x340(%rbp)
jmp 0x51127
leaq -0x88(%rbp), %rax
movq %rax, -0x360(%rbp)
movq -0x360(%rbp), %rdi
callq 0x3d210
movq %rax, -0x368(%rbp)
movq -0x360(%rbp), %rdi
callq 0x3d240
movq %rax, -0x370(%rbp)
leaq -0x368(%rbp), %rdi
leaq -0x370(%rbp), %rsi
callq 0x3d270
testb $0x1, %al
jne 0x51248
jmp 0x51284
leaq -0x368(%rbp), %rdi
callq 0x3d2b0
movq -0x508(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x374(%rbp)
movl -0x374(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0x4b220
jmp 0x51274
jmp 0x51276
leaq -0x368(%rbp), %rdi
callq 0x3d3b0
jmp 0x5122f
leaq -0xb8(%rbp), %rax
movq %rax, -0x380(%rbp)
movq -0x380(%rbp), %rdi
callq 0xd260
movq %rax, -0x388(%rbp)
movq -0x380(%rbp), %rdi
callq 0xd290
movq %rax, -0x390(%rbp)
leaq -0x388(%rbp), %rdi
leaq -0x390(%rbp), %rsi
callq 0xd2c0
testb $0x1, %al
jne 0x512d4
jmp 0x52091
leaq -0x388(%rbp), %rdi
callq 0xd300
movq %rax, %rsi
leaq -0x3a8(%rbp), %rdi
callq 0xc400
jmp 0x512f1
movl $0x0, -0x3ac(%rbp)
movq -0x508(%rbp), %rcx
movl -0x3ac(%rbp), %eax
movq 0x38(%rcx), %rcx
cmpl 0x820(%rcx), %eax
jae 0x52074
movl $0x0, -0x3b0(%rbp)
movq -0x508(%rbp), %rax
movl -0x3b0(%rbp), %ecx
movq %rcx, -0x5a8(%rbp)
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
addq $0x760, %rdi            # imm = 0x760
callq 0x447e0
movq %rax, %rcx
movq -0x5a8(%rbp), %rax
cmpq %rcx, %rax
jae 0x5205e
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
addq $0x760, %rdi            # imm = 0x760
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x52cd0
movq -0x508(%rbp), %rcx
movq (%rax), %rax
movq 0x50(%rax), %rax
cmpq %rcx, 0x48(%rax)
jne 0x52048
leaq -0x3c8(%rbp), %rdi
callq 0xd880
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rcx
movl -0x3ac(%rbp), %edx
movq 0x20(%rcx,%rdx,8), %rcx
addq $0x7a0, %rcx            # imm = 0x7A0
movq %rcx, -0x5b0(%rbp)
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
addq $0x780, %rdi            # imm = 0x780
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x3d6f0
movq %rax, %rcx
movq -0x5b0(%rbp), %rax
movslq (%rcx), %rcx
imulq $0x98, %rcx, %rcx
addq %rcx, %rax
cmpl $-0x1, 0x74(%rax)
jne 0x51560
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
movq %rdi, -0x5b8(%rbp)
addq $0x780, %rdi            # imm = 0x780
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x3d6f0
movq %rax, %rcx
movq -0x5b8(%rbp), %rax
movslq (%rcx), %rcx
imulq $0x98, %rcx, %rcx
leaq 0x7a0(%rax,%rcx), %rdi
callq 0x36ad0
jmp 0x5146e
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
movq %rdi, -0x5c0(%rbp)
addq $0x780, %rdi            # imm = 0x780
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x3d6f0
movq %rax, %rcx
movq -0x5c0(%rbp), %rax
movslq (%rcx), %rcx
imulq $0x98, %rcx, %rcx
leaq 0x7a0(%rax,%rcx), %rsi
leaq -0x3e0(%rbp), %rdi
leaq -0x3a8(%rbp), %rdx
callq 0x37aa0
jmp 0x514d0
leaq -0x3c8(%rbp), %rdi
leaq -0x3e0(%rbp), %rsi
movq %rsi, -0x5d0(%rbp)
callq 0x52d90
movq -0x5d0(%rbp), %rdi
callq 0xde10
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
movq %rdi, -0x5c8(%rbp)
addq $0x780, %rdi            # imm = 0x780
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x3d6f0
movq %rax, %rcx
movq -0x5c8(%rbp), %rax
movslq (%rcx), %rcx
imulq $0x98, %rcx, %rcx
leaq 0x7a0(%rax,%rcx), %rdi
callq 0x36b30
jmp 0x5154a
jmp 0x515e1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x5202b
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
movq %rdi, -0x5d8(%rbp)
addq $0x780, %rdi            # imm = 0x780
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x3d6f0
movq %rax, %rcx
movq -0x5d8(%rbp), %rax
movslq (%rcx), %rcx
imulq $0x98, %rcx, %rcx
leaq 0x7a0(%rax,%rcx), %rsi
leaq -0x3f8(%rbp), %rdi
leaq -0x3a8(%rbp), %rdx
callq 0x37aa0
jmp 0x515c2
leaq -0x3c8(%rbp), %rdi
leaq -0x3f8(%rbp), %rsi
callq 0x52d90
leaq -0x3f8(%rbp), %rdi
callq 0xde10
movl $0x0, -0x3fc(%rbp)
movl -0x3fc(%rbp), %eax
movq %rax, -0x5e0(%rbp)
leaq -0x3c8(%rbp), %rdi
callq 0x3d860
movq %rax, %rcx
movq -0x5e0(%rbp), %rax
cmpq %rcx, %rax
jae 0x5201d
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rcx
movl -0x3ac(%rbp), %edx
movq 0x20(%rcx,%rdx,8), %rcx
addq $0x7a0, %rcx            # imm = 0x7A0
movq %rcx, -0x5e8(%rbp)
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
addq $0x780, %rdi            # imm = 0x780
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x3d6f0
movq %rax, %rcx
movq -0x5e8(%rbp), %rax
movslq (%rcx), %rcx
imulq $0x98, %rcx, %rcx
addq %rcx, %rax
cmpl $-0x1, 0x74(%rax)
jne 0x518fd
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
movq %rdi, -0x5f0(%rbp)
addq $0x780, %rdi            # imm = 0x780
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x3d6f0
movq %rax, %rcx
movq -0x5f0(%rbp), %rax
movslq (%rcx), %rcx
imulq $0x98, %rcx, %rcx
leaq 0x7a0(%rax,%rcx), %rdi
callq 0x36ad0
jmp 0x516d3
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
movq %rdi, -0x600(%rbp)
addq $0x780, %rdi            # imm = 0x780
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x3d6f0
movq %rax, %rcx
movq -0x600(%rbp), %rax
movslq (%rcx), %rcx
imulq $0x98, %rcx, %rcx
leaq 0x7a0(%rax,%rcx), %rax
movq %rax, -0x5f8(%rbp)
movl -0x3fc(%rbp), %eax
movl %eax, %esi
leaq -0x3c8(%rbp), %rdi
callq 0x3d6f0
movq -0x5f8(%rbp), %rdi
movl (%rax), %edx
leaq -0x3a8(%rbp), %rsi
callq 0x393a0
jmp 0x51752
leaq -0x418(%rbp), %rdi
callq 0xc310
jmp 0x51760
movl $0x0, -0x41c(%rbp)
movl -0x41c(%rbp), %eax
movl %eax, -0x608(%rbp)
leaq -0x3a8(%rbp), %rdi
callq 0xcd90
movl %eax, -0x604(%rbp)
jmp 0x5178a
movl -0x608(%rbp), %eax
movl -0x604(%rbp), %ecx
cmpl %ecx, %eax
jae 0x51808
leaq -0x428(%rbp), %rdi
callq 0xd240
jmp 0x517a8
leaq -0x418(%rbp), %rdi
leaq -0x428(%rbp), %rsi
callq 0xc330
jmp 0x517bd
leaq -0x428(%rbp), %rdi
callq 0xc3c0
movl -0x41c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x41c(%rbp)
jmp 0x5176a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x518ec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x428(%rbp), %rdi
callq 0xc3c0
jmp 0x518ec
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
movq %rdi, -0x618(%rbp)
addq $0x780, %rdi            # imm = 0x780
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x3d6f0
movq %rax, %rcx
movq -0x618(%rbp), %rax
movslq (%rcx), %rcx
imulq $0x98, %rcx, %rcx
leaq 0x7a0(%rax,%rcx), %rax
movq %rax, -0x610(%rbp)
movl -0x3fc(%rbp), %eax
movl %eax, %esi
leaq -0x3c8(%rbp), %rdi
callq 0x3d6f0
movq -0x610(%rbp), %rdi
movl (%rax), %edx
leaq -0x418(%rbp), %rsi
callq 0x390e0
jmp 0x51887
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
movq %rdi, -0x620(%rbp)
addq $0x780, %rdi            # imm = 0x780
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x3d6f0
movq %rax, %rcx
movq -0x620(%rbp), %rax
movslq (%rcx), %rcx
imulq $0x98, %rcx, %rcx
leaq 0x7a0(%rax,%rcx), %rdi
callq 0x36b30
jmp 0x518db
leaq -0x418(%rbp), %rdi
callq 0xc430
jmp 0x51ad0
leaq -0x418(%rbp), %rdi
callq 0xc430
jmp 0x5202b
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
movq %rdi, -0x630(%rbp)
addq $0x780, %rdi            # imm = 0x780
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x3d6f0
movq %rax, %rcx
movq -0x630(%rbp), %rax
movslq (%rcx), %rcx
imulq $0x98, %rcx, %rcx
leaq 0x7a0(%rax,%rcx), %rax
movq %rax, -0x628(%rbp)
movl -0x3fc(%rbp), %eax
movl %eax, %esi
leaq -0x3c8(%rbp), %rdi
callq 0x3d6f0
movq -0x628(%rbp), %rdi
movl (%rax), %edx
leaq -0x3a8(%rbp), %rsi
callq 0x393a0
jmp 0x5197c
leaq -0x440(%rbp), %rdi
callq 0xc310
jmp 0x5198a
movl $0x0, -0x444(%rbp)
movl -0x444(%rbp), %eax
movl %eax, -0x638(%rbp)
leaq -0x3a8(%rbp), %rdi
callq 0xcd90
movl %eax, -0x634(%rbp)
jmp 0x519b4
movl -0x638(%rbp), %eax
movl -0x634(%rbp), %ecx
cmpl %ecx, %eax
jae 0x51a32
leaq -0x450(%rbp), %rdi
callq 0xd240
jmp 0x519d2
leaq -0x440(%rbp), %rdi
leaq -0x450(%rbp), %rsi
callq 0xc330
jmp 0x519e7
leaq -0x450(%rbp), %rdi
callq 0xc3c0
movl -0x444(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x444(%rbp)
jmp 0x51994
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x51abf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x450(%rbp), %rdi
callq 0xc3c0
jmp 0x51abf
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
movq %rdi, -0x648(%rbp)
addq $0x780, %rdi            # imm = 0x780
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x3d6f0
movq %rax, %rcx
movq -0x648(%rbp), %rax
movslq (%rcx), %rcx
imulq $0x98, %rcx, %rcx
leaq 0x7a0(%rax,%rcx), %rax
movq %rax, -0x640(%rbp)
movl -0x3fc(%rbp), %eax
movl %eax, %esi
leaq -0x3c8(%rbp), %rdi
callq 0x3d6f0
movq -0x640(%rbp), %rdi
movl (%rax), %edx
leaq -0x440(%rbp), %rsi
callq 0x390e0
jmp 0x51ab1
leaq -0x440(%rbp), %rdi
callq 0xc430
jmp 0x51ad0
leaq -0x440(%rbp), %rdi
callq 0xc430
jmp 0x5202b
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rax
movq %rax, -0x650(%rbp)
movl -0x3fc(%rbp), %eax
movl %eax, %esi
leaq -0x3c8(%rbp), %rdi
callq 0x3d6f0
movq -0x650(%rbp), %rsi
movl (%rax), %edx
leaq -0x468(%rbp), %rdi
callq 0x4aff0
jmp 0x51b18
leaq -0x480(%rbp), %rdi
callq 0xc310
jmp 0x51b26
leaq -0x4a8(%rbp), %rdi
callq 0x277b0
movl $0x0, -0x4ac(%rbp)
movl -0x4ac(%rbp), %eax
movl %eax, -0x658(%rbp)
leaq -0x468(%rbp), %rdi
callq 0xcd90
movl %eax, -0x654(%rbp)
jmp 0x51b5c
movl -0x658(%rbp), %eax
movl -0x654(%rbp), %ecx
cmpl %ecx, %eax
jae 0x51bb4
leaq -0x4a8(%rbp), %rdi
movl $0x1, %esi
callq 0x277d0
jmp 0x51b7f
jmp 0x51b81
movl -0x4ac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4ac(%rbp)
jmp 0x51b3c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x5200f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x51ff7
movl $0x0, -0x4b0(%rbp)
movq -0x508(%rbp), %rax
movl -0x4b0(%rbp), %ecx
movq %rcx, -0x660(%rbp)
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
addq $0x760, %rdi            # imm = 0x760
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x52cd0
movq (%rax), %rdi
addq $0x30, %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x660(%rbp), %rax
cmpq %rcx, %rax
jae 0x51cb0
movq -0x508(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x3ac(%rbp), %ecx
movq 0x20(%rax,%rcx,8), %rdi
addq $0x760, %rdi            # imm = 0x760
movl -0x3b0(%rbp), %eax
movl %eax, %esi
callq 0x52cd0
movq (%rax), %rdi
addq $0x30, %rdi
movl -0x4b0(%rbp), %eax
movl %eax, %esi
callq 0x3cf40
movl (%rax), %eax
movl %eax, %esi
leaq -0x4a8(%rbp), %rdi
callq 0x52dc0
movq %rdx, -0x670(%rbp)
movq %rax, -0x668(%rbp)
jmp 0x51c72
movq -0x670(%rbp), %rax
movq -0x668(%rbp), %rcx
movq %rcx, -0x4c0(%rbp)
movq %rax, -0x4b8(%rbp)
leaq -0x4c0(%rbp), %rdi
xorl %esi, %esi
callq 0x27b60
movl -0x4b0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4b0(%rbp)
jmp 0x51bbe
movl $0x0, -0x4c4(%rbp)
movl -0x4c4(%rbp), %eax
movl %eax, -0x678(%rbp)
leaq -0x468(%rbp), %rdi
callq 0xcd90
movl %eax, -0x674(%rbp)
jmp 0x51cda
movl -0x678(%rbp), %eax
movl -0x674(%rbp), %ecx
cmpl %ecx, %eax
jae 0x51e14
movl -0x4c4(%rbp), %eax
movl %eax, %esi
leaq -0x4a8(%rbp), %rdi
callq 0x52dc0
movq %rdx, -0x688(%rbp)
movq %rax, -0x680(%rbp)
jmp 0x51d12
movq -0x688(%rbp), %rax
movq -0x680(%rbp), %rcx
movq %rcx, -0x4d8(%rbp)
movq %rax, -0x4d0(%rbp)
leaq -0x4d8(%rbp), %rdi
callq 0x28960
testb $0x1, %al
jne 0x51d40
jmp 0x51db0
movl -0x4c4(%rbp), %esi
leaq -0x468(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x690(%rbp)
jmp 0x51d5b
movq -0x690(%rbp), %rsi
leaq -0x4e0(%rbp), %rdi
callq 0xca00
jmp 0x51d70
leaq -0x480(%rbp), %rdi
leaq -0x4e0(%rbp), %rsi
callq 0xc330
jmp 0x51d85
leaq -0x4e0(%rbp), %rdi
callq 0xc3c0
jmp 0x51dfe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x4e0(%rbp), %rdi
callq 0xc3c0
jmp 0x51ff7
leaq -0x4e8(%rbp), %rdi
callq 0xd240
jmp 0x51dbe
leaq -0x480(%rbp), %rdi
leaq -0x4e8(%rbp), %rsi
callq 0xc330
jmp 0x51dd3
leaq -0x4e8(%rbp), %rdi
callq 0xc3c0
jmp 0x51dfe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x4e8(%rbp), %rdi
callq 0xc3c0
jmp 0x51ff7
jmp 0x51e00
movl -0x4c4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c4(%rbp)
jmp 0x51cba
movq -0x508(%rbp), %rax
movq 0x48(%rax), %rcx
movq %rcx, -0x6a8(%rbp)
movl 0x9fa4(%rax), %eax
movl %eax, -0x69c(%rbp)
movl -0x3fc(%rbp), %eax
movl %eax, %esi
leaq -0x3c8(%rbp), %rdi
callq 0x3d6f0
movq -0x508(%rbp), %rcx
movq -0x6a8(%rbp), %rdi
movl -0x69c(%rbp), %esi
movl (%rax), %eax
movl 0x9fac(%rcx), %ecx
xorl %edx, %edx
divl %ecx
movl %eax, %edx
leaq -0x4ec(%rbp), %rcx
callq 0x71d0
movq %rax, -0x698(%rbp)
jmp 0x51e7d
movq -0x508(%rbp), %rax
movq -0x698(%rbp), %rcx
movq %rcx, -0x4f8(%rbp)
movl 0x9fac(%rax), %edx
subl $0x1, %edx
shrl $0x3, %edx
addl $0x1, %edx
movq -0x4f8(%rbp), %rcx
movl %edx, %edx
addq %rdx, %rcx
movq %rcx, -0x4f8(%rbp)
movl 0x9fa8(%rax), %eax
movl %eax, -0x6ac(%rbp)
movl -0x3fc(%rbp), %eax
movl %eax, %esi
leaq -0x3c8(%rbp), %rdi
callq 0x3d6f0
movq -0x508(%rbp), %rsi
movl -0x6ac(%rbp), %ecx
movl (%rax), %eax
xorl %edx, %edx
divl 0x9fac(%rsi)
imull %edx, %ecx
movq -0x4f8(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x4f8(%rbp)
movl $0x0, -0x4fc(%rbp)
movq -0x508(%rbp), %rcx
movl -0x4fc(%rbp), %eax
cmpl 0x54(%rcx), %eax
jae 0x51fa7
movl -0x4fc(%rbp), %esi
leaq -0x480(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x6b8(%rbp)
jmp 0x51f3c
movq -0x508(%rbp), %rax
movl -0x4fc(%rbp), %ecx
imulq $0x38, %rcx, %rcx
leaq 0x58(%rax,%rcx), %rdi
movl 0x7c(%rax,%rcx), %eax
movl %eax, -0x6c0(%rbp)
callq 0x3d3d0
movl %eax, -0x6bc(%rbp)
jmp 0x51f69
movl -0x6bc(%rbp), %ecx
movl -0x6c0(%rbp), %edx
movq -0x6b8(%rbp), %rsi
movq -0x508(%rbp), %rdi
leaq -0x4f8(%rbp), %r8
callq 0x496a0
jmp 0x51f91
jmp 0x51f93
movl -0x4fc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4fc(%rbp)
jmp 0x51f0b
movq -0x508(%rbp), %rax
movq 0x48(%rax), %rdi
movl -0x4ec(%rbp), %esi
callq 0x7300
jmp 0x51fbf
leaq -0x4a8(%rbp), %rdi
callq 0x278a0
leaq -0x480(%rbp), %rdi
callq 0xc430
leaq -0x468(%rbp), %rdi
callq 0xc430
movl -0x3fc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3fc(%rbp)
jmp 0x515eb
leaq -0x4a8(%rbp), %rdi
callq 0x278a0
leaq -0x480(%rbp), %rdi
callq 0xc430
leaq -0x468(%rbp), %rdi
callq 0xc430
jmp 0x5202b
leaq -0x3c8(%rbp), %rdi
callq 0xde10
jmp 0x52048
leaq -0x3c8(%rbp), %rdi
callq 0xde10
leaq -0x3a8(%rbp), %rdi
callq 0xc430
jmp 0x520e6
jmp 0x5204a
movl -0x3b0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3b0(%rbp)
jmp 0x51322
jmp 0x52060
movl -0x3ac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3ac(%rbp)
jmp 0x512fb
leaq -0x3a8(%rbp), %rdi
callq 0xc430
leaq -0x388(%rbp), %rdi
callq 0xd4e0
jmp 0x512b8
movl $0x0, -0x4(%rbp)
movl $0x1, -0x58(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0xead0
leaq -0xd0(%rbp), %rdi
callq 0xead0
leaq -0xb8(%rbp), %rdi
callq 0xead0
leaq -0xa0(%rbp), %rdi
callq 0xead0
leaq -0x88(%rbp), %rdi
callq 0xee40
leaq -0x70(%rbp), %rdi
callq 0xee40
jmp 0x5212d
leaq -0xe8(%rbp), %rdi
callq 0xead0
leaq -0xd0(%rbp), %rdi
callq 0xead0
leaq -0xb8(%rbp), %rdi
callq 0xead0
leaq -0xa0(%rbp), %rdi
callq 0xead0
leaq -0x88(%rbp), %rdi
callq 0xee40
leaq -0x70(%rbp), %rdi
callq 0xee40
jmp 0x52139
movl -0x4(%rbp), %eax
addq $0x6c0, %rsp            # imm = 0x6C0
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x6890
nopw %cs:(%rax,%rax)