// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]optimal-seed-solver/testGemsSolver.cc
// Function: main
int main(int argc, const char* argv[]) {
	map <int, unsigned long long> frequencyCounter;

	ThresholdSolver solver;
	FastHASHSolver fsolver;

	if (argc != 3) {
		cerr << "USAGE: ./testOptimalSolver <Tree File> <Read File>" << endl;
		exit(1);
	}

	cout << "Loading tree " << argv[1] << " into memory.\n";
	solver.loadTree(argv[1]);
	fsolver.loadTree(argv[1]);
	cout << "Finished loading. \n";

	int seedNum;
	int frequency;
	//cout << "Please input number of seeds: ";
	cin >> seedNum;

	ifstream readFile;
	readFile.open(argv[2]);
	string read;
	
	char benchFileName[80];
	strcpy(benchFileName, argv[2]);
	char* benchName = strtok(benchFileName, ".");
	
	ofstream output;
	output.open( (string(benchName) + string(".gems") ).c_str() );

	int threshold = 0;
	vector<int> thresholds;

	while (seedNum > 0) {
		cin >> threshold;
		thresholds.clear();
		thresholds.resize(seedNum, threshold);
		solver.setThresholdVec(thresholds);

		frequencyCounter.clear();

		readFile.clear();
		readFile.seekg(0, ios::beg);

		//Name
		getline(readFile, read);
		//Read
		getline(readFile, read);
		//cout << "DNA: " << read << endl;
		fsolver.init(read.length(), seedNum, 14);

		//Solve
		frequency = solver.solve(read);

		if (frequency < 0) {
			assert(frequency == -1);
			frequency = fsolver.solveDNA(read);
		}

		if (frequencyCounter.find(frequency) == frequencyCounter.end() )
			frequencyCounter[frequency] = 1;
		else
			frequencyCounter[frequency]++;

		//Trash
		getline(readFile, read);
		getline(readFile, read);
			
		//Name
		getline(readFile, read);

		while (!readFile.eof()) {
			//Read
			getline(readFile, read);
			//cout << "DNA: " << read << endl;

			//Solve
			if (read.find('N') == string::npos) {
				frequency = solver.solve(read);

				if (frequency < 0) {
					assert(frequency == -1);
					frequency = fsolver.solveDNA(read);
				}

				if (frequencyCounter.find(frequency) == frequencyCounter.end() )
					frequencyCounter[frequency] = 1;
				else
					frequencyCounter[frequency]++;
			}

			//Trash
			getline(readFile, read);
			getline(readFile, read);
			
			//Name
			getline(readFile, read);
		}

		cout << "seedNum: " << seedNum << " | threshold: " << threshold << endl;
		output << "seedNum: " << seedNum << " | threshold: " << threshold << endl;
		for (map<int, unsigned long long>::iterator iter = frequencyCounter.begin(); iter != frequencyCounter.end(); iter++)
			output << iter->first << ": " << iter->second << endl;
		
		cin >> seedNum;
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xdf8, %rsp            # imm = 0xDF8
movq %rsi, %r14
movl %edi, %ebx
leaq 0x120(%rsp), %r15
movl $0x0, (%r15)
xorl %eax, %eax
movq %rax, 0x8(%r15)
movq %r15, 0x10(%r15)
movq %r15, 0x18(%r15)
movq %rax, 0x20(%r15)
leaq 0x960(%rsp), %rdi
callq 0x57d8
leaq 0x5e0(%rsp), %rdi
callq 0x5028
cmpl $0x3, %ebx
jne 0x4241
movq 0xe7db(%rip), %rbx      # 0x11fc8
leaq 0x987f(%rip), %rsi      # 0xd073
movl $0xd, %edx
movq %rbx, %rdi
callq 0x32e0
movq 0x8(%r14), %r12
testq %r12, %r12
je 0x3826
movq %r12, %rdi
callq 0x3120
movq 0xe7af(%rip), %rdi      # 0x11fc8
movq %r12, %rsi
movq %rax, %rdx
callq 0x32e0
jmp 0x383d
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x3430
movq 0xe784(%rip), %rdi      # 0x11fc8
leaq 0x9836(%rip), %rsi      # 0xd081
movl $0xe, %edx
callq 0x32e0
movq 0x8(%r14), %rsi
leaq 0x168(%rsp), %rdi
leaq 0x188(%rsp), %rdx
callq 0x446a
leaq 0x960(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x5956
leaq 0x178(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x38a4
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%r14), %rsi
leaq 0x148(%rsp), %rdi
leaq 0x188(%rsp), %rdx
callq 0x446a
leaq 0x5e0(%rsp), %rdi
leaq 0x148(%rsp), %rsi
callq 0x509c
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x38f3
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xe6ce(%rip), %rdi      # 0x11fc8
leaq 0x978f(%rip), %rsi      # 0xd090
movl $0x13, %edx
callq 0x32e0
movq 0xe6c6(%rip), %rdi      # 0x11fd8
leaq 0x8(%rsp), %rsi
callq 0x3180
leaq 0x188(%rsp), %rdi
callq 0x32d0
movq 0x10(%r14), %rsi
leaq 0x188(%rsp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x3190
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x10(%r14), %rsi
leaq 0x590(%rsp), %r14
movq %r14, %rdi
callq 0x3250
leaq 0x9cee(%rip), %rsi      # 0xd65f
movq %r14, %rdi
callq 0x33e0
movq %rax, %r14
leaq 0x390(%rsp), %rdi
callq 0x3440
leaq 0x58(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %r14, %rsi
callq 0x446a
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x96f6(%rip), %rsi      # 0xd0a4
leaq 0x96f4(%rip), %rdx      # 0xd0a9
leaq 0x78(%rsp), %rdi
callq 0x4780
leaq 0x68(%rsp), %r12
movq -0x10(%r12), %rcx
movq -0x8(%r12), %r8
movq 0x80(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x39e9
movq 0x68(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x3a07
movl $0xf, %esi
cmpq %r14, 0x78(%rsp)
je 0x3a02
movq 0x88(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x3a18
movq 0x78(%rsp), %rsi
leaq 0x58(%rsp), %rdi
callq 0x30e0
jmp 0x3a26
leaq 0x78(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32c0
leaq 0x20(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x3a4a
movq %rsi, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x3a50
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x10(%rsp), %rsi
leaq 0x390(%rsp), %rdi
movl $0x10, %edx
callq 0x3050
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3a9f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x3ab9
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x3ad0
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x58(%rsp), %rax
movl $0x0, (%rax)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rax
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x38(%rsp), %r12
leaq 0xf8(%rsp), %r14
cmpl $0x0, 0x8(%rsp)
jle 0x4150
movq 0xe4cb(%rip), %rdi      # 0x11fd8
leaq 0x58(%rsp), %rsi
callq 0x3180
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
je 0x3b28
movq %rax, 0x18(%rsp)
movslq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x44a8
leaq 0x960(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x5ba8
leaq 0x118(%rsp), %rdi
callq 0x4df2
movq 0x188(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
xorl %esi, %esi
callq 0x3430
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3390
movq 0x188(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3490
movq 0x188(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3490
movl 0x40(%rsp), %esi
movl 0x8(%rsp), %edx
leaq 0x5e0(%rsp), %rdi
movl $0xe, %ecx
callq 0x511a
leaq 0xe8(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0x46f0
leaq 0x960(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x6ba4
movl %eax, 0x4(%rsp)
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x3c4d
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3290
movl 0x4(%rsp), %eax
testl %eax, %eax
jns 0x3cc6
cmpl $-0x1, %eax
jne 0x4222
leaq 0xc8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb8(%rsp), %rdi
callq 0x46f0
leaq 0x5e0(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x513a
movl %eax, 0x4(%rsp)
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x3cc6
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x128(%rsp), %rcx
movq %r15, %rax
testq %rcx, %rcx
je 0x3cf4
movl 0x4(%rsp), %edx
movq %r15, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x3cdd
movq %r15, %rcx
cmpq %r15, %rax
je 0x3d0a
movl 0x4(%rsp), %ecx
cmpl 0x20(%rax), %ecx
cmovlq %r15, %rax
movq %rax, %rcx
cmpq %r15, %rcx
je 0x3d26
leaq 0x118(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x44dc
incq (%rax)
jmp 0x3d3f
leaq 0x118(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x44dc
movq $0x1, (%rax)
movq 0x188(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3490
movq 0x188(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3490
movq 0x188(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3490
movq 0x188(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x1a8(%rsp,%rax)
jne 0x3fd4
leaq (%rsp,%rax), %rdi
addq $0x188, %rdi            # imm = 0x188
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3490
movq %r12, %rdi
movl $0x4e, %esi
xorl %edx, %edx
callq 0x3360
cmpq $-0x1, %rax
jne 0x3f5a
leaq 0x108(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x46f0
leaq 0x960(%rsp), %rdi
movq %r14, %rsi
callq 0x6ba4
movl %eax, 0x4(%rsp)
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x3e68
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3290
movl 0x4(%rsp), %eax
testl %eax, %eax
jns 0x3ee1
cmpl $-0x1, %eax
jne 0x4203
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x46f0
leaq 0x5e0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x513a
movl %eax, 0x4(%rsp)
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x3ee1
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x128(%rsp), %rcx
movq %r15, %rax
testq %rcx, %rcx
je 0x3f0f
movl 0x4(%rsp), %edx
movq %r15, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x3ef8
movq %r15, %rcx
cmpq %r15, %rax
je 0x3f25
movl 0x4(%rsp), %ecx
cmpl 0x20(%rax), %ecx
cmovlq %r15, %rax
movq %rax, %rcx
cmpq %r15, %rcx
je 0x3f41
leaq 0x118(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x44dc
incq (%rax)
jmp 0x3f5a
leaq 0x118(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x44dc
movq $0x1, (%rax)
movq 0x188(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3490
movq 0x188(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3490
movq 0x188(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3490
jmp 0x3db4
movl $0x9, %edx
movq 0xdfe8(%rip), %rdi      # 0x11fc8
leaq 0x9102(%rip), %rsi      # 0xd0e9
callq 0x32e0
movl 0x8(%rsp), %esi
movq 0xdfd1(%rip), %rdi      # 0x11fc8
callq 0x3450
movq %rax, %r13
movl $0xe, %edx
movq %rax, %rdi
leaq 0x90e5(%rip), %rsi      # 0xd0f3
callq 0x32e0
movl 0x58(%rsp), %esi
movq %r13, %rdi
callq 0x3450
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
movl $0x9, %edx
leaq 0x390(%rsp), %rdi
leaq 0x908c(%rip), %rsi      # 0xd0e9
callq 0x32e0
movl 0x8(%rsp), %esi
leaq 0x390(%rsp), %rdi
callq 0x3450
movq %rax, %r13
movl $0xe, %edx
movq %rax, %rdi
leaq 0x906e(%rip), %rsi      # 0xd0f3
callq 0x32e0
movl 0x58(%rsp), %esi
movq %r13, %rdi
callq 0x3450
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
movq 0x130(%rsp), %rbp
cmpq %r15, %rbp
je 0x413a
movl 0x20(%rbp), %esi
leaq 0x390(%rsp), %rdi
callq 0x3450
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
leaq 0x95ad(%rip), %rsi      # 0xd69c
callq 0x32e0
movq 0x28(%rbp), %rsi
movq %r13, %rdi
callq 0x31b0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
movq %rbp, %rdi
callq 0x31e0
movq %rax, %rbp
cmpq %r15, %rax
jne 0x40cd
movq 0xde97(%rip), %rdi      # 0x11fd8
leaq 0x8(%rsp), %rsi
callq 0x3180
jmp 0x3afb
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4167
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3290
movq 0xde52(%rip), %rax      # 0x11fc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x398(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x390(%rsp,%rcx)
callq 0x3220
leaq 0x488(%rsp), %rdi
callq 0x30f0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x41bb
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x188(%rsp), %rdi
callq 0x30c0
leaq 0x5e0(%rsp), %rdi
callq 0x5078
leaq 0x960(%rsp), %rdi
callq 0x4540
leaq 0x118(%rsp), %rdi
callq 0x46a0
xorl %eax, %eax
addq $0xdf8, %rsp            # imm = 0xDF8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8ea0(%rip), %rdi      # 0xd0aa
leaq 0x8ea9(%rip), %rsi      # 0xd0ba
leaq 0x8eb4(%rip), %rcx      # 0xd0cc
movl $0x5f, %edx
callq 0x31a0
leaq 0x8e81(%rip), %rdi      # 0xd0aa
leaq 0x8e8a(%rip), %rsi      # 0xd0ba
leaq 0x8e95(%rip), %rcx      # 0xd0cc
movl $0x45, %edx
callq 0x31a0
movq 0xdda8(%rip), %rdi      # 0x11ff0
leaq 0x8df1(%rip), %rsi      # 0xd040
movl $0x32, %edx
callq 0x32e0
movq 0xdd90(%rip), %rdi      # 0x11ff0
callq 0x3130
movl $0x1, %edi
callq 0x3300
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4292
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x4292
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x42b1
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x42b1
movq %rax, %rbx
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4405
movq 0x68(%rsp), %rsi
incq %rsi
jmp 0x4400
movq %rax, %rbx
jmp 0x4405
movq %rax, %rbx
jmp 0x4412
movq %rax, %rbx
jmp 0x442e
jmp 0x434f
jmp 0x434f
movq %rax, %rbx
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x443b
movq 0x158(%rsp), %rsi
jmp 0x4330
jmp 0x434f
movq %rax, %rbx
leaq 0x178(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x443b
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x443b
jmp 0x434f
movq %rax, %rbx
jmp 0x4448
movq %rax, %rbx
jmp 0x4455
movq %rax, %rbx
jmp 0x443b
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x43ee
movq 0xc8(%rsp), %rsi
jmp 0x43dd
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x43ee
movq 0xe8(%rsp), %rsi
jmp 0x43dd
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x43ee
movq 0xa8(%rsp), %rsi
jmp 0x43dd
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x43ee
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x43ee
jmp 0x43eb
jmp 0x43eb
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4405
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3290
leaq 0x390(%rsp), %rdi
callq 0x33c0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x442e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x188(%rsp), %rdi
callq 0x30c0
leaq 0x5e0(%rsp), %rdi
callq 0x5078
leaq 0x960(%rsp), %rdi
callq 0x4540
leaq 0x118(%rsp), %rdi
callq 0x46a0
movq %rbx, %rdi
callq 0x3470