// File: /workspace/github_cpp_makefile_star2_O3/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 0x90(%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 0x1c4ae
testl %eax, %eax
je 0x22c22
cmpl $0x4, %eax
je 0x22ae8
cmpl $0x1, %eax
jne 0x233fe
leaq 0x154be(%rip), %rsi     # 0x37e20
leaq 0x1732f(%rip), %rdx     # 0x39c98
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x82a0
movq %rax, %r15
movq %rax, %rdi
callq 0x25ba4
movq %rax, %rdi
callq 0x1ae14
movq %rax, %r14
movq %rax, %rdi
callq 0x17fcc
cmpl $0x16, %eax
jne 0x229a9
movq %r15, %rdi
callq 0x25b9e
movq %rax, %rdi
movq %rbx, %rsi
callq 0x228fc
movq %r15, %rdi
callq 0x25b98
movq %rax, %rdi
movq %rbx, %rsi
callq 0x228fc
movq %r14, %rdi
callq 0x17fcc
cmpl $0x15, %eax
jne 0x22f81
movq %r15, %rdi
callq 0x25b9e
leaq 0x15444(%rip), %rsi     # 0x37e20
leaq 0x152bd(%rip), %rdx     # 0x37ca0
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x82a0
movq %rax, %rdi
callq 0x1a696
leaq 0x17b74(%rip), %rcx     # 0x3a570
movq (%rcx), %r14
leaq 0x220(%rsp), %rdi
movq %rax, %rsi
callq 0x17fd0
leaq 0x220(%rsp), %rsi
movq %r14, %rdi
callq 0x28e6e
movq %r14, %rdi
movl %eax, %esi
callq 0x28f44
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 0xabdc
leaq 0x3e0(%rsp), %rdi
leaq 0x3f0(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
callq 0xabdc
movq 0x40(%r14), %rax
leaq 0x3c0(%rsp), %rdi
movq %rax, 0x40(%rdi)
movq %rbx, %rsi
callq 0x21530
movq 0x3e0(%rsp), %rdi
cmpq %r12, %rdi
je 0x22aa9
movq 0x3f0(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x3c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x22ac6
movq 0x3d0(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x230(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x233fe
movq 0x230(%rsp), %rsi
jmp 0x233f6
leaq 0x15331(%rip), %rsi     # 0x37e20
leaq 0x151aa(%rip), %rdx     # 0x37ca0
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x82a0
movq %rax, %rdi
callq 0x1a696
movq %rax, %r14
movq %rsp, %rdi
movq %rax, %rsi
callq 0x17fd0
movq %r14, %rdi
callq 0x17fcc
cmpl $0x18, %eax
jne 0x22efa
leaq 0x17a42(%rip), %rax     # 0x3a570
movq (%rax), %r15
leaq 0x200(%rsp), %rdi
movq %r14, %rsi
callq 0x17fd0
leaq 0x200(%rsp), %rsi
movq %r15, %rdi
callq 0x28e6e
movq %r15, %rdi
movl %eax, %esi
callq 0x28f44
movq %rax, %r14
leaq 0x210(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x22b7f
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 0xabdc
leaq 0x398(%rsp), %rdi
leaq 0x3a8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
callq 0xabdc
movq 0x40(%r14), %rax
leaq 0x378(%rsp), %rdi
movq %rax, 0x40(%rdi)
movq %rbx, %rsi
callq 0x215e6
movq 0x398(%rsp), %rdi
cmpq %r12, %rdi
je 0x22bfc
movq 0x3a8(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x378(%rsp), %rdi
cmpq %r15, %rdi
je 0x22f73
movq 0x388(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x22f73
leaq 0x151f7(%rip), %rsi     # 0x37e20
leaq 0x15160(%rip), %rdx     # 0x37d90
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x82a0
movq %rax, %rdi
callq 0x1b972
leaq 0x151d7(%rip), %rsi     # 0x37e20
leaq 0x15050(%rip), %rdx     # 0x37ca0
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x82a0
movq %rax, %rdi
callq 0x1a696
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
callq 0x17fcc
cmpl $0x10, %eax
je 0x23246
cmpl $0x18, %eax
je 0x23025
cmpl $0x1a, %eax
jne 0x233e3
movl $0x50, %edi
callq 0x8250
movq %rax, %r15
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x17b37(%rip), %rax     # 0x3a7f0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0xabdc
leaq 0xd0(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x17b30(%rip), %rax     # 0x3a810
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0xc0(%rsp), %rdi
callq 0xabdc
movb $0x1, %r12b
leaq 0x20(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
movq %r15, %rdi
callq 0x1d114
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 0x22d3e
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
leaq 0x90(%rsp), %r13
je 0x22d62
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x160(%rsp), %rdi
movq %r14, %rsi
callq 0x17fd0
leaq 0x140(%rsp), %rdi
movq %r14, %rsi
callq 0x17fd0
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 0x22ddb
movq 0x418(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x22dfc
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x170(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x22e1d
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x38, %edi
callq 0x8250
movq %rax, %r14
leaq 0xb0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0xabdc
movb $0x1, %r12b
leaq 0xa0(%rsp), %rsi
movq %r14, %rdi
callq 0x1e9d4
movq %r14, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %r12d, %r12d
movq %rbx, %rdi
callq *(%rax)
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x22e91
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 0x17b3f(%rip), %rax     # 0x3a9f0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x120(%rsp), %rdi
callq 0xabdc
movb $0x1, %r12b
leaq 0x120(%rsp), %rsi
movq %r14, %rdi
callq 0x1e2dc
movq %r14, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %r12d, %r12d
movq %rbx, %rdi
callq *(%rax)
movq 0x120(%rsp), %rdi
jmp 0x233d3
movq %r14, %rdi
callq 0x17fcc
cmpl $0x10, %eax
jne 0x23619
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 0x23647
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x23653
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x23653
testl %ecx, %ecx
jne 0x22f61
movl %r13d, (%r14)
movl %eax, %edi
movq %rbx, %rsi
leaq 0x90(%rsp), %r13
callq 0x21808
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x233ec
movq %r14, %rdi
callq 0x17fcc
cmpl $0x16, %eax
je 0x22fa1
movq %r15, %rdi
callq 0x25b9e
movq %rax, %rdi
movq %rbx, %rsi
callq 0x228fc
movq %r14, %rdi
callq 0x17fcc
cmpl $0x1c, %eax
jg 0x2344a
cmpl $0x12, %eax
je 0x234b9
cmpl $0x13, %eax
je 0x23569
cmpl $0x16, %eax
jne 0x233fe
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 0xabdc
leaq 0x2b8(%rsp), %rdi
movq %rbx, %rsi
callq 0x21a90
movq 0x2c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x233fe
movq 0x2d0(%rsp), %rsi
jmp 0x233f6
leaq 0x17544(%rip), %rax     # 0x3a570
movq (%rax), %r15
leaq 0x1a0(%rsp), %rdi
movq %r14, %rsi
callq 0x17fd0
leaq 0x1a0(%rsp), %rsi
movq %r15, %rdi
callq 0x28e6e
movq %r15, %rdi
movl %eax, %esi
callq 0x28f44
movq %rax, %r14
leaq 0x1b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2307d
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x50, %edi
callq 0x8250
movq %rax, %r15
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x17756(%rip), %rax     # 0x3a7f0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0xabdc
leaq 0xf0(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1774f(%rip), %rax     # 0x3a810
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0xe0(%rsp), %rdi
callq 0xabdc
movb $0x1, %r12b
leaq 0x40(%rsp), %rsi
leaq 0xe0(%rsp), %rdx
movq %r15, %rdi
callq 0x1d114
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 0x2311f
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
leaq 0x90(%rsp), %r13
je 0x23143
movq 0x50(%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 0xabdc
leaq 0x350(%rsp), %rdi
leaq 0x360(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
callq 0xabdc
movq 0x40(%r14), %rax
leaq 0x330(%rsp), %rdi
movq %rax, 0x40(%rdi)
movq %rbx, %rsi
callq 0x215e6
movq 0x350(%rsp), %rdi
cmpq %r12, %rdi
je 0x231c0
movq 0x360(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x330(%rsp), %rdi
cmpq %r15, %rdi
je 0x231dd
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 0x177d3(%rip), %rax     # 0x3a9d0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x180(%rsp), %rdi
callq 0xabdc
movb $0x1, %r12b
leaq 0x180(%rsp), %rsi
movq %r14, %rdi
callq 0x1e2dc
movq %r14, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %r12d, %r12d
movq %rbx, %rdi
callq *(%rax)
movq 0x180(%rsp), %rdi
jmp 0x233d3
movl $0x50, %edi
callq 0x8250
movq %rax, %r15
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1758d(%rip), %rax     # 0x3a7f0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0xabdc
leaq 0x110(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x17586(%rip), %rax     # 0x3a810
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x100(%rsp), %rdi
callq 0xabdc
movb $0x1, %r12b
leaq 0x60(%rsp), %rsi
leaq 0x100(%rsp), %rdx
movq %r15, %rdi
callq 0x1d114
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 0x232e8
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
leaq 0x90(%rsp), %r13
je 0x2330c
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x38, %edi
callq 0x8250
movq %rax, %r15
leaq 0x1e0(%rsp), %rdi
movq %r14, %rsi
callq 0x17fd0
movb $0x1, %r14b
leaq 0x1e0(%rsp), %rsi
movq %r15, %rdi
callq 0x1e9d4
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 0x2336f
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 0x17661(%rip), %rax     # 0x3a9f0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x1c0(%rsp), %rdi
callq 0xabdc
movb $0x1, %r12b
leaq 0x1c0(%rsp), %rsi
movq %r14, %rdi
callq 0x1e2dc
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 0x233e3
movq (%r15), %rsi
incq %rsi
callq 0x8260
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x233fe
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x428(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2341b
movq 0x438(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0x23438
movq 0x90(%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 0x23511
cmpl $0x28, %eax
je 0x235c1
cmpl $0x29, %eax
jne 0x233fe
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 0xabdc
leaq 0x268(%rsp), %rdi
movq %rbx, %rsi
callq 0x22168
movq 0x270(%rsp), %rdi
cmpq %r15, %rdi
je 0x233fe
movq 0x280(%rsp), %rsi
jmp 0x233f6
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 0xabdc
leaq 0x290(%rsp), %rdi
movq %rbx, %rsi
callq 0x21baa
movq 0x298(%rsp), %rdi
cmpq %r15, %rdi
je 0x233fe
movq 0x2a8(%rsp), %rsi
jmp 0x233f6
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 0xabdc
leaq 0x2e0(%rsp), %rdi
movq %rbx, %rsi
callq 0x21a90
movq 0x2e8(%rsp), %rdi
cmpq %r15, %rdi
je 0x233fe
movq 0x2f8(%rsp), %rsi
jmp 0x233f6
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 0xabdc
leaq 0x308(%rsp), %rdi
movq %rbx, %rsi
callq 0x21982
movq 0x310(%rsp), %rdi
cmpq %r15, %rdi
je 0x233fe
movq 0x320(%rsp), %rsi
jmp 0x233f6
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 0xabdc
leaq 0x240(%rsp), %rdi
movq %rbx, %rsi
callq 0x22510
movq 0x248(%rsp), %rdi
cmpq %r15, %rdi
je 0x233fe
movq 0x258(%rsp), %rsi
jmp 0x233f6
movq 0x169d0(%rip), %rdi     # 0x39ff0
leaq 0x816f(%rip), %rsi      # 0x2b796
movl $0x2e, %edx
callq 0x82c0
movq 0x169b8(%rip), %rdi     # 0x39ff0
callq 0x8120
movl $0x1, %edi
callq 0x82e0
leaq 0x8177(%rip), %rdi      # 0x2b7c5
callq 0x8160
leaq 0x816b(%rip), %rdi      # 0x2b7c5
callq 0x8320
movq %rax, %rbx
movq 0x248(%rsp), %rdi
cmpq %r15, %rdi
je 0x23af4
movq 0x258(%rsp), %rsi
jmp 0x23ae5
movq %rax, %rbx
movq 0x310(%rsp), %rdi
cmpq %r15, %rdi
je 0x23af4
movq 0x320(%rsp), %rsi
jmp 0x23ae5
movq %rax, %rbx
movq 0x2e8(%rsp), %rdi
cmpq %r15, %rdi
je 0x23af4
movq 0x2f8(%rsp), %rsi
jmp 0x23ae5
movq %rax, %rbx
movq 0x298(%rsp), %rdi
cmpq %r15, %rdi
je 0x23af4
movq 0x2a8(%rsp), %rsi
jmp 0x23ae5
movq %rax, %rbx
movq 0x270(%rsp), %rdi
cmpq %r15, %rdi
je 0x23af4
movq 0x280(%rsp), %rsi
jmp 0x23ae5
movq %rax, %rbx
movq 0x2c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x23af4
movq 0x2d0(%rsp), %rsi
jmp 0x23ae5
jmp 0x23729
jmp 0x23729
movq %rax, %rbx
jmp 0x23892
movq %rax, %rbx
leaq 0x330(%rsp), %rdi
callq 0x23b3e
jmp 0x23ad2
movq %rax, %rbx
jmp 0x238d7
movq %rax, %rbx
movq 0x330(%rsp), %rdi
cmpq %r15, %rdi
je 0x23ad2
movq 0x340(%rsp), %rsi
jmp 0x23a60
movq %rax, %rbx
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23798
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x23798
movq %rax, %rbx
leaq 0x170(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23ad2
movq 0x170(%rsp), %rsi
jmp 0x23a60
movq %rax, %rbx
jmp 0x2393a
jmp 0x23acf
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x23a32
movq 0x50(%rsp), %rsi
jmp 0x2381e
jmp 0x2382d
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x23a32
movq 0x30(%rsp), %rsi
jmp 0x2381e
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x23a32
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x23a32
jmp 0x2382d
movq %rax, %rbx
jmp 0x23a32
movq %rax, %rbx
movq 0x120(%rsp), %rdi
cmpq %r15, %rdi
je 0x23889
movq 0x130(%rsp), %rsi
jmp 0x23881
movq %rax, %rbx
movq 0x180(%rsp), %rdi
cmpq %r15, %rdi
je 0x23889
movq 0x190(%rsp), %rsi
jmp 0x23881
movq %rax, %rbx
movq 0x1c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x23889
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x8260
testb %r12b, %r12b
je 0x23ad2
movl $0x30, %esi
jmp 0x238dc
movq %rax, %rbx
leaq 0x3c0(%rsp), %rdi
callq 0x23b3e
jmp 0x23aa6
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x238ce
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8260
testb %r12b, %r12b
je 0x23ad2
movl $0x38, %esi
movq %r14, %rdi
jmp 0x23a3a
movq %rax, %rbx
movq 0x3c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x23aa6
movq 0x3d0(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x23aa6
movq %rax, %rbx
leaq 0x1f0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23931
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x8260
testb %r14b, %r14b
je 0x23ad2
movl $0x38, %esi
jmp 0x23a37
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r13, %rdi
je 0x23964
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x23a29
movq 0x50(%rsp), %rsi
jmp 0x23a21
movq %rax, %rbx
leaq 0x378(%rsp), %rdi
callq 0x23b3e
jmp 0x23ac4
movq %rax, %rbx
movq 0x378(%rsp), %rdi
cmpq %r15, %rdi
je 0x23ac4
movq 0x388(%rsp), %rsi
jmp 0x23a8f
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0x239d7
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x23a29
movq 0x30(%rsp), %rsi
jmp 0x23a21
movq %rax, %rbx
movq 0x100(%rsp), %rdi
cmpq %r13, %rdi
je 0x23a0d
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x23a29
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x8260
testb %r12b, %r12b
je 0x23ad2
movl $0x50, %esi
movq %r15, %rdi
callq 0x8260
jmp 0x23ad2
movq %rax, %rbx
leaq 0x1b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23ad2
movq 0x1b0(%rsp), %rsi
incq %rsi
jmp 0x23a3a
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x23ac4
movl %r13d, (%r14)
jmp 0x23ac4
movq %rax, %rbx
leaq 0x210(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23ac4
movq 0x210(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x23ac4
jmp 0x23af1
jmp 0x23af1
jmp 0x23af1
jmp 0x23af1
jmp 0x23af1
movq %rax, %rbx
leaq 0x230(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23af4
movq 0x230(%rsp), %rsi
jmp 0x23ae5
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x23adb
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x23af4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x23af4
jmp 0x23af1
movq %rax, %rbx
movq 0x428(%rsp), %rdi
cmpq %rbp, %rdi
je 0x23b11
movq 0x438(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x23b36
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x8260
movq %rbx, %rdi
callq 0x8420