// File: /workspace/github_cpp_makefile_star2_O3/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 0x40(%rsp), %rcx
movl $0x0, (%rcx)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x5c8(%rsp), %rdi
callq 0x46b4
leal -0x5(%r14), %eax
cmpl $-0x3, %eax
jbe 0x4002
cmpl $0x4, %r14d
jne 0x3716
movq 0x8(%rbx), %rsi
leaq 0x148(%rsp), %rdi
leaq 0x168(%rsp), %rdx
callq 0x4258
movq 0x18(%rbx), %rdi
callq 0x3370
leaq 0x5c8(%rsp), %rdi
leaq 0x148(%rsp), %rsi
movl %eax, %edx
callq 0x4730
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x36be
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x10(%rbx), %rsi
leaq 0x128(%rsp), %rdi
leaq 0x168(%rsp), %rdx
callq 0x4258
leaq 0x5c8(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x493e
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3fd7
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x3fd7
movq 0x58ab(%rip), %r14      # 0x8fc8
leaq 0x294c(%rip), %rsi      # 0x6070
movl $0xd, %edx
movq %r14, %rdi
callq 0x32b0
movq 0x8(%rbx), %r15
testq %r15, %r15
je 0x3756
movq %r15, %rdi
callq 0x3110
movq 0x587f(%rip), %rdi      # 0x8fc8
movq %r15, %rsi
movq %rax, %rdx
callq 0x32b0
jmp 0x376e
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x33c0
movq 0x5853(%rip), %rdi      # 0x8fc8
leaq 0x2902(%rip), %rsi      # 0x607e
movl $0xe, %edx
callq 0x32b0
movq 0x8(%rbx), %rsi
leaq 0x108(%rsp), %rdi
leaq 0x168(%rsp), %rdx
callq 0x4258
leaq 0x5c8(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x4a76
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37d5
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x57ec(%rip), %rdi      # 0x8fc8
leaq 0x28aa(%rip), %rsi      # 0x608d
movl $0x13, %edx
callq 0x32b0
movq 0x57e4(%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 0xb8(%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 0x284b(%rip), %rsi      # 0x60a1
movq %rbx, %rdi
callq 0x3380
movq %rax, %rbx
leaq 0x370(%rsp), %rdi
callq 0x33d0
leaq 0xe8(%rsp), %rdi
leaq 0x17(%rsp), %rdx
movq %rbx, %rsi
callq 0x4258
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x280d(%rip), %rsi      # 0x60a3
leaq 0x280c(%rip), %rdx      # 0x60a9
leaq 0x88(%rsp), %rdi
callq 0x43ec
leaq 0xf8(%rsp), %rbx
movq -0x10(%rbx), %rcx
movq -0x8(%rbx), %r8
movq 0x90(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %rbx, %rcx
je 0x38d8
movq 0xf8(%rsp), %rdi
movq 0x88(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x38fc
movl $0xf, %edi
cmpq %r14, %rsi
je 0x38f7
movq 0x98(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x390b
leaq 0xe8(%rsp), %rdi
callq 0x30d0
jmp 0x391c
leaq 0x88(%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 0x3940
movq %rsi, 0x18(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x28(%rsp)
jmp 0x3946
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 0x3995
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x39b2
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0xe8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x39cf
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0xa8(%rsp), %r15
leaq 0x5c8(%rsp), %r12
leaq 0xc8(%rsp), %rbx
cmpl $0x0, 0xc(%rsp)
jle 0x3f6d
leaq 0x38(%rsp), %rdi
callq 0x4482
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), %ebp
testl %ebp, %ebp
jle 0x3b9e
xorl %r13d, %r13d
movq 0xb0(%rsp), %r14
movq %r12, %rdi
callq 0x4bae
movl %eax, %ecx
movslq %ebp, %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 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x4356
movq %r12, %rdi
leaq 0x68(%rsp), %rsi
callq 0x4b62
movl %eax, 0x10(%rsp)
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x3afc
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x3b46
movl 0x10(%rsp), %eax
leaq 0x40(%rsp), %r8
movq %r8, %rcx
movq %rdi, %rdx
movl 0x20(%rdi), %esi
xorl %edi, %edi
cmpl %eax, %esi
setl %dil
movq %rdx, %r8
cmovlq %rcx, %r8
movq 0x10(%rdx,%rdi,8), %rdi
testq %rdi, %rdi
jne 0x3b0f
leaq 0x40(%rsp), %rdi
cmpq %rdi, %r8
je 0x3b46
cmpl %eax, %esi
cmovlq %rcx, %rdx
cmpl 0x20(%rdx), %eax
jge 0x3b8a
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4296
movq $0x1, (%rax)
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x3b78
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3260
incl %r13d
movl 0xc(%rsp), %ebp
cmpl %ebp, %r13d
jl 0x3a7b
jmp 0x3b9e
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4296
incq (%rax)
jmp 0x3b5c
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x168(%rsp), %r14
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3430
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3430
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3430
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x188(%rsp,%rax)
jne 0x3e2f
leaq (%rsp,%rax), %rdi
addq $0x168, %rdi            # imm = 0x168
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3430
cmpl $0x0, 0xc(%rsp)
jle 0x3dad
xorl %r13d, %r13d
movq %r15, %rdi
movl $0x4e, %esi
xorl %edx, %edx
callq 0x3300
cmpq $-0x1, %rax
jne 0x3d89
movq 0xb0(%rsp), %r14
movslq 0xc(%rsp), %rbp
movq %r12, %rdi
callq 0x4bae
movl %eax, %ecx
movq %r14, %rax
xorl %edx, %edx
divq %rbp
imull %r13d, %eax
movslq %eax, %rdx
movl %ecx, %ecx
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x3270
leaq 0xd8(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x4356
movq %r12, %rdi
movq %rbx, %rsi
callq 0x4b62
movl %eax, 0x10(%rsp)
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x3d0d
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x3d57
movl 0x10(%rsp), %eax
leaq 0x40(%rsp), %r8
movq %r8, %rcx
movq %rdi, %rdx
movl 0x20(%rdi), %esi
xorl %edi, %edi
cmpl %eax, %esi
setl %dil
movq %rdx, %r8
cmovlq %rcx, %r8
movq 0x10(%rdx,%rdi,8), %rdi
testq %rdi, %rdi
jne 0x3d20
leaq 0x40(%rsp), %rdi
cmpq %rdi, %r8
je 0x3d57
cmpl %eax, %esi
cmovlq %rcx, %rdx
cmpl 0x20(%rdx), %eax
jge 0x3d99
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4296
movq $0x1, (%rax)
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x3d89
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3260
incl %r13d
cmpl 0xc(%rsp), %r13d
jl 0x3c66
jmp 0x3dad
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4296
incq (%rax)
jmp 0x3d6d
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x168(%rsp), %r14
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3430
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3430
movq 0x168(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3430
jmp 0x3c1b
movl $0x9, %edx
movq 0x518d(%rip), %rdi      # 0x8fc8
leaq 0x2268(%rip), %rsi      # 0x60aa
callq 0x32b0
movl 0xc(%rsp), %esi
movq 0x5176(%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 0x2215(%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 0x50(%rsp), %r14
leaq 0x40(%rsp), %rax
cmpq %rax, %r14
je 0x3f4f
movl 0x20(%r14), %esi
leaq 0x370(%rsp), %rdi
callq 0x33e0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
leaq 0x22a0(%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
jmp 0x3eda
movq 0x5082(%rip), %rdi      # 0x8fd8
leaq 0xc(%rsp), %rsi
callq 0x3150
leaq 0x168(%rsp), %r13
jmp 0x39e7
movq 0x504c(%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 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x3fca
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x168(%rsp), %rdi
callq 0x30b0
leaq 0x5c8(%rsp), %rdi
callq 0x46fc
leaq 0x38(%rsp), %rdi
callq 0x4306
xorl %eax, %eax
addq $0x858, %rsp            # imm = 0x858
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4fe7(%rip), %rdi      # 0x8ff0
leaq 0x1ff4(%rip), %rsi      # 0x6004
movl $0x38, %edx
callq 0x32b0
movq 0x4fcf(%rip), %rdi      # 0x8ff0
callq 0x3120
movq 0x4fc3(%rip), %rdi      # 0x8ff0
leaq 0x2009(%rip), %rsi      # 0x603d
movl $0x32, %edx
callq 0x32b0
movq 0x4fab(%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 0x4077
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x4077
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x4099
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x4099
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x41cf
movq 0xf8(%rsp), %rsi
jmp 0x41c7
jmp 0x41ab
movq %rax, %rbx
jmp 0x4207
movq %rax, %rbx
jmp 0x422c
jmp 0x4156
jmp 0x4156
movq %rax, %rbx
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4239
movq 0x118(%rsp), %rsi
jmp 0x413f
jmp 0x4156
movq %rax, %rbx
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4239
movq 0x138(%rsp), %rsi
jmp 0x413f
jmp 0x4156
movq %rax, %rbx
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4239
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x4239
jmp 0x4156
movq %rax, %rbx
jmp 0x4246
movq %rax, %rbx
jmp 0x4239
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x41b3
movq 0x78(%rsp), %rsi
jmp 0x419f
jmp 0x41ab
jmp 0x41b0
jmp 0x41ab
jmp 0x41ab
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x41b3
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x41b3
jmp 0x41ab
movq %rax, %rbx
jmp 0x41cf
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x41cf
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x4dea(%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 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x422c
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x168(%rsp), %rdi
callq 0x30b0
leaq 0x5c8(%rsp), %rdi
callq 0x46fc
leaq 0x38(%rsp), %rdi
callq 0x4306
movq %rbx, %rdi
callq 0x3410