// File: zerolfx[P]P-Machine/ind.cpp
// Function: Ind::execute(StackMachine*)
void Ind::execute(StackMachine *stack)
{
	StackAddress p;
	
	if(typeid(p) != typeid(*(stack->fStore[stack->fSP])))
		throw ExecutionError("instruction ind: type pointed to by SP is not of type address.");
		
	StackAddress *oldpointer = dynamic_cast<StackAddress*>(stack->fStore[stack->fSP]);	
	
	StackElement *object;
	if(stack->fStore[stack->fSP]->heapAddress())
	{
		if(stack->fStore[stack->fSP]->getValue() < stack->fNP)
		{
			throw ExecutionError("instruction ind: invalid heap address.");
		}
		else
		{
			object = stack->fHeap[-stack->fStore[stack->fSP]->getValue() - 1];
		}
	}
	else
	{
		if(stack->fStore[stack->fSP]->getValue() > stack->fSP)
			throw ExecutionError("instruction ind: invalid stack address.");
		else
			object = stack->fStore[stack->fStore[stack->fSP]->getValue()];
	}
	
	switch(fType)
	{
		case integer:
		{
			StackInteger p1;

			if(typeid(p1) != typeid(*object))
			{
				throw ExecutionError("instruction ind: type pointed to is not of type integer.");
			}
			else
			{
				stack->fStore[stack->fSP] = new StackInteger(*(dynamic_cast<StackInteger*>(object)));
			}
				
			break;
		}	
		case real:
		{
			StackReal p1;

			if(typeid(p1) != typeid(*object))
			{
				throw ExecutionError("instruction ind: type pointed to is not of type real.");
			}
			else
			{
				stack->fStore[stack->fSP] = new StackReal(*(dynamic_cast<StackReal*>(object)));

			}

			break;
		}
		case boolean:
		{
			StackBoolean p1;
			
			if(typeid(p1) != typeid(*object))
			{
				throw ExecutionError("instruction ind: type pointed to is not of type boolean.");
			}
			else
			{
				stack->fStore[stack->fSP] = new StackBoolean(*(dynamic_cast<StackBoolean*>(object)));
			}

			break;
		}
		case character:
		{
			StackCharacter p1;
			
			if(typeid(p1) != typeid(*object))
			{
				throw ExecutionError("instruction ind: type pointed to is not of type character.");
			}
			else
			{
				stack->fStore[stack->fSP] = new StackCharacter(*(dynamic_cast<StackCharacter*>(object)));
			}


			break;
		}
		case address:
		{
			StackAddress p1;

			if(typeid(p1) != typeid(*object))
			{
				throw ExecutionError("instruction ind: type pointed to is not of type address.");
			}
			else
			{
				stack->fStore[stack->fSP] = new StackAddress(*(dynamic_cast<StackAddress*>(object)));
			}
				
			break;
		}
	}
	
	delete oldpointer;	
	
	// adding cost of this instruction
	stack->fTime.count("ind");

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x390, %rsp            # imm = 0x390
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x208(%rbp)
leaq -0x20(%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, -0x200(%rbp)
cmpq $0x0, %rax
jne 0x124f8
callq 0x7300
jmp 0x124f8
movq -0x200(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3844b(%rip), %rdi     # 0x4a958
callq 0x9370
testb $0x1, %al
jne 0x1251b
jmp 0x125e4
movb $0x1, -0x52(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x218(%rbp)
leaq -0x51(%rbp), %rdi
movq %rdi, -0x210(%rbp)
callq 0x74f0
movq -0x210(%rbp), %rdx
leaq 0x25e77(%rip), %rsi     # 0x383c5
leaq -0x50(%rbp), %rdi
callq 0x8940
jmp 0x12559
movq -0x218(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x283d0
jmp 0x1256b
movq -0x218(%rbp), %rdi
movb $0x0, -0x52(%rbp)
leaq 0x37503(%rip), %rsi     # 0x49a80
leaq 0x15e7c(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x133b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x133a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x125c2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x7170
leaq -0x51(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x52(%rbp)
jne 0x125d3
jmp 0x125df
movq -0x218(%rbp), %rdi
callq 0x71c0
jmp 0x133a6
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x220(%rbp)
cmpq $0x0, %rax
je 0x12633
movq -0x220(%rbp), %rdi
leaq 0x3840e(%rip), %rsi     # 0x4aa28
leaq 0x38337(%rip), %rdx     # 0x4a958
xorl %eax, %eax
movl %eax, %ecx
callq 0x7320
movq %rax, -0x228(%rbp)
jmp 0x1263e
xorl %eax, %eax
movq %rax, -0x228(%rbp)
jmp 0x1263e
movq -0x228(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movq %rax, %rdi
addq $0x18, %rdi
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rdi
movq (%rdi), %rax
movq 0x88(%rax), %rax
callq *%rax
movb %al, -0x229(%rbp)
jmp 0x12677
movb -0x229(%rbp), %al
testb $0x1, %al
jne 0x12686
jmp 0x127f8
movq -0x10(%rbp), %rax
movq %rax, %rdi
addq $0x18, %rdi
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movl %eax, -0x230(%rbp)
jmp 0x126b1
movl -0x230(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0xb8(%rcx), %eax
jge 0x12797
movb $0x1, -0x8a(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x240(%rbp)
leaq -0x89(%rbp), %rdi
movq %rdi, -0x238(%rbp)
callq 0x74f0
movq -0x238(%rbp), %rdx
leaq 0x25d04(%rip), %rsi     # 0x38404
leaq -0x88(%rbp), %rdi
callq 0x8940
jmp 0x1270e
movq -0x240(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x283d0
jmp 0x12723
movq -0x240(%rbp), %rdi
movb $0x0, -0x8a(%rbp)
leaq 0x37348(%rip), %rsi     # 0x49a80
leaq 0x15cc1(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x133b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x1276f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x7170
leaq -0x89(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x8a(%rbp)
jne 0x12786
jmp 0x12792
movq -0x240(%rbp), %rdi
callq 0x71c0
jmp 0x133a6
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x30, %rcx
movq %rcx, -0x250(%rbp)
movq %rax, %rdi
addq $0x18, %rdi
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movl %eax, -0x244(%rbp)
jmp 0x127d0
movq -0x250(%rbp), %rdi
movl -0x244(%rbp), %ecx
xorl %eax, %eax
subl %ecx, %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x68(%rbp)
jmp 0x12959
movq -0x10(%rbp), %rax
movq %rax, %rdi
addq $0x18, %rdi
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movl %eax, -0x254(%rbp)
jmp 0x12823
movl -0x254(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0xb4(%rcx), %eax
jle 0x12909
movb $0x1, -0xb2(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x268(%rbp)
leaq -0xb1(%rbp), %rdi
movq %rdi, -0x260(%rbp)
callq 0x74f0
movq -0x260(%rbp), %rdx
leaq 0x25bb9(%rip), %rsi     # 0x3842b
leaq -0xb0(%rbp), %rdi
callq 0x8940
jmp 0x12880
movq -0x268(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x283d0
jmp 0x12895
movq -0x268(%rbp), %rdi
movb $0x0, -0xb2(%rbp)
leaq 0x371d6(%rip), %rsi     # 0x49a80
leaq 0x15b4f(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x133b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x128e1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x7170
leaq -0xb1(%rbp), %rdi
callq 0x72e0
testb $0x1, -0xb2(%rbp)
jne 0x128f8
jmp 0x12904
movq -0x268(%rbp), %rdi
callq 0x71c0
jmp 0x133a6
movq -0x10(%rbp), %rax
movq %rax, %rdi
addq $0x18, %rdi
movq %rdi, -0x278(%rbp)
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq (%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movl %eax, -0x26c(%rbp)
jmp 0x1293b
movq -0x278(%rbp), %rdi
movl -0x26c(%rbp), %eax
movslq %eax, %rsi
callq 0x8e70
movq (%rax), %rax
movq %rax, -0x68(%rbp)
jmp 0x12959
movq -0x208(%rbp), %rax
movl 0x8(%rax), %eax
movq %rax, -0x280(%rbp)
subq $0x4, %rax
ja 0x132c9
movq -0x280(%rbp), %rax
leaq 0x25a2a(%rip), %rcx     # 0x383ac
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0xc8(%rbp), %rdi
xorl %esi, %esi
callq 0x27340
jmp 0x1299b
movq -0x68(%rbp), %rax
movq %rax, -0x288(%rbp)
cmpq $0x0, %rax
jne 0x129b3
callq 0x7300
jmp 0x129b3
movq -0x288(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x38128(%rip), %rdi     # 0x4aaf0
callq 0x9370
testb $0x1, %al
jne 0x129d6
jmp 0x12ab7
movb $0x1, -0xea(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x298(%rbp)
leaq -0xe9(%rbp), %rdi
movq %rdi, -0x290(%rbp)
callq 0x74f0
movq -0x290(%rbp), %rdx
leaq 0x25a44(%rip), %rsi     # 0x38453
leaq -0xe8(%rbp), %rdi
callq 0x8940
jmp 0x12a1d
movq -0x298(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x283d0
jmp 0x12a32
movq -0x298(%rbp), %rdi
movb $0x0, -0xea(%rbp)
leaq 0x37039(%rip), %rsi     # 0x49a80
leaq 0x159b2(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x133b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x12b53
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x12a8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x7170
leaq -0xe9(%rbp), %rdi
callq 0x72e0
testb $0x1, -0xea(%rbp)
jne 0x12aa6
jmp 0x12ab2
movq -0x298(%rbp), %rdi
callq 0x71c0
jmp 0x12b53
movl $0x10, %edi
callq 0x7270
movq %rax, -0x2a0(%rbp)
jmp 0x12aca
movq -0x68(%rbp), %rax
movq %rax, -0x2a8(%rbp)
cmpq $0x0, %rax
je 0x12b02
movq -0x2a8(%rbp), %rdi
leaq 0x37f3f(%rip), %rsi     # 0x4aa28
leaq 0x38000(%rip), %rdx     # 0x4aaf0
xorl %eax, %eax
movl %eax, %ecx
callq 0x7320
movq %rax, -0x2b0(%rbp)
jmp 0x12b0d
xorl %eax, %eax
movq %rax, -0x2b0(%rbp)
jmp 0x12b0d
movq -0x2a0(%rbp), %rdi
movq -0x2b0(%rbp), %rsi
callq 0xd2d0
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq -0x2a0(%rbp), %rcx
movq %rcx, (%rax)
leaq -0xc8(%rbp), %rdi
callq 0x27380
jmp 0x132c9
leaq -0xc8(%rbp), %rdi
callq 0x27380
jmp 0x133a6
leaq -0x100(%rbp), %rdi
xorps %xmm0, %xmm0
callq 0x27840
jmp 0x12b75
movq -0x68(%rbp), %rax
movq %rax, -0x2b8(%rbp)
cmpq $0x0, %rax
jne 0x12b8d
callq 0x7300
jmp 0x12b8d
movq -0x2b8(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x3801e(%rip), %rdi     # 0x4abc0
callq 0x9370
testb $0x1, %al
jne 0x12bb0
jmp 0x12c91
movb $0x1, -0x122(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x2c8(%rbp)
leaq -0x121(%rbp), %rdi
movq %rdi, -0x2c0(%rbp)
callq 0x74f0
movq -0x2c0(%rbp), %rdx
leaq 0x258a3(%rip), %rsi     # 0x3848c
leaq -0x120(%rbp), %rdi
callq 0x8940
jmp 0x12bf7
movq -0x2c8(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x283d0
jmp 0x12c0c
movq -0x2c8(%rbp), %rdi
movb $0x0, -0x122(%rbp)
leaq 0x36e5f(%rip), %rsi     # 0x49a80
leaq 0x157d8(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x133b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x12d2d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x12c69
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x7170
leaq -0x121(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x122(%rbp)
jne 0x12c80
jmp 0x12c8c
movq -0x2c8(%rbp), %rdi
callq 0x71c0
jmp 0x12d2d
movl $0x10, %edi
callq 0x7270
movq %rax, -0x2d0(%rbp)
jmp 0x12ca4
movq -0x68(%rbp), %rax
movq %rax, -0x2d8(%rbp)
cmpq $0x0, %rax
je 0x12cdc
movq -0x2d8(%rbp), %rdi
leaq 0x37d65(%rip), %rsi     # 0x4aa28
leaq 0x37ef6(%rip), %rdx     # 0x4abc0
xorl %eax, %eax
movl %eax, %ecx
callq 0x7320
movq %rax, -0x2e0(%rbp)
jmp 0x12ce7
xorl %eax, %eax
movq %rax, -0x2e0(%rbp)
jmp 0x12ce7
movq -0x2d0(%rbp), %rdi
movq -0x2e0(%rbp), %rsi
callq 0xd320
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq -0x2d0(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x100(%rbp), %rdi
callq 0x27880
jmp 0x132c9
leaq -0x100(%rbp), %rdi
callq 0x27880
jmp 0x133a6
leaq -0x138(%rbp), %rdi
xorl %esi, %esi
callq 0x27d20
jmp 0x12d4e
movq -0x68(%rbp), %rax
movq %rax, -0x2e8(%rbp)
cmpq $0x0, %rax
jne 0x12d66
callq 0x7300
jmp 0x12d66
movq -0x2e8(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x37f15(%rip), %rdi     # 0x4ac90
callq 0x9370
testb $0x1, %al
jne 0x12d89
jmp 0x12e6a
movb $0x1, -0x15a(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x2f8(%rbp)
leaq -0x159(%rbp), %rdi
movq %rdi, -0x2f0(%rbp)
callq 0x74f0
movq -0x2f0(%rbp), %rdx
leaq 0x25700(%rip), %rsi     # 0x384c2
leaq -0x158(%rbp), %rdi
callq 0x8940
jmp 0x12dd0
movq -0x2f8(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x283d0
jmp 0x12de5
movq -0x2f8(%rbp), %rdi
movb $0x0, -0x15a(%rbp)
leaq 0x36c86(%rip), %rsi     # 0x49a80
leaq 0x155ff(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x133b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x12f06
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x12e42
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x158(%rbp), %rdi
callq 0x7170
leaq -0x159(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x15a(%rbp)
jne 0x12e59
jmp 0x12e65
movq -0x2f8(%rbp), %rdi
callq 0x71c0
jmp 0x12f06
movl $0x10, %edi
callq 0x7270
movq %rax, -0x300(%rbp)
jmp 0x12e7d
movq -0x68(%rbp), %rax
movq %rax, -0x308(%rbp)
cmpq $0x0, %rax
je 0x12eb5
movq -0x308(%rbp), %rdi
leaq 0x37b8c(%rip), %rsi     # 0x4aa28
leaq 0x37ded(%rip), %rdx     # 0x4ac90
xorl %eax, %eax
movl %eax, %ecx
callq 0x7320
movq %rax, -0x310(%rbp)
jmp 0x12ec0
xorl %eax, %eax
movq %rax, -0x310(%rbp)
jmp 0x12ec0
movq -0x300(%rbp), %rdi
movq -0x310(%rbp), %rsi
callq 0xd370
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq -0x300(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x138(%rbp), %rdi
callq 0x27d70
jmp 0x132c9
leaq -0x138(%rbp), %rdi
callq 0x27d70
jmp 0x133a6
leaq -0x170(%rbp), %rdi
movl $0x61, %esi
callq 0x28170
jmp 0x12f2a
movq -0x68(%rbp), %rax
movq %rax, -0x318(%rbp)
cmpq $0x0, %rax
jne 0x12f42
callq 0x7300
jmp 0x12f42
movq -0x318(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x37e09(%rip), %rdi     # 0x4ad60
callq 0x9370
testb $0x1, %al
jne 0x12f65
jmp 0x13046
movb $0x1, -0x192(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x328(%rbp)
leaq -0x191(%rbp), %rdi
movq %rdi, -0x320(%rbp)
callq 0x74f0
movq -0x320(%rbp), %rdx
leaq 0x2555d(%rip), %rsi     # 0x384fb
leaq -0x190(%rbp), %rdi
callq 0x8940
jmp 0x12fac
movq -0x328(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x283d0
jmp 0x12fc1
movq -0x328(%rbp), %rdi
movb $0x0, -0x192(%rbp)
leaq 0x36aaa(%rip), %rsi     # 0x49a80
leaq 0x15423(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x133b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x130e2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x1301e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x190(%rbp), %rdi
callq 0x7170
leaq -0x191(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x192(%rbp)
jne 0x13035
jmp 0x13041
movq -0x328(%rbp), %rdi
callq 0x71c0
jmp 0x130e2
movl $0x10, %edi
callq 0x7270
movq %rax, -0x330(%rbp)
jmp 0x13059
movq -0x68(%rbp), %rax
movq %rax, -0x338(%rbp)
cmpq $0x0, %rax
je 0x13091
movq -0x338(%rbp), %rdi
leaq 0x379b0(%rip), %rsi     # 0x4aa28
leaq 0x37ce1(%rip), %rdx     # 0x4ad60
xorl %eax, %eax
movl %eax, %ecx
callq 0x7320
movq %rax, -0x340(%rbp)
jmp 0x1309c
xorl %eax, %eax
movq %rax, -0x340(%rbp)
jmp 0x1309c
movq -0x330(%rbp), %rdi
movq -0x340(%rbp), %rsi
callq 0xd3c0
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq -0x330(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x170(%rbp), %rdi
callq 0x281b0
jmp 0x132c9
leaq -0x170(%rbp), %rdi
callq 0x281b0
jmp 0x133a6
leaq -0x1a8(%rbp), %rdi
xorl %esi, %esi
callq 0x26800
jmp 0x13103
movq -0x68(%rbp), %rax
movq %rax, -0x348(%rbp)
cmpq $0x0, %rax
jne 0x1311b
callq 0x7300
jmp 0x1311b
movq -0x348(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rsi
leaq 0x37828(%rip), %rdi     # 0x4a958
callq 0x9370
testb $0x1, %al
jne 0x1313e
jmp 0x1321f
movb $0x1, -0x1ca(%rbp)
movl $0x20, %edi
callq 0x7110
movq %rax, -0x358(%rbp)
leaq -0x1c9(%rbp), %rdi
movq %rdi, -0x350(%rbp)
callq 0x74f0
movq -0x350(%rbp), %rdx
leaq 0x253bf(%rip), %rsi     # 0x38536
leaq -0x1c8(%rbp), %rdi
callq 0x8940
jmp 0x13185
movq -0x358(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
callq 0x283d0
jmp 0x1319a
movq -0x358(%rbp), %rdi
movb $0x0, -0x1ca(%rbp)
leaq 0x368d1(%rip), %rsi     # 0x49a80
leaq 0x1524a(%rip), %rdx     # 0x28400
callq 0x74a0
jmp 0x133b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x132b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x131f7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x1c8(%rbp), %rdi
callq 0x7170
leaq -0x1c9(%rbp), %rdi
callq 0x72e0
testb $0x1, -0x1ca(%rbp)
jne 0x1320e
jmp 0x1321a
movq -0x358(%rbp), %rdi
callq 0x71c0
jmp 0x132b8
movl $0x10, %edi
callq 0x7270
movq %rax, -0x360(%rbp)
jmp 0x13232
movq -0x68(%rbp), %rax
movq %rax, -0x368(%rbp)
cmpq $0x0, %rax
je 0x1326a
movq -0x368(%rbp), %rdi
leaq 0x377d7(%rip), %rsi     # 0x4aa28
leaq 0x37700(%rip), %rdx     # 0x4a958
xorl %eax, %eax
movl %eax, %ecx
callq 0x7320
movq %rax, -0x370(%rbp)
jmp 0x13275
xorl %eax, %eax
movq %rax, -0x370(%rbp)
jmp 0x13275
movq -0x360(%rbp), %rdi
movq -0x370(%rbp), %rsi
callq 0xd410
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movslq 0xb4(%rax), %rsi
callq 0x8e70
movq -0x360(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x1a8(%rbp), %rdi
callq 0x26840
jmp 0x132c9
leaq -0x1a8(%rbp), %rdi
callq 0x26840
jmp 0x133a6
movq -0x60(%rbp), %rax
movq %rax, -0x378(%rbp)
cmpq $0x0, %rax
je 0x132f7
movq -0x378(%rbp), %rdi
callq 0x26840
movq -0x378(%rbp), %rdi
movl $0x10, %esi
callq 0x7280
movq -0x10(%rbp), %rax
addq $0x78, %rax
movq %rax, -0x388(%rbp)
leaq -0x1f1(%rbp), %rdi
movq %rdi, -0x380(%rbp)
callq 0x74f0
movq -0x380(%rbp), %rdx
leaq 0x25248(%rip), %rsi     # 0x3856f
leaq -0x1f0(%rbp), %rdi
callq 0x8940
jmp 0x13335
movq -0x388(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x2c4d0
jmp 0x1334a
leaq -0x1f0(%rbp), %rdi
callq 0x7170
leaq -0x1f1(%rbp), %rdi
callq 0x72e0
leaq -0x20(%rbp), %rdi
callq 0x26840
addq $0x390, %rsp            # imm = 0x390
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x1339a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x1f0(%rbp), %rdi
callq 0x7170
leaq -0x1f1(%rbp), %rdi
callq 0x72e0
leaq -0x20(%rbp), %rdi
callq 0x26840
movq -0x28(%rbp), %rdi
callq 0x74e0
nopl (%rax,%rax)