// File: zerolfx[P]P-Machine/equ.cpp
// Function: Equ::execute(StackMachine*)
void Equ::execute(StackMachine *stack) 
{
	// check if the stack contains at least two entries
	if(stack->fSP < 1)
		throw ExecutionError("instruction equ: requires 2 stackelements to be present.");

	switch(fType)
	{
		case integer:
		{
			StackInteger p1;

			// check if the two uppermost stackentries are of type integer
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP])))
				throw ExecutionError("instruction equ: SP does not point to element of type integer.");
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP - 1])))
				throw ExecutionError("instruction equ: SP - 1 does not point to element of type integer.");

			break;
		}	
		case real:
		{
			StackReal p1;
			// check if the two uppermost stackentries are of type real
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP])))
				throw ExecutionError("instruction equ: SP does not point to element of type real.");
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP - 1])))
				throw ExecutionError("instruction equ: SP - 1 does not point to element of type real.");
			break;
		}
		case boolean:
		{
			StackBoolean p1;
			// check if the two uppermost stackentries are of type real
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP])))
				throw ExecutionError("instruction equ: SP does not point to element of type boolean.");
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP - 1])))
				throw ExecutionError("instruction equ: SP - 1 does not point to element of type boolean.");
			break;
		}
		case character:
		{
			StackCharacter p1;
			// check if the two uppermost stackentries are of type real
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP])))
				throw ExecutionError("instruction equ: SP does not point to element of type character.");
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP - 1])))
				throw ExecutionError("instruction equ: SP - 1 does not point to element of type character.");
			break;
		}
		case address:
		{
			StackAddress p1;
			// check if the two uppermost stackentries are of type real
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP])))
				throw ExecutionError("instruction equ: SP does not point to element of type address.");
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP - 1])))
				throw ExecutionError("instruction equ: SP - 1 does not point to element of type address.");
			break;
		}

	}
		
	// compare
	StackBoolean *result;
	if(*(stack->fStore[stack->fSP]) == *(stack->fStore[stack->fSP - 1]))
		result = new StackBoolean(true);
	else
		result = new StackBoolean(false);
		
	// remove operands
	delete stack->fStore[stack->fSP];
	stack->fStore[stack->fSP] = 0;
	delete stack->fStore[stack->fSP - 1];
	stack->fStore[stack->fSP - 1] = 0;
	stack->fStore.pop_back();
	stack->fStore.pop_back();
	--stack->fSP;

	// put result on top of stack
	stack->fStore.push_back(result);
	
	// adding cost of this instruction
	stack->fTime.count("equ");

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3b0, %rsp            # imm = 0x3B0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x268(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x1, 0xb4(%rax)
jge 0xe177
movb $0x1, -0x45(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x278(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x270(%rbp)
callq 0x74f0
movq -0x270(%rbp), %rdx
leaq 0x2983f(%rip), %rsi     # 0x37931
leaq -0x30(%rbp), %rdi
callq 0x8940
jmp 0xe0fd
movq -0x278(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x283d0
jmp 0xe10f
movq -0x278(%rbp), %rdi
movb $0x0, -0x45(%rbp)
leaq 0x3b95f(%rip), %rsi     # 0x49a80
leaq 0x1a2d8(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0xf0f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xe155
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x7170
leaq -0x31(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x45(%rbp)
jne 0xe166
jmp 0xe172
movq -0x278(%rbp), %rdi
callq 0x71c0
jmp 0xf0eb
movq -0x268(%rbp), %rax
movl 0x8(%rax), %eax
movq %rax, -0x280(%rbp)
subq $0x4, %rax
ja 0xee2c
movq -0x280(%rbp), %rax
leaq 0x29778(%rip), %rcx     # 0x37918
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
callq 0x27340
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x288(%rbp)
cmpq $0x0, %rax
jne 0xe1e3
callq 0x7300
jmp 0xe1e3
movq -0x288(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3c8f8(%rip), %rdi     # 0x4aaf0
callq 0x9370
testb $0x1, %al
jne 0xe206
jmp 0xe2cf
movb $0x1, -0x7a(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x298(%rbp)
leaq -0x79(%rbp), %rdi
movq %rdi, -0x290(%rbp)
callq 0x74f0
movq -0x290(%rbp), %rdx
leaq 0x29731(%rip), %rsi     # 0x3796a
leaq -0x78(%rbp), %rdi
callq 0x8940
jmp 0xe244
movq -0x298(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x283d0
jmp 0xe256
movq -0x298(%rbp), %rdi
movb $0x0, -0x7a(%rbp)
leaq 0x3b818(%rip), %rsi     # 0x49a80
leaq 0x1a191(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0xf0f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xe401
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xe2ad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x7170
leaq -0x79(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x7a(%rbp)
jne 0xe2be
jmp 0xe2ca
movq -0x298(%rbp), %rdi
callq 0x71c0
jmp 0xe401
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movl 0xb4(%rax), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x2a0(%rbp)
cmpq $0x0, %rax
jne 0xe303
callq 0x7300
jmp 0xe303
movq -0x2a0(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3c7d8(%rip), %rdi     # 0x4aaf0
callq 0x9370
testb $0x1, %al
jne 0xe326
jmp 0xe3f3
movb $0x1, -0xa2(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x2b0(%rbp)
leaq -0xa1(%rbp), %rdi
movq %rdi, -0x2a8(%rbp)
callq 0x74f0
movq -0x2a8(%rbp), %rdx
leaq 0x2964a(%rip), %rsi     # 0x379a9
leaq -0xa0(%rbp), %rdi
callq 0x8940
jmp 0xe36d
movq -0x2b0(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x283d0
jmp 0xe382
movq -0x2b0(%rbp), %rdi
movb $0x0, -0xa2(%rbp)
leaq 0x3b6e9(%rip), %rsi     # 0x49a80
leaq 0x1a062(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0xf0f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xe3ce
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x7170
leaq -0xa1(%rbp), %rdi
callq 0x72e0
testb $0x1, -0xa2(%rbp)
jne 0xe3e5
jmp 0xe3f1
movq -0x2b0(%rbp), %rdi
callq 0x71c0
jmp 0xe401
leaq -0x58(%rbp), %rdi
callq 0x27380
jmp 0xee2c
leaq -0x58(%rbp), %rdi
callq 0x27380
jmp 0xf0eb
leaq -0xb8(%rbp), %rdi
xorps %xmm0, %xmm0
callq 0x27840
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x2b8(%rbp)
cmpq $0x0, %rax
jne 0xe44d
callq 0x7300
jmp 0xe44d
movq -0x2b8(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3c75e(%rip), %rdi     # 0x4abc0
callq 0x9370
testb $0x1, %al
jne 0xe470
jmp 0xe551
movb $0x1, -0xda(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x2c8(%rbp)
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x2c0(%rbp)
callq 0x74f0
movq -0x2c0(%rbp), %rdx
leaq 0x29543(%rip), %rsi     # 0x379ec
leaq -0xd8(%rbp), %rdi
callq 0x8940
jmp 0xe4b7
movq -0x2c8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x283d0
jmp 0xe4cc
movq -0x2c8(%rbp), %rdi
movb $0x0, -0xda(%rbp)
leaq 0x3b59f(%rip), %rsi     # 0x49a80
leaq 0x19f18(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0xf0f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xe686
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xe529
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x7170
leaq -0xd9(%rbp), %rdi
callq 0x72e0
testb $0x1, -0xda(%rbp)
jne 0xe540
jmp 0xe54c
movq -0x2c8(%rbp), %rdi
callq 0x71c0
jmp 0xe686
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movl 0xb4(%rax), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x2d0(%rbp)
cmpq $0x0, %rax
jne 0xe585
callq 0x7300
jmp 0xe585
movq -0x2d0(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3c626(%rip), %rdi     # 0x4abc0
callq 0x9370
testb $0x1, %al
jne 0xe5a8
jmp 0xe675
movb $0x1, -0x102(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x2e0(%rbp)
leaq -0x101(%rbp), %rdi
movq %rdi, -0x2d8(%rbp)
callq 0x74f0
movq -0x2d8(%rbp), %rdx
leaq 0x29447(%rip), %rsi     # 0x37a28
leaq -0x100(%rbp), %rdi
callq 0x8940
jmp 0xe5ef
movq -0x2e0(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x283d0
jmp 0xe604
movq -0x2e0(%rbp), %rdi
movb $0x0, -0x102(%rbp)
leaq 0x3b467(%rip), %rsi     # 0x49a80
leaq 0x19de0(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0xf0f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xe650
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x7170
leaq -0x101(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x102(%rbp)
jne 0xe667
jmp 0xe673
movq -0x2e0(%rbp), %rdi
callq 0x71c0
jmp 0xe686
leaq -0xb8(%rbp), %rdi
callq 0x27880
jmp 0xee2c
leaq -0xb8(%rbp), %rdi
callq 0x27880
jmp 0xf0eb
leaq -0x118(%rbp), %rdi
xorl %esi, %esi
callq 0x27d20
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x2e8(%rbp)
cmpq $0x0, %rax
jne 0xe6d4
callq 0x7300
jmp 0xe6d4
movq -0x2e8(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3c5a7(%rip), %rdi     # 0x4ac90
callq 0x9370
testb $0x1, %al
jne 0xe6f7
jmp 0xe7d8
movb $0x1, -0x13a(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x2f8(%rbp)
leaq -0x139(%rbp), %rdi
movq %rdi, -0x2f0(%rbp)
callq 0x74f0
movq -0x2f0(%rbp), %rdx
leaq 0x29338(%rip), %rsi     # 0x37a68
leaq -0x138(%rbp), %rdi
callq 0x8940
jmp 0xe73e
movq -0x2f8(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x283d0
jmp 0xe753
movq -0x2f8(%rbp), %rdi
movb $0x0, -0x13a(%rbp)
leaq 0x3b318(%rip), %rsi     # 0x49a80
leaq 0x19c91(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0xf0f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xe90d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xe7b0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x138(%rbp), %rdi
callq 0x7170
leaq -0x139(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x13a(%rbp)
jne 0xe7c7
jmp 0xe7d3
movq -0x2f8(%rbp), %rdi
callq 0x71c0
jmp 0xe90d
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movl 0xb4(%rax), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x300(%rbp)
cmpq $0x0, %rax
jne 0xe80c
callq 0x7300
jmp 0xe80c
movq -0x300(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3c46f(%rip), %rdi     # 0x4ac90
callq 0x9370
testb $0x1, %al
jne 0xe82f
jmp 0xe8fc
movb $0x1, -0x162(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x310(%rbp)
leaq -0x161(%rbp), %rdi
movq %rdi, -0x308(%rbp)
callq 0x74f0
movq -0x308(%rbp), %rdx
leaq 0x2923f(%rip), %rsi     # 0x37aa7
leaq -0x160(%rbp), %rdi
callq 0x8940
jmp 0xe876
movq -0x310(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x283d0
jmp 0xe88b
movq -0x310(%rbp), %rdi
movb $0x0, -0x162(%rbp)
leaq 0x3b1e0(%rip), %rsi     # 0x49a80
leaq 0x19b59(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0xf0f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xe8d7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x160(%rbp), %rdi
callq 0x7170
leaq -0x161(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x162(%rbp)
jne 0xe8ee
jmp 0xe8fa
movq -0x310(%rbp), %rdi
callq 0x71c0
jmp 0xe90d
leaq -0x118(%rbp), %rdi
callq 0x27d70
jmp 0xee2c
leaq -0x118(%rbp), %rdi
callq 0x27d70
jmp 0xf0eb
leaq -0x178(%rbp), %rdi
movl $0x61, %esi
callq 0x28170
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x318(%rbp)
cmpq $0x0, %rax
jne 0xe95e
callq 0x7300
jmp 0xe95e
movq -0x318(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3c3ed(%rip), %rdi     # 0x4ad60
callq 0x9370
testb $0x1, %al
jne 0xe981
jmp 0xea62
movb $0x1, -0x19a(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x328(%rbp)
leaq -0x199(%rbp), %rdi
movq %rdi, -0x320(%rbp)
callq 0x74f0
movq -0x320(%rbp), %rdx
leaq 0x29130(%rip), %rsi     # 0x37aea
leaq -0x198(%rbp), %rdi
callq 0x8940
jmp 0xe9c8
movq -0x328(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x283d0
jmp 0xe9dd
movq -0x328(%rbp), %rdi
movb $0x0, -0x19a(%rbp)
leaq 0x3b08e(%rip), %rsi     # 0x49a80
leaq 0x19a07(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0xf0f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xeb97
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xea3a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x198(%rbp), %rdi
callq 0x7170
leaq -0x199(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x19a(%rbp)
jne 0xea51
jmp 0xea5d
movq -0x328(%rbp), %rdi
callq 0x71c0
jmp 0xeb97
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movl 0xb4(%rax), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x330(%rbp)
cmpq $0x0, %rax
jne 0xea96
callq 0x7300
jmp 0xea96
movq -0x330(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3c2b5(%rip), %rdi     # 0x4ad60
callq 0x9370
testb $0x1, %al
jne 0xeab9
jmp 0xeb86
movb $0x1, -0x1c2(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x340(%rbp)
leaq -0x1c1(%rbp), %rdi
movq %rdi, -0x338(%rbp)
callq 0x74f0
movq -0x338(%rbp), %rdx
leaq 0x29039(%rip), %rsi     # 0x37b2b
leaq -0x1c0(%rbp), %rdi
callq 0x8940
jmp 0xeb00
movq -0x340(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
callq 0x283d0
jmp 0xeb15
movq -0x340(%rbp), %rdi
movb $0x0, -0x1c2(%rbp)
leaq 0x3af56(%rip), %rsi     # 0x49a80
leaq 0x198cf(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0xf0f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xeb61
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x1c0(%rbp), %rdi
callq 0x7170
leaq -0x1c1(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x1c2(%rbp)
jne 0xeb78
jmp 0xeb84
movq -0x340(%rbp), %rdi
callq 0x71c0
jmp 0xeb97
leaq -0x178(%rbp), %rdi
callq 0x281b0
jmp 0xee2c
leaq -0x178(%rbp), %rdi
callq 0x281b0
jmp 0xf0eb
leaq -0x1d8(%rbp), %rdi
xorl %esi, %esi
callq 0x26800
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x348(%rbp)
cmpq $0x0, %rax
jne 0xebe5
callq 0x7300
jmp 0xebe5
movq -0x348(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3bd5e(%rip), %rdi     # 0x4a958
callq 0x9370
testb $0x1, %al
jne 0xec08
jmp 0xece9
movb $0x1, -0x1fa(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x358(%rbp)
leaq -0x1f9(%rbp), %rdi
movq %rdi, -0x350(%rbp)
callq 0x74f0
movq -0x350(%rbp), %rdx
leaq 0x28f2f(%rip), %rsi     # 0x37b70
leaq -0x1f8(%rbp), %rdi
callq 0x8940
jmp 0xec4f
movq -0x358(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
callq 0x283d0
jmp 0xec64
movq -0x358(%rbp), %rdi
movb $0x0, -0x1fa(%rbp)
leaq 0x3ae07(%rip), %rsi     # 0x49a80
leaq 0x19780(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0xf0f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xee1b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xecc1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x1f8(%rbp), %rdi
callq 0x7170
leaq -0x1f9(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x1fa(%rbp)
jne 0xecd8
jmp 0xece4
movq -0x358(%rbp), %rdi
callq 0x71c0
jmp 0xee1b
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movl 0xb4(%rax), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x360(%rbp)
cmpq $0x0, %rax
jne 0xed1d
callq 0x7300
jmp 0xed1d
movq -0x360(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3bc26(%rip), %rdi     # 0x4a958
callq 0x9370
testb $0x1, %al
jne 0xed40
jmp 0xee0d
movb $0x1, -0x222(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x370(%rbp)
leaq -0x221(%rbp), %rdi
movq %rdi, -0x368(%rbp)
callq 0x74f0
movq -0x368(%rbp), %rdx
leaq 0x28e36(%rip), %rsi     # 0x37baf
leaq -0x220(%rbp), %rdi
callq 0x8940
jmp 0xed87
movq -0x370(%rbp), %rdi
leaq -0x220(%rbp), %rsi
callq 0x283d0
jmp 0xed9c
movq -0x370(%rbp), %rdi
movb $0x0, -0x222(%rbp)
leaq 0x3accf(%rip), %rsi     # 0x49a80
leaq 0x19648(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0xf0f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xede8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x220(%rbp), %rdi
callq 0x7170
leaq -0x221(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x222(%rbp)
jne 0xedff
jmp 0xee0b
movq -0x370(%rbp), %rdi
callq 0x71c0
jmp 0xee1b
leaq -0x1d8(%rbp), %rdi
callq 0x26840
jmp 0xee2c
leaq -0x1d8(%rbp), %rdi
callq 0x26840
jmp 0xf0eb
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x378(%rbp)
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movl 0xb4(%rax), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0x8e70
movq -0x378(%rbp), %rdi
movq (%rax), %rsi
callq 0x271a0
testb $0x1, %al
jne 0xee80
jmp 0xeed5
movl $0x10, %edi
callq 0x7270
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x380(%rbp)
movl $0x1, %esi
callq 0x27d20
jmp 0xeea3
movq -0x380(%rbp), %rax
movq %rax, -0x230(%rbp)
jmp 0xef27
movq -0x380(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
movl $0x10, %esi
callq 0x7280
jmp 0xf0eb
movl $0x10, %edi
callq 0x7270
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x388(%rbp)
xorl %esi, %esi
callq 0x27d20
jmp 0xeef5
movq -0x388(%rbp), %rax
movq %rax, -0x230(%rbp)
jmp 0xef27
movq -0x388(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
movl $0x10, %esi
callq 0x7280
jmp 0xf0eb
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x390(%rbp)
cmpq $0x0, %rax
je 0xef6c
movq -0x390(%rbp), %rdi
callq 0x26ca0
movq -0x390(%rbp), %rdi
movl $0x8, %esi
callq 0x7280
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq $0x0, (%rax)
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movl 0xb4(%rax), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x398(%rbp)
cmpq $0x0, %rax
je 0xefd5
movq -0x398(%rbp), %rdi
callq 0x26ca0
movq -0x398(%rbp), %rdi
movl $0x8, %esi
callq 0x7280
movq -0x10(%rbp), %rax
movq %rax, %rdi
addq $0x18, %rdi
movl 0xb4(%rax), %eax
decl %eax
movslq %eax, %rsi
callq 0x8e70
movq $0x0, (%rax)
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
callq 0x8e90
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
callq 0x8e90
movq -0x10(%rbp), %rax
movl 0xb4(%rax), %ecx
decl %ecx
movl %ecx, 0xb4(%rax)
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x230(%rbp), %rax
movq %rax, -0x238(%rbp)
leaq -0x238(%rbp), %rsi
callq 0xd2a0
movq -0x10(%rbp), %rax
addq $0x78, %rax
movq %rax, -0x3a8(%rbp)
leaq -0x259(%rbp), %rdi
movq %rdi, -0x3a0(%rbp)
callq 0x74f0
movq -0x3a0(%rbp), %rdx
leaq 0x28b7d(%rip), %rsi     # 0x37bf2
leaq -0x258(%rbp), %rdi
callq 0x8940
jmp 0xf083
movq -0x3a8(%rbp), %rdi
leaq -0x258(%rbp), %rsi
callq 0x2c4d0
jmp 0xf098
leaq -0x258(%rbp), %rdi
callq 0x7170
leaq -0x259(%rbp), %rdi
callq 0x72e0
addq $0x3b0, %rsp            # imm = 0x3B0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xf0df
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x258(%rbp), %rdi
callq 0x7170
leaq -0x259(%rbp), %rdi
callq 0x72e0
movq -0x40(%rbp), %rdi
callq 0x74e0
nopw %cs:(%rax,%rax)