// File: KJTang[P]SimpleCompiler/VirtualMachine.cpp
// Function: VirtualMachine::execute()
bool VirtualMachine::execute() {
    getNextWord();
    while (true) {
        switch (curWord) {
            case (int)OP::EXIT: {
                #ifdef DEBUG
                std::cout<<"-- exit"<<std::endl;
                #endif
                while (!this->data.empty()) {
                    delete[] this->data.back();
                    delete[] this->dataFlag.back();
                    this->data.pop_back();
                    this->dataFlag.pop_back();
                }
                return true;
            }
            case (int)OP::NOP: {
                #ifdef DEBUG
                std::cout<<"-- nop"<<std::endl;
                #endif
                getNextWord();
                break;
            }
            case (int)OP::PRIT: {
                #ifdef DEBUG
                std::cout<<"-- prit"<<std::endl;
                #endif
                std::cout<<this->stack.top()<<std::endl;
                this->stack.pop();
                getNextWord();
                break;
            }
            case (int)OP::SCAN: {
                getNextWord();
                #ifdef DEBUG
                std::cout<<"-- scan "<<this->curWord<<std::endl;
                #endif
                int pos = this->eipStack.size();
                while (pos != -1) {
                    if (this->dataFlag[pos][this->curWord]) {
                        std::cin>>this->data[pos][this->curWord];
                        getNextWord();
                        break;
                    } else {
                        --pos;
                    }
                }
                if (pos == -1) {
                    #ifdef DEBUG
                    std::cout<<"variable not found"<<std::endl;
                    #endif
                    return false;
                }
                break;
            }
            case (int)OP::ADD: {
                #ifdef DEBUG
                std::cout<<"-- add"<<std::endl;
                #endif
                int a = this->stack.top();
                this->stack.pop();
                int b = this->stack.top();
                this->stack.pop();
                this->stack.push(a+b);
                getNextWord();
                break;
            }
            case (int)OP::SUB: {
                #ifdef DEBUG
                std::cout<<"-- sub"<<std::endl;
                #endif
                int a = this->stack.top();
                this->stack.pop();
                int b = this->stack.top();
                this->stack.pop();
                this->stack.push(b-a);
                getNextWord();
                break;
            }
            case (int)OP::MUL: {
                #ifdef DEBUG
                std::cout<<"-- mul"<<std::endl;
                #endif
                int a = this->stack.top();
                this->stack.pop();
                int b = this->stack.top();
                this->stack.pop();
                this->stack.push(a*b);
                getNextWord();
                break;
            }
            case (int)OP::DIV: {
                #ifdef DEBUG
                std::cout<<"-- div"<<std::endl;
                #endif
                int a = this->stack.top();
                this->stack.pop();
                int b = this->stack.top();
                this->stack.pop();
                this->stack.push(b/a);
                getNextWord();
                break;
            }
            case (int)OP::GT: {
                #ifdef DEBUG
                std::cout<<"-- gt"<<std::endl;
                #endif
                int a = this->stack.top();
                this->stack.pop();
                int b = this->stack.top();
                this->stack.pop();
                this->stack.push(b>a?1:0);
                getNextWord();
                break;
            }
            case (int)OP::LT: {
                #ifdef DEBUG
                std::cout<<"-- lt"<<std::endl;
                #endif
                int a = this->stack.top();
                this->stack.pop();
                int b = this->stack.top();
                this->stack.pop();
                this->stack.push(b<a?1:0);
                getNextWord();
                break;
            }
            case (int)OP::GTE: {
                #ifdef DEBUG
                std::cout<<"-- gte"<<std::endl;
                #endif
                int a = this->stack.top();
                this->stack.pop();
                int b = this->stack.top();
                this->stack.pop();
                this->stack.push(b>=a?1:0);
                getNextWord();
                break;
            }
            case (int)OP::LTE: {
                #ifdef DEBUG
                std::cout<<"-- lte"<<std::endl;
                #endif
                int a = this->stack.top();
                this->stack.pop();
                int b = this->stack.top();
                this->stack.pop();
                this->stack.push(b<=a?1:0);
                getNextWord();
                break;
            }
            case (int)OP::EQU: {
                #ifdef DEBUG
                std::cout<<"-- gt"<<std::endl;
                #endif
                int a = this->stack.top();
                this->stack.pop();
                int b = this->stack.top();
                this->stack.pop();
                this->stack.push(b==a?1:0);
                getNextWord();
                break;
            }
            case (int)OP::NE: {
                #ifdef DEBUG
                std::cout<<"-- lt"<<std::endl;
                #endif
                int a = this->stack.top();
                this->stack.pop();
                int b = this->stack.top();
                this->stack.pop();
                this->stack.push(b!=a?1:0);
                getNextWord();
                break;
            }
            case (int)OP::DUP: {
                #ifdef DEBUG
                std::cout<<"-- dup"<<std::endl;
                #endif
                this->stack.push(this->stack.top());
                getNextWord();
                break;
            }
            case (int)OP::POP: {
                #ifdef DEBUG
                std::cout<<"-- pop"<<std::endl;
                #endif
                this->stack.pop();
                getNextWord();
                break;
            }
            case (int)OP::PUSH: {
                getNextWord();
                #ifdef DEBUG
                std::cout<<"-- push "<<curWord<<std::endl;
                #endif
                this->stack.push(curWord);
                getNextWord();
                break;
            }
            case (int)OP::JZ: {
                getNextWord();
                #ifdef DEBUG
                std::cout<<"-- jz "<<this->curWord<<" "<<binCode[curWord]<<std::endl;
                #endif
                if (this->stack.top() == 0) {
                    this->eip = curWord;
                }
                this->stack.pop();
                getNextWord();
                break;
            }
            case (int)OP::JMP: {
                getNextWord();
                #ifdef DEBUG
                std::cout<<"-- jmp "<<this->curWord<<std::endl;
                #endif
                this->eip = curWord;
                getNextWord();
                break;
            }
            case (int)OP::INT: {
                getNextWord();
                #ifdef DEBUG
                std::cout<<"-- int "<<this->curWord<<std::endl;
                #endif
                this->dataFlag[this->eipStack.size()][this->curWord] = true;
                getNextWord();
                break;
            }
            case (int)OP::LOAD: {
                getNextWord();
                #ifdef DEBUG
                std::cout<<"-- load "<<this->curWord<<std::endl;
                #endif
                int pos = this->eipStack.size();
                while (pos != -1) {
                    if (this->dataFlag[pos][this->curWord]) {
                        this->stack.push(this->data[pos][this->curWord]);
                        getNextWord();
                        break;
                    } else {
                        --pos;
                    }    
                }
                if (pos == -1) {
                    #ifdef DEBUG
                    std::cout<<"variable "<<this->curWord<<" not found"<<std::endl;
                    #endif
                    return false;
                }
                break;
            }
            case (int)OP::SAVE: {
                getNextWord();
                #ifdef DEBUG
                std::cout<<"-- save "<<this->curWord<<std::endl;
                #endif
                int pos = this->eipStack.size();
                while (pos != -1) {
                    if (this->dataFlag[pos][this->curWord]) {
                        this->data[pos][this->curWord] = this->stack.top();
                        this->stack.pop();
                        getNextWord();
                        break;
                    } else {
                        --pos;
                    }
                }
                if (pos == -1) {
                    #ifdef DEBUG
                    std::cout<<"variable not found"<<std::endl;
                    #endif
                    return false;
                }
                break;
            }
            case (int)OP::CALL: {
                getNextWord();
                #ifdef DEBUG
                std::cout<<"-- call "<<this->curWord<<std::endl;
                #endif
                this->eipStack.push(this->eip);
                this->eip = this->curWord;
                int *local = new int[DATA_SEG_SIZE];
                this->data.push_back(local);
                bool *localFlag = new bool[DATA_SEG_SIZE];
                memset(localFlag, false, DATA_SEG_SIZE);
                this->dataFlag.push_back(localFlag);
                getNextWord();
                break;
            }
            case (int)OP::FUNC: {
                getNextWord();
                #ifdef DEBUG
                std::cout<<"-- func "<<this->curWord<<std::endl;
                #endif
                while (this->curWord != (int)OP::ENDF) {
                    getNextWord();
                }
                break;
            }
            case (int)OP::RET: {
                #ifdef DEBUG
                std::cout<<"-- ret "<<this->eipStack.top()<<std::endl;
                #endif
                this->eip = this->eipStack.top();
                this->eipStack.pop();
                getNextWord();
                delete[] this->data.back();
                delete[] this->dataFlag.back();
                this->data.pop_back();
                this->dataFlag.pop_back();
                break;
            }
            case (int)OP::ENDF: {
                #ifdef DEBUG
                std::cout<<"-- endf"<<std::endl;
                #endif
                getNextWord();
                break;
            }
            default: {
                #ifdef DEBUG
                std::cout<<"-- unknown: "<<this->curWord<<std::endl;
                #endif
                return false;
            }
        }
        #ifdef DEBUG
        this->printStack();
        this->printData();
        #endif
    }
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x193a0
movq -0xb0(%rbp), %rax
movl 0xf0(%rax), %eax
movq %rax, -0xb8(%rbp)
subq $0x1a, %rax
ja 0x1918e
movq -0xb8(%rbp), %rax
leaq 0x2f61(%rip), %rcx      # 0x1b51c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0x185c6
movq -0xb0(%rbp), %rdi
addq $0x68, %rdi
callq 0x193e0
xorb $-0x1, %al
testb $0x1, %al
jne 0x185e1
jmp 0x18664
movq -0xb0(%rbp), %rdi
addq $0x68, %rdi
callq 0x19420
movq (%rax), %rax
movq %rax, -0xc0(%rbp)
cmpq $0x0, %rax
je 0x1860d
movq -0xc0(%rbp), %rdi
callq 0x3370
movq -0xb0(%rbp), %rdi
addq $0x80, %rdi
callq 0x19460
movq (%rax), %rax
movq %rax, -0xc8(%rbp)
cmpq $0x0, %rax
je 0x1863c
movq -0xc8(%rbp), %rdi
callq 0x3370
movq -0xb0(%rbp), %rdi
addq $0x68, %rdi
callq 0x194a0
movq -0xb0(%rbp), %rdi
addq $0x80, %rdi
callq 0x194d0
jmp 0x185c6
movb $0x1, -0x1(%rbp)
jmp 0x19199
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movl (%rax), %esi
movq 0xf939(%rip), %rdi      # 0x27fd0
callq 0x3450
movq %rax, %rdi
movq 0xf912(%rip), %rsi      # 0x27fb8
callq 0x32e0
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
callq 0x193a0
movq -0xb0(%rbp), %rdi
addq $0xa0, %rdi
callq 0x19360
movl %eax, -0x14(%rbp)
cmpl $-0x1, -0x14(%rbp)
je 0x1877d
movq -0xb0(%rbp), %rdi
addq $0x80, %rdi
movslq -0x14(%rbp), %rsi
callq 0x19500
movq -0xb0(%rbp), %rcx
movq (%rax), %rax
movslq 0xf0(%rcx), %rcx
testb $0x1, (%rax,%rcx)
je 0x1876f
movq -0xb0(%rbp), %rdi
addq $0x68, %rdi
movslq -0x14(%rbp), %rsi
callq 0x19380
movq %rax, %rcx
movq -0xb0(%rbp), %rax
movq (%rcx), %rsi
movslq 0xf0(%rax), %rax
shlq $0x2, %rax
addq %rax, %rsi
movq 0xf884(%rip), %rdi      # 0x27fe0
callq 0x31b0
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x1877d
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x186ee
cmpl $-0x1, -0x14(%rbp)
jne 0x1878c
movb $0x0, -0x1(%rbp)
jmp 0x19199
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x18(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
movl -0x18(%rbp), %eax
addl -0x1c(%rbp), %eax
movl %eax, -0x20(%rbp)
leaq -0x20(%rbp), %rsi
callq 0x10490
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x24(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x28(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
movl -0x28(%rbp), %eax
subl -0x24(%rbp), %eax
movl %eax, -0x2c(%rbp)
leaq -0x2c(%rbp), %rsi
callq 0x10490
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x30(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x34(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
movl -0x30(%rbp), %eax
imull -0x34(%rbp), %eax
movl %eax, -0x38(%rbp)
leaq -0x38(%rbp), %rsi
callq 0x10490
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x3c(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x40(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
movl -0x40(%rbp), %eax
cltd
idivl -0x3c(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x44(%rbp), %rsi
callq 0x10490
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x48(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
movl -0x4c(%rbp), %edx
movl -0x48(%rbp), %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpl %esi, %edx
cmovgl %ecx, %eax
movl %eax, -0x50(%rbp)
leaq -0x50(%rbp), %rsi
callq 0x10490
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x54(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x58(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
movl -0x58(%rbp), %edx
movl -0x54(%rbp), %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpl %esi, %edx
cmovll %ecx, %eax
movl %eax, -0x5c(%rbp)
leaq -0x5c(%rbp), %rsi
callq 0x10490
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x60(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x64(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
movl -0x64(%rbp), %edx
movl -0x60(%rbp), %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpl %esi, %edx
cmovgel %ecx, %eax
movl %eax, -0x68(%rbp)
leaq -0x68(%rbp), %rsi
callq 0x10490
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x6c(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x70(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
movl -0x70(%rbp), %edx
movl -0x6c(%rbp), %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpl %esi, %edx
cmovlel %ecx, %eax
movl %eax, -0x74(%rbp)
leaq -0x74(%rbp), %rsi
callq 0x10490
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x78(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x7c(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
movl -0x7c(%rbp), %edx
movl -0x78(%rbp), %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpl %esi, %edx
cmovel %ecx, %eax
movl %eax, -0x80(%rbp)
leaq -0x80(%rbp), %rsi
callq 0x10490
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x84(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x88(%rbp)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
movl -0x88(%rbp), %edx
movl -0x84(%rbp), %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpl %esi, %edx
cmovnel %ecx, %eax
movl %eax, -0x8c(%rbp)
leaq -0x8c(%rbp), %rsi
callq 0x10490
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
movq %rdi, %rax
addq $0x18, %rax
movq %rax, -0xd0(%rbp)
addq $0x18, %rdi
callq 0x10360
movq -0xd0(%rbp), %rdi
movq %rax, %rsi
callq 0x19520
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
callq 0x193a0
movq -0xb0(%rbp), %rsi
movq %rsi, %rdi
addq $0x18, %rdi
addq $0xf0, %rsi
callq 0x19520
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
callq 0x193a0
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
cmpl $0x0, (%rax)
jne 0x18d67
movq -0xb0(%rbp), %rax
movl 0xf0(%rax), %ecx
movl %ecx, 0x98(%rax)
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
callq 0x193a0
movq -0xb0(%rbp), %rdi
movl 0xf0(%rdi), %eax
movl %eax, 0x98(%rdi)
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
callq 0x193a0
movq -0xb0(%rbp), %rdi
movq %rdi, %rax
addq $0x80, %rax
movq %rax, -0xd8(%rbp)
addq $0xa0, %rdi
callq 0x19360
movq -0xd8(%rbp), %rdi
movq %rax, %rsi
callq 0x19500
movq -0xb0(%rbp), %rdi
movq (%rax), %rax
movslq 0xf0(%rdi), %rcx
movb $0x1, (%rax,%rcx)
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
callq 0x193a0
movq -0xb0(%rbp), %rdi
addq $0xa0, %rdi
callq 0x19360
movl %eax, -0x90(%rbp)
cmpl $-0x1, -0x90(%rbp)
je 0x18edf
movq -0xb0(%rbp), %rdi
addq $0x80, %rdi
movslq -0x90(%rbp), %rsi
callq 0x19500
movq -0xb0(%rbp), %rcx
movq (%rax), %rax
movslq 0xf0(%rcx), %rcx
testb $0x1, (%rax,%rcx)
je 0x18ecb
movq -0xb0(%rbp), %rdi
movq %rdi, %rax
addq $0x18, %rax
movq %rax, -0xe0(%rbp)
addq $0x68, %rdi
movslq -0x90(%rbp), %rsi
callq 0x19380
movq -0xe0(%rbp), %rdi
movq %rax, %rcx
movq -0xb0(%rbp), %rax
movq (%rcx), %rsi
movslq 0xf0(%rax), %rax
shlq $0x2, %rax
addq %rax, %rsi
callq 0x19520
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x18edf
movl -0x90(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x90(%rbp)
jmp 0x18e33
cmpl $-0x1, -0x90(%rbp)
jne 0x18ef1
movb $0x0, -0x1(%rbp)
jmp 0x19199
jmp 0x19194
movq -0xb0(%rbp), %rdi
callq 0x193a0
movq -0xb0(%rbp), %rdi
addq $0xa0, %rdi
callq 0x19360
movl %eax, -0x94(%rbp)
cmpl $-0x1, -0x94(%rbp)
je 0x18fcd
movq -0xb0(%rbp), %rdi
addq $0x80, %rdi
movslq -0x94(%rbp), %rsi
callq 0x19500
movq -0xb0(%rbp), %rcx
movq (%rax), %rax
movslq 0xf0(%rcx), %rcx
testb $0x1, (%rax,%rcx)
je 0x18fb9
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0xe4(%rbp)
addq $0x68, %rdi
movslq -0x94(%rbp), %rsi
callq 0x19380
movl -0xe4(%rbp), %edx
movq -0xb0(%rbp), %rdi
movq (%rax), %rax
movslq 0xf0(%rdi), %rcx
movl %edx, (%rax,%rcx,4)
addq $0x18, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x18fcd
movl -0x94(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x94(%rbp)
jmp 0x18f1b
cmpl $-0x1, -0x94(%rbp)
jne 0x18fdf
movb $0x0, -0x1(%rbp)
jmp 0x19199
jmp 0x19194
movq -0xb0(%rbp), %rdi
callq 0x193a0
movq -0xb0(%rbp), %rsi
movq %rsi, %rdi
addq $0xa0, %rdi
addq $0x98, %rsi
callq 0x19520
movq -0xb0(%rbp), %rax
movl 0xf0(%rax), %ecx
movl %ecx, 0x98(%rax)
movl $0x190, %edi            # imm = 0x190
callq 0x3030
movq -0xb0(%rbp), %rdi
movq %rax, -0xa0(%rbp)
addq $0x68, %rdi
leaq -0xa0(%rbp), %rsi
callq 0x19280
movl $0x64, %edi
callq 0x3030
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdi
xorl %esi, %esi
movl $0x64, %edx
callq 0x3180
movq -0xb0(%rbp), %rdi
addq $0x80, %rdi
leaq -0xa8(%rbp), %rsi
callq 0x192f0
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movq -0xb0(%rbp), %rdi
callq 0x193a0
movq -0xb0(%rbp), %rax
cmpl $0x1a, 0xf0(%rax)
je 0x190c1
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x190a3
jmp 0x19194
movq -0xb0(%rbp), %rdi
addq $0xa0, %rdi
callq 0x10360
movq -0xb0(%rbp), %rdi
movl (%rax), %eax
movl %eax, 0x98(%rdi)
addq $0xa0, %rdi
callq 0x10380
movq -0xb0(%rbp), %rdi
callq 0x193a0
movq -0xb0(%rbp), %rdi
addq $0x68, %rdi
callq 0x19420
movq (%rax), %rax
movq %rax, -0xf0(%rbp)
cmpq $0x0, %rax
je 0x1912c
movq -0xf0(%rbp), %rdi
callq 0x3370
movq -0xb0(%rbp), %rdi
addq $0x80, %rdi
callq 0x19460
movq (%rax), %rax
movq %rax, -0xf8(%rbp)
cmpq $0x0, %rax
je 0x1915b
movq -0xf8(%rbp), %rdi
callq 0x3370
movq -0xb0(%rbp), %rdi
addq $0x68, %rdi
callq 0x194a0
movq -0xb0(%rbp), %rdi
addq $0x80, %rdi
callq 0x194d0
jmp 0x19194
movq -0xb0(%rbp), %rdi
callq 0x193a0
jmp 0x19194
movb $0x0, -0x1(%rbp)
jmp 0x19199
jmp 0x1858f
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopw (%rax,%rax)