// File: Konano[P]UselessDatabase/Index.cpp
// Function: Index::queryRecordsNum(enumOp, Anys&, int)
uint Index::queryRecordsNum(enumOp op, Anys& data, int now_index){
    BtreeNode* now = Index::convert_buf_to_BtreeNode(now_index);

    uint ans = 0;
    std::vector<uint> temp;

    int i;
    for (i = 0; i < now->record_cnt; i++) {
        bool flag = false;
        switch(op){
            case OP_EQ:{
                if(now->record[i].key == data){
                    ans++;
                    temp.push_back(i);
                }
                else if(now->record[i].key > data){
                    flag = true;
                }
                break;
            }
            case OP_NEQ:{
                if(now->record[i].key != data){
                    ans++;
                    temp.push_back(i);
                }
                break;
            }
            case OP_LE:{
                if(now->record[i].key <= data){
                    ans++;
                    temp.push_back(i);
                }
                else if(now->record[i].key > data){
                    flag = true;
                }
                break;
            }
            case OP_GE:{
                if(now->record[i].key >= data){
                    ans++;
                    temp.push_back(i);
                }
                break;
            }
            case OP_LS:{
                if(now->record[i].key < data){
                    ans++;
                    temp.push_back(i);
                }
                else if(now->record[i].key >= data){
                    flag = true;
                }
                break;
            }
            case OP_GT:{
                if(now->record[i].key > data){
                    ans++;
                    temp.push_back(i);
                }
                break;
            }
            case OP_NL:{
                bool ok = true;
                for(uint j = 0;j < now->record[i].key.size();j ++){
                    if(!now->record[i].key[j].isNull()){
                        ok = false;
                        break;
                    }
                }
                if(ok){
                    ans ++;
                    temp.push_back(i);
                }
                break;
            }
            case OP_NNL:{
                bool ok = false;
                for(uint j = 0;j < now->record[i].key.size();j ++){
                    if(!now->record[i].key[j].isNull()){
                        ok = true;
                        break;
                    }
                }
                if(ok){
                    ans ++;
                    temp.push_back(i);
                }
                break;
            }
            case OP_IN:{
                //UnReachable
                break;
            }
        }
        if(flag)break;
    }

    switch(op){
        case OP_EQ:{
            for(uint i = 0;i < temp.size();i ++){
                if(now->child[temp[i]] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i]]);
                }
                if(i == temp.size() - 1 && now->child[temp[i] + 1] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i] + 1]);
                }
            }
            break;
        }
        case OP_NEQ:{
            for(uint i = 0;i < temp.size();i ++){
                if(now->child[temp[i]] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i]]);
                }
                if(i == temp.size() - 1 && now->child[temp[i] + 1] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i] + 1]);
                }
                if(i < temp.size() - 1 && temp[i] != temp[i + 1] - 1 && now->child[temp[i] + 1] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i] + 1]);
                }
            }
            break;
        }
        case OP_LE:{
            for(uint i = 0;i < temp.size();i ++){
                if(now->child[temp[i]] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i]]);
                }
                if(i == temp.size() - 1 && now->child[temp[i] + 1] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i] + 1]);
                }
            }
            break;
        }
        case OP_GE:{
            for(uint i = 0;i < temp.size();i ++){
                if(now->child[temp[i]] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i]]);
                }
                if(i == temp.size() - 1 && now->child[temp[i] + 1] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i] + 1]);
                }
            }
            break;
        }
        case OP_LS:{
            for(uint i = 0;i < temp.size();i ++){
                if(now->child[temp[i]] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i]]);
                }
                if(i == temp.size() - 1 && now->child[temp[i] + 1] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i] + 1]);
                }
            }
            break;
        }
        case OP_GT:{
            for(uint i = 0;i < temp.size();i ++){
                if(now->child[temp[i]] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i]]);
                }
                if(i == temp.size() - 1 && now->child[temp[i] + 1] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i] + 1]);
                }
            }
            break;
        }
        case OP_NL:{
            for(uint i = 0;i < temp.size();i ++){
                if(now->child[temp[i]] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i]]);
                }
                if(i == temp.size() - 1 && now->child[temp[i] + 1] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i] + 1]);
                }
            }
            break;
        }
        case OP_NNL:{
            for(uint i = 0;i < temp.size();i ++){
                if(now->child[temp[i]] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i]]);
                }
                if(i == temp.size() - 1 && now->child[temp[i] + 1] != -1){
                    ans += queryRecordsNum(op,data,now->child[temp[i] + 1]);
                }
            }
            break;
        }
        case OP_IN:{
            //UnReachable
            break;
        }
    }

    return ans;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x450, %rsp            # imm = 0x450
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xb8(%rbp)
movl -0x1c(%rbp), %esi
callq 0x36fd0
movq %rax, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xec40
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x1c(%rcx), %eax
jge 0x39c10
movb $0x0, -0x4d(%rbp)
movl -0xc(%rbp), %eax
movq %rax, -0xc0(%rbp)
subq $0x8, %rax
ja 0x39bf8
movq -0xc0(%rbp), %rax
leaq 0x4a0a3(%rip), %rcx     # 0x837f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rsi
callq 0xc500
movb %al, -0xc1(%rbp)
jmp 0x3977f
movb -0xc1(%rbp), %al
testb $0x1, %al
jne 0x3978b
jmp 0x397c4
movl -0x2c(%rbp), %eax
incl %eax
movl %eax, -0x2c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x60(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x3d060
jmp 0x397a8
jmp 0x397ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xee40
jmp 0x3ac0c
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rsi
callq 0xc710
movb %al, -0xc2(%rbp)
jmp 0x397ed
movb -0xc2(%rbp), %al
testb $0x1, %al
jne 0x397f9
jmp 0x397fd
movb $0x1, -0x4d(%rbp)
jmp 0x397ff
jmp 0x39bf8
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rsi
callq 0xc5a0
movb %al, -0xc3(%rbp)
jmp 0x3982d
movb -0xc3(%rbp), %al
testb $0x1, %al
jne 0x39839
jmp 0x39858
movl -0x2c(%rbp), %eax
incl %eax
movl %eax, -0x2c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x64(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x64(%rbp), %rsi
callq 0x3d060
jmp 0x39856
jmp 0x39858
jmp 0x39bf8
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rsi
callq 0xc5d0
movb %al, -0xc4(%rbp)
jmp 0x39886
movb -0xc4(%rbp), %al
testb $0x1, %al
jne 0x39892
jmp 0x398b1
movl -0x2c(%rbp), %eax
incl %eax
movl %eax, -0x2c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x68(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x3d060
jmp 0x398af
jmp 0x398ec
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rsi
callq 0xc710
movb %al, -0xc5(%rbp)
jmp 0x398da
movb -0xc5(%rbp), %al
testb $0x1, %al
jne 0x398e6
jmp 0x398ea
movb $0x1, -0x4d(%rbp)
jmp 0x398ec
jmp 0x39bf8
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rsi
callq 0xc600
movb %al, -0xc6(%rbp)
jmp 0x3991a
movb -0xc6(%rbp), %al
testb $0x1, %al
jne 0x39926
jmp 0x39945
movl -0x2c(%rbp), %eax
incl %eax
movl %eax, -0x2c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x6c(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x6c(%rbp), %rsi
callq 0x3d060
jmp 0x39943
jmp 0x39945
jmp 0x39bf8
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rsi
callq 0xc630
movb %al, -0xc7(%rbp)
jmp 0x39973
movb -0xc7(%rbp), %al
testb $0x1, %al
jne 0x3997f
jmp 0x3999e
movl -0x2c(%rbp), %eax
incl %eax
movl %eax, -0x2c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x70(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x3d060
jmp 0x3999c
jmp 0x399d9
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rsi
callq 0xc600
movb %al, -0xc8(%rbp)
jmp 0x399c7
movb -0xc8(%rbp), %al
testb $0x1, %al
jne 0x399d3
jmp 0x399d7
movb $0x1, -0x4d(%rbp)
jmp 0x399d9
jmp 0x39bf8
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rsi
callq 0xc710
movb %al, -0xc9(%rbp)
jmp 0x39a07
movb -0xc9(%rbp), %al
testb $0x1, %al
jne 0x39a13
jmp 0x39a32
movl -0x2c(%rbp), %eax
incl %eax
movl %eax, -0x2c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x74(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x74(%rbp), %rsi
callq 0x3d060
jmp 0x39a30
jmp 0x39a32
jmp 0x39bf8
movb $0x1, -0x75(%rbp)
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
movl %eax, -0xd4(%rbp)
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
callq 0xcd90
movl %eax, -0xd0(%rbp)
jmp 0x39a70
movl -0xd4(%rbp), %eax
movl -0xd0(%rbp), %ecx
cmpl %ecx, %eax
jae 0x39adf
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
movl -0x7c(%rbp), %esi
callq 0xc8f0
movq %rax, -0xe0(%rbp)
jmp 0x39aa9
movq -0xe0(%rbp), %rdi
callq 0xc920
movb %al, -0xe1(%rbp)
jmp 0x39abd
movb -0xe1(%rbp), %al
testb $0x1, %al
jne 0x39acf
jmp 0x39ac9
movb $0x0, -0x75(%rbp)
jmp 0x39adf
jmp 0x39ad1
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x39a42
testb $0x1, -0x75(%rbp)
je 0x39b04
movl -0x2c(%rbp), %eax
incl %eax
movl %eax, -0x2c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x80(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x3d060
jmp 0x39b02
jmp 0x39b04
jmp 0x39bf8
movb $0x0, -0x81(%rbp)
movl $0x0, -0x88(%rbp)
movl -0x88(%rbp), %eax
movl %eax, -0xec(%rbp)
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
callq 0xcd90
movl %eax, -0xe8(%rbp)
jmp 0x39b4b
movl -0xec(%rbp), %eax
movl -0xe8(%rbp), %ecx
cmpl %ecx, %eax
jae 0x39bc6
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movslq -0x4c(%rbp), %rsi
callq 0x3d7a0
movq %rax, %rdi
addq $0x8, %rdi
movl -0x88(%rbp), %esi
callq 0xc8f0
movq %rax, -0xf8(%rbp)
jmp 0x39b87
movq -0xf8(%rbp), %rdi
callq 0xc920
movb %al, -0xf9(%rbp)
jmp 0x39b9b
movb -0xf9(%rbp), %al
testb $0x1, %al
jne 0x39bb0
jmp 0x39ba7
movb $0x1, -0x81(%rbp)
jmp 0x39bc6
jmp 0x39bb2
movl -0x88(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x88(%rbp)
jmp 0x39b1a
testb $0x1, -0x81(%rbp)
je 0x39bf4
movl -0x2c(%rbp), %eax
incl %eax
movl %eax, -0x2c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x8c(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x8c(%rbp), %rsi
callq 0x3d060
jmp 0x39bf2
jmp 0x39bf4
jmp 0x39bf8
jmp 0x39bf8
testb $0x1, -0x4d(%rbp)
je 0x39c00
jmp 0x39c10
jmp 0x39c02
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x39717
movl -0xc(%rbp), %eax
movq %rax, -0x108(%rbp)
subq $0x8, %rax
ja 0x3abeb
movq -0x108(%rbp), %rax
leaq 0x49be2(%rip), %rcx     # 0x83814
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, -0x90(%rbp)
movl -0x90(%rbp), %eax
movq %rax, -0x110(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x110(%rbp), %rax
cmpq %rcx, %rax
jae 0x39e08
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x118(%rbp)
movl -0x90(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x118(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x39d16
movl -0xc(%rbp), %eax
movl %eax, -0x12c(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x138(%rbp)
movl -0x90(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x138(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x12c(%rbp), %esi
movq -0x128(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x11c(%rbp)
jmp 0x39d0a
movl -0x11c(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x90(%rbp), %eax
movq %rax, -0x140(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x140(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x39df2
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x148(%rbp)
movl -0x90(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x148(%rbp), %rdi
movl (%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x39df2
movl -0xc(%rbp), %eax
movl %eax, -0x15c(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x168(%rbp)
movl -0x90(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x168(%rbp), %rdi
movl (%rax), %eax
incl %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x15c(%rbp), %esi
movq -0x158(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x14c(%rbp)
jmp 0x39de6
movl -0x14c(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x39df4
movl -0x90(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x90(%rbp)
jmp 0x39c45
jmp 0x3abeb
movl $0x0, -0x94(%rbp)
movl -0x94(%rbp), %eax
movq %rax, -0x170(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x170(%rbp), %rax
cmpq %rcx, %rax
jae 0x3a0fb
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x178(%rbp)
movl -0x94(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x178(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x39ee8
movl -0xc(%rbp), %eax
movl %eax, -0x18c(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x198(%rbp)
movl -0x94(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x198(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x18c(%rbp), %esi
movq -0x188(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x17c(%rbp)
jmp 0x39edc
movl -0x17c(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x94(%rbp), %eax
movq %rax, -0x1a0(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x1a0(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x39fc4
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x1a8(%rbp)
movl -0x94(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x1a8(%rbp), %rdi
movl (%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x39fc4
movl -0xc(%rbp), %eax
movl %eax, -0x1bc(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x1c8(%rbp)
movl -0x94(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x1c8(%rbp), %rdi
movl (%rax), %eax
incl %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x1bc(%rbp), %esi
movq -0x1b8(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x1ac(%rbp)
jmp 0x39fb8
movl -0x1ac(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x94(%rbp), %eax
movq %rax, -0x1d0(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x1d0(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x3a0e5
movl -0x94(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movl (%rax), %eax
movl %eax, -0x1d4(%rbp)
movl -0x94(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq %rax, %rcx
movl -0x1d4(%rbp), %eax
movl (%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
je 0x3a0e5
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x1e0(%rbp)
movl -0x94(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x1e0(%rbp), %rdi
movl (%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3a0e5
movl -0xc(%rbp), %eax
movl %eax, -0x1f4(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x200(%rbp)
movl -0x94(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x200(%rbp), %rdi
movl (%rax), %eax
incl %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x1f4(%rbp), %esi
movq -0x1f0(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x1e4(%rbp)
jmp 0x3a0d9
movl -0x1e4(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x3a0e7
movl -0x94(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x94(%rbp)
jmp 0x39e17
jmp 0x3abeb
movl $0x0, -0x98(%rbp)
movl -0x98(%rbp), %eax
movq %rax, -0x208(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x208(%rbp), %rax
cmpq %rcx, %rax
jae 0x3a2cd
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x210(%rbp)
movl -0x98(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x210(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3a1db
movl -0xc(%rbp), %eax
movl %eax, -0x224(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x230(%rbp)
movl -0x98(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x230(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x224(%rbp), %esi
movq -0x220(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x214(%rbp)
jmp 0x3a1cf
movl -0x214(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x98(%rbp), %eax
movq %rax, -0x238(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x238(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x3a2b7
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x240(%rbp)
movl -0x98(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x240(%rbp), %rdi
movl (%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3a2b7
movl -0xc(%rbp), %eax
movl %eax, -0x254(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x250(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x260(%rbp)
movl -0x98(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x260(%rbp), %rdi
movl (%rax), %eax
incl %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x254(%rbp), %esi
movq -0x250(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x244(%rbp)
jmp 0x3a2ab
movl -0x244(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x3a2b9
movl -0x98(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x98(%rbp)
jmp 0x3a10a
jmp 0x3abeb
movl $0x0, -0x9c(%rbp)
movl -0x9c(%rbp), %eax
movq %rax, -0x268(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x268(%rbp), %rax
cmpq %rcx, %rax
jae 0x3a49f
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x270(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x270(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3a3ad
movl -0xc(%rbp), %eax
movl %eax, -0x284(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x280(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x290(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x290(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x284(%rbp), %esi
movq -0x280(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x274(%rbp)
jmp 0x3a3a1
movl -0x274(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x9c(%rbp), %eax
movq %rax, -0x298(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x298(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x3a489
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x2a0(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x2a0(%rbp), %rdi
movl (%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3a489
movl -0xc(%rbp), %eax
movl %eax, -0x2b4(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x2c0(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x2c0(%rbp), %rdi
movl (%rax), %eax
incl %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x2b4(%rbp), %esi
movq -0x2b0(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x2a4(%rbp)
jmp 0x3a47d
movl -0x2a4(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x3a48b
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x3a2dc
jmp 0x3abeb
movl $0x0, -0xa0(%rbp)
movl -0xa0(%rbp), %eax
movq %rax, -0x2c8(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x2c8(%rbp), %rax
cmpq %rcx, %rax
jae 0x3a671
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x2d0(%rbp)
movl -0xa0(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x2d0(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3a57f
movl -0xc(%rbp), %eax
movl %eax, -0x2e4(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x2e0(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x2f0(%rbp)
movl -0xa0(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x2f0(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x2e4(%rbp), %esi
movq -0x2e0(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x2d4(%rbp)
jmp 0x3a573
movl -0x2d4(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0xa0(%rbp), %eax
movq %rax, -0x2f8(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x2f8(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x3a65b
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x300(%rbp)
movl -0xa0(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x300(%rbp), %rdi
movl (%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3a65b
movl -0xc(%rbp), %eax
movl %eax, -0x314(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x310(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x320(%rbp)
movl -0xa0(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x320(%rbp), %rdi
movl (%rax), %eax
incl %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x314(%rbp), %esi
movq -0x310(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x304(%rbp)
jmp 0x3a64f
movl -0x304(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x3a65d
movl -0xa0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa0(%rbp)
jmp 0x3a4ae
jmp 0x3abeb
movl $0x0, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
movq %rax, -0x328(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x328(%rbp), %rax
cmpq %rcx, %rax
jae 0x3a843
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x330(%rbp)
movl -0xa4(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x330(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3a751
movl -0xc(%rbp), %eax
movl %eax, -0x344(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x340(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x350(%rbp)
movl -0xa4(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x350(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x344(%rbp), %esi
movq -0x340(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x334(%rbp)
jmp 0x3a745
movl -0x334(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0xa4(%rbp), %eax
movq %rax, -0x358(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x358(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x3a82d
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x360(%rbp)
movl -0xa4(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x360(%rbp), %rdi
movl (%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3a82d
movl -0xc(%rbp), %eax
movl %eax, -0x374(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x370(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x380(%rbp)
movl -0xa4(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x380(%rbp), %rdi
movl (%rax), %eax
incl %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x374(%rbp), %esi
movq -0x370(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x364(%rbp)
jmp 0x3a821
movl -0x364(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x3a82f
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0x3a680
jmp 0x3abeb
movl $0x0, -0xa8(%rbp)
movl -0xa8(%rbp), %eax
movq %rax, -0x388(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x388(%rbp), %rax
cmpq %rcx, %rax
jae 0x3aa15
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x390(%rbp)
movl -0xa8(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x390(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3a923
movl -0xc(%rbp), %eax
movl %eax, -0x3a4(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x3a0(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x3b0(%rbp)
movl -0xa8(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x3b0(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x3a4(%rbp), %esi
movq -0x3a0(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x394(%rbp)
jmp 0x3a917
movl -0x394(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0xa8(%rbp), %eax
movq %rax, -0x3b8(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x3b8(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x3a9ff
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x3c0(%rbp)
movl -0xa8(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x3c0(%rbp), %rdi
movl (%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3a9ff
movl -0xc(%rbp), %eax
movl %eax, -0x3d4(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x3d0(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x3e0(%rbp)
movl -0xa8(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x3e0(%rbp), %rdi
movl (%rax), %eax
incl %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x3d4(%rbp), %esi
movq -0x3d0(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x3c4(%rbp)
jmp 0x3a9f3
movl -0x3c4(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x3aa01
movl -0xa8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa8(%rbp)
jmp 0x3a852
jmp 0x3abeb
movl $0x0, -0xac(%rbp)
movl -0xac(%rbp), %eax
movq %rax, -0x3e8(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x3e8(%rbp), %rax
cmpq %rcx, %rax
jae 0x3abe7
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x3f0(%rbp)
movl -0xac(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x3f0(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3aaf5
movl -0xc(%rbp), %eax
movl %eax, -0x404(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x400(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x410(%rbp)
movl -0xac(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x410(%rbp), %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x404(%rbp), %esi
movq -0x400(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x3f4(%rbp)
jmp 0x3aae9
movl -0x3f4(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0xac(%rbp), %eax
movq %rax, -0x418(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3d1f0
movq %rax, %rcx
movq -0x418(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x3abd1
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x420(%rbp)
movl -0xac(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x420(%rbp), %rdi
movl (%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
callq 0x3d6f0
cmpl $-0x1, (%rax)
je 0x3abd1
movl -0xc(%rbp), %eax
movl %eax, -0x434(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x430(%rbp)
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x440(%rbp)
movl -0xac(%rbp), %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x3cf40
movq -0x440(%rbp), %rdi
movl (%rax), %eax
incl %eax
movl %eax, %esi
callq 0x3d6f0
movq -0xb8(%rbp), %rdi
movl -0x434(%rbp), %esi
movq -0x430(%rbp), %rdx
movl (%rax), %ecx
callq 0x396d0
movl %eax, -0x424(%rbp)
jmp 0x3abc5
movl -0x424(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x3abd3
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0x3aa24
jmp 0x3abeb
jmp 0x3abeb
movl -0x2c(%rbp), %eax
movl %eax, -0x444(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xee40
movl -0x444(%rbp), %eax
addq $0x450, %rsp            # imm = 0x450
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x6890
nopw %cs:(%rax,%rax)