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

	OptimalSolver solver;

	if (argc == 3) {
		cout << "Loading tree " << argv[1] << " into memory.\n";
		solver.loadTree(argv[1]);
		cout << "Finished loading. \n";

		int seedNum;
		unsigned 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(".hobbes") ).c_str() );

		while (seedNum > 0) {
			frequencyCounter.clear();

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

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

			//Solve
			frequency = solver.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.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 << endl;
			output << "seedNum: " << seedNum << endl;
			for (map<unsigned int, unsigned long long>::iterator iter = frequencyCounter.begin(); iter != frequencyCounter.end(); iter++)
				output << iter->first << ": " << iter->second << endl;

			cin >> seedNum;
		}


	}
	else if (argc == 1) {
		cout << "input seedNum and readLength: " << endl;
		int seedNum;
		int readLength;
		cin >> seedNum;
		string dummy = "";
		while (seedNum > 0) {
			cin >> readLength;
			solver.init(readLength, seedNum);
			solver.feedL0();
			solver.solveDNA(dummy);
			cin >> seedNum;
		}
	}
	else
	{
		cerr << "USAGE: ./testOptimalSolver <Tree File> <Read File>" << endl;
		exit(1);
	}

//	cout << "Loading tree " << argv[1] << " into memory.\n";
//	solver.loadTree(argv[1]);
//	cout << "Finished loading. \n";
//
//	int seedNum;
//	unsigned int frequency;
//	//cout << "Please input number of seeds: ";
//	cin >> seedNum;
//
//	ifstream readFile;
//	readFile.open(argv[2]);
//	string read;
//
//	while (seedNum > 0) {
//		frequencyCounter.clear();
//
//		readFile.clear();
//		readFile.seekg(0, ios::beg);
//
//		//Name
//		getline(readFile, read);
//		//Read
//		getline(readFile, read);
//		solver.init(read.length(), seedNum);
//		//		cout << "DNA: " << read << endl;
//
//		//Solve
//		frequency = solver.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.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 << endl;
//		for (map<unsigned int, unsigned long long>::iterator iter = frequencyCounter.begin(); iter != frequencyCounter.end(); iter++)
//			cout << iter->first << ": " << iter->second << endl;
//
//		cin >> seedNum;
//	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x938, %rsp            # imm = 0x938
movq %rsi, %r14
movl %edi, %ebx
leaq 0xe0(%rsp), %rbp
movl $0x0, (%rbp)
xorl %eax, %eax
movq %rax, 0x8(%rbp)
movq %rbp, 0x10(%rbp)
movq %rbp, 0x18(%rbp)
movq %rax, 0x20(%rbp)
leaq 0x5a0(%rsp), %rdi
callq 0x46d0
cmpl $0x1, %ebx
je 0x3785
cmpl $0x3, %ebx
jne 0x40ad
movq 0xb883(%rip), %rbx      # 0xefc8
leaq 0x78b8(%rip), %rsi      # 0xb004
movl $0xd, %edx
movq %rbx, %rdi
callq 0x32e0
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x38f1
movq %r15, %rdi
callq 0x3120
movq 0xb853(%rip), %rdi      # 0xefc8
movq %r15, %rsi
movq %rax, %rdx
callq 0x32e0
jmp 0x3908
movq 0xb83c(%rip), %rbx      # 0xefc8
leaq 0x78b4(%rip), %rsi      # 0xb047
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x32e0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq 0xb80a(%rip), %rdi      # 0xefc8
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movq 0xb806(%rip), %rdi      # 0xefd8
leaq 0x3a0(%rsp), %rsi
callq 0x3170
leaq 0x158(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x7e19(%rip), %rdx      # 0xb60b
leaq 0x148(%rsp), %rdi
movq %rdx, %rsi
callq 0x440c
leaq 0x118(%rsp), %rbp
movq 0xb7c7(%rip), %rbx      # 0xefd8
leaq 0x350(%rsp), %r14
leaq 0x5a0(%rsp), %r15
leaq 0x108(%rsp), %r12
leaq 0x3a0(%rsp), %r13
cmpl $0x0, 0x3a0(%rsp)
jle 0x38c3
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3170
movl 0x350(%rsp), %esi
movl 0x3a0(%rsp), %edx
movq %r15, %rdi
callq 0x487a
movq %r15, %rdi
callq 0x4bf8
movq %rbp, 0x108(%rsp)
movq 0x148(%rsp), %rsi
movq 0x150(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x437c
movq %r15, %rdi
movq %r12, %rsi
callq 0x4d04
movq 0x108(%rsp), %rdi
cmpq %rbp, %rdi
je 0x38b3
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3170
jmp 0x3831
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x407f
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x407f
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x3420
movq 0xb6b9(%rip), %rdi      # 0xefc8
leaq 0x76fc(%rip), %rsi      # 0xb012
movl $0xe, %edx
callq 0x32e0
movq 0x8(%r14), %rsi
leaq 0x128(%rsp), %rdi
leaq 0x148(%rsp), %rdx
callq 0x427e
leaq 0x5a0(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x4786
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x396f
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xb652(%rip), %rdi      # 0xefc8
leaq 0x76a4(%rip), %rsi      # 0xb021
movl $0x13, %edx
callq 0x32e0
movq 0xb64a(%rip), %rdi      # 0xefd8
leaq 0x10(%rsp), %rsi
callq 0x3170
leaq 0x148(%rsp), %rdi
callq 0x32d0
movq 0x10(%r14), %rsi
leaq 0x148(%rsp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x3180
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x10(%r14), %rsi
leaq 0x350(%rsp), %r14
movq %r14, %rdi
callq 0x3250
leaq 0x7ca2(%rip), %rsi      # 0xb68f
movq %r14, %rdi
callq 0x33d0
movq %rax, %r14
leaq 0x3a0(%rsp), %rdi
callq 0x3430
leaq 0xb8(%rsp), %rdi
leaq 0x17(%rsp), %rdx
movq %r14, %rsi
callq 0x427e
leaq 0x68(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x760b(%rip), %rsi      # 0xb035
leaq 0x760b(%rip), %rdx      # 0xb03c
leaq 0x58(%rsp), %rdi
callq 0x440c
leaq 0xc8(%rsp), %r15
movq -0x10(%r15), %rcx
movq -0x8(%r15), %r8
movq 0x60(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r15, %rcx
je 0x3a66
movq 0xc8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x3a81
movl $0xf, %esi
cmpq %r14, 0x58(%rsp)
je 0x3a7c
movq 0x68(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x3a95
movq 0x58(%rsp), %rsi
leaq 0xb8(%rsp), %rdi
callq 0x30e0
jmp 0x3aa3
leaq 0x58(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32c0
leaq 0x28(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x3ac7
movq %rsi, 0x18(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x28(%rsp)
jmp 0x3acd
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x20(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x18(%rsp), %rsi
leaq 0x3a0(%rsp), %rdi
movl $0x10, %edx
callq 0x3050
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b1c
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x3b33
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x3b50
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xa8(%rsp), %r13
leaq 0x38(%rsp), %r15
cmpl $0x0, 0x10(%rsp)
jle 0x401e
leaq 0xd8(%rsp), %rdi
callq 0x449c
movq 0x148(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
xorl %esi, %esi
callq 0x3420
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3380
movq 0x148(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3490
movq 0x148(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3490
movl 0x40(%rsp), %esi
movl 0x10(%rsp), %edx
leaq 0x5a0(%rsp), %rdi
callq 0x487a
movq %r13, 0x98(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x437c
leaq 0x5a0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x4d04
movl %eax, 0xc(%rsp)
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x3c52
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xe8(%rsp), %rcx
movq %rbp, %rax
testq %rcx, %rcx
je 0x3c80
movl 0xc(%rsp), %edx
movq %rbp, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setb %sil
cmovaeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x3c69
movq %rbp, %rcx
cmpq %rbp, %rax
je 0x3c96
movl 0xc(%rsp), %ecx
cmpl 0x20(%rax), %ecx
cmovbq %rbp, %rax
movq %rax, %rcx
cmpq %rbp, %rcx
je 0x3cb2
leaq 0xd8(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x42bc
incq (%rax)
jmp 0x3ccb
leaq 0xd8(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x42bc
movq $0x1, (%rax)
movq 0x148(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3490
movq 0x148(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3490
movq 0x148(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3490
movq 0x148(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x168(%rsp,%rax)
jne 0x3ee5
leaq (%rsp,%rax), %rdi
addq $0x148, %rdi            # imm = 0x148
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3490
movq %r15, %rdi
movl $0x4e, %esi
xorl %edx, %edx
callq 0x3350
cmpq $-0x1, %rax
jne 0x3e6b
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0x437c
leaq 0x5a0(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x4d04
movl %eax, 0xc(%rsp)
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x3df2
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xe8(%rsp), %rcx
movq %rbp, %rax
testq %rcx, %rcx
je 0x3e20
movl 0xc(%rsp), %edx
movq %rbp, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setb %sil
cmovaeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x3e09
movq %rbp, %rcx
cmpq %rbp, %rax
je 0x3e36
movl 0xc(%rsp), %ecx
cmpl 0x20(%rax), %ecx
cmovbq %rbp, %rax
movq %rax, %rcx
cmpq %rbp, %rcx
je 0x3e52
leaq 0xd8(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x42bc
incq (%rax)
jmp 0x3e6b
leaq 0xd8(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x42bc
movq $0x1, (%rax)
movq 0x148(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3490
movq 0x148(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3490
movq 0x148(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3490
jmp 0x3d40
movl $0x9, %edx
movq 0xb0d7(%rip), %rdi      # 0xefc8
leaq 0x7145(%rip), %rsi      # 0xb03d
callq 0x32e0
movl 0x10(%rsp), %esi
movq 0xb0c0(%rip), %rdi      # 0xefc8
callq 0x3440
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movl $0x9, %edx
leaq 0x3a0(%rsp), %rdi
leaq 0x70f2(%rip), %rsi      # 0xb03d
callq 0x32e0
movl 0x10(%rsp), %esi
leaq 0x3a0(%rsp), %rdi
callq 0x3440
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movq 0xf0(%rsp), %r12
cmpq %rbp, %r12
je 0x4008
movl 0x20(%r12), %esi
leaq 0x3a0(%rsp), %rdi
callq 0x31b0
movq %rax, %r14
movl $0x2, %edx
movq %rax, %rdi
leaq 0x7741(%rip), %rsi      # 0xb6fd
callq 0x32e0
movq 0x28(%r12), %rsi
movq %r14, %rdi
callq 0x31a0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movq %r12, %rdi
callq 0x31d0
movq %rax, %r12
cmpq %rbp, %rax
jne 0x3f98
movq 0xafc9(%rip), %rdi      # 0xefd8
leaq 0x10(%rsp), %rsi
callq 0x3170
jmp 0x3b5d
movq 0xaf9b(%rip), %rax      # 0xefc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x3a8(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x3a0(%rsp,%rcx)
callq 0x3210
leaq 0x498(%rsp), %rdi
callq 0x30f0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x4072
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x148(%rsp), %rdi
callq 0x30c0
leaq 0x5a0(%rsp), %rdi
callq 0x4710
leaq 0xd8(%rsp), %rdi
callq 0x432c
xorl %eax, %eax
addq $0x938, %rsp            # imm = 0x938
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xaf3c(%rip), %rdi      # 0xeff0
leaq 0x6fab(%rip), %rsi      # 0xb066
movl $0x32, %edx
callq 0x32e0
movq 0xaf24(%rip), %rdi      # 0xeff0
callq 0x3130
movl $0x1, %edi
callq 0x3300
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40fe
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x40fe
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x411a
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x411a
movq %rax, %rbx
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4225
movq 0xc8(%rsp), %rsi
jmp 0x4214
jmp 0x4222
movq %rax, %rbx
jmp 0x4232
movq %rax, %rbx
jmp 0x424e
jmp 0x4185
jmp 0x4185
jmp 0x4185
movq %rax, %rbx
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x425b
movq 0x138(%rsp), %rsi
jmp 0x41ed
jmp 0x4185
jmp 0x4185
movq %rax, %rbx
jmp 0x4268
movq %rax, %rbx
jmp 0x425b
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x4225
movq 0xa8(%rsp), %rsi
jmp 0x4214
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %rbp, %rdi
je 0x41d0
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x41d0
movq %rax, %rbx
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x425b
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x425b
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x4225
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x4225
jmp 0x4222
jmp 0x4222
movq %rax, %rbx
leaq 0x3a0(%rsp), %rdi
callq 0x33b0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x424e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x148(%rsp), %rdi
callq 0x30c0
leaq 0x5a0(%rsp), %rdi
callq 0x4710
leaq 0xd8(%rsp), %rdi
callq 0x432c
movq %rbx, %rdi
callq 0x3470
nop