// File: /workspace/github_cpp_makefile_star2_O3/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 0x46dc
cmpl $0x1, %ebx
je 0x3785
cmpl $0x3, %ebx
jne 0x40b6
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 0x7e09(%rip), %rdx      # 0xb5fb
leaq 0x148(%rsp), %rdi
movq %rdx, %rsi
callq 0x4414
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 0x4886
movq %r15, %rdi
callq 0x4c18
movq %rbp, 0x108(%rsp)
movq 0x148(%rsp), %rsi
movq 0x150(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x437e
movq %r15, %rdi
movq %r12, %rsi
callq 0x4d24
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 0x4088
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x4088
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 0x4280
leaq 0x5a0(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x4792
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 0x7c92(%rip), %rsi      # 0xb67f
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 0x4280
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x7608(%rip), %rsi      # 0xb035
leaq 0x7608(%rip), %rdx      # 0xb03c
leaq 0x78(%rsp), %rdi
callq 0x4414
leaq 0xc8(%rsp), %r15
movq -0x10(%r15), %rcx
movq -0x8(%r15), %r8
movq 0x80(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r15, %rcx
je 0x3a6c
movq 0xc8(%rsp), %rdi
movq 0x78(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x3a8d
movl $0xf, %edi
cmpq %r14, %rsi
je 0x3a88
movq 0x88(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x3a9c
leaq 0xb8(%rsp), %rdi
callq 0x30e0
jmp 0x3aaa
leaq 0x78(%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 0x3ace
movq %rsi, 0x18(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x28(%rsp)
jmp 0x3ad4
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 0x3b23
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x3b3d
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x3b5a
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xa8(%rsp), %r13
leaq 0x38(%rsp), %r15
cmpl $0x0, 0x10(%rsp)
jle 0x4027
leaq 0xd8(%rsp), %rdi
callq 0x44aa
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 0x4886
movq %r13, 0x98(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x437e
leaq 0x5a0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x4d24
movl %eax, 0xc(%rsp)
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x3c5c
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x3ca6
movl 0xc(%rsp), %eax
movq %rbp, %r8
movq %r8, %rcx
movq %rdi, %rdx
movl 0x20(%rdi), %esi
xorl %edi, %edi
cmpl %eax, %esi
setb %dil
movq %rdx, %r8
cmovbq %rcx, %r8
movq 0x10(%rdx,%rdi,8), %rdi
testq %rdi, %rdi
jne 0x3c70
cmpq %rbp, %r8
je 0x3ca6
cmpl %eax, %esi
cmovbq %rcx, %rdx
cmpl 0x20(%rdx), %eax
jae 0x400d
leaq 0xd8(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x42be
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 0x3ed4
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 0x3e40
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0x437e
leaq 0x5a0(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x4d24
movl %eax, 0xc(%rsp)
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x3ddd
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x3e27
movl 0xc(%rsp), %eax
movq %rbp, %r8
movq %r8, %rcx
movq %rdi, %rdx
movl 0x20(%rdi), %esi
xorl %edi, %edi
cmpl %eax, %esi
setb %dil
movq %rdx, %r8
cmovbq %rcx, %r8
movq 0x10(%rdx,%rdi,8), %rdi
testq %rdi, %rdi
jne 0x3df1
cmpq %rbp, %r8
je 0x3e27
cmpl %eax, %esi
cmovbq %rcx, %rdx
cmpl 0x20(%rdx), %eax
jae 0x3eba
leaq 0xd8(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x42be
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 0x3d34
leaq 0xd8(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x42be
incq (%rax)
jmp 0x3e40
movl $0x9, %edx
movq 0xb0e8(%rip), %rdi      # 0xefc8
leaq 0x7156(%rip), %rsi      # 0xb03d
callq 0x32e0
movl 0x10(%rsp), %esi
movq 0xb0d1(%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 0x7103(%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 0x3ff7
movl 0x20(%r12), %esi
leaq 0x3a0(%rsp), %rdi
callq 0x31b0
movq %rax, %r14
movl $0x2, %edx
movq %rax, %rdi
leaq 0x7742(%rip), %rsi      # 0xb6ed
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 0x3f87
movq 0xafda(%rip), %rdi      # 0xefd8
leaq 0x10(%rsp), %rsi
callq 0x3170
jmp 0x3b67
leaq 0xd8(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x42be
incq (%rax)
jmp 0x3cbf
movq 0xaf92(%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 0x407b
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x148(%rsp), %rdi
callq 0x30c0
leaq 0x5a0(%rsp), %rdi
callq 0x471c
leaq 0xd8(%rsp), %rdi
callq 0x432e
xorl %eax, %eax
addq $0x938, %rsp            # imm = 0x938
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xaf33(%rip), %rdi      # 0xeff0
leaq 0x6fa2(%rip), %rsi      # 0xb066
movl $0x32, %edx
callq 0x32e0
movq 0xaf1b(%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 0x4107
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x4107
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x4126
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x4126
movq %rax, %rbx
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4227
movq 0xc8(%rsp), %rsi
jmp 0x4216
jmp 0x4224
movq %rax, %rbx
jmp 0x4234
movq %rax, %rbx
jmp 0x4250
jmp 0x4191
jmp 0x4191
jmp 0x4191
movq %rax, %rbx
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x425d
movq 0x138(%rsp), %rsi
jmp 0x41f5
jmp 0x4191
jmp 0x4191
movq %rax, %rbx
jmp 0x426a
movq %rax, %rbx
jmp 0x425d
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x4227
movq 0xa8(%rsp), %rsi
jmp 0x4216
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %rbp, %rdi
je 0x41d8
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x41d8
movq %rax, %rbx
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x425d
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x425d
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x4227
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x4227
jmp 0x4224
jmp 0x4224
movq %rax, %rbx
leaq 0x3a0(%rsp), %rdi
callq 0x33b0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x4250
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x148(%rsp), %rdi
callq 0x30c0
leaq 0x5a0(%rsp), %rdi
callq 0x471c
leaq 0xd8(%rsp), %rdi
callq 0x432e
movq %rbx, %rdi
callq 0x3470
nop