// File: /workspace/github_cpp_makefile_star2_O1/martinda3[P]Compiler/src/JVM/JVMgenerateExpression.cpp
// Function: toyc::JVMgenerateExpression::genExpression(toyc::ASexpression*, toyc::JVMtargetCode*)
void JVMgenerateExpression::genExpression(ASexpression *ast, JVMtargetCode *tc) {
        TCtoken *check1;
        std::string cleanup, idd;
        ASsimpleExpr *se;
        enum exprType etype = ast->getType();
        if (etype == EXPRexpr) {
            ASexpr *be = dynamic_cast<ASexpr *>(ast);

            ASoperator *temp = be->getOper();
            TCtoken *op = temp->getExpr();

            if (op->getTokenType() == DIVOP) {
                genExpression(be->getOp2(), tc);
                genExpression(be->getOp1(), tc);
            } else { genExpression(be->getOp1(), tc); }

            if (op->getTokenType() == ASSIGNOP) {
                se = dynamic_cast<ASsimpleExpr *>(be->getOp2());
                check1 = dynamic_cast<TCtoken *>(se->getExpr());
                JVMgenUtils::gen_ISTORE(*symTable->getSym(symTable->find(check1->getLexeme())), tc);
            }
            else {
                if (op->getTokenType() != DIVOP) { genExpression(be->getOp2(), tc); }
                switch (op->getTokenType()) {
                    case ADDOP:     JVMgenUtils::gen_ADDOP(*op, tc);    break;  // Untested
                    case MULOP:  /*JVMgenUtils::gen_MULOP(*op, tc);*/   break;  // Modulous
                    case MULTI:     JVMgenUtils::gen_MULOP(*op, tc);    break;  // multi
                    case DIVOP:     JVMgenUtils::gen_MULOP(*op, tc);    break;  // multi
                    case RELOP:     JVMgenUtils::gen_RELOP(*op, tc);    break;  // Untested
                    case OR:        JVMgenUtils::gen_OR(*op, tc);       break;  // Untested
                    case AND:       JVMgenUtils::gen_AND(*op, tc);      break;  // Untested
                    case ASSIGNOP:                                      break;  // Redudnat
                    default: // shouldn't happen
//                    std::cerr << "Fatal internal error #1: JVMgenerateExpression" << std::endl;
//                    exit(EXIT_FAILURE);
                        break;
                }
            }


        } else if (etype == SIMPLEexpr) {
            TCsymbol *idsym;
            ASsimpleExpr *se = dynamic_cast<ASsimpleExpr *>(ast);
            TCtoken *t = se->getExpr();
            std::string lexeme = t->getLexeme();
            if (t->getTokenType() == ID) {
                idsym = symTable->getSym(symTable->find(t->getLexeme()));
                JVMgenUtils::gen_ILOAD(*idsym, tc);
            } else if (t->getTokenType() == NUMBER) {
                JVMgenUtils::gen_ICONST(stoi(lexeme), tc);
            } else // shouldn't happen
            {
                std::cerr << "Fatal internal error #2: JVMgenerateExpression" << std::endl;
                exit(EXIT_FAILURE);
            }
        }
        else if (etype == FUNCCALLexpr) { // Semi-testsed [Writestate]
            TCsymbol *idsym;
            ASfuncCall *sexpr = dynamic_cast<ASfuncCall *>(ast);
            ASsimpleExpr *se = dynamic_cast<ASsimpleExpr *>(sexpr->getOp1());
            TCtoken *t = se->getExpr(); std::string choper;
            switch (t->getTokenType())
            {
                case NUMBER:
                    tc->add(new GETSTATIC(OUTPUT_FIELD_SPEC, OUTPUT_DESCRIPTOR));
                    tc->add(new LDC(t->getLexeme()));
                    tc->add(new INVOKEVIRTUAL(PRINT_STRING_METHOD_SPEC));
                    break;
                case ID:
                    idsym = symTable->getSym(symTable->find(t->getLexeme()));
                    tc->add(new GETSTATIC(OUTPUT_FIELD_SPEC, OUTPUT_DESCRIPTOR));
                    JVMgenUtils::gen_ILOAD(*idsym, tc);
                    tc->add(new INVOKEVIRTUAL(PRINT_INT_NEWLINE_METHOD_SPEC));
                    break;
                case STRING:
                    tc->add(new GETSTATIC(OUTPUT_FIELD_SPEC, OUTPUT_DESCRIPTOR));
                    choper = t->getLexeme().substr(1, (t->getLexeme().length() - 2)); // removes extra ""THis is the sirng""
                    tc->add(new LDC(choper));
                    tc->add(new INVOKEVIRTUAL(PRINT_STRING_METHOD_SPEC));
                    break;
                default:
                    break;
            }
        }
//        Unimplemented
//         else if (etype == MINUSexpr) {
//
//        } else if (etype == NOTexpr) {
//
//        } else if (etype == EMPTYexpr) {
//
//        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp            # imm = 0x448
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
xorl %eax, %eax
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x438(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
callq 0x1be8a
testl %eax, %eax
je 0x225ff
cmpl $0x4, %eax
je 0x224c5
cmpl $0x1, %eax
jne 0x22de2
leaq 0x15a79(%rip), %rsi     # 0x37db8
leaq 0x17952(%rip), %rdx     # 0x39c98
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x82a0
movq %rax, %r15
movq %rax, %rdi
callq 0x2557c
movq %rax, %rdi
callq 0x1a7de
movq %rax, %r14
movq %rax, %rdi
callq 0x179ac
cmpl $0x16, %eax
jne 0x22386
movq %r15, %rdi
callq 0x25576
movq %rax, %rdi
movq %rbx, %rsi
callq 0x222dc
movq %r15, %rdi
callq 0x25570
movq %rax, %rdi
movq %rbx, %rsi
callq 0x222dc
movq %r14, %rdi
callq 0x179ac
cmpl $0x15, %eax
jne 0x22959
movq %r15, %rdi
callq 0x25576
leaq 0x159ff(%rip), %rsi     # 0x37db8
leaq 0x15878(%rip), %rdx     # 0x37c38
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x82a0
movq %rax, %rdi
callq 0x1a086
leaq 0x18197(%rip), %rcx     # 0x3a570
movq (%rcx), %r14
leaq 0x220(%rsp), %rdi
movq %rax, %rsi
callq 0x179b0
leaq 0x220(%rsp), %rsi
movq %r14, %rdi
callq 0x28862
movq %r14, %rdi
movl %eax, %esi
callq 0x28934
movq %rax, %r14
leaq 0x3d0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x3c0(%rsp), %rdi
callq 0xabf6
leaq 0x3e0(%rsp), %rdi
leaq 0x3f0(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
callq 0xabf6
movq 0x40(%r14), %rax
leaq 0x3c0(%rsp), %rdi
movq %rax, 0x40(%rdi)
movq %rbx, %rsi
callq 0x20f0c
movq 0x3e0(%rsp), %rdi
cmpq %r12, %rdi
je 0x22486
movq 0x3f0(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x3c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x224a3
movq 0x3d0(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x230(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x22de2
movq 0x230(%rsp), %rsi
jmp 0x22dda
leaq 0x158ec(%rip), %rsi     # 0x37db8
leaq 0x15765(%rip), %rdx     # 0x37c38
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x82a0
movq %rax, %rdi
callq 0x1a086
movq %rax, %r14
movq %rsp, %rdi
movq %rax, %rsi
callq 0x179b0
movq %r14, %rdi
callq 0x179ac
cmpl $0x18, %eax
jne 0x228d5
leaq 0x18065(%rip), %rax     # 0x3a570
movq (%rax), %r15
leaq 0x200(%rsp), %rdi
movq %r14, %rsi
callq 0x179b0
leaq 0x200(%rsp), %rsi
movq %r15, %rdi
callq 0x28862
movq %r15, %rdi
movl %eax, %esi
callq 0x28934
movq %rax, %r14
leaq 0x210(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2255c
movq 0x210(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x388(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x378(%rsp), %rdi
callq 0xabf6
leaq 0x398(%rsp), %rdi
leaq 0x3a8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
callq 0xabf6
movq 0x40(%r14), %rax
leaq 0x378(%rsp), %rdi
movq %rax, 0x40(%rdi)
movq %rbx, %rsi
callq 0x20fc2
movq 0x398(%rsp), %rdi
cmpq %r12, %rdi
je 0x225d9
movq 0x3a8(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x378(%rsp), %rdi
cmpq %r15, %rdi
je 0x2294b
movq 0x388(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x2294b
leaq 0x157b2(%rip), %rsi     # 0x37db8
leaq 0x1571b(%rip), %rdx     # 0x37d28
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x82a0
movq %rax, %rdi
callq 0x1b350
leaq 0x15792(%rip), %rsi     # 0x37db8
leaq 0x1560b(%rip), %rdx     # 0x37c38
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x82a0
movq %rax, %rdi
callq 0x1a086
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
callq 0x179ac
cmpl $0x10, %eax
je 0x22c1b
cmpl $0x18, %eax
je 0x229fd
cmpl $0x1a, %eax
jne 0x22dc7
movl $0x50, %edi
callq 0x8250
movq %rax, %r15
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1815a(%rip), %rax     # 0x3a7f0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0xabf6
leaq 0xd0(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x18153(%rip), %rax     # 0x3a810
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0xc0(%rsp), %rdi
callq 0xabf6
movb $0x1, %r12b
leaq 0x40(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
movq %r15, %rdi
callq 0x1caf8
movq %r15, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %r12d, %r12d
movq %rbx, %rdi
callq *(%rax)
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0x2271b
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
leaq 0x30(%rsp), %r13
je 0x2273c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x160(%rsp), %rdi
movq %r14, %rsi
callq 0x179b0
leaq 0x140(%rsp), %rdi
movq %r14, %rsi
callq 0x179b0
movq 0x148(%rsp), %rcx
addq $-0x2, %rcx
leaq 0x408(%rsp), %rdi
leaq 0x160(%rsp), %rsi
movl $0x1, %edx
callq 0x8280
movq %rsp, %rdi
leaq 0x408(%rsp), %r14
movq %r14, %rsi
callq 0x82f0
movq (%r14), %rdi
leaq 0x418(%rsp), %rax
cmpq %rax, %rdi
je 0x227b5
movq 0x418(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x227d6
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x170(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x227f7
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x38, %edi
callq 0x8250
movq %rax, %r14
leaq 0xb0(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0xabf6
movb $0x1, %r15b
leaq 0xa0(%rsp), %rsi
movq %r14, %rdi
callq 0x1e3b8
movq %r14, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %r15d, %r15d
movq %rbx, %rdi
callq *(%rax)
movq 0xa0(%rsp), %rdi
cmpq %r12, %rdi
je 0x2286c
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x30, %edi
callq 0x8250
movq %rax, %r14
leaq 0x130(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x18164(%rip), %rax     # 0x3a9f0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x120(%rsp), %rdi
callq 0xabf6
movb $0x1, %r12b
leaq 0x120(%rsp), %rsi
movq %r14, %rdi
callq 0x1dcc0
movq %r14, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %r12d, %r12d
movq %rbx, %rdi
callq *(%rax)
movq 0x120(%rsp), %rdi
jmp 0x22db7
movq %r14, %rdi
callq 0x179ac
cmpl $0x10, %eax
jne 0x22ff7
movq (%rsp), %r15
callq 0x8040
movq %rax, %r14
movl (%rax), %r13d
movl $0x0, (%rax)
leaq 0x408(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x8300
cmpq %r15, (%r12)
je 0x23025
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x23031
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x23031
testl %ecx, %ecx
jne 0x2293c
movl %r13d, (%r14)
movl %eax, %edi
movq %rbx, %rsi
leaq 0x30(%rsp), %r13
callq 0x211e4
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x22dd0
movq %r14, %rdi
callq 0x179ac
cmpl $0x16, %eax
je 0x22979
movq %r15, %rdi
callq 0x25576
movq %rax, %rdi
movq %rbx, %rsi
callq 0x222dc
movq %r14, %rdi
callq 0x179ac
cmpl $0x1c, %eax
jg 0x22e28
cmpl $0x12, %eax
je 0x22e97
cmpl $0x13, %eax
je 0x22f47
cmpl $0x16, %eax
jne 0x22de2
movl (%r14), %eax
leaq 0x2c0(%rsp), %rdi
movl %eax, -0x8(%rdi)
leaq 0x2d0(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
callq 0xabf6
leaq 0x2b8(%rsp), %rdi
movq %rbx, %rsi
callq 0x2146c
movq 0x2c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x22de2
movq 0x2d0(%rsp), %rsi
jmp 0x22dda
leaq 0x17b6c(%rip), %rax     # 0x3a570
movq (%rax), %r15
leaq 0x1a0(%rsp), %rdi
movq %r14, %rsi
callq 0x179b0
leaq 0x1a0(%rsp), %rsi
movq %r15, %rdi
callq 0x28862
movq %r15, %rdi
movl %eax, %esi
callq 0x28934
movq %rax, %r14
leaq 0x1b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x22a55
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x50, %edi
callq 0x8250
movq %rax, %r15
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x17d7e(%rip), %rax     # 0x3a7f0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0xabf6
leaq 0xf0(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x17d77(%rip), %rax     # 0x3a810
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0xe0(%rsp), %rdi
callq 0xabf6
movb $0x1, %r12b
leaq 0x60(%rsp), %rsi
leaq 0xe0(%rsp), %rdx
movq %r15, %rdi
callq 0x1caf8
movq %r15, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %r12d, %r12d
movq %rbx, %rdi
callq *(%rax)
movq 0xe0(%rsp), %rdi
cmpq %r13, %rdi
je 0x22af7
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
leaq 0x30(%rsp), %r13
je 0x22b18
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x340(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x330(%rsp), %rdi
callq 0xabf6
leaq 0x350(%rsp), %rdi
leaq 0x360(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
callq 0xabf6
movq 0x40(%r14), %rax
leaq 0x330(%rsp), %rdi
movq %rax, 0x40(%rdi)
movq %rbx, %rsi
callq 0x20fc2
movq 0x350(%rsp), %rdi
cmpq %r12, %rdi
je 0x22b95
movq 0x360(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x330(%rsp), %rdi
cmpq %r15, %rdi
je 0x22bb2
movq 0x340(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x30, %edi
callq 0x8250
movq %rax, %r14
leaq 0x190(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x17dfe(%rip), %rax     # 0x3a9d0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x180(%rsp), %rdi
callq 0xabf6
movb $0x1, %r12b
leaq 0x180(%rsp), %rsi
movq %r14, %rdi
callq 0x1dcc0
movq %r14, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %r12d, %r12d
movq %rbx, %rdi
callq *(%rax)
movq 0x180(%rsp), %rdi
jmp 0x22db7
movl $0x50, %edi
callq 0x8250
movq %rax, %r15
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x17bb5(%rip), %rax     # 0x3a7f0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %rdi
callq 0xabf6
leaq 0x110(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x17bab(%rip), %rax     # 0x3a810
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x100(%rsp), %rdi
callq 0xabf6
movb $0x1, %r12b
leaq 0x80(%rsp), %rsi
leaq 0x100(%rsp), %rdx
movq %r15, %rdi
callq 0x1caf8
movq %r15, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %r12d, %r12d
movq %rbx, %rdi
callq *(%rax)
movq 0x100(%rsp), %rdi
cmpq %r13, %rdi
je 0x22cc6
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
leaq 0x30(%rsp), %r13
je 0x22cf0
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x38, %edi
callq 0x8250
movq %rax, %r15
leaq 0x1e0(%rsp), %rdi
movq %r14, %rsi
callq 0x179b0
movb $0x1, %r14b
leaq 0x1e0(%rsp), %rsi
movq %r15, %rdi
callq 0x1e3b8
movq %r15, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %r14d, %r14d
movq %rbx, %rdi
callq *(%rax)
leaq 0x1f0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x22d53
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x30, %edi
callq 0x8250
movq %rax, %r14
leaq 0x1d0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x17c7d(%rip), %rax     # 0x3a9f0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x1c0(%rsp), %rdi
callq 0xabf6
movb $0x1, %r12b
leaq 0x1c0(%rsp), %rsi
movq %r14, %rdi
callq 0x1dcc0
movq %r14, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %r12d, %r12d
movq %rbx, %rdi
callq *(%rax)
movq 0x1c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x22dc7
movq (%r15), %rsi
incq %rsi
callq 0x8260
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x22de2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x428(%rsp), %rdi
cmpq %rbp, %rdi
je 0x22dff
movq 0x438(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x22e16
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8260
addq $0x448, %rsp            # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x1d, %eax
je 0x22eef
cmpl $0x28, %eax
je 0x22f9f
cmpl $0x29, %eax
jne 0x22de2
movl (%r14), %eax
leaq 0x270(%rsp), %rdi
movl %eax, -0x8(%rdi)
leaq 0x280(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
callq 0xabf6
leaq 0x268(%rsp), %rdi
movq %rbx, %rsi
callq 0x21b1e
movq 0x270(%rsp), %rdi
cmpq %r15, %rdi
je 0x22de2
movq 0x280(%rsp), %rsi
jmp 0x22dda
movl (%r14), %eax
leaq 0x298(%rsp), %rdi
movl %eax, -0x8(%rdi)
leaq 0x2a8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
callq 0xabf6
leaq 0x290(%rsp), %rdi
movq %rbx, %rsi
callq 0x21586
movq 0x298(%rsp), %rdi
cmpq %r15, %rdi
je 0x22de2
movq 0x2a8(%rsp), %rsi
jmp 0x22dda
movl (%r14), %eax
leaq 0x2e8(%rsp), %rdi
movl %eax, -0x8(%rdi)
leaq 0x2f8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
callq 0xabf6
leaq 0x2e0(%rsp), %rdi
movq %rbx, %rsi
callq 0x2146c
movq 0x2e8(%rsp), %rdi
cmpq %r15, %rdi
je 0x22de2
movq 0x2f8(%rsp), %rsi
jmp 0x22dda
movl (%r14), %eax
leaq 0x310(%rsp), %rdi
movl %eax, -0x8(%rdi)
leaq 0x320(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
callq 0xabf6
leaq 0x308(%rsp), %rdi
movq %rbx, %rsi
callq 0x2135e
movq 0x310(%rsp), %rdi
cmpq %r15, %rdi
je 0x22de2
movq 0x320(%rsp), %rsi
jmp 0x22dda
movl (%r14), %eax
leaq 0x248(%rsp), %rdi
movl %eax, -0x8(%rdi)
leaq 0x258(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
callq 0xabf6
leaq 0x240(%rsp), %rdi
movq %rbx, %rsi
callq 0x21eda
movq 0x248(%rsp), %rdi
cmpq %r15, %rdi
je 0x22de2
movq 0x258(%rsp), %rsi
jmp 0x22dda
movq 0x16ff2(%rip), %rdi     # 0x39ff0
leaq 0x8791(%rip), %rsi      # 0x2b796
movl $0x2e, %edx
callq 0x82c0
movq 0x16fda(%rip), %rdi     # 0x39ff0
callq 0x8120
movl $0x1, %edi
callq 0x82e0
leaq 0x8799(%rip), %rdi      # 0x2b7c5
callq 0x8160
leaq 0x878d(%rip), %rdi      # 0x2b7c5
callq 0x8320
movq %rax, %rbx
movq 0x248(%rsp), %rdi
cmpq %r15, %rdi
je 0x234a3
movq 0x258(%rsp), %rsi
jmp 0x23494
movq %rax, %rbx
movq 0x310(%rsp), %rdi
cmpq %r15, %rdi
je 0x234a3
movq 0x320(%rsp), %rsi
jmp 0x23494
movq %rax, %rbx
movq 0x2e8(%rsp), %rdi
cmpq %r15, %rdi
je 0x234a3
movq 0x2f8(%rsp), %rsi
jmp 0x23494
movq %rax, %rbx
movq 0x298(%rsp), %rdi
cmpq %r15, %rdi
je 0x234a3
movq 0x2a8(%rsp), %rsi
jmp 0x23494
movq %rax, %rbx
movq 0x270(%rsp), %rdi
cmpq %r15, %rdi
je 0x234a3
movq 0x280(%rsp), %rsi
jmp 0x23494
movq %rax, %rbx
movq 0x2c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x234a3
movq 0x2d0(%rsp), %rsi
jmp 0x23494
jmp 0x23107
jmp 0x23107
movq %rax, %rbx
movb $0x1, %r12b
jmp 0x23232
movq %rax, %rbx
leaq 0x330(%rsp), %rdi
callq 0x234e4
jmp 0x23481
movq %rax, %rbx
movb $0x1, %r15b
jmp 0x23277
movq %rax, %rbx
movq 0x330(%rsp), %rdi
cmpq %r15, %rdi
je 0x23481
movq 0x340(%rsp), %rsi
jmp 0x2340a
movq %rax, %rbx
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2317c
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x2317c
movq %rax, %rbx
leaq 0x170(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23481
movq 0x170(%rsp), %rsi
jmp 0x2340a
movq %rax, %rbx
movb $0x1, %r14b
jmp 0x232da
jmp 0x2347e
movq %rax, %rbx
movb $0x1, %r12b
jmp 0x2330d
jmp 0x231d3
movq %rax, %rbx
movb $0x1, %r12b
jmp 0x23380
movq %rax, %rbx
movb $0x1, %r12b
jmp 0x233b6
jmp 0x231d3
movq %rax, %rbx
movb $0x1, %r12b
jmp 0x233db
movq %rax, %rbx
movq 0x120(%rsp), %rdi
cmpq %r15, %rdi
je 0x23232
movq 0x130(%rsp), %rsi
jmp 0x2322a
movq %rax, %rbx
movq 0x180(%rsp), %rdi
cmpq %r15, %rdi
je 0x23232
movq 0x190(%rsp), %rsi
jmp 0x2322a
movq %rax, %rbx
movq 0x1c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x23232
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x8260
testb %r12b, %r12b
je 0x23481
movl $0x30, %esi
jmp 0x23285
movq %rax, %rbx
leaq 0x3c0(%rsp), %rdi
callq 0x234e4
jmp 0x23455
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r12, %rdi
je 0x23277
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8260
testb %r15b, %r15b
je 0x23481
movl $0x38, %esi
movq %r14, %rdi
jmp 0x2340d
movq %rax, %rbx
movq 0x3c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x23455
movq 0x3d0(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x23455
movq %rax, %rbx
leaq 0x1f0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x232da
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x8260
testb %r14b, %r14b
je 0x23481
movl $0x38, %esi
jmp 0x233e9
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r13, %rdi
je 0x2330d
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x233db
movq 0x70(%rsp), %rsi
jmp 0x233d3
movq %rax, %rbx
leaq 0x378(%rsp), %rdi
callq 0x234e4
jmp 0x23473
movq %rax, %rbx
movq 0x378(%rsp), %rdi
cmpq %r15, %rdi
je 0x23473
movq 0x388(%rsp), %rsi
jmp 0x2343e
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0x23380
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x233db
movq 0x50(%rsp), %rsi
jmp 0x233d3
movq %rax, %rbx
movq 0x100(%rsp), %rdi
cmpq %r13, %rdi
je 0x233b6
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x233db
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x8260
testb %r12b, %r12b
je 0x23481
movl $0x50, %esi
movq %r15, %rdi
jmp 0x2340d
movq %rax, %rbx
leaq 0x1b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23481
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x23481
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x23473
movl %r13d, (%r14)
jmp 0x23473
movq %rax, %rbx
leaq 0x210(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23473
movq 0x210(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x23473
jmp 0x234a0
jmp 0x234a0
jmp 0x234a0
jmp 0x234a0
jmp 0x234a0
movq %rax, %rbx
leaq 0x230(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x234a3
movq 0x230(%rsp), %rsi
jmp 0x23494
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x2348a
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x234a3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x234a3
jmp 0x234a0
movq %rax, %rbx
movq 0x428(%rsp), %rdi
cmpq %rbp, %rdi
je 0x234c0
movq 0x438(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x234dc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8260
movq %rbx, %rdi
callq 0x8420