// File: zerolfx[P]P-Machine/grt.cpp
// Function: Grt::execute(StackMachine*)
void Grt::execute(StackMachine *stack) 
{
	// check if the stack contains at least two entries
	if(stack->fSP < 1)
		throw ExecutionError("instruction grt: 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 grt: SP does not point to element of type integer.");
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP - 1])))
				throw ExecutionError("instruction grt: 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 grt: SP does not point to element of type real.");
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP - 1])))
				throw ExecutionError("instruction grt: 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 grt: SP does not point to element of type boolean.");
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP - 1])))
				throw ExecutionError("instruction grt: 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 grt: SP does not point to element of type character.");
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP - 1])))
				throw ExecutionError("instruction grt: 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 grt: SP does not point to element of type address.");
			if(typeid(p1) != typeid(*(stack->fStore[stack->fSP - 1])))
				throw ExecutionError("instruction grt: SP - 1 does not point to element of type address.");
			break;
		}

	}
		
	// compare
	StackBoolean *result;
	if(*(stack->fStore[stack->fSP - 1]) > *(stack->fStore[stack->fSP]))
		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("grt");

}

// 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 0x10887
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 0x27743(%rip), %rsi     # 0x37f45
leaq -0x30(%rbp), %rdi
callq 0x8940
jmp 0x1080d
movq -0x278(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x283d0
jmp 0x1081f
movq -0x278(%rbp), %rdi
movb $0x0, -0x45(%rbp)
leaq 0x3924f(%rip), %rsi     # 0x49a80
leaq 0x17bc8(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x11804
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x10865
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 0x10876
jmp 0x10882
movq -0x278(%rbp), %rdi
callq 0x71c0
jmp 0x117fb
movq -0x268(%rbp), %rax
movl 0x8(%rax), %eax
movq %rax, -0x280(%rbp)
subq $0x4, %rax
ja 0x1153c
movq -0x280(%rbp), %rax
leaq 0x2767c(%rip), %rcx     # 0x37f2c
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 0x108f3
callq 0x7300
jmp 0x108f3
movq -0x288(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3a1e8(%rip), %rdi     # 0x4aaf0
callq 0x9370
testb $0x1, %al
jne 0x10916
jmp 0x109df
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 0x27635(%rip), %rsi     # 0x37f7e
leaq -0x78(%rbp), %rdi
callq 0x8940
jmp 0x10954
movq -0x298(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x283d0
jmp 0x10966
movq -0x298(%rbp), %rdi
movb $0x0, -0x7a(%rbp)
leaq 0x39108(%rip), %rsi     # 0x49a80
leaq 0x17a81(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x11804
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x10b11
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x109bd
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 0x109ce
jmp 0x109da
movq -0x298(%rbp), %rdi
callq 0x71c0
jmp 0x10b11
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 0x10a13
callq 0x7300
jmp 0x10a13
movq -0x2a0(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3a0c8(%rip), %rdi     # 0x4aaf0
callq 0x9370
testb $0x1, %al
jne 0x10a36
jmp 0x10b03
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 0x2754e(%rip), %rsi     # 0x37fbd
leaq -0xa0(%rbp), %rdi
callq 0x8940
jmp 0x10a7d
movq -0x2b0(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x283d0
jmp 0x10a92
movq -0x2b0(%rbp), %rdi
movb $0x0, -0xa2(%rbp)
leaq 0x38fd9(%rip), %rsi     # 0x49a80
leaq 0x17952(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x11804
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x10ade
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 0x10af5
jmp 0x10b01
movq -0x2b0(%rbp), %rdi
callq 0x71c0
jmp 0x10b11
leaq -0x58(%rbp), %rdi
callq 0x27380
jmp 0x1153c
leaq -0x58(%rbp), %rdi
callq 0x27380
jmp 0x117fb
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 0x10b5d
callq 0x7300
jmp 0x10b5d
movq -0x2b8(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3a04e(%rip), %rdi     # 0x4abc0
callq 0x9370
testb $0x1, %al
jne 0x10b80
jmp 0x10c61
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 0x27447(%rip), %rsi     # 0x38000
leaq -0xd8(%rbp), %rdi
callq 0x8940
jmp 0x10bc7
movq -0x2c8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x283d0
jmp 0x10bdc
movq -0x2c8(%rbp), %rdi
movb $0x0, -0xda(%rbp)
leaq 0x38e8f(%rip), %rsi     # 0x49a80
leaq 0x17808(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x11804
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x10d96
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x10c39
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 0x10c50
jmp 0x10c5c
movq -0x2c8(%rbp), %rdi
callq 0x71c0
jmp 0x10d96
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 0x10c95
callq 0x7300
jmp 0x10c95
movq -0x2d0(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x39f16(%rip), %rdi     # 0x4abc0
callq 0x9370
testb $0x1, %al
jne 0x10cb8
jmp 0x10d85
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 0x2734b(%rip), %rsi     # 0x3803c
leaq -0x100(%rbp), %rdi
callq 0x8940
jmp 0x10cff
movq -0x2e0(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x283d0
jmp 0x10d14
movq -0x2e0(%rbp), %rdi
movb $0x0, -0x102(%rbp)
leaq 0x38d57(%rip), %rsi     # 0x49a80
leaq 0x176d0(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x11804
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x10d60
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 0x10d77
jmp 0x10d83
movq -0x2e0(%rbp), %rdi
callq 0x71c0
jmp 0x10d96
leaq -0xb8(%rbp), %rdi
callq 0x27880
jmp 0x1153c
leaq -0xb8(%rbp), %rdi
callq 0x27880
jmp 0x117fb
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 0x10de4
callq 0x7300
jmp 0x10de4
movq -0x2e8(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x39e97(%rip), %rdi     # 0x4ac90
callq 0x9370
testb $0x1, %al
jne 0x10e07
jmp 0x10ee8
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 0x2723c(%rip), %rsi     # 0x3807c
leaq -0x138(%rbp), %rdi
callq 0x8940
jmp 0x10e4e
movq -0x2f8(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x283d0
jmp 0x10e63
movq -0x2f8(%rbp), %rdi
movb $0x0, -0x13a(%rbp)
leaq 0x38c08(%rip), %rsi     # 0x49a80
leaq 0x17581(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x11804
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x1101d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x10ec0
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 0x10ed7
jmp 0x10ee3
movq -0x2f8(%rbp), %rdi
callq 0x71c0
jmp 0x1101d
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 0x10f1c
callq 0x7300
jmp 0x10f1c
movq -0x300(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x39d5f(%rip), %rdi     # 0x4ac90
callq 0x9370
testb $0x1, %al
jne 0x10f3f
jmp 0x1100c
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 0x27143(%rip), %rsi     # 0x380bb
leaq -0x160(%rbp), %rdi
callq 0x8940
jmp 0x10f86
movq -0x310(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x283d0
jmp 0x10f9b
movq -0x310(%rbp), %rdi
movb $0x0, -0x162(%rbp)
leaq 0x38ad0(%rip), %rsi     # 0x49a80
leaq 0x17449(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x11804
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x10fe7
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 0x10ffe
jmp 0x1100a
movq -0x310(%rbp), %rdi
callq 0x71c0
jmp 0x1101d
leaq -0x118(%rbp), %rdi
callq 0x27d70
jmp 0x1153c
leaq -0x118(%rbp), %rdi
callq 0x27d70
jmp 0x117fb
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 0x1106e
callq 0x7300
jmp 0x1106e
movq -0x318(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x39cdd(%rip), %rdi     # 0x4ad60
callq 0x9370
testb $0x1, %al
jne 0x11091
jmp 0x11172
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 0x27034(%rip), %rsi     # 0x380fe
leaq -0x198(%rbp), %rdi
callq 0x8940
jmp 0x110d8
movq -0x328(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x283d0
jmp 0x110ed
movq -0x328(%rbp), %rdi
movb $0x0, -0x19a(%rbp)
leaq 0x3897e(%rip), %rsi     # 0x49a80
leaq 0x172f7(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x11804
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x112a7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x1114a
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 0x11161
jmp 0x1116d
movq -0x328(%rbp), %rdi
callq 0x71c0
jmp 0x112a7
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 0x111a6
callq 0x7300
jmp 0x111a6
movq -0x330(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x39ba5(%rip), %rdi     # 0x4ad60
callq 0x9370
testb $0x1, %al
jne 0x111c9
jmp 0x11296
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 0x26f3d(%rip), %rsi     # 0x3813f
leaq -0x1c0(%rbp), %rdi
callq 0x8940
jmp 0x11210
movq -0x340(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
callq 0x283d0
jmp 0x11225
movq -0x340(%rbp), %rdi
movb $0x0, -0x1c2(%rbp)
leaq 0x38846(%rip), %rsi     # 0x49a80
leaq 0x171bf(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x11804
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x11271
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 0x11288
jmp 0x11294
movq -0x340(%rbp), %rdi
callq 0x71c0
jmp 0x112a7
leaq -0x178(%rbp), %rdi
callq 0x281b0
jmp 0x1153c
leaq -0x178(%rbp), %rdi
callq 0x281b0
jmp 0x117fb
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 0x112f5
callq 0x7300
jmp 0x112f5
movq -0x348(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3964e(%rip), %rdi     # 0x4a958
callq 0x9370
testb $0x1, %al
jne 0x11318
jmp 0x113f9
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 0x26e33(%rip), %rsi     # 0x38184
leaq -0x1f8(%rbp), %rdi
callq 0x8940
jmp 0x1135f
movq -0x358(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
callq 0x283d0
jmp 0x11374
movq -0x358(%rbp), %rdi
movb $0x0, -0x1fa(%rbp)
leaq 0x386f7(%rip), %rsi     # 0x49a80
leaq 0x17070(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x11804
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x1152b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x113d1
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 0x113e8
jmp 0x113f4
movq -0x358(%rbp), %rdi
callq 0x71c0
jmp 0x1152b
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 0x1142d
callq 0x7300
jmp 0x1142d
movq -0x360(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x39516(%rip), %rdi     # 0x4a958
callq 0x9370
testb $0x1, %al
jne 0x11450
jmp 0x1151d
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 0x26d3a(%rip), %rsi     # 0x381c3
leaq -0x220(%rbp), %rdi
callq 0x8940
jmp 0x11497
movq -0x370(%rbp), %rdi
leaq -0x220(%rbp), %rsi
callq 0x283d0
jmp 0x114ac
movq -0x370(%rbp), %rdi
movb $0x0, -0x222(%rbp)
leaq 0x385bf(%rip), %rsi     # 0x49a80
leaq 0x16f38(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x11804
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x114f8
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 0x1150f
jmp 0x1151b
movq -0x370(%rbp), %rdi
callq 0x71c0
jmp 0x1152b
leaq -0x1d8(%rbp), %rdi
callq 0x26840
jmp 0x1153c
leaq -0x1d8(%rbp), %rdi
callq 0x26840
jmp 0x117fb
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, -0x378(%rbp)
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq -0x378(%rbp), %rdi
movq (%rax), %rsi
callq 0x272d0
testb $0x1, %al
jne 0x11590
jmp 0x115e5
movl $0x10, %edi
callq 0x7270
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x380(%rbp)
movl $0x1, %esi
callq 0x27d20
jmp 0x115b3
movq -0x380(%rbp), %rax
movq %rax, -0x230(%rbp)
jmp 0x11637
movq -0x380(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
movl $0x10, %esi
callq 0x7280
jmp 0x117fb
movl $0x10, %edi
callq 0x7270
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x388(%rbp)
xorl %esi, %esi
callq 0x27d20
jmp 0x11605
movq -0x388(%rbp), %rax
movq %rax, -0x230(%rbp)
jmp 0x11637
movq -0x388(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
movl $0x10, %esi
callq 0x7280
jmp 0x117fb
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 0x1167c
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 0x116e5
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 0x26a81(%rip), %rsi     # 0x38206
leaq -0x258(%rbp), %rdi
callq 0x8940
jmp 0x11793
movq -0x3a8(%rbp), %rdi
leaq -0x258(%rbp), %rsi
callq 0x2c4d0
jmp 0x117a8
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 0x117ef
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)