// File: Konano[P]UselessDatabase/Database.cpp
// Function: Database::buildSel(unsigned int, bool)
void Database::buildSel(uint idx, bool print) {
    if (sel[idx].build) return; 
    sel[idx].build = true;
    for (auto it: sel[idx].recursion) buildSel(-1-it);
    selStop = false;
    for (uint i = 0; i < sel[idx].from.size(); i++) 
        filterTable(sel[idx].from[i].first)->removePointer();
    dfsCross(idx, 0, print);
    if (sel[idx].select.size() == 0 && sel[idx].aggr.size() > 0) {
        uint _idx = 0;
        Table* table = sel_table[idx];
        for (auto it: sel[idx].aggr) switch (it.ty) {
            case AG_COUNT: {
                table->val.push_back(Any((int)table->record_num));
                break;
            }
            case AG_MIN: {
                Any min = Any();
                for (auto _it: table->data) if (min.isNull()) min = _it[_idx]; else if (_it[_idx].isNull()) continue; else if (_it[_idx] < min) min = _it[_idx];
                table->val.push_back(min);
                _idx++;
                break;
            }
            case AG_MAX: {
                Any max = Any();
                for (auto _it: table->data) if (max.isNull()) max = _it[_idx]; else if (_it[_idx].isNull()) continue; else if (_it[_idx] > max) max = _it[_idx];
                table->val.push_back(max);
                _idx++;
                break;
            }
            case AG_SUM: 
            case AG_AVG: {
                if (table->col_ty[_idx].ty == INT) {
                    int sum = 0;
                    int num = 0;
                    for (auto _it: table->data) if (_it[_idx].isNull() == false) num++, sum += _it[_idx].anyRefCast<int>();
                    if (it.ty == AG_SUM) table->val.push_back(Any(sum)); else table->val.push_back(Any((long double)sum / num));
                } else {
                    long double sum = 0;
                    int num = 0;
                    for (auto _it: table->data) if (_it[_idx].isNull() == false) num++, sum += _it[_idx].anyRefCast<long double>();
                    if (it.ty == AG_SUM) table->val.push_back(Any(sum)); else table->val.push_back(Any(sum / num));
                }
                _idx++;
                break;
            }
        }
    }
    uint _idx = 0;
    for (auto it: sel[idx].aggr) {
        if (it.ty == AG_AVG) sel_table[idx]->col_ty[_idx].ty = DECIMAL;
        if (it.ty != AG_COUNT) _idx++;
    }
    if (print && selStop == false && sel_table[idx]->record_num % MAX_RESULT_LINES && sel_table[idx]->printBack(sel_table[idx]->record_num % MAX_RESULT_LINES) == false) {
        sel_table[idx]->print();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x370, %rsp            # imm = 0x370
movb %dl, %al
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
andb $0x1, %al
movb %al, -0xd(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x268(%rbp)
addq $0x848, %rax            # imm = 0x848
movl -0xc(%rbp), %ecx
shlq $0x7, %rcx
addq %rcx, %rax
testb $0x1, (%rax)
je 0x9b5e
jmp 0xaa70
movq -0x268(%rbp), %rax
movq %rax, %rcx
addq $0x848, %rcx            # imm = 0x848
movl -0xc(%rbp), %edx
shlq $0x7, %rdx
addq %rdx, %rcx
movb $0x1, (%rcx)
addq $0x848, %rax            # imm = 0x848
movl -0xc(%rbp), %ecx
shlq $0x7, %rcx
addq %rcx, %rax
addq $0x68, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0xd0f0
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0xd120
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0xd150
testb $0x1, %al
jne 0x9bc1
jmp 0x9bf0
leaq -0x20(%rbp), %rdi
callq 0xd190
movq -0x268(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
subl -0x2c(%rbp), %esi
xorl %edx, %edx
callq 0x9b20
leaq -0x20(%rbp), %rdi
callq 0xd1b0
jmp 0x9bae
movb $0x0, 0xa794b(%rip)     # 0xb1542
movl $0x0, -0x30(%rbp)
movq -0x268(%rbp), %rdi
movl -0x30(%rbp), %eax
movq %rax, -0x270(%rbp)
addq $0x848, %rdi            # imm = 0x848
movl -0xc(%rbp), %eax
shlq $0x7, %rax
addq %rax, %rdi
addq $0x38, %rdi
callq 0xd000
movq %rax, %rcx
movq -0x270(%rbp), %rax
cmpq %rcx, %rax
jae 0x9d0b
movq -0x268(%rbp), %rdi
addq $0x848, %rdi            # imm = 0x848
movl -0xc(%rbp), %eax
shlq $0x7, %rax
addq %rax, %rdi
addq $0x38, %rdi
movl -0x30(%rbp), %eax
movl %eax, %esi
callq 0xd0d0
cmpl $0x0, (%rax)
jge 0x9cb2
movq -0x268(%rbp), %rdi
addq $0x848, %rdi            # imm = 0x848
movl -0xc(%rbp), %eax
shlq $0x7, %rax
addq %rax, %rdi
addq $0x38, %rdi
movl -0x30(%rbp), %eax
movl %eax, %esi
callq 0xd0d0
movq %rax, %rdx
movq -0x268(%rbp), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
subl (%rdx), %ecx
movslq %ecx, %rcx
movq 0x8848(%rax,%rcx,8), %rax
movq %rax, -0x278(%rbp)
jmp 0x9cf1
movq -0x268(%rbp), %rdi
addq $0x848, %rdi            # imm = 0x848
movl -0xc(%rbp), %eax
shlq $0x7, %rax
addq %rax, %rdi
addq $0x38, %rdi
movl -0x30(%rbp), %eax
movl %eax, %esi
callq 0xd0d0
movq %rax, %rcx
movq -0x268(%rbp), %rax
movslq (%rcx), %rcx
movq 0x20(%rax,%rcx,8), %rax
movq %rax, -0x278(%rbp)
movq -0x278(%rbp), %rdi
callq 0x4f040
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x9bfe
movq -0x268(%rbp), %rdi
movl -0xc(%rbp), %esi
movb -0xd(%rbp), %al
xorl %edx, %edx
andb $0x1, %al
movzbl %al, %ecx
callq 0x95a0
movq -0x268(%rbp), %rdi
addq $0x848, %rdi            # imm = 0x848
movl -0xc(%rbp), %eax
shlq $0x7, %rax
addq %rax, %rdi
addq $0x8, %rdi
callq 0xc8d0
cmpq $0x0, %rax
jne 0xa8eb
movq -0x268(%rbp), %rdi
addq $0x848, %rdi            # imm = 0x848
movl -0xc(%rbp), %eax
shlq $0x7, %rax
addq %rax, %rdi
addq $0x20, %rdi
callq 0xca70
cmpq $0x0, %rax
jbe 0xa8eb
movq -0x268(%rbp), %rax
movl $0x0, -0x34(%rbp)
movl -0xc(%rbp), %ecx
movq 0x8848(%rax,%rcx,8), %rcx
movq %rcx, -0x40(%rbp)
addq $0x848, %rax            # imm = 0x848
movl -0xc(%rbp), %ecx
shlq $0x7, %rcx
addq %rcx, %rax
addq $0x20, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0xcc50
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
callq 0xcc80
movq %rax, -0x58(%rbp)
leaq -0x50(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0xccb0
testb $0x1, %al
jne 0x9ddf
jmp 0xa8e9
leaq -0x50(%rbp), %rdi
callq 0xccf0
movq %rax, %rsi
leaq -0x88(%rbp), %rdi
callq 0xcd10
movl -0x88(%rbp), %eax
movq %rax, -0x280(%rbp)
subq $0x4, %rax
ja 0xa8be
movq -0x280(%rbp), %rax
leaq 0x7422c(%rip), %rcx     # 0x7e048
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $0x9fd0, %rcx           # imm = 0x9FD0
movq %rcx, -0x288(%rbp)
movl 0x9fa0(%rax), %eax
movl %eax, -0x94(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0x94(%rbp), %rsi
callq 0xd1d0
jmp 0x9e5b
movq -0x288(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0xc330
jmp 0x9e70
leaq -0x90(%rbp), %rdi
callq 0xc3c0
jmp 0xa8be
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0xa8d8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x90(%rbp), %rdi
callq 0xc3c0
jmp 0xa8d8
leaq -0xb0(%rbp), %rdi
callq 0xd240
jmp 0x9ec9
movq -0x40(%rbp), %rax
addq $0x9fb8, %rax           # imm = 0x9FB8
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rdi
callq 0xd260
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rdi
callq 0xd290
movq %rax, -0xc8(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xd2c0
testb $0x1, %al
jne 0x9f1c
jmp 0xa0b2
leaq -0xc0(%rbp), %rdi
callq 0xd300
movq %rax, %rsi
leaq -0xe0(%rbp), %rdi
callq 0xc400
jmp 0x9f39
leaq -0xb0(%rbp), %rdi
callq 0xc920
movb %al, -0x289(%rbp)
jmp 0x9f4d
movb -0x289(%rbp), %al
testb $0x1, %al
jne 0x9f59
jmp 0x9fc5
movl -0x34(%rbp), %esi
leaq -0xe0(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x298(%rbp)
jmp 0x9f71
movq -0x298(%rbp), %rsi
leaq -0xb0(%rbp), %rdi
callq 0xd320
jmp 0x9f86
jmp 0xa07b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0xa13b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0xc430
jmp 0xa13b
movl -0x34(%rbp), %esi
leaq -0xe0(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x2a0(%rbp)
jmp 0x9fdd
movq -0x2a0(%rbp), %rdi
callq 0xc920
movb %al, -0x2a1(%rbp)
jmp 0x9ff1
movb -0x2a1(%rbp), %al
testb $0x1, %al
jne 0x9ffd
jmp 0xa009
movl $0xb, -0xe4(%rbp)
jmp 0xa085
movl -0x34(%rbp), %esi
leaq -0xe0(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x2b0(%rbp)
jmp 0xa021
movq -0x2b0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0xd370
movb %al, -0x2b1(%rbp)
jmp 0xa03c
movb -0x2b1(%rbp), %al
testb $0x1, %al
jne 0xa048
jmp 0xa077
movl -0x34(%rbp), %esi
leaq -0xe0(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x2c0(%rbp)
jmp 0xa060
movq -0x2c0(%rbp), %rsi
leaq -0xb0(%rbp), %rdi
callq 0xd320
jmp 0xa075
jmp 0xa077
jmp 0xa079
jmp 0xa07b
movl $0x0, -0xe4(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0xc430
movl -0xe4(%rbp), %eax
testl %eax, %eax
je 0xa09f
jmp 0xa09d
jmp 0xa0a1
jmp 0xa0a1
leaq -0xc0(%rbp), %rdi
callq 0xd4e0
jmp 0x9f00
movq -0x40(%rbp), %rax
addq $0x9fd0, %rax           # imm = 0x9FD0
movq %rax, -0x2c8(%rbp)
leaq -0xf0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0xca00
jmp 0xa0d8
movq -0x2c8(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0xc330
jmp 0xa0ed
leaq -0xf0(%rbp), %rdi
callq 0xc3c0
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movl $0x9, -0xe4(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0xc3c0
jmp 0xa8be
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0xc3c0
leaq -0xb0(%rbp), %rdi
callq 0xc3c0
jmp 0xa8d8
leaq -0xf8(%rbp), %rdi
callq 0xd240
jmp 0xa15a
movq -0x40(%rbp), %rax
addq $0x9fb8, %rax           # imm = 0x9FB8
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rdi
callq 0xd260
movq %rax, -0x108(%rbp)
movq -0x100(%rbp), %rdi
callq 0xd290
movq %rax, -0x110(%rbp)
leaq -0x108(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0xd2c0
testb $0x1, %al
jne 0xa1ad
jmp 0xa343
leaq -0x108(%rbp), %rdi
callq 0xd300
movq %rax, %rsi
leaq -0x128(%rbp), %rdi
callq 0xc400
jmp 0xa1ca
leaq -0xf8(%rbp), %rdi
callq 0xc920
movb %al, -0x2c9(%rbp)
jmp 0xa1de
movb -0x2c9(%rbp), %al
testb $0x1, %al
jne 0xa1ea
jmp 0xa256
movl -0x34(%rbp), %esi
leaq -0x128(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x2d8(%rbp)
jmp 0xa202
movq -0x2d8(%rbp), %rsi
leaq -0xf8(%rbp), %rdi
callq 0xd320
jmp 0xa217
jmp 0xa30c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0xa3cc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x128(%rbp), %rdi
callq 0xc430
jmp 0xa3cc
movl -0x34(%rbp), %esi
leaq -0x128(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x2e0(%rbp)
jmp 0xa26e
movq -0x2e0(%rbp), %rdi
callq 0xc920
movb %al, -0x2e1(%rbp)
jmp 0xa282
movb -0x2e1(%rbp), %al
testb $0x1, %al
jne 0xa28e
jmp 0xa29a
movl $0xd, -0xe4(%rbp)
jmp 0xa316
movl -0x34(%rbp), %esi
leaq -0x128(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x2f0(%rbp)
jmp 0xa2b2
movq -0x2f0(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0xd500
movb %al, -0x2f1(%rbp)
jmp 0xa2cd
movb -0x2f1(%rbp), %al
testb $0x1, %al
jne 0xa2d9
jmp 0xa308
movl -0x34(%rbp), %esi
leaq -0x128(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x300(%rbp)
jmp 0xa2f1
movq -0x300(%rbp), %rsi
leaq -0xf8(%rbp), %rdi
callq 0xd320
jmp 0xa306
jmp 0xa308
jmp 0xa30a
jmp 0xa30c
movl $0x0, -0xe4(%rbp)
leaq -0x128(%rbp), %rdi
callq 0xc430
movl -0xe4(%rbp), %eax
testl %eax, %eax
je 0xa330
jmp 0xa32e
jmp 0xa332
jmp 0xa332
leaq -0x108(%rbp), %rdi
callq 0xd4e0
jmp 0xa191
movq -0x40(%rbp), %rax
addq $0x9fd0, %rax           # imm = 0x9FD0
movq %rax, -0x308(%rbp)
leaq -0x130(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0xca00
jmp 0xa369
movq -0x308(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0xc330
jmp 0xa37e
leaq -0x130(%rbp), %rdi
callq 0xc3c0
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movl $0x9, -0xe4(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0xc3c0
jmp 0xa8be
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x130(%rbp), %rdi
callq 0xc3c0
leaq -0xf8(%rbp), %rdi
callq 0xc3c0
jmp 0xa8d8
movq -0x40(%rbp), %rax
addq $0x58, %rax
movl -0x34(%rbp), %ecx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x24(%rax)
jne 0xa660
movl $0x0, -0x134(%rbp)
movl $0x0, -0x138(%rbp)
movq -0x40(%rbp), %rax
addq $0x9fb8, %rax           # imm = 0x9FB8
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rdi
callq 0xd260
movq %rax, -0x148(%rbp)
movq -0x140(%rbp), %rdi
callq 0xd290
movq %rax, -0x150(%rbp)
leaq -0x148(%rbp), %rdi
leaq -0x150(%rbp), %rsi
callq 0xd2c0
testb $0x1, %al
jne 0xa460
jmp 0xa54b
leaq -0x148(%rbp), %rdi
callq 0xd300
movq %rax, %rsi
leaq -0x168(%rbp), %rdi
callq 0xc400
jmp 0xa47d
movl -0x34(%rbp), %esi
leaq -0x168(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x310(%rbp)
jmp 0xa495
movq -0x310(%rbp), %rdi
callq 0xc920
movb %al, -0x311(%rbp)
jmp 0xa4a9
movb -0x311(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0xa52e
movl -0x138(%rbp), %eax
incl %eax
movl %eax, -0x138(%rbp)
movl -0x34(%rbp), %esi
leaq -0x168(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x320(%rbp)
jmp 0xa4df
movq -0x320(%rbp), %rdi
callq 0xd670
movq %rax, -0x328(%rbp)
jmp 0xa4f4
movq -0x328(%rbp), %rax
movl (%rax), %eax
addl -0x134(%rbp), %eax
movl %eax, -0x134(%rbp)
jmp 0xa52e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x168(%rbp), %rdi
callq 0xc430
jmp 0xa8d8
leaq -0x168(%rbp), %rdi
callq 0xc430
leaq -0x148(%rbp), %rdi
callq 0xd4e0
jmp 0xa444
cmpl $0x3, -0x88(%rbp)
jne 0xa5c3
movq -0x40(%rbp), %rax
addq $0x9fd0, %rax           # imm = 0x9FD0
movq %rax, -0x330(%rbp)
leaq -0x170(%rbp), %rdi
leaq -0x134(%rbp), %rsi
callq 0xd1d0
jmp 0xa57a
movq -0x330(%rbp), %rdi
leaq -0x170(%rbp), %rsi
callq 0xc330
jmp 0xa58f
leaq -0x170(%rbp), %rdi
callq 0xc3c0
jmp 0xa65b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x170(%rbp), %rdi
callq 0xc3c0
jmp 0xa8d8
movq -0x40(%rbp), %rax
addq $0x9fd0, %rax           # imm = 0x9FD0
movq %rax, -0x338(%rbp)
movl -0x134(%rbp), %eax
movl %eax, -0x25c(%rbp)
fildl -0x25c(%rbp)
movl -0x138(%rbp), %eax
movl %eax, -0x258(%rbp)
fildl -0x258(%rbp)
fdivrp %st, %st(1)
fstpt -0x190(%rbp)
leaq -0x178(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0xd6c0
jmp 0xa615
movq -0x338(%rbp), %rdi
leaq -0x178(%rbp), %rsi
callq 0xc330
jmp 0xa62a
leaq -0x178(%rbp), %rdi
callq 0xc3c0
jmp 0xa65b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x178(%rbp), %rdi
callq 0xc3c0
jmp 0xa8d8
jmp 0xa8b5
fldz
fstpt -0x1a0(%rbp)
movl $0x0, -0x1a4(%rbp)
movq -0x40(%rbp), %rax
addq $0x9fb8, %rax           # imm = 0x9FB8
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rdi
callq 0xd260
movq %rax, -0x1b8(%rbp)
movq -0x1b0(%rbp), %rdi
callq 0xd290
movq %rax, -0x1c0(%rbp)
leaq -0x1b8(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
callq 0xd2c0
testb $0x1, %al
jne 0xa6c5
jmp 0xa7b2
leaq -0x1b8(%rbp), %rdi
callq 0xd300
movq %rax, %rsi
leaq -0x1d8(%rbp), %rdi
callq 0xc400
jmp 0xa6e2
movl -0x34(%rbp), %esi
leaq -0x1d8(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x340(%rbp)
jmp 0xa6fa
movq -0x340(%rbp), %rdi
callq 0xc920
movb %al, -0x341(%rbp)
jmp 0xa70e
movb -0x341(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0xa795
movl -0x1a4(%rbp), %eax
incl %eax
movl %eax, -0x1a4(%rbp)
movl -0x34(%rbp), %esi
leaq -0x1d8(%rbp), %rdi
callq 0xc8f0
movq %rax, -0x350(%rbp)
jmp 0xa744
movq -0x350(%rbp), %rdi
callq 0xd730
movq %rax, -0x358(%rbp)
jmp 0xa759
movq -0x358(%rbp), %rax
fldt (%rax)
fldt -0x1a0(%rbp)
faddp %st, %st(1)
fstpt -0x1a0(%rbp)
jmp 0xa795
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x1d8(%rbp), %rdi
callq 0xc430
jmp 0xa8d8
leaq -0x1d8(%rbp), %rdi
callq 0xc430
leaq -0x1b8(%rbp), %rdi
callq 0xd4e0
jmp 0xa6a9
cmpl $0x3, -0x88(%rbp)
jne 0xa82a
movq -0x40(%rbp), %rax
addq $0x9fd0, %rax           # imm = 0x9FD0
movq %rax, -0x360(%rbp)
leaq -0x1e0(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0xd6c0
jmp 0xa7e1
movq -0x360(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
callq 0xc330
jmp 0xa7f6
leaq -0x1e0(%rbp), %rdi
callq 0xc3c0
jmp 0xa8b3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x1e0(%rbp), %rdi
callq 0xc3c0
jmp 0xa8d8
movq -0x40(%rbp), %rax
addq $0x9fd0, %rax           # imm = 0x9FD0
movq %rax, -0x368(%rbp)
fldt -0x1a0(%rbp)
movl -0x1a4(%rbp), %eax
movl %eax, -0x254(%rbp)
fildl -0x254(%rbp)
fdivrp %st, %st(1)
fstpt -0x200(%rbp)
leaq -0x1e8(%rbp), %rdi
leaq -0x200(%rbp), %rsi
callq 0xd6c0
jmp 0xa870
movq -0x368(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
callq 0xc330
jmp 0xa885
leaq -0x1e8(%rbp), %rdi
callq 0xc3c0
jmp 0xa8b3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x1e8(%rbp), %rdi
callq 0xc3c0
jmp 0xa8d8
jmp 0xa8b5
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
leaq -0x88(%rbp), %rdi
callq 0xcd50
leaq -0x50(%rbp), %rdi
callq 0xcd70
jmp 0x9dc9
leaq -0x88(%rbp), %rdi
callq 0xcd50
jmp 0xaa79
jmp 0xa8eb
movq -0x268(%rbp), %rax
movl $0x0, -0x204(%rbp)
addq $0x848, %rax            # imm = 0x848
movl -0xc(%rbp), %ecx
shlq $0x7, %rcx
addq %rcx, %rax
addq $0x20, %rax
movq %rax, -0x210(%rbp)
movq -0x210(%rbp), %rdi
callq 0xcc50
movq %rax, -0x218(%rbp)
movq -0x210(%rbp), %rdi
callq 0xcc80
movq %rax, -0x220(%rbp)
leaq -0x218(%rbp), %rdi
leaq -0x220(%rbp), %rsi
callq 0xccb0
testb $0x1, %al
jne 0xa959
jmp 0xa9dc
leaq -0x218(%rbp), %rdi
callq 0xccf0
movq %rax, %rsi
leaq -0x250(%rbp), %rdi
callq 0xcd10
cmpl $0x4, -0x250(%rbp)
jne 0xa9a7
movq -0x268(%rbp), %rax
movl -0xc(%rbp), %ecx
movq 0x8848(%rax,%rcx,8), %rax
addq $0x58, %rax
movl -0x204(%rbp), %ecx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl $0x4, 0x24(%rax)
cmpl $0x0, -0x250(%rbp)
je 0xa9bf
movl -0x204(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x204(%rbp)
leaq -0x250(%rbp), %rdi
callq 0xcd50
leaq -0x218(%rbp), %rdi
callq 0xcd70
jmp 0xa93d
testb $0x1, -0xd(%rbp)
je 0xaa70
movb 0xa6b56(%rip), %al      # 0xb1542
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0xaa70
movq -0x268(%rbp), %rax
movl -0xc(%rbp), %ecx
movq 0x8848(%rax,%rcx,8), %rax
movl 0x9fa0(%rax), %eax
movl $0x32, %ecx
xorl %edx, %edx
divl %ecx
cmpl $0x0, %edx
je 0xaa70
movq -0x268(%rbp), %rax
movl -0xc(%rbp), %ecx
movq 0x8848(%rax,%rcx,8), %rdi
movl -0xc(%rbp), %ecx
movq 0x8848(%rax,%rcx,8), %rax
movl 0x9fa0(%rax), %eax
movl $0x32, %ecx
xorl %edx, %edx
divl %ecx
movl %edx, %esi
callq 0x4e6b0
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0xaa70
movq -0x268(%rbp), %rax
movl -0xc(%rbp), %ecx
movq 0x8848(%rax,%rcx,8), %rdi
callq 0x4d9e0
addq $0x370, %rsp            # imm = 0x370
popq %rbp
retq
movq -0xa0(%rbp), %rdi
callq 0x6890
nopw %cs:(%rax,%rax)