// File: /workspace/github_cpp_makefile_star2_O1/superyuan[P]refeditor/DiploidConstructor.cpp
// Function: main
int main(int argc, char *argv[])
{	
	string chrName = "", chrNameB = "";
	CLineFields inputReferenceGenomeFile;
	CLineFields genotypesFile;

	if (parseParameters (argc, argv) == false) 	{
		cerr << "Version: 1.0-r7" << endl;
		cerr << "Contact: shuaiyuan.emory@gmail.com" << endl << endl;		
		cerr << "Usage: " << argv[0] <<" -r haploid.fa -g genotypes -l length -o diploid.fa" << endl << endl;
		cerr << "Convert haploid reference genome to diploid reference genome according to the genotypes and sequencing read length" << endl << endl;
		cerr << "Example: " << argv[0] << " -r hg19.fa -g known.genotypes -l 36 -o diploid.fa" << endl;
		cerr << endl << "Parameters (mandatory): " << endl;
		cerr << "  -r\t\thaploid reference genome file " << endl;
		cerr << "  -g\t\tgenotypes file" << endl;
		cerr << "  -l\t\tread length" << endl;
		cerr << "  -o\t\toutput diploid reference genome file " << endl;
		cerr << endl << "Parameters (optional): " << endl;
		cerr << "  -d\t\tmaximal deletion in a read and mapped to alternative alleles [default=0]" << endl;
		cerr << "  -s\t\tsex of the individual [default=\"m\"]" << endl;
		exit(-1);
	}
	
	if (inputReferenceGenomeFile.openFile(inputReferenceGenomeFileName)==false) {
		cerr << "Can not open file: " << inputReferenceGenomeFileName << endl;
		exit (-1);
	}

	if (genotypesFile.openFile(genotypesFileName)==false) {
		cerr << "Can not open file: " << genotypesFileName << endl;
		exit (-1);
	}	

	// step 1: read haploid reference genome file, double the total number of chromosomes.
	bool readin = false;
	inputReferenceGenomeFile.readline();
	while (inputReferenceGenomeFile.endofFile()==false) {
		if (inputReferenceGenomeFile.line[0]=='>') {
			chrName = inputReferenceGenomeFile.line.substr(1);
			chrNameB = chrName+"b";
			if (chrName != "chrY" || gender=='m') {
				chrMap[chrName] = "";
				chrMap[chrNameB] = "";
				chrNameList.push_back(chrName);			
				chrNameList.push_back(chrNameB);
				readin = true;
			} else {
				readin = false;  // skip chromosome Y for female individuals.
			}
		} else if (readin){
			
			chrMap[chrName] += inputReferenceGenomeFile.line;
			chrMap[chrNameB] += inputReferenceGenomeFile.line;
		}
		inputReferenceGenomeFile.readline();
	}	
	inputReferenceGenomeFile.closeFile();

	// step 2: use genotype file to modify the chromosomes. double the chromosome numbers.
	if (genotypesFile.isOpen()) {
		int refColumn = -1, altColumn=-1;
		genotypesFile.readline();
		while(genotypesFile.endofFile()==false) {

			if ((genotypesFile.field.size()>=5) && (genotypesFile.field[3].length()==1) && (genotypesFile.field[4].length()==1))
			{
				unsigned int pos = atoi(genotypesFile.field[2].c_str());
				chrName = genotypesFile.field[1];
				chrNameB = chrName+"b";
			
				if (chrMap[chrName].length()<pos) {
					cerr << "Warning!!! genotype is out of range at: " << chrName << ": " << genotypesFile.field[2] << endl;
				} else {
					// decide which is ref and which is non-ref
					if (toupper(chrMap[chrName][pos-1]) == toupper(genotypesFile.field[4][0])) {
						refColumn = 4;
						altColumn = 3;
					}
					else {
						refColumn = 3;
						altColumn = 4;
					}

					// if genotype is alt/alt, then we still need to change reference allele.
					if (chrMap[chrName][pos-1] >='A' && chrMap[chrName][pos-1] <='Z') {
						chrMap[chrName][pos-1] = toupper(genotypesFile.field[refColumn][0]);
						chrMap[chrNameB][pos-1] = toupper(genotypesFile.field[altColumn][0]);
					}
					else {
						chrMap[chrName][pos-1] = tolower(genotypesFile.field[refColumn][0]);
						chrMap[chrNameB][pos-1] = tolower(genotypesFile.field[altColumn][0]);
					}
				}
			}
			genotypesFile.readline();
		}
		genotypesFile.closeFile();
	} 
	contextLength = 2*readLength - 1 + 2*maxDeletion;
	outputReferenceGenomeFile.open(outputReferenceGenomeFileName);
	dipmapFile.open(dipmapFileName);

	// step 3: create mini chromosomes and append them to the end of reference allele.
	for (int i=0; i<(int)chrNameList.size(); i++) {
		chrName = chrNameList[i];		
		if (chrName[chrName.length()-1] == 'b')
			extendFromDiploid(chrName);
	}

	// step 4: print out the reference allele, which has already been extended by mini chromosomes.
	for (int i=0; i<(int)chrNameList.size(); i++) {
		chrName = chrNameList[i];		
		if (chrName[chrName.length()-1] != 'b')
			printHaploid(chrName);
	}
	outputReferenceGenomeFile << endl;
	dipmapFile.close();
	outputReferenceGenomeFile.close();
	
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x3ba8(%rip), %r14      # 0x727a
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x563e
leaq 0x108(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xf8(%rsp), %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x563e
leaq 0x208(%rsp), %rdi
callq 0x5fdc
leaq 0x188(%rsp), %rdi
callq 0x5fdc
leaq 0x3b89(%rip), %r13      # 0x72ab
movq 0x688f(%rip), %r15      # 0x9fb8
leaq 0x38d4(%rip), %r12      # 0x7004
movl %ebp, 0xa8(%rsp)
movl %ebp, %edi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x3080
cmpl $0x66, %eax
jle 0x376a
leal -0x6c(%rax), %ecx
cmpl $0x7, %ecx
ja 0x377f
movslq (%r12,%rcx,4), %rax
addq %r12, %rax
jmpq *%rax
movq (%r15), %rdi
callq 0x3320
movl %eax, 0x6ef8(%rip)      # 0xa660
jmp 0x3737
cmpl $0x64, %eax
jne 0x3795
movq (%r15), %rdi
callq 0x3320
movl %eax, 0x6ee7(%rip)      # 0xa664
jmp 0x3737
cmpl $0x67, %eax
jne 0x3737
movq (%r15), %rsi
leaq 0x6dd2(%rip), %rdi      # 0xa560
callq 0x3200
jmp 0x3737
cmpl $-0x1, %eax
je 0x3824
cmpl $0x3f, %eax
jne 0x3737
jmp 0x4a32
movq (%r15), %rsi
leaq 0x6aae(%rip), %rdi      # 0xa260
callq 0x3200
jmp 0x3737
movq (%r15), %rax
movb (%rax), %al
movb %al, 0x6a59(%rip)       # 0xa220
jmp 0x3737
movq %r12, %rbp
movq (%r15), %r12
leaq 0x6b87(%rip), %rdi      # 0xa360
movq %r12, %rsi
callq 0x3200
movq %r15, %r14
movq %rbx, %r15
leaq 0x6c72(%rip), %rbx      # 0xa460
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %r12
movl 0xa8(%rsp), %ebp
callq 0x3200
movq %rbx, %rdi
callq 0x3100
movabsq $0x70616d7069642e, %rcx # imm = 0x70616D7069642E
movq %rcx, (%rax,%rbx)
movq %r15, %rbx
movq %r14, %r15
jmp 0x3737
cmpb $0x0, 0x6a35(%rip)      # 0xa260
je 0x4a32
cmpb $0x0, 0x6d28(%rip)      # 0xa560
je 0x4a32
cmpb $0x0, 0x6b1b(%rip)      # 0xa360
je 0x4a32
cmpl $0x0, 0x6e0e(%rip)      # 0xa660
je 0x4a32
leaq 0x6a01(%rip), %rsi      # 0xa260
leaq 0x208(%rsp), %rdi
callq 0x5f2e
testb %al, %al
je 0x4cb3
leaq 0x6ce5(%rip), %rsi      # 0xa560
leaq 0x188(%rsp), %rdi
callq 0x5f2e
testb %al, %al
je 0x4cfa
leaq 0x298(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x39d6(%rip), %rsi      # 0x7279
leaq 0x39d0(%rip), %rdx      # 0x727a
leaq 0x288(%rsp), %rdi
callq 0x563e
leaq 0x208(%rsp), %rdi
leaq 0x288(%rsp), %rdx
movl $0x1, %esi
callq 0x6010
movq 0x288(%rsp), %rdi
cmpq %r14, %rdi
je 0x38ee
movq 0x298(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x278(%rsp), %r13
xorl %ebp, %ebp
leaq 0x208(%rsp), %r14
leaq 0x20(%rsp), %r15
leaq 0x40(%rsp), %r12
leaq 0x268(%rsp), %rbx
movq %r14, %rdi
callq 0x5ffc
testb %al, %al
jne 0x3b1f
movq 0x228(%rsp), %rax
cmpb $0x3e, (%rax)
jne 0x39f3
movl $0x1, %edx
movq %r15, %rdi
leaq 0x228(%rsp), %rsi
movq $-0x1, %rcx
callq 0x3250
movq %r12, %rdi
movq %r15, %rsi
callq 0x32a0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3976
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x55ae
movq %r15, %rdi
leaq 0x38dc(%rip), %rsi      # 0x727b
callq 0x3410
leaq 0xf8(%rsp), %rdi
movq %r15, %rsi
callq 0x32a0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x39d0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3240
movq %r12, %rdi
leaq 0x38a3(%rip), %rsi      # 0x727d
callq 0x30b0
testl %eax, %eax
jne 0x3a52
cmpb $0x6d, 0x6836(%rip)     # 0xa220
je 0x3a52
xorl %ebp, %ebp
jmp 0x3acb
testb $0x1, %bpl
je 0x3acb
leaq 0x706c(%rip), %rdi      # 0xaa70
movq %r12, %rsi
callq 0x508e
movq 0x228(%rsp), %rsi
movq 0x230(%rsp), %rdx
movq %rax, %rdi
callq 0x30c0
leaq 0x7045(%rip), %rdi      # 0xaa70
leaq 0xf8(%rsp), %rsi
callq 0x508e
movq 0x228(%rsp), %rsi
movq 0x230(%rsp), %rdx
movq %rax, %rdi
callq 0x30c0
jmp 0x3acb
leaq 0x7017(%rip), %rdi      # 0xaa70
movq %r12, %rsi
callq 0x508e
movq 0x8(%rax), %rdx
movq %rax, %rdi
xorl %esi, %esi
leaq 0x3809(%rip), %rcx      # 0x727a
xorl %r8d, %r8d
callq 0x3310
leaq 0x6ff0(%rip), %rdi      # 0xaa70
leaq 0xf8(%rsp), %rsi
callq 0x508e
movq 0x8(%rax), %rdx
movq %rax, %rdi
xorl %esi, %esi
leaq 0x37dd(%rip), %rcx      # 0x727a
xorl %r8d, %r8d
callq 0x3310
leaq 0x6ff4(%rip), %rdi      # 0xaaa0
movq %r12, %rsi
callq 0x510a
movb $0x1, %bpl
leaq 0x6fe2(%rip), %rdi      # 0xaaa0
leaq 0xf8(%rsp), %rsi
callq 0x510a
movq %r13, 0x268(%rsp)
movq %rbx, %rdi
leaq 0x379c(%rip), %rsi      # 0x7279
leaq 0x3796(%rip), %rdx      # 0x727a
callq 0x563e
movq %r14, %rdi
movl $0x1, %esi
movq %rbx, %rdx
callq 0x6010
movq 0x268(%rsp), %rdi
cmpq %r13, %rdi
je 0x3912
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x3912
leaq 0x208(%rsp), %rdi
callq 0x5f84
leaq 0x188(%rsp), %rdi
callq 0x5f8e
testb %al, %al
je 0x3ee5
leaq 0x258(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3725(%rip), %rsi      # 0x7279
leaq 0x371f(%rip), %rdx      # 0x727a
leaq 0x248(%rsp), %rdi
callq 0x563e
leaq 0x188(%rsp), %rdi
leaq 0x248(%rsp), %rdx
movl $0x1, %esi
callq 0x6010
movq 0x248(%rsp), %rdi
cmpq %r14, %rdi
je 0x3b9f
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x20(%rsp), %rbx
leaq 0x1c8(%rsp), %r15
leaq 0x188(%rsp), %rdi
callq 0x5ffc
testb %al, %al
jne 0x3ed8
movq 0x188(%rsp), %r14
movq 0x190(%rsp), %rax
subq %r14, %rax
cmpq $0x81, %rax
jb 0x3e6f
cmpq $0x1, 0x68(%r14)
jne 0x3e6f
cmpq $0x1, 0x88(%r14)
jne 0x3e6f
movq 0x40(%r14), %rdi
callq 0x3320
movl %eax, %ebp
addq $0x20, %r14
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x3130
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %r14
movq %rbx, %rdi
callq 0x55ae
movq %r14, %rdi
leaq 0x363a(%rip), %rsi      # 0x727b
callq 0x3410
leaq 0xf8(%rsp), %rdi
movq %r14, %rsi
callq 0x32a0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3c72
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x6df7(%rip), %rdi      # 0xaa70
leaq 0x40(%rsp), %rsi
callq 0x508e
movl %ebp, %ecx
cmpq %rcx, 0x8(%rax)
jae 0x3d1b
movl $0x28, %edx
movq 0x6355(%rip), %rdi      # 0x9ff0
leaq 0x35e0(%rip), %rsi      # 0x7282
callq 0x3270
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x6338(%rip), %rdi      # 0x9ff0
callq 0x3270
movq %rax, %r14
movl $0x2, %edx
movq %rax, %rdi
leaq 0x351a(%rip), %rsi      # 0x71e9
callq 0x3270
movq 0x188(%rsp), %rax
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rdx
movq %r14, %rdi
callq 0x3270
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3170
jmp 0x3e6f
leaq 0x6d4e(%rip), %rdi      # 0xaa70
leaq 0x40(%rsp), %rsi
callq 0x508e
decl %ebp
movq (%rax), %rax
movsbl (%rax,%rbp), %edi
callq 0x33f0
movl %eax, %r14d
movq 0x188(%rsp), %rax
movq 0x80(%rax), %rax
movsbl (%rax), %edi
callq 0x33f0
xorl %r12d, %r12d
cmpl %eax, %r14d
sete %r14b
leaq 0x6d0b(%rip), %rdi      # 0xaa70
leaq 0x40(%rsp), %rsi
callq 0x508e
movb %r14b, %r12b
movl $0x4, %r13d
subq %r12, %r13
addq $0x3, %r12
movq (%rax), %rax
cmpb $0x41, (%rax,%rbp)
jl 0x3e06
leaq 0x6ce1(%rip), %rdi      # 0xaa70
leaq 0x40(%rsp), %rsi
callq 0x508e
movq (%rax), %rax
cmpb $0x5a, (%rax,%rbp)
jg 0x3e06
movq 0x188(%rsp), %rax
shll $0x5, %r12d
movq (%rax,%r12), %rax
movsbl (%rax), %edi
callq 0x33f0
movl %eax, %r14d
leaq 0x6cac(%rip), %rdi      # 0xaa70
leaq 0x40(%rsp), %rsi
callq 0x508e
movq (%rax), %rax
movb %r14b, (%rax,%rbp)
movq 0x188(%rsp), %rax
shll $0x5, %r13d
movq (%rax,%r13), %rax
movsbl (%rax), %edi
callq 0x33f0
movl %eax, %r14d
leaq 0x6c79(%rip), %rdi      # 0xaa70
leaq 0xf8(%rsp), %rsi
callq 0x508e
jmp 0x3e68
movq 0x188(%rsp), %rax
shll $0x5, %r12d
movq (%rax,%r12), %rax
movsbl (%rax), %edi
callq 0x32e0
movl %eax, %r14d
leaq 0x6c48(%rip), %rdi      # 0xaa70
leaq 0x40(%rsp), %rsi
callq 0x508e
movq (%rax), %rax
movb %r14b, (%rax,%rbp)
movq 0x188(%rsp), %rax
shll $0x5, %r13d
movq (%rax,%r13), %rax
movsbl (%rax), %edi
callq 0x32e0
movl %eax, %r14d
leaq 0x6c15(%rip), %rdi      # 0xaa70
leaq 0xf8(%rsp), %rsi
callq 0x508e
movq (%rax), %rax
movb %r14b, (%rax,%rbp)
leaq 0x1d8(%rsp), %rax
movq %rax, 0x1c8(%rsp)
movq %r15, %rdi
leaq 0x33f0(%rip), %rsi      # 0x7279
leaq 0x33ea(%rip), %rdx      # 0x727a
callq 0x563e
leaq 0x188(%rsp), %rdi
movl $0x1, %esi
movq %r15, %rdx
callq 0x6010
movq 0x1c8(%rsp), %rdi
leaq 0x1d8(%rsp), %rax
cmpq %rax, %rdi
je 0x3bac
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x3bac
leaq 0x188(%rsp), %rdi
callq 0x5f84
movl 0x6779(%rip), %eax      # 0xa664
addl 0x676f(%rip), %eax      # 0xa660
leal -0x1(,%rax,2), %eax
movl %eax, 0x6b6a(%rip)      # 0xaa68
leaq 0x6963(%rip), %rdi      # 0xa868
leaq 0x6454(%rip), %rsi      # 0xa360
movl $0x10, %edx
callq 0x3050
leaq 0x674b(%rip), %rdi      # 0xa668
leaq 0x653c(%rip), %rsi      # 0xa460
movl $0x10, %edx
callq 0x3050
movq 0x6b73(%rip), %rcx      # 0xaaa8
movq 0x6b64(%rip), %rax      # 0xaaa0
subq %rax, %rcx
shrq $0x5, %rcx
testl %ecx, %ecx
jle 0x4719
leaq 0x148(%rsp), %rbx
leaq 0x6b16(%rip), %r13      # 0xaa70
leaq 0x168(%rsp), %rbp
movq %rsp, %r12
xorl %esi, %esi
movq %rsi, 0x1e8(%rsp)
shlq $0x5, %rsi
addq %rax, %rsi
leaq 0x40(%rsp), %rdi
callq 0x3130
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
cmpb $0x62, -0x1(%rsi,%rdx)
jne 0x46ed
leaq 0x128(%rsp), %rax
movq %rax, 0x118(%rsp)
addq %rsi, %rdx
leaq 0x118(%rsp), %rdi
callq 0x55ae
movq 0x118(%rsp), %rax
movq 0x120(%rsp), %rcx
cmpb $0x62, -0x1(%rax,%rcx)
jne 0x4c94
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movl $0x4e4e4e4e, 0x30(%rsp) # imm = 0x4E4E4E4E
movq $0x4, 0x28(%rsp)
movb $0x0, 0x34(%rsp)
movq %r13, %rdi
leaq 0x118(%rsp), %rsi
callq 0x508e
leaq 0xc0(%rsp), %rcx
movq %rcx, 0xb0(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0x55ae
movq 0x120(%rsp), %rcx
decq %rcx
movq %rbp, %rdi
leaq 0x118(%rsp), %rsi
xorl %edx, %edx
callq 0x3250
movq %r13, %rdi
movq %rbp, %rsi
callq 0x508e
movq %rbx, 0x138(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0x55ae
movq 0xb8(%rsp), %r15
testl %r15d, %r15d
jle 0x463d
movl 0x65df(%rip), %eax      # 0xa664
addl 0x65d5(%rip), %eax      # 0xa660
movl %r15d, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movl $0x1, %esi
xorl %edi, %edi
movq %rax, 0xa0(%rsp)
movl %eax, %r8d
movq %r15, 0x1f8(%rsp)
movq %rdx, 0x1f0(%rsp)
cmpl %r15d, %r8d
movl %r15d, %ebx
cmovll %r8d, %ebx
movq 0xb0(%rsp), %rax
movb (%rax,%rdi), %al
movq 0x138(%rsp), %rcx
cmpb (%rcx,%rdi), %al
je 0x462b
movl %r8d, 0xd4(%rsp)
movq %rsi, 0x158(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
xorl %eax, %eax
movq %rax, 0x70(%rsp)
movq %rax, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movq %rdi, %rcx
movl %ecx, %r14d
subl 0xa0(%rsp), %r14d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmovsl %eax, %r14d
leal 0x1(%r14), %edx
movq %rdi, 0x160(%rsp)
movl %ecx, %eax
subl %edx, %eax
movslq %eax, %rcx
movq %r12, %rdi
leaq 0x138(%rsp), %rsi
callq 0x3250
leaq 0x60(%rsp), %rdi
movq %r12, %rsi
callq 0x520a
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x416d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3240
addl $0x2, %r14d
movl %r14d, (%rsp)
movq 0x88(%rsp), %rsi
cmpq 0x90(%rsp), %rsi
je 0x4198
movl %r14d, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x88(%rsp)
jmp 0x41a8
leaq 0x80(%rsp), %rdi
movq %r12, %rdx
callq 0x5472
movq 0xb0(%rsp), %rax
movq 0x160(%rsp), %r14
movsbl (%rax,%r14), %esi
movq 0x60(%rsp), %rdi
callq 0x31e0
movq 0xa0(%rsp), %rax
addl %r14d, %eax
cmpl %r15d, %eax
cmovgel %r15d, %eax
leaq 0x1(%r14), %rcx
cltq
cmpq %rax, %rcx
jge 0x4494
movl %ebx, %eax
movq %rax, 0x200(%rsp)
movq 0x158(%rsp), %r15
movq 0x68(%rsp), %rbx
subq 0x60(%rsp), %rbx
shrq $0x5, %rbx
movq 0xb0(%rsp), %rax
movb (%rax,%r15), %al
movq 0x138(%rsp), %rcx
cmpb (%rcx,%r15), %al
jne 0x42b6
testl %ebx, %ebx
jle 0x4483
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
xorl %r14d, %r14d
movq 0x60(%rsp), %rax
movq 0x138(%rsp), %rcx
movb (%rcx,%r15), %bpl
leaq 0x10(%rsp), %rcx
movq %rcx, (%rsp)
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x55ae
movq 0x8(%rsp), %rsi
movsbl %bpl, %r8d
movl $0x1, %ecx
movq %r12, %rdi
xorl %edx, %edx
callq 0x3400
movq 0x60(%rsp), %rdi
addq %r14, %rdi
movq %r12, %rsi
callq 0x32a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x42a8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3240
addq $0x20, %r14
decq %rbx
jne 0x4237
jmp 0x4483
testl %ebx, %ebx
jle 0x4483
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
movq %rbx, %r14
shlq $0x5, %r14
xorl %ebp, %ebp
xorl %r13d, %r13d
movq %rbx, 0xa8(%rsp)
movq 0x60(%rsp), %rsi
movq %r12, %rbx
movl 0x8(%rsi,%rbp), %r12d
addq %rbp, %rsi
subl 0xa0(%rsp), %r12d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmovsl %eax, %r12d
incl %r12d
movq %rbx, %rdi
movq %r12, %rdx
movq $-0x1, %rcx
callq 0x3250
leaq 0x60(%rsp), %rdi
movq %rbx, %rsi
callq 0x520a
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4336
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x80(%rsp), %rax
addl (%rax,%r13,4), %r12d
movq 0x88(%rsp), %rsi
movl %r12d, (%rsp)
cmpq 0x90(%rsp), %rsi
je 0x436c
movl %r12d, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x88(%rsp)
movq %rsp, %rbx
jmp 0x437f
leaq 0x80(%rsp), %rdi
movq %rsp, %rbx
movq %rbx, %rdx
callq 0x5472
movq 0x60(%rsp), %rax
movq 0x138(%rsp), %rcx
movb (%rcx,%r15), %r12b
leaq 0x10(%rsp), %rcx
movq %rcx, (%rsp)
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x55ae
movq 0x8(%rsp), %rsi
movsbl %r12b, %r8d
movl $0x1, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x3400
movq 0x60(%rsp), %rdi
addq %rbp, %rdi
movq %rbx, %rsi
callq 0x32a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x43f0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x60(%rsp), %rax
movq 0xb0(%rsp), %rcx
movb (%rcx,%r15), %r12b
leaq 0x10(%rsp), %rcx
movq %rcx, (%rsp)
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
addq %rsi, %rdx
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x55ae
movq 0x8(%rsp), %rsi
movsbl %r12b, %r8d
movl $0x1, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x3400
movq %rbx, %r12
movq 0x60(%rsp), %rdi
addq %r14, %rdi
movq %rbx, %rsi
callq 0x32a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4467
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3240
incq %r13
addq $0x20, %r14
addq $0x20, %rbp
movq 0xa8(%rsp), %rbx
cmpq %r13, %rbx
jne 0x42d8
incq %r15
cmpq 0x200(%rsp), %r15
jne 0x41fa
movq 0x68(%rsp), %rbx
subq 0x60(%rsp), %rbx
shrq $0x5, %rbx
testl %ebx, %ebx
leaq 0x65c5(%rip), %r13      # 0xaa70
leaq 0x168(%rsp), %rbp
jle 0x45d9
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
xorl %r14d, %r14d
movq 0x168(%rsp), %rsi
movq 0x170(%rsp), %rdx
leaq 0x618f(%rip), %rdi      # 0xa668
callq 0x3270
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0x2d89(%rip), %rsi      # 0x7279
callq 0x3270
movq %r13, %rdi
movq %rbp, %rsi
callq 0x508e
movq 0x8(%rax), %rsi
incq %rsi
movq %r12, %rdi
callq 0x3160
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0x2d58(%rip), %rsi      # 0x7279
callq 0x3270
movq 0x60(%rsp), %rax
movq 0x8(%rax,%r14,8), %rsi
movq %r12, %rdi
callq 0x3160
movl $0x1, %edx
movq %rax, %rdi
leaq 0x2d32(%rip), %rsi      # 0x7279
callq 0x3270
movq 0x60(%rsp), %r15
movq %r13, %rdi
movq %rbp, %rsi
callq 0x508e
movq (%r15,%r14,8), %rsi
movq 0x8(%r15,%r14,8), %rdx
movq %rax, %rdi
callq 0x30c0
movq %r13, %rdi
movq %rbp, %rsi
callq 0x508e
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rax, %rdi
callq 0x30c0
movq 0x80(%rsp), %rax
movl (%rax,%r14), %esi
leaq 0x60cb(%rip), %rdi      # 0xa668
callq 0x3380
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3170
addq $0x4, %r14
decq %rbx
jne 0x44c2
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x45f6
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
leaq 0x60(%rsp), %rdi
callq 0x5032
movq %rsp, %r12
movq 0x1f8(%rsp), %r15
movq 0x1f0(%rsp), %rdx
movq 0x158(%rsp), %rsi
movq 0x160(%rsp), %rdi
movl 0xd4(%rsp), %r8d
incq %rdi
incq %rsi
incl %r8d
cmpq %rdx, %rdi
jne 0x40b6
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rbx
cmpq %rbx, %rdi
je 0x4662
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x4687
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x46ac
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x46c8
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x46ed
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x1e8(%rsp), %rsi
incq %rsi
movq 0x63a9(%rip), %rcx      # 0xaaa8
movq 0x639a(%rip), %rax      # 0xaaa0
subq %rax, %rcx
shrq $0x5, %rcx
movslq %ecx, %rcx
cmpq %rcx, %rsi
jl 0x3f67
movq 0x6388(%rip), %rcx      # 0xaaa8
movq 0x6379(%rip), %rax      # 0xaaa0
subq %rax, %rcx
shrq $0x5, %rcx
testl %ecx, %ecx
jle 0x4936
leaq 0xe8(%rsp), %r14
xorl %r12d, %r12d
leaq 0x40(%rsp), %r15
leaq 0x611b(%rip), %r13      # 0xa868
movl $0x88888889, %ebx       # imm = 0x88888889
leaq 0xb0(%rsp), %rbp
movq %r12, %rsi
shlq $0x5, %rsi
addq %rax, %rsi
movq %r15, %rdi
callq 0x3130
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
cmpb $0x62, -0x1(%rsi,%rdx)
je 0x4906
movq %r14, 0xd8(%rsp)
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0x55ae
movb 0x6339(%rip), %al       # 0xaad8
testb %al, %al
je 0x492c
movq 0xd8(%rsp), %rax
movq 0xe0(%rsp), %rcx
cmpb $0x62, -0x1(%rax,%rcx)
je 0x4c75
leaq 0x62a7(%rip), %rdi      # 0xaa70
leaq 0xd8(%rsp), %rsi
callq 0x508e
leaq 0x30(%rsp), %rcx
movq %rcx, 0x20(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x55ae
movq 0x62bd(%rip), %rsi      # 0xaab8
movq 0x62be(%rip), %rdx      # 0xaac0
movq %r13, %rdi
callq 0x3270
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
leaq 0x2b4e(%rip), %rsi      # 0x736a
callq 0x3270
movq 0xd8(%rsp), %rsi
movq 0xe0(%rsp), %rdx
movq %r15, %rdi
callq 0x3270
movq 0x6280(%rip), %rdx      # 0xaac0
movl $0x1, %r8d
leaq 0x626b(%rip), %rdi      # 0xaab8
xorl %esi, %esi
leaq 0x2b16(%rip), %rcx      # 0x736c
callq 0x3310
movq 0x28(%rsp), %r15
testl %r15d, %r15d
jle 0x48c0
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
xorl %r14d, %r14d
movl %r14d, %eax
imulq %rbx, %rax
shrq $0x25, %rax
imull $-0x3c, %eax, %eax
addl %r14d, %eax
jne 0x4898
movq 0x622f(%rip), %rsi      # 0xaab8
movq 0x6230(%rip), %rdx      # 0xaac0
movq %r13, %rdi
callq 0x3270
movq 0x20(%rsp), %rax
movb (%rax,%r14), %al
movb %al, 0xb0(%rsp)
movl $0x1, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3270
incq %r14
cmpq %r14, %r15
jne 0x486f
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x48dc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %r14
cmpq %r14, %rdi
leaq 0x40(%rsp), %r15
je 0x4906
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3240
incq %r12
movq 0x6198(%rip), %rcx      # 0xaaa8
movq 0x6189(%rip), %rax      # 0xaaa0
subq %rax, %rcx
shrq $0x5, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r12
jl 0x475a
jmp 0x4936
callq 0x3430
jmp 0x47a7
movq 0x5f2b(%rip), %rax      # 0xa868
leaq 0x5f24(%rip), %rdi      # 0xa868
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
leaq 0x5f0c(%rip), %rdi      # 0xa868
callq 0x3030
movq %rax, %rdi
callq 0x3170
leaq 0x5cf8(%rip), %rdi      # 0xa668
callq 0x32d0
leaq 0x5eec(%rip), %rdi      # 0xa868
callq 0x32d0
leaq 0x1b8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49a2
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x188(%rsp), %rdi
callq 0x5032
leaq 0x238(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49d0
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x208(%rsp), %rdi
callq 0x5032
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x4a02
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x4a1e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3240
xorl %eax, %eax
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x55b7(%rip), %rdi      # 0x9ff0
leaq 0x25e4(%rip), %rsi      # 0x7024
movl $0xf, %edx
callq 0x3270
movq 0x559f(%rip), %rdi      # 0x9ff0
callq 0x3110
movq 0x5593(%rip), %rdi      # 0x9ff0
leaq 0x25d0(%rip), %rsi      # 0x7034
movl $0x22, %edx
callq 0x3270
movq 0x557b(%rip), %rdi      # 0x9ff0
callq 0x3110
movq %rax, %rdi
callq 0x3110
movq 0x5567(%rip), %rdi      # 0x9ff0
leaq 0x25c7(%rip), %rsi      # 0x7057
movl $0x7, %edx
callq 0x3270
movq (%rbx), %rsi
movq 0x554c(%rip), %rdi      # 0x9ff0
callq 0x3220
movq %rax, %r14
leaq 0x25ac(%rip), %rsi      # 0x705f
movl $0x33, %edx
movq %rax, %rdi
callq 0x3270
movq %r14, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
movq 0x5519(%rip), %rdi      # 0x9ff0
leaq 0x25b5(%rip), %rsi      # 0x7093
movl $0x72, %edx
callq 0x3270
movq 0x5501(%rip), %rdi      # 0x9ff0
callq 0x3110
movq %rax, %rdi
callq 0x3110
movq 0x54ed(%rip), %rdi      # 0x9ff0
leaq 0x25fc(%rip), %rsi      # 0x7106
movl $0x9, %edx
callq 0x3270
movq (%rbx), %rsi
movq 0x54d2(%rip), %rdi      # 0x9ff0
callq 0x3220
movq %rax, %rbx
leaq 0x25e3(%rip), %rsi      # 0x7110
movl $0x32, %edx
movq %rax, %rdi
callq 0x3270
movq %rbx, %rdi
callq 0x3110
movq 0x54a7(%rip), %rdi      # 0x9ff0
callq 0x3110
movq %rax, %rbx
leaq 0x25eb(%rip), %rsi      # 0x7143
movl $0x18, %edx
movq %rax, %rdi
callq 0x3270
movq %rbx, %rdi
callq 0x3110
movq 0x547c(%rip), %rdi      # 0x9ff0
leaq 0x25e1(%rip), %rsi      # 0x715c
movl $0x24, %edx
callq 0x3270
movq 0x5464(%rip), %rdi      # 0x9ff0
callq 0x3110
movq 0x5458(%rip), %rdi      # 0x9ff0
leaq 0x25e2(%rip), %rsi      # 0x7181
movl $0x14, %edx
callq 0x3270
movq 0x5440(%rip), %rdi      # 0x9ff0
callq 0x3110
movq 0x5434(%rip), %rdi      # 0x9ff0
leaq 0x25d3(%rip), %rsi      # 0x7196
movl $0x11, %edx
callq 0x3270
movq 0x541c(%rip), %rdi      # 0x9ff0
callq 0x3110
movq 0x5410(%rip), %rdi      # 0x9ff0
leaq 0x25c1(%rip), %rsi      # 0x71a8
movl $0x2b, %edx
callq 0x3270
movq 0x53f8(%rip), %rdi      # 0x9ff0
callq 0x3110
movq 0x53ec(%rip), %rdi      # 0x9ff0
callq 0x3110
movq %rax, %rbx
leaq 0x25c1(%rip), %rsi      # 0x71d4
movl $0x17, %edx
movq %rax, %rdi
callq 0x3270
movq %rbx, %rdi
callq 0x3110
movq 0x53c1(%rip), %rdi      # 0x9ff0
leaq 0x25b6(%rip), %rsi      # 0x71ec
movl $0x4e, %edx
callq 0x3270
movq 0x53a9(%rip), %rdi      # 0x9ff0
callq 0x3110
movq 0x539d(%rip), %rdi      # 0x9ff0
leaq 0x25e1(%rip), %rsi      # 0x723b
movl $0x29, %edx
callq 0x3270
movq 0x5385(%rip), %rdi      # 0x9ff0
callq 0x3110
jmp 0x4d3f
leaq 0x26b2(%rip), %rdi      # 0x732e
leaq 0x265c(%rip), %rsi      # 0x72df
leaq 0x26c7(%rip), %rcx      # 0x7351
movl $0x4b, %edx
callq 0x3150
leaq 0x261d(%rip), %rdi      # 0x72b8
leaq 0x263d(%rip), %rsi      # 0x72df
leaq 0x264d(%rip), %rcx      # 0x72f6
movl $0x59, %edx
callq 0x3150
movq 0x5336(%rip), %rdi      # 0x9ff0
leaq 0x25a4(%rip), %rsi      # 0x7265
movl $0x13, %edx
callq 0x3270
leaq 0x558e(%rip), %rbx      # 0xa260
movq %rbx, %rdi
callq 0x3100
movq 0x530f(%rip), %rdi      # 0x9ff0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x3270
movq 0x52fd(%rip), %rdi      # 0x9ff0
callq 0x3110
jmp 0x4d3f
movq 0x52ef(%rip), %rdi      # 0x9ff0
leaq 0x255d(%rip), %rsi      # 0x7265
movl $0x13, %edx
callq 0x3270
leaq 0x5847(%rip), %rbx      # 0xa560
movq %rbx, %rdi
callq 0x3100
movq 0x52c8(%rip), %rdi      # 0x9ff0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x3270
movq 0x52b6(%rip), %rdi      # 0x9ff0
callq 0x3110
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3290
jmp 0x4e72
movq %rax, %rbx
movq 0x248(%rsp), %rdi
cmpq %r14, %rdi
je 0x4fc9
movq 0x258(%rsp), %rsi
jmp 0x4fc1
jmp 0x4e72
movq %rax, %rbx
movq 0x288(%rsp), %rdi
cmpq %r14, %rdi
je 0x4fc9
movq 0x298(%rsp), %rsi
jmp 0x4fc1
jmp 0x4e72
movq %rax, %rbx
jmp 0x4fd6
movq %rax, %rbx
jmp 0x4fe3
movq %rax, %rbx
jmp 0x5008
jmp 0x4dfb
jmp 0x4e72
movq %rax, %rbx
jmp 0x4f63
jmp 0x4e72
jmp 0x4e72
jmp 0x4e72
movq %rax, %rbx
movq 0x1c8(%rsp), %rdi
leaq 0x1d8(%rsp), %rax
cmpq %rax, %rdi
je 0x4fc9
movq 0x1d8(%rsp), %rsi
jmp 0x4fc1
jmp 0x4e72
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4fc9
movq 0x30(%rsp), %rsi
jmp 0x4fc1
jmp 0x4e72
jmp 0x4e72
movq %rax, %rbx
jmp 0x4f88
movq %rax, %rbx
jmp 0x4f3e
movq %rax, %rbx
leaq 0xe8(%rsp), %r14
jmp 0x4ea1
jmp 0x4e72
jmp 0x4e72
jmp 0x4eef
jmp 0x4e72
movq %rax, %rbx
movq 0x268(%rsp), %rdi
cmpq %r13, %rdi
je 0x4fc9
movq 0x278(%rsp), %rsi
jmp 0x4fc1
jmp 0x4e7a
jmp 0x4e72
jmp 0x4ecd
jmp 0x4eef
jmp 0x4eef
movq %rax, %rbx
jmp 0x4fc9
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
leaq 0xe8(%rsp), %r14
je 0x4ea1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4fc9
movq 0xe8(%rsp), %rsi
jmp 0x4fc1
jmp 0x4eef
jmp 0x4eef
jmp 0x4ecd
jmp 0x4ecd
jmp 0x4eef
jmp 0x4ecd
jmp 0x4eef
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4ef2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x4ef2
jmp 0x4eef
movq %rax, %rbx
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x4f0f
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
leaq 0x60(%rsp), %rdi
callq 0x5032
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x4f3e
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x4f63
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x4f88
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4fa4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x4fc9
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x188(%rsp), %rdi
callq 0x5148
leaq 0x208(%rsp), %rdi
callq 0x5148
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x5008
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x50(%rsp), %rax
movq 0x40(%rsp), %rdi
cmpq %rax, %rdi
je 0x5024
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3240
movq %rbx, %rdi
callq 0x33a0