// File: Bartor[P]kompilator/middle/abstract_assembler/AbstractAssembler.cpp
// Function: AbstractAssembler::assembleCondition(Condition&, InstructionList&)
SimpleResolution *AbstractAssembler::assembleCondition(Condition &condition, InstructionList &codeBlock) {
    InstructionList &instructions = *new InstructionList();

    Resolution *lhsResolution = resolve(condition.lhs);
    Resolution *rhsResolution = resolve(condition.rhs);

    bool incResolved = false;
    if (rhsResolution->type == CONSTANT || lhsResolution->type == CONSTANT) {
        bool rhsFlag = rhsResolution->type == CONSTANT;

        NumberValue &constantValue = dynamic_cast<NumberValue &>(rhsFlag ? condition.rhs : condition.lhs);
        bool negative = constantValue.value < 0;
        long long valCopy = llabs(constantValue.value);

        if (valCopy < 10) {
            if (rhsFlag) {
                instructions.append(lhsResolution->instructions)
                        .append(lhsResolution->indirect ? static_cast<Instruction *>(new Loadi(primaryAccumulator)) : static_cast<Instruction *>(new Load(lhsResolution->address)));
                while (valCopy-- > 0) {
                    instructions.append(negative ? static_cast<Instruction *>(new Inc()) : static_cast<Instruction *>(new Dec()));
                }
                incResolved = true;
            } else if (condition.type == EQUAL || condition.type == NOT_EQUAL) {
                incResolved = true;
                instructions.append(rhsResolution->instructions)
                        .append(rhsResolution->indirect ? static_cast<Instruction *>(new Loadi(primaryAccumulator)) : static_cast<Instruction *>(new Load(rhsResolution->address)));
                while (valCopy-- > 0) {
                    instructions.append(negative ? static_cast<Instruction *>(new Inc()) : static_cast<Instruction *>(new Dec()));
                }
            }
        }
    }

    if (!incResolved) {
        if (rhsResolution->indirect) {
            Store *store = new Store(expressionAccumulator);
            Sub *sub = new Sub(expressionAccumulator);

            instructions.append(rhsResolution->instructions)
                    .append(rhsResolution->indirect ? static_cast<Instruction *>(new Loadi(primaryAccumulator)) : static_cast<Instruction *>(new Load(rhsResolution->address)))
                    .append(store)
                    .append(lhsResolution->instructions)
                    .append(lhsResolution->indirect ? static_cast<Instruction *>(new Loadi(primaryAccumulator)) : static_cast<Instruction *>(new Load(lhsResolution->address)))
                    .append(sub);
        } else {
            Sub *sub = new Sub(rhsResolution->address);
            instructions.append(lhsResolution->instructions)
                    .append(lhsResolution->indirect ? static_cast<Instruction *>(new Loadi(primaryAccumulator)) : static_cast<Instruction *>(new Load(lhsResolution->address)))
                    .append(sub);
        }
    }

    switch (condition.type) {
        case NOT_EQUAL: {
            Jzero *jzero = new Jzero(codeBlock.end()); // jump to end of code block if they don't subtruct to zero

            instructions.append(jzero);
        }
            break;
        case EQUAL: {
            Jzero *jzero = new Jzero(codeBlock.start()); // jump to start of code block if the subtract to zero
            Jump *jump = new Jump(codeBlock.end()); // otherwise, jump to its end

            instructions.append(jzero)
                    .append(jump);
        }
            break;
        case LESS: {
            Jzero *jzero = new Jzero(codeBlock.end()); // jump if it's zero
            Jpos *jpos = new Jpos(codeBlock.end()); // jump to end if a - b < 0 => a < b

            instructions.append(jzero)
                    .append(jpos);
        }
            break;
        case GREATER: {
            Jzero *jzero = new Jzero(codeBlock.end()); // jump if it's zero
            Jneg *jneg = new Jneg(codeBlock.end()); // jump to end if a - b > 0 => a > b

            instructions.append(jzero)
                    .append(jneg);
        }
            break;
        case LESS_OR_EQUAL: {
            Jpos *jpos = new Jpos(codeBlock.end()); // jump to end if a - b < 0 => a < b

            instructions.append(jpos);
        }
            break;
        case GREATER_OR_EQUAL: {
            Jneg *jneg = new Jneg(codeBlock.end()); // jump to end if a - b > 0 => a > b

            instructions.append(jneg);
        }
            break;
    }

    return new SimpleResolution(
            instructions,
            lhsResolution->temporaryVars + rhsResolution->temporaryVars
    );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x360, %rsp            # imm = 0x360
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1a8(%rbp)
callq 0x2b0c0
jmp 0x1e7c0
movq -0x1b0(%rbp), %rdi
movq -0x1a8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x14aa0
movq -0x1b0(%rbp), %rdi
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x14aa0
movq %rax, -0x40(%rbp)
movb $0x0, -0x41(%rbp)
movq -0x40(%rbp), %rax
cmpl $0x0, 0x20(%rax)
je 0x1e817
movq -0x38(%rbp), %rax
cmpl $0x0, 0x20(%rax)
jne 0x1ed0d
movq -0x40(%rbp), %rax
cmpl $0x0, 0x20(%rax)
sete %al
andb $0x1, %al
movb %al, -0x42(%rbp)
testb $0x1, -0x42(%rbp)
je 0x1e83e
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x1b8(%rbp)
jmp 0x1e84d
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x1b8(%rbp)
movq -0x1b8(%rbp), %rdi
leaq 0x2181d(%rip), %rsi     # 0x40078
leaq 0x2197e(%rip), %rdx     # 0x401e0
xorl %eax, %eax
movl %eax, %ecx
callq 0x62f0
movq %rax, -0x1c0(%rbp)
cmpq $0x0, %rax
jne 0x1e87d
callq 0x6530
movq -0x1c0(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
cmpq $0x0, 0x8(%rax)
setl %al
andb $0x1, %al
movb %al, -0x51(%rbp)
movq -0x50(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, %rcx
negq %rcx
cmovnsq %rcx, %rax
movq %rax, -0x60(%rbp)
cmpq $0xa, -0x60(%rbp)
jge 0x1ed0b
testb $0x1, -0x42(%rbp)
je 0x1eadd
movq -0x20(%rbp), %rdi
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x2b200
movq %rax, -0x1c8(%rbp)
movq -0x38(%rbp), %rax
movb 0x1(%rax), %al
movb $0x0, -0x69(%rbp)
movb $0x0, -0x79(%rbp)
testb $0x1, %al
je 0x1e930
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq -0x1b0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x1d0(%rbp)
movq %rdi, -0x68(%rbp)
movb $0x1, -0x69(%rbp)
movq 0x8(%rax), %rsi
callq 0x20160
jmp 0x1e920
movq -0x1d0(%rbp), %rax
movq %rax, -0x1d8(%rbp)
jmp 0x1e96e
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1e0(%rbp)
movq %rdi, -0x78(%rbp)
movb $0x1, -0x79(%rbp)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x201a0
jmp 0x1e95e
movq -0x1e0(%rbp), %rax
movq %rax, -0x1d8(%rbp)
jmp 0x1e96e
movq -0x1c8(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
callq 0x2b3a0
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x60(%rbp)
cmpq $0x0, %rax
jle 0x1ead4
movq -0x20(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movb -0x51(%rbp), %al
movb $0x0, -0x89(%rbp)
movb $0x0, -0x99(%rbp)
testb $0x1, %al
je 0x1ea04
movl $0x18, %edi
callq 0x6260
movq %rax, %rdi
movq %rdi, -0x1f8(%rbp)
movq %rdi, -0x88(%rbp)
movb $0x1, -0x89(%rbp)
xorl %esi, %esi
movl $0x18, %edx
callq 0x6160
movq -0x1f8(%rbp), %rdi
callq 0x20320
movq -0x1f8(%rbp), %rax
movq %rax, -0x1f0(%rbp)
jmp 0x1ea4c
movl $0x18, %edi
callq 0x6260
movq %rax, %rdi
movq %rdi, -0x200(%rbp)
movq %rdi, -0x98(%rbp)
movb $0x1, -0x99(%rbp)
xorl %esi, %esi
movl $0x18, %edx
callq 0x6160
movq -0x200(%rbp), %rdi
callq 0x202e0
movq -0x200(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movq -0x1e8(%rbp), %rdi
movq -0x1f0(%rbp), %rsi
callq 0x2b3a0
jmp 0x1e981
movq -0x1a8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
testb $0x1, -0x69(%rbp)
jne 0x1ea9a
jmp 0x1eaa8
movq -0x68(%rbp), %rdi
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
testb $0x1, -0x79(%rbp)
jne 0x1eac1
jmp 0x1eacf
movq -0x78(%rbp), %rdi
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movb $0x1, -0x41(%rbp)
jmp 0x1ed09
movq -0x10(%rbp), %rax
cmpl $0x0, 0x18(%rax)
je 0x1eaf5
movq -0x10(%rbp), %rax
cmpl $0x1, 0x18(%rax)
jne 0x1ed07
movb $0x1, -0x41(%rbp)
movq -0x20(%rbp), %rdi
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x2b200
movq %rax, -0x208(%rbp)
movq -0x40(%rbp), %rax
movb 0x1(%rax), %al
movb $0x0, -0xa9(%rbp)
movb $0x0, -0xb9(%rbp)
testb $0x1, %al
je 0x1eb71
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq -0x1b0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x210(%rbp)
movq %rdi, -0xa8(%rbp)
movb $0x1, -0xa9(%rbp)
movq 0x8(%rax), %rsi
callq 0x20160
jmp 0x1eb61
movq -0x210(%rbp), %rax
movq %rax, -0x218(%rbp)
jmp 0x1ebb5
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x220(%rbp)
movq %rdi, -0xb8(%rbp)
movb $0x1, -0xb9(%rbp)
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x201a0
jmp 0x1eba5
movq -0x220(%rbp), %rax
movq %rax, -0x218(%rbp)
jmp 0x1ebb5
movq -0x208(%rbp), %rdi
movq -0x218(%rbp), %rsi
callq 0x2b3a0
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x60(%rbp)
cmpq $0x0, %rax
jle 0x1ed05
movq -0x20(%rbp), %rax
movq %rax, -0x228(%rbp)
movb -0x51(%rbp), %al
movb $0x0, -0xc9(%rbp)
movb $0x0, -0xd9(%rbp)
testb $0x1, %al
je 0x1ec4b
movl $0x18, %edi
callq 0x6260
movq %rax, %rdi
movq %rdi, -0x238(%rbp)
movq %rdi, -0xc8(%rbp)
movb $0x1, -0xc9(%rbp)
xorl %esi, %esi
movl $0x18, %edx
callq 0x6160
movq -0x238(%rbp), %rdi
callq 0x20320
movq -0x238(%rbp), %rax
movq %rax, -0x230(%rbp)
jmp 0x1ec93
movl $0x18, %edi
callq 0x6260
movq %rax, %rdi
movq %rdi, -0x240(%rbp)
movq %rdi, -0xd8(%rbp)
movb $0x1, -0xd9(%rbp)
xorl %esi, %esi
movl $0x18, %edx
callq 0x6160
movq -0x240(%rbp), %rdi
callq 0x202e0
movq -0x240(%rbp), %rax
movq %rax, -0x230(%rbp)
movq -0x228(%rbp), %rdi
movq -0x230(%rbp), %rsi
callq 0x2b3a0
jmp 0x1ebc8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
testb $0x1, -0xa9(%rbp)
jne 0x1ecc2
jmp 0x1ecd3
movq -0xa8(%rbp), %rdi
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
testb $0x1, -0xb9(%rbp)
jne 0x1ecef
jmp 0x1ed00
movq -0xb8(%rbp), %rdi
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
jmp 0x1ed07
jmp 0x1ed09
jmp 0x1ed0b
jmp 0x1ed0d
testb $0x1, -0x41(%rbp)
jne 0x1f1dd
movq -0x40(%rbp), %rax
testb $0x1, 0x1(%rax)
je 0x1f04b
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq -0x1b0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x248(%rbp)
movq 0x18(%rax), %rsi
callq 0x200a0
jmp 0x1ed4e
movq -0x248(%rbp), %rax
movq %rax, -0xe8(%rbp)
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq -0x1b0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x250(%rbp)
movq 0x18(%rax), %rsi
callq 0x20220
jmp 0x1ed85
movq -0x250(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x20(%rbp), %rdi
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x2b200
movq %rax, -0x258(%rbp)
movq -0x40(%rbp), %rax
movb 0x1(%rax), %al
movb $0x0, -0xf9(%rbp)
movb $0x0, -0x109(%rbp)
testb $0x1, %al
je 0x1ee0b
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq -0x1b0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x260(%rbp)
movq %rdi, -0xf8(%rbp)
movb $0x1, -0xf9(%rbp)
movq 0x8(%rax), %rsi
callq 0x20160
jmp 0x1edfb
movq -0x260(%rbp), %rax
movq %rax, -0x268(%rbp)
jmp 0x1ee4f
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x270(%rbp)
movq %rdi, -0x108(%rbp)
movb $0x1, -0x109(%rbp)
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x201a0
jmp 0x1ee3f
movq -0x270(%rbp), %rax
movq %rax, -0x268(%rbp)
jmp 0x1ee4f
movq -0x258(%rbp), %rdi
movq -0x268(%rbp), %rsi
callq 0x2b3a0
movq %rax, %rdi
movq -0xe8(%rbp), %rsi
callq 0x2b3a0
movq %rax, %rdi
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x2b200
movq %rax, -0x278(%rbp)
movq -0x38(%rbp), %rax
movb 0x1(%rax), %al
movb $0x0, -0x119(%rbp)
movb $0x0, -0x129(%rbp)
testb $0x1, %al
je 0x1eee8
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq -0x1b0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x280(%rbp)
movq %rdi, -0x118(%rbp)
movb $0x1, -0x119(%rbp)
movq 0x8(%rax), %rsi
callq 0x20160
jmp 0x1eed8
movq -0x280(%rbp), %rax
movq %rax, -0x288(%rbp)
jmp 0x1ef2c
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x290(%rbp)
movq %rdi, -0x128(%rbp)
movb $0x1, -0x129(%rbp)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x201a0
jmp 0x1ef1c
movq -0x290(%rbp), %rax
movq %rax, -0x288(%rbp)
jmp 0x1ef2c
movq -0x278(%rbp), %rdi
movq -0x288(%rbp), %rsi
callq 0x2b3a0
movq %rax, %rdi
movq -0xf0(%rbp), %rsi
callq 0x2b3a0
jmp 0x1f1db
movq -0x248(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq -0x250(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
testb $0x1, -0xf9(%rbp)
jne 0x1efae
jmp 0x1efbf
movq -0xf8(%rbp), %rdi
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
testb $0x1, -0x109(%rbp)
jne 0x1efdb
jmp 0x1efec
movq -0x108(%rbp), %rdi
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
testb $0x1, -0x119(%rbp)
jne 0x1f008
jmp 0x1f019
movq -0x118(%rbp), %rdi
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
testb $0x1, -0x129(%rbp)
jne 0x1f035
jmp 0x1f046
movq -0x128(%rbp), %rdi
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x298(%rbp)
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x20220
jmp 0x1f071
movq -0x298(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x20(%rbp), %rdi
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x2b200
movq %rax, -0x2a0(%rbp)
movq -0x38(%rbp), %rax
movb 0x1(%rax), %al
movb $0x0, -0x141(%rbp)
movb $0x0, -0x151(%rbp)
testb $0x1, %al
je 0x1f0f7
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq -0x1b0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x2a8(%rbp)
movq %rdi, -0x140(%rbp)
movb $0x1, -0x141(%rbp)
movq 0x8(%rax), %rsi
callq 0x20160
jmp 0x1f0e7
movq -0x2a8(%rbp), %rax
movq %rax, -0x2b0(%rbp)
jmp 0x1f13b
movl $0x20, %edi
callq 0x6260
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2b8(%rbp)
movq %rdi, -0x150(%rbp)
movb $0x1, -0x151(%rbp)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x201a0
jmp 0x1f12b
movq -0x2b8(%rbp), %rax
movq %rax, -0x2b0(%rbp)
jmp 0x1f13b
movq -0x2a0(%rbp), %rdi
movq -0x2b0(%rbp), %rsi
callq 0x2b3a0
movq %rax, %rdi
movq -0x138(%rbp), %rsi
callq 0x2b3a0
jmp 0x1f1db
movq -0x298(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
testb $0x1, -0x141(%rbp)
jne 0x1f198
jmp 0x1f1a9
movq -0x140(%rbp), %rdi
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
testb $0x1, -0x151(%rbp)
jne 0x1f1c5
jmp 0x1f1d6
movq -0x150(%rbp), %rdi
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
jmp 0x1f1dd
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movq %rax, -0x2c0(%rbp)
subq $0x5, %rax
ja 0x1f659
movq -0x2c0(%rbp), %rax
leaq 0x132ad(%rip), %rcx     # 0x324b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x20, %edi
callq 0x6260
movq %rax, -0x2d0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2b180
movq %rax, -0x2c8(%rbp)
jmp 0x1f22f
movq -0x2c8(%rbp), %rsi
movq -0x2d0(%rbp), %rdi
callq 0x20390
jmp 0x1f244
movq -0x2d0(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x20(%rbp), %rdi
movq -0x160(%rbp), %rsi
callq 0x2b3a0
jmp 0x1f659
movq -0x2d0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movl $0x20, %edi
callq 0x6260
movq %rax, -0x2e0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2b1a0
movq %rax, -0x2d8(%rbp)
jmp 0x1f2ac
movq -0x2d8(%rbp), %rsi
movq -0x2e0(%rbp), %rdi
callq 0x20390
jmp 0x1f2c1
movq -0x2e0(%rbp), %rax
movq %rax, -0x168(%rbp)
movl $0x20, %edi
callq 0x6260
movq %rax, -0x2f0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2b180
movq %rax, -0x2e8(%rbp)
jmp 0x1f2f2
movq -0x2e8(%rbp), %rsi
movq -0x2f0(%rbp), %rdi
callq 0x201e0
jmp 0x1f307
movq -0x2f0(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x20(%rbp), %rdi
movq -0x168(%rbp), %rsi
callq 0x2b3a0
movq %rax, %rdi
movq -0x170(%rbp), %rsi
callq 0x2b3a0
jmp 0x1f659
movq -0x2e0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq -0x2f0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movl $0x20, %edi
callq 0x6260
movq %rax, -0x300(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2b180
movq %rax, -0x2f8(%rbp)
jmp 0x1f3a0
movq -0x2f8(%rbp), %rsi
movq -0x300(%rbp), %rdi
callq 0x20390
jmp 0x1f3b5
movq -0x300(%rbp), %rax
movq %rax, -0x178(%rbp)
movl $0x20, %edi
callq 0x6260
movq %rax, -0x310(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2b180
movq %rax, -0x308(%rbp)
jmp 0x1f3e6
movq -0x308(%rbp), %rsi
movq -0x310(%rbp), %rdi
callq 0x202a0
jmp 0x1f3fb
movq -0x310(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x20(%rbp), %rdi
movq -0x178(%rbp), %rsi
callq 0x2b3a0
movq %rax, %rdi
movq -0x180(%rbp), %rsi
callq 0x2b3a0
jmp 0x1f659
movq -0x300(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq -0x310(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movl $0x20, %edi
callq 0x6260
movq %rax, -0x320(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2b180
movq %rax, -0x318(%rbp)
jmp 0x1f494
movq -0x318(%rbp), %rsi
movq -0x320(%rbp), %rdi
callq 0x20390
jmp 0x1f4a9
movq -0x320(%rbp), %rax
movq %rax, -0x188(%rbp)
movl $0x20, %edi
callq 0x6260
movq %rax, -0x330(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2b180
movq %rax, -0x328(%rbp)
jmp 0x1f4da
movq -0x328(%rbp), %rsi
movq -0x330(%rbp), %rdi
callq 0x20260
jmp 0x1f4ef
movq -0x330(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x20(%rbp), %rdi
movq -0x188(%rbp), %rsi
callq 0x2b3a0
movq %rax, %rdi
movq -0x190(%rbp), %rsi
callq 0x2b3a0
jmp 0x1f659
movq -0x320(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movq -0x330(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movl $0x20, %edi
callq 0x6260
movq %rax, -0x340(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2b180
movq %rax, -0x338(%rbp)
jmp 0x1f588
movq -0x338(%rbp), %rsi
movq -0x340(%rbp), %rdi
callq 0x202a0
jmp 0x1f59d
movq -0x340(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x20(%rbp), %rdi
movq -0x198(%rbp), %rsi
callq 0x2b3a0
jmp 0x1f659
movq -0x340(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movl $0x20, %edi
callq 0x6260
movq %rax, -0x350(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2b180
movq %rax, -0x348(%rbp)
jmp 0x1f605
movq -0x348(%rbp), %rsi
movq -0x350(%rbp), %rdi
callq 0x20260
jmp 0x1f61a
movq -0x350(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x20(%rbp), %rdi
movq -0x1a0(%rbp), %rsi
callq 0x2b3a0
jmp 0x1f659
movq -0x350(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x20, %esi
callq 0x6270
jmp 0x1f6bb
movl $0x10, %edi
callq 0x6260
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x358(%rbp)
movq -0x20(%rbp), %rsi
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rdx
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rax
addq %rax, %rdx
callq 0x20360
jmp 0x1f68e
movq -0x358(%rbp), %rax
addq $0x360, %rsp            # imm = 0x360
popq %rbp
retq
movq -0x358(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x10, %esi
callq 0x6270
movq -0x28(%rbp), %rdi
callq 0x64d0
nopw %cs:(%rax,%rax)