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

	AnalyzeBasic solver;

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

	if (argc == 4) {
		solver.generateHash(argv[1], atoi(argv[3]) );
		solver.storeHash(argv[2]);
			
		return 0;
	}

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

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

	//int seedLength;

	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(".space") ).c_str() );

	while (seedNum > 0) {	
		//cout << "Please input seed length: ";
		//cin >> seedLength;
		
		frequencyCounter.clear();

		//Start reading the file
		readFile.clear();
		readFile.seekg(0, ios::beg);

		//Name
		getline(readFile, read);
		//Read
		getline(readFile, read);
		//cout << "DNA: " << read << endl;

		//Solve
		for (int i = 0; i < seedNum; i++) {
			int interval = read.length() / seedNum;
			string seed = read.substr(i * interval, solver.getLength() );
			frequency = solver.checkFreq(seed);
			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
			for (int i = 0; i < seedNum; i++) {
				if (read.find('N') == string::npos) {
					int interval = read.length() / seedNum;
					string seed = read.substr(i * interval, solver.getLength() );
					frequency = solver.checkFreq(seed);
					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<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 $0x858, %rsp            # imm = 0x858
movq %rsi, %rbx
movl %edi, %r14d
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 0x5c8(%rsp), %rdi
callq 0x4698
leal -0x5(%r14), %eax
cmpl $-0x3, %eax
jbe 0x3ff3
cmpl $0x4, %r14d
jne 0x371a
movq 0x8(%rbx), %rsi
leaq 0x148(%rsp), %rdi
leaq 0x168(%rsp), %rdx
callq 0x4244
movq 0x18(%rbx), %rdi
callq 0x3370
leaq 0x5c8(%rsp), %rdi
leaq 0x148(%rsp), %rsi
movl %eax, %edx
callq 0x4714
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x36c2
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x10(%rbx), %rsi
leaq 0x128(%rsp), %rdi
leaq 0x168(%rsp), %rdx
callq 0x4244
leaq 0x5c8(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x4922
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3fc5
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x3fc5
movq 0x58a7(%rip), %r14      # 0x8fc8
leaq 0x2948(%rip), %rsi      # 0x6070
movl $0xd, %edx
movq %r14, %rdi
callq 0x32b0
movq 0x8(%rbx), %r15
testq %r15, %r15
je 0x375a
movq %r15, %rdi
callq 0x3110
movq 0x587b(%rip), %rdi      # 0x8fc8
movq %r15, %rsi
movq %rax, %rdx
callq 0x32b0
jmp 0x3772
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x33c0
movq 0x584f(%rip), %rdi      # 0x8fc8
leaq 0x28fe(%rip), %rsi      # 0x607e
movl $0xe, %edx
callq 0x32b0
movq 0x8(%rbx), %rsi
leaq 0x108(%rsp), %rdi
leaq 0x168(%rsp), %rdx
callq 0x4244
leaq 0x5c8(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x4a5a
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37d9
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x57e8(%rip), %rdi      # 0x8fc8
leaq 0x28a6(%rip), %rsi      # 0x608d
movl $0x13, %edx
callq 0x32b0
movq 0x57e0(%rip), %rdi      # 0x8fd8
leaq 0xc(%rsp), %rsi
callq 0x3150
leaq 0x168(%rsp), %rdi
callq 0x32a0
movq 0x10(%rbx), %rsi
leaq 0x168(%rsp), %r13
movq %r13, %rdi
movl $0x8, %edx
callq 0x3160
leaq 0xa8(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x10(%rbx), %rsi
leaq 0x570(%rsp), %rbx
movq %rbx, %rdi
callq 0x3220
leaq 0x2847(%rip), %rsi      # 0x60a1
movq %rbx, %rdi
callq 0x3380
movq %rax, %rbx
leaq 0x370(%rsp), %rdi
callq 0x33d0
leaq 0xb8(%rsp), %rdi
leaq 0x17(%rsp), %rdx
movq %rbx, %rsi
callq 0x4244
leaq 0x48(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x280c(%rip), %rsi      # 0x60a3
leaq 0x280b(%rip), %rdx      # 0x60a9
leaq 0x38(%rsp), %rdi
callq 0x43d2
leaq 0xc8(%rsp), %rbx
movq -0x10(%rbx), %rcx
movq -0x8(%rbx), %r8
movq 0x40(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %rbx, %rcx
je 0x38d3
movq 0xc8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x38ee
movl $0xf, %esi
cmpq %r14, 0x38(%rsp)
je 0x38e9
movq 0x48(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x3902
movq 0x38(%rsp), %rsi
leaq 0xb8(%rsp), %rdi
callq 0x30d0
jmp 0x3910
leaq 0x38(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3290
leaq 0x28(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x3934
movq %rsi, 0x18(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x28(%rsp)
jmp 0x393a
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 0x370(%rsp), %rdi
movl $0x10, %edx
callq 0x3040
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3989
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x39a0
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0xb8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x39bd
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x98(%rsp), %r15
leaq 0x5c8(%rsp), %r12
cmpl $0x0, 0xc(%rsp)
jle 0x3f5b
leaq 0xd8(%rsp), %rdi
callq 0x4462
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
xorl %esi, %esi
callq 0x33c0
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3320
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x3430
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x3430
movl 0xc(%rsp), %ebx
testl %ebx, %ebx
jle 0x3b93
xorl %r13d, %r13d
movq 0xa0(%rsp), %r14
movq %r12, %rdi
callq 0x4b92
movl %eax, %ecx
movslq %ebx, %rsi
movq %r14, %rax
xorl %edx, %edx
divq %rsi
imull %r13d, %eax
movslq %eax, %rdx
movl %ecx, %ecx
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x3270
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0x4342
movq %r12, %rdi
leaq 0x78(%rsp), %rsi
callq 0x4b46
movl %eax, 0x10(%rsp)
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x3aee
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0xe8(%rsp), %rcx
movq %rbp, %rax
testq %rcx, %rcx
je 0x3b1c
movl 0x10(%rsp), %edx
movq %rbp, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x3b05
movq %rbp, %rcx
cmpq %rbp, %rax
je 0x3b32
movl 0x10(%rsp), %ecx
cmpl 0x20(%rax), %ecx
cmovlq %rbp, %rax
movq %rax, %rcx
cmpq %rbp, %rcx
je 0x3b4e
leaq 0xd8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4282
incq (%rax)
jmp 0x3b67
leaq 0xd8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4282
movq $0x1, (%rax)
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x3b83
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3260
incl %r13d
movl 0xc(%rsp), %ebx
cmpl %ebx, %r13d
jl 0x3a64
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x168(%rsp), %rbx
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3430
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3430
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3430
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x188(%rsp,%rax)
jne 0x3e1c
leaq (%rsp,%rax), %rdi
addq $0x168, %rdi            # imm = 0x168
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3430
cmpl $0x0, 0xc(%rsp)
jle 0x3d9a
xorl %r13d, %r13d
movq %r15, %rdi
movl $0x4e, %esi
xorl %edx, %edx
callq 0x3300
cmpq $-0x1, %rax
jne 0x3d8c
movq 0xa0(%rsp), %r14
movslq 0xc(%rsp), %rbx
movq %r12, %rdi
callq 0x4b92
movl %eax, %ecx
movq %r14, %rax
xorl %edx, %edx
divq %rbx
imull %r13d, %eax
movslq %eax, %rdx
movl %ecx, %ecx
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x3270
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0x4342
movq %r12, %rdi
leaq 0x58(%rsp), %rsi
callq 0x4b46
movl %eax, 0x10(%rsp)
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x3cf7
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0xe8(%rsp), %rcx
movq %rbp, %rax
testq %rcx, %rcx
je 0x3d25
movl 0x10(%rsp), %edx
movq %rbp, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x3d0e
movq %rbp, %rcx
cmpq %rbp, %rax
je 0x3d3b
movl 0x10(%rsp), %ecx
cmpl 0x20(%rax), %ecx
cmovlq %rbp, %rax
movq %rax, %rcx
cmpq %rbp, %rcx
je 0x3d57
leaq 0xd8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4282
incq (%rax)
jmp 0x3d70
leaq 0xd8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4282
movq $0x1, (%rax)
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x3d8c
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3260
incl %r13d
cmpl 0xc(%rsp), %r13d
jl 0x3c5b
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x168(%rsp), %rbx
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3430
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3430
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3430
jmp 0x3c10
movl $0x9, %edx
movq 0x51a0(%rip), %rdi      # 0x8fc8
leaq 0x227b(%rip), %rsi      # 0x60aa
callq 0x32b0
movl 0xc(%rsp), %esi
movq 0x5189(%rip), %rdi      # 0x8fc8
callq 0x33e0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31a0
movl $0x9, %edx
leaq 0x370(%rsp), %rdi
leaq 0x2228(%rip), %rsi      # 0x60aa
callq 0x32b0
movl 0xc(%rsp), %esi
leaq 0x370(%rsp), %rdi
callq 0x33e0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31a0
movq 0xf0(%rsp), %r14
cmpq %rbp, %r14
je 0x3f3d
movl 0x20(%r14), %esi
leaq 0x370(%rsp), %rdi
callq 0x33e0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
leaq 0x22b5(%rip), %rsi      # 0x61a7
callq 0x32b0
movq 0x28(%r14), %rsi
movq %r13, %rdi
callq 0x3180
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %r13, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31a0
movq %r14, %rdi
callq 0x31b0
movq %rax, %r14
cmpq %rbp, %rax
jne 0x3ecf
movq 0x5094(%rip), %rdi      # 0x8fd8
leaq 0xc(%rsp), %rsi
callq 0x3150
leaq 0x168(%rsp), %r13
jmp 0x39cd
movq 0x505e(%rip), %rax      # 0x8fc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x378(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x370(%rsp,%rcx)
callq 0x31f0
leaq 0x468(%rsp), %rdi
callq 0x30e0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x3fb8
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x168(%rsp), %rdi
callq 0x30b0
leaq 0x5c8(%rsp), %rdi
callq 0x46e0
leaq 0xd8(%rsp), %rdi
callq 0x42f2
xorl %eax, %eax
addq $0x858, %rsp            # imm = 0x858
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4ff6(%rip), %rdi      # 0x8ff0
leaq 0x2003(%rip), %rsi      # 0x6004
movl $0x38, %edx
callq 0x32b0
movq 0x4fde(%rip), %rdi      # 0x8ff0
callq 0x3120
movq 0x4fd2(%rip), %rdi      # 0x8ff0
leaq 0x2018(%rip), %rsi      # 0x603d
movl $0x32, %edx
callq 0x32b0
movq 0x4fba(%rip), %rdi      # 0x8ff0
callq 0x3120
movl $0x1, %edi
callq 0x32d0
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4068
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x4068
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x4084
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x4084
movq %rax, %rbx
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x41b7
movq 0xc8(%rsp), %rsi
jmp 0x41af
jmp 0x4193
movq %rax, %rbx
jmp 0x41ef
movq %rax, %rbx
jmp 0x4214
jmp 0x4141
jmp 0x4141
movq %rax, %rbx
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4221
movq 0x118(%rsp), %rsi
jmp 0x412a
jmp 0x4141
movq %rax, %rbx
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4221
movq 0x138(%rsp), %rsi
jmp 0x412a
jmp 0x4141
movq %rax, %rbx
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4221
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x4221
jmp 0x4141
movq %rax, %rbx
jmp 0x422e
movq %rax, %rbx
jmp 0x4221
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x419b
movq 0x88(%rsp), %rsi
jmp 0x4187
jmp 0x4193
jmp 0x4198
jmp 0x4193
jmp 0x4193
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x419b
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x419b
jmp 0x4193
movq %rax, %rbx
jmp 0x41b7
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x41b7
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x4e02(%rip), %rax      # 0x8fc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x378(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x370(%rsp,%rcx)
callq 0x31f0
leaq 0x468(%rsp), %rdi
callq 0x30e0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x4214
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x168(%rsp), %rdi
callq 0x30b0
leaq 0x5c8(%rsp), %rdi
callq 0x46e0
leaq 0xd8(%rsp), %rdi
callq 0x42f2
movq %rbx, %rdi
callq 0x3410
nop