// File: /workspace/github_cpp_makefile_star2_O1/AndrewAlbert[P]Compiler-Theory/SourceCode/codeGenerator.cpp
// Function: codeGenerator::mm2reg[abi:cxx11](int, int, int, bool, int, bool, int, bool)
string codeGenerator::mm2reg(int memType, int memSize, int FPoffset, bool isGlobal, int index, bool indirect, int indirect_type, bool useSP){
	if( !ShouldGenerate() ) return "";
	string reg, mem, pointer;
	
	// Set comment to indicate if this is Global/Local MM to Reg
	if( isGlobal ) comment("Global MM to Reg");
	else comment("Local MM to Reg");

	// Get either the FP or SP register based on 
	if(useSP) pointer = "SP_reg";
	else pointer = "FP_reg";

	// Ensure source size is at least 1 for loops
	if( memSize == 0 ) memSize++;

	// Indirect off of the top register
	if( indirect ){
		string indirect_reg = popStack('E', indirect_type);
		comment("indirect off " + indirect_reg);
		fprintf( oFile, "   TP_reg = %s + %d;\n", pointer.c_str(), FPoffset );
		
		reg = newRegister(memType);
		pushStack(reg, 'E', memType);
		fprintf( oFile, "   %s = MM[TP_reg + %s];\n", reg.c_str(), indirect_reg.c_str() );
	} 
	else{
		if( index < 0){
			for( index = 0; index < memSize; index++ ){
				reg = newRegister(memType);
				pushStack(reg, 'E', memType);
			
				if( isGlobal ) mem = "MM[" + to_string(FPoffset + index) + "]";
				else mem = "MM[" + pointer + " + " + to_string(FPoffset + index) + "]";
			
				if( memType == TYPE_FLOAT) fprintf( oFile, "   memcpy( &%s, &%s, sizeof(int) );\n", reg.c_str(), mem.c_str() );
				else fprintf( oFile, "   %s = %s;\n", reg.c_str(), mem.c_str() );
			}
		}
		else{
			reg = newRegister(memType);
			pushStack(reg, 'E', memType);
		
			if( isGlobal ) mem = "MM[" + to_string(FPoffset + index) + "]";
			else mem = "MM[" + pointer + " + " + to_string(FPoffset + index) + "]";
		
			if( memType == TYPE_FLOAT) fprintf( oFile, "   memcpy( &%s, &%s, sizeof(int) );\n", reg.c_str(), mem.c_str() );
			else fprintf( oFile, "   %s = %s;\n", reg.c_str(), mem.c_str() );
		}
	}
	return "";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %r8, 0x90(%rsp)
movl %edx, 0x4(%rsp)
movq %rdi, %rbx
cmpb $0x0, 0x330(%rsi)
je 0x13ac3
movl %ecx, %r12d
movq %rsi, %r14
leaq 0xb0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xf8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x118(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
testb %r9b, %r9b
movq %rbx, 0x68(%rsp)
movl %r9d, 0x9c(%rsp)
je 0x13ae4
leaq 0x1c8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x7472(%rip), %rsi      # 0x1aefa
leaq 0x747b(%rip), %rdx      # 0x1af0a
leaq 0x1b8(%rsp), %rdi
callq 0x3c34
movq 0x308(%r14), %rdi
movq 0x1b8(%rsp), %rdx
leaq 0x6f6d(%rip), %rsi      # 0x1aa1f
xorl %eax, %eax
callq 0x22a0
movq 0x1b8(%rsp), %rdi
jmp 0x13b30
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x6e8c(%rip), %rdx      # 0x1a95d
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x3c34
movq %rbx, %rax
jmp 0x1494a
leaq 0x1a8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x7414(%rip), %rsi      # 0x1af0b
leaq 0x741c(%rip), %rdx      # 0x1af1a
leaq 0x198(%rsp), %rdi
callq 0x3c34
movq 0x308(%r14), %rdi
movq 0x198(%rsp), %rdx
leaq 0x6efe(%rip), %rsi      # 0x1aa1f
xorl %eax, %eax
callq 0x22a0
movq 0x198(%rsp), %rdi
cmpq %rbx, %rdi
je 0x13b40
movq (%rbx), %rsi
incq %rsi
callq 0x2200
leaq 0x108(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x6e7e(%rip), %rax      # 0x1a9d1
leaq 0x6e70(%rip), %rcx      # 0x1a9ca
cmpb $0x0, 0x248(%rsp)
cmovneq %rax, %rcx
movl $0x6, %r8d
xorl %esi, %esi
callq 0x22e0
cmpl $0x1, %r12d
adcl $0x0, %r12d
cmpb $0x0, 0x238(%rsp)
je 0x13cc2
movl 0x240(%rsp), %ecx
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
movl $0x45, %edx
callq 0x11b40
leaq 0x7372(%rip), %rsi      # 0x1af1b
leaq 0x1d8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0xddc7
movq 0x308(%r14), %rdi
leaq 0x1e8(%rsp), %rbx
movq -0x10(%rbx), %rdx
leaq 0x6e4a(%rip), %rsi      # 0x1aa1f
xorl %eax, %eax
callq 0x22a0
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x13bf5
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x308(%r14), %rdi
movq 0x108(%rsp), %rdx
leaq 0x731e(%rip), %rsi      # 0x1af29
movq 0x90(%rsp), %rcx
xorl %eax, %eax
callq 0x22a0
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x12c8c
leaq 0xa0(%rsp), %rdi
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x2270
movq (%rbx), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x13c5a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
leaq 0x188(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x178(%rsp), %rdi
callq 0x3ba4
cmpb $0x1, 0x330(%r14)
jne 0x14379
leaq 0x130(%r14), %rdi
leaq 0x178(%rsp), %rsi
callq 0x176d0
cmpl $0x10b, 0x4(%rsp)       # imm = 0x10B
jne 0x14372
incl 0x124(%r14)
jmp 0x14379
movl 0x230(%rsp), %ebp
testl %ebp, %ebp
movq 0x68(%rsp), %r15
js 0x13d7e
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x12c8c
leaq 0xa0(%rsp), %rdi
leaq 0x48(%rsp), %rbx
movq %rbx, %rsi
callq 0x2270
movq (%rbx), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x13d16
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2200
leaq 0x168(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
callq 0x3ba4
cmpb $0x1, 0x330(%r14)
jne 0x143e7
leaq 0x130(%r14), %rdi
leaq 0x158(%rsp), %rsi
callq 0x176d0
cmpl $0x10b, 0x4(%rsp)       # imm = 0x10B
jne 0x143e0
incl 0x124(%r14)
jmp 0x143e7
movl %r12d, 0xc4(%rsp)
testl %r12d, %r12d
jle 0x148bf
leaq 0x130(%r14), %rax
movq %rax, 0x128(%rsp)
leaq 0x38(%rsp), %rbp
cmpl $0x10b, 0x4(%rsp)       # imm = 0x10B
leaq 0x71af(%rip), %rax      # 0x1af61
leaq 0x70c7(%rip), %rcx      # 0x1ae80
cmoveq %rax, %rcx
movq %rcx, 0x130(%rsp)
movl $0xd1b71759, %r13d      # imm = 0xD1B71759
xorl %r12d, %r12d
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x12c8c
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
callq 0x2270
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
movl 0x9c(%rsp), %ebx
leaq 0x148(%rsp), %r15
je 0x13e1d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2200
movq %r15, 0x138(%rsp)
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0x3ba4
cmpb $0x1, 0x330(%r14)
jne 0x13e7e
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0x176d0
cmpl $0x10b, 0x4(%rsp)       # imm = 0x10B
jne 0x13e77
incl 0x124(%r14)
jmp 0x13e7e
incl 0x120(%r14)
movq 0x138(%rsp), %rdi
cmpq %r15, %rdi
je 0x13e9b
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x2200
testb %bl, %bl
je 0x13f08
movq 0x90(%rsp), %rax
leal (%r12,%rax), %ebp
movl %ebp, %ebx
negl %ebx
cmovsl %ebp, %ebx
movl $0x1, %r15d
cmpl $0xa, %ebx
jb 0x13fef
movl $0x4, %r15d
movl %ebx, %eax
cmpl $0x63, %eax
jbe 0x13fdd
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x13fec
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x13fef
movl %eax, %ecx
imulq %r13, %rcx
shrq $0x2d, %rcx
addl $0x4, %r15d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x13ec9
addl $-0x3, %r15d
jmp 0x13fef
leaq 0xc8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x703f(%rip), %rsi      # 0x1af59
leaq 0x108(%rsp), %rdx
callq 0xddc7
movq %rbx, %rdi
leaq 0x702c(%rip), %rsi      # 0x1af5d
callq 0x2380
movq %rbp, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x13f59
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x13f60
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x90(%rsp), %rax
leal (%r12,%rax), %ebp
movl %ebp, %ebx
negl %ebx
cmovsl %ebp, %ebx
movl $0x1, %r15d
cmpl $0xa, %ebx
jb 0x1414c
movl $0x4, %r15d
movl %ebx, %eax
cmpl $0x63, %eax
jbe 0x13fe3
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x14149
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x1414c
movl %eax, %ecx
imulq %r13, %rcx
shrq $0x2d, %rcx
addl $0x4, %r15d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x13fa2
addl $-0x3, %r15d
jmp 0x1414c
addl $-0x2, %r15d
jmp 0x13fef
addl $-0x2, %r15d
jmp 0x1414c
decl %r15d
movq %r14, %r13
shrl $0x1f, %ebp
leal (%r15,%rbp), %esi
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movl $0x2d, %edx
callq 0x2240
movl %ebp, %edi
addq 0x28(%rsp), %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe072
movl $0x3, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x6f1f(%rip), %rcx      # 0x1af59
callq 0x2220
leaq 0x18(%rsp), %rbx
movq %rbx, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq 0x68(%rsp), %r15
leaq 0x38(%rsp), %rbp
movq %r13, %r14
je 0x14074
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1407a
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8(%rsp), %rdi
leaq 0x5028(%rip), %rsi      # 0x190c6
callq 0x2380
leaq 0x58(%rsp), %r13
movq %r13, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x140cb
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x140d3
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x2270
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x14114
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
movl $0xd1b71759, %r13d      # imm = 0xD1B71759
je 0x14131
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x14336
movq 0x38(%rsp), %rsi
jmp 0x1432e
decl %r15d
shrl $0x1f, %ebp
leal (%r15,%rbp), %esi
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x70(%rsp), %rdi
movl $0x2d, %edx
callq 0x2240
movl %ebp, %edi
addq 0x70(%rsp), %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe072
movq 0x28(%rsp), %rcx
movl $0xf, %esi
leaq 0x38(%rsp), %rbp
cmpq %rbp, %rcx
je 0x14199
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %r8
movq 0x78(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
movq 0x68(%rsp), %r15
leaq 0x18(%rsp), %rbx
jbe 0x141d7
movl $0xf, %esi
leaq 0x80(%rsp), %rdi
cmpq %rdi, 0x70(%rsp)
je 0x141d2
movq 0x80(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x141e8
movq 0x70(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x20c0
jmp 0x141f6
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2220
movq %rbx, 0x8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x14216
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1421c
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x8(%rsp), %rdi
leaq 0x4e81(%rip), %rsi      # 0x190c6
callq 0x2380
leaq 0x58(%rsp), %r13
movq %r13, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x14272
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x1427a
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x2270
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x142bb
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
movl $0xd1b71759, %r13d      # imm = 0xD1B71759
je 0x142d8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x142fa
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x14311
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x14336
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xa0(%rsp), %rdx
movq 0xe8(%rsp), %rcx
movq 0x308(%r14), %rdi
movq 0x130(%rsp), %rsi
xorl %eax, %eax
callq 0x22a0
incl %r12d
cmpl 0xc4(%rsp), %r12d
jne 0x13dce
jmp 0x148bf
incl 0x120(%r14)
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x14396
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x308(%r14), %rdi
movq 0xa0(%rsp), %rdx
leaq 0x58(%rsp), %rbx
movq -0x10(%rbx), %rcx
leaq 0x6b8a(%rip), %rsi      # 0x1af3f
xorl %eax, %eax
callq 0x22a0
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
movq 0x68(%rsp), %r15
je 0x148bf
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x148bf
incl 0x120(%r14)
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0x14404
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x2200
cmpb $0x0, 0x9c(%rsp)
je 0x1447a
addl 0x90(%rsp), %ebp
movl %ebp, %ebx
negl %ebx
cmovsl %ebp, %ebx
movl $0x1, %r15d
cmpl $0xa, %ebx
jb 0x1456b
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x14559
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x14568
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1456b
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x14438
addl $-0x3, %r15d
jmp 0x1456b
leaq 0x6ad8(%rip), %rsi      # 0x1af59
leaq 0xc8(%rsp), %rdi
leaq 0x108(%rsp), %rdx
callq 0xddc7
leaq 0x6ac0(%rip), %rsi      # 0x1af5d
leaq 0xc8(%rsp), %rdi
callq 0x2380
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x144d1
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x144d9
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
addl 0x90(%rsp), %ebp
movl %ebp, %ebx
negl %ebx
cmovsl %ebp, %ebx
movl $0x1, %r15d
cmpl $0xa, %ebx
jb 0x146b6
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x1455f
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x146b3
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x146b6
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x1451b
addl $-0x3, %r15d
jmp 0x146b6
addl $-0x2, %r15d
jmp 0x1456b
addl $-0x2, %r15d
jmp 0x146b6
decl %r15d
shrl $0x1f, %ebp
leal (%r15,%rbp), %esi
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x28(%rsp), %rdi
movl $0x2d, %edx
callq 0x2240
movl %ebp, %edi
leaq 0x28(%rsp), %r12
addq (%r12), %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe072
leaq 0x69b3(%rip), %rcx      # 0x1af59
movl $0x3, %r8d
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2220
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x58(%rsp), %r12
je 0x145e4
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x145eb
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x4ab8(%rip), %rsi      # 0x190c6
callq 0x2380
movq %r12, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x14636
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x1463e
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
movq %rbx, %rsi
callq 0x2270
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x1467f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x14696
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
movq 0x68(%rsp), %r15
je 0x14887
movq 0x38(%rsp), %rsi
jmp 0x1487f
decl %r15d
shrl $0x1f, %ebp
leal (%r15,%rbp), %esi
leaq 0x80(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x70(%rsp), %rdi
movl $0x2d, %edx
callq 0x2240
movl %ebp, %edi
addq 0x70(%rsp), %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe072
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x78(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
movq %r13, %rbp
cmpq %r13, %rcx
je 0x1470f
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
movq 0x68(%rsp), %r15
leaq 0x58(%rsp), %r13
jbe 0x14737
movl $0xf, %esi
cmpq %r12, 0x70(%rsp)
je 0x14732
movq 0x80(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x14748
movq 0x70(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x20c0
jmp 0x14756
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2220
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x1477a
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x14780
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x4922(%rip), %rsi      # 0x190c6
leaq 0x8(%rsp), %rdi
callq 0x2380
movq %r13, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x147d1
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x147d9
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
movq %rbx, %rsi
callq 0x2270
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x1481a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2200
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14835
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x70(%rsp), %rdi
cmpq %r12, %rdi
je 0x1484f
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x14866
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2200
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14887
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x308(%r14), %rdi
movq 0xa0(%rsp), %rdx
movq 0xe8(%rsp), %rcx
cmpl $0x10b, 0x4(%rsp)       # imm = 0x10B
jne 0x148b1
leaq 0x66b2(%rip), %rsi      # 0x1af61
jmp 0x148b8
leaq 0x65c8(%rip), %rsi      # 0x1ae80
xorl %eax, %eax
callq 0x22a0
leaq 0x10(%r15), %rax
movq %rax, (%r15)
leaq 0x6090(%rip), %rdx      # 0x1a95d
movq %r15, %rdi
movq %rdx, %rsi
callq 0x3c34
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x148fd
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x14922
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x14947
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x2200
movq %r15, %rax
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1497f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x1497f
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r12, %rdi
je 0x149a1
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x149a1
movq %r13, %rbp
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x149ef
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x149ef
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x149d9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x149d9
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
jne 0x14b71
jmp 0x14b85
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x14b34
jmp 0x14b82
jmp 0x14b82
movq %rax, %rbx
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0x14b85
movq 0x168(%rsp), %rsi
jmp 0x14b76
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x14a6b
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x14a6b
jmp 0x14b82
jmp 0x14a68
jmp 0x14b82
jmp 0x14b82
jmp 0x14b82
jmp 0x14b82
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14b85
movq 0x58(%rsp), %rsi
jmp 0x14b76
jmp 0x14b82
jmp 0x14b82
movq %rax, %rbx
jmp 0x14b08
movq %rbx, %rcx
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rcx, %rdi
je 0x14ae6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x14ae6
movq %rax, %rbx
jmp 0x14b62
movq %rax, %rbx
movq 0x138(%rsp), %rdi
cmpq %r15, %rdi
je 0x14b85
movq 0x148(%rsp), %rsi
jmp 0x14b76
movq %rax, %rbx
jmp 0x14b24
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x14b08
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x14b24
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x14b85
movq 0xd8(%rsp), %rsi
jmp 0x14b76
jmp 0x14b82
movq %rbx, %rcx
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rcx, %rdi
je 0x14b62
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x14b85
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x14b85
jmp 0x14b82
movq %rax, %rbx
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x14baa
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x14bcf
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x14bf4
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rdi
callq 0x2330