// File: 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:
subq $0xf88, %rsp            # imm = 0xF88
movl $0x0, 0xf84(%rsp)
movl %edi, 0xf80(%rsp)
movq %rsi, 0xf78(%rsp)
leaq 0xf48(%rsp), %rdi
callq 0x46c0
leaq 0xab0(%rsp), %rdi
callq 0xa2c0
jmp 0x391d
leaq 0x720(%rsp), %rdi
callq 0x7cf0
jmp 0x392c
cmpl $0x3, 0xf80(%rsp)
je 0x39c2
movq 0x216af(%rip), %rdi     # 0x24ff0
leaq 0x176bc(%rip), %rsi     # 0x1b004
callq 0x32c0
movq %rax, 0x100(%rsp)
jmp 0x3957
movq 0x100(%rsp), %rdi
movq 0x21652(%rip), %rsi     # 0x24fb8
callq 0x3310
jmp 0x396d
movl $0x1, %edi
callq 0x33a0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
jmp 0x46a3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
jmp 0x4696
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
jmp 0x4689
movq 0x215ff(%rip), %rdi     # 0x24fc8
leaq 0x17667(%rip), %rsi     # 0x1b037
callq 0x32c0
movq %rax, 0xf8(%rsp)
jmp 0x39df
movq 0xf8(%rsp), %rdi
movq 0xf78(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x32c0
movq %rax, 0xf0(%rsp)
jmp 0x3a02
movq 0xf0(%rsp), %rdi
leaq 0x17634(%rip), %rsi     # 0x1b045
callq 0x32c0
jmp 0x3a18
movq 0xf78(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xe0(%rsp)
leaq 0x6ff(%rsp), %rdi
movq %rdi, 0xe8(%rsp)
callq 0x35d0
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
leaq 0x700(%rsp), %rdi
callq 0x46d0
jmp 0x3a60
leaq 0xab0(%rsp), %rdi
leaq 0x700(%rsp), %rsi
callq 0xa4c0
jmp 0x3a77
leaq 0x700(%rsp), %rdi
callq 0x31c0
leaq 0x6ff(%rsp), %rdi
callq 0x3330
movq 0xf78(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xd0(%rsp)
leaq 0x6d7(%rsp), %rdi
movq %rdi, 0xd8(%rsp)
callq 0x35d0
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
leaq 0x6d8(%rsp), %rdi
callq 0x46d0
jmp 0x3ad9
leaq 0x720(%rsp), %rdi
leaq 0x6d8(%rsp), %rsi
callq 0x7d80
jmp 0x3af0
leaq 0x6d8(%rsp), %rdi
callq 0x31c0
leaq 0x6d7(%rsp), %rdi
callq 0x3330
movq 0x214b7(%rip), %rdi     # 0x24fc8
leaq 0x1753c(%rip), %rsi     # 0x1b054
callq 0x32c0
jmp 0x3b1f
movq 0x214b2(%rip), %rdi     # 0x24fd8
leaq 0x6d0(%rsp), %rsi
callq 0x31b0
jmp 0x3b35
leaq 0x4c0(%rsp), %rdi
callq 0x3370
jmp 0x3b44
movq 0xf78(%rsp), %rax
movq 0x10(%rax), %rsi
leaq 0x4c0(%rsp), %rdi
movl $0x8, %edx
callq 0x31d0
jmp 0x3b64
leaq 0x4a0(%rsp), %rdi
callq 0x3480
movq 0xf78(%rsp), %rax
movq 0x10(%rax), %rsi
leaq 0x450(%rsp), %rdi
movq %rdi, 0xc8(%rsp)
callq 0x32b0
movq 0xc8(%rsp), %rdi
leaq 0x17c5c(%rip), %rsi     # 0x1b7fd
callq 0x34f0
movq %rax, 0x448(%rsp)
leaq 0x248(%rsp), %rdi
callq 0x3570
jmp 0x3bbd
movq 0x448(%rsp), %rax
movq %rax, 0xb8(%rsp)
leaq 0x207(%rsp), %rdi
movq %rdi, 0xc0(%rsp)
callq 0x35d0
movq 0xb8(%rsp), %rsi
movq 0xc0(%rsp), %rdx
leaq 0x208(%rsp), %rdi
callq 0x46d0
jmp 0x3c01
leaq 0x1df(%rsp), %rdi
movq %rdi, 0xb0(%rsp)
callq 0x35d0
movq 0xb0(%rsp), %rdx
leaq 0x17443(%rip), %rsi     # 0x1b068
leaq 0x1e0(%rsp), %rdi
callq 0x46d0
jmp 0x3c34
leaq 0x228(%rsp), %rdi
leaq 0x208(%rsp), %rsi
leaq 0x1e0(%rsp), %rdx
callq 0x4790
jmp 0x3c53
leaq 0x228(%rsp), %rdi
callq 0x3140
movq %rax, %rsi
leaq 0x248(%rsp), %rdi
movl $0x10, %edx
callq 0x3060
jmp 0x3c77
leaq 0x228(%rsp), %rdi
callq 0x31c0
leaq 0x1e0(%rsp), %rdi
callq 0x31c0
leaq 0x1df(%rsp), %rdi
callq 0x3330
leaq 0x208(%rsp), %rdi
callq 0x31c0
leaq 0x207(%rsp), %rdi
callq 0x3330
movl $0x0, 0x1d8(%rsp)
leaq 0x1c0(%rsp), %rdi
callq 0x4880
cmpl $0x0, 0x6d0(%rsp)
jle 0x45e0
movq 0x212f3(%rip), %rdi     # 0x24fd8
leaq 0x1d8(%rsp), %rsi
callq 0x31b0
jmp 0x3cf4
leaq 0x1c0(%rsp), %rdi
movq %rdi, 0xa8(%rsp)
callq 0x4890
movq 0xa8(%rsp), %rdi
movslq 0x6d0(%rsp), %rsi
leaq 0x1d8(%rsp), %rdx
callq 0x48b0
jmp 0x3d28
leaq 0xab0(%rsp), %rdi
leaq 0x1c0(%rsp), %rsi
callq 0xa6c0
jmp 0x3d3f
leaq 0xf48(%rsp), %rdi
callq 0x4970
movq 0x4c0(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x4c0(%rsp,%rax), %rdi
xorl %esi, %esi
callq 0x3550
jmp 0x3d69
xorl %edx, %edx
movl %edx, %esi
leaq 0x4c0(%rsp), %rdi
callq 0x3470
jmp 0x3d7c
leaq 0x4c0(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x30b0
jmp 0x3d93
leaq 0x4c0(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x30b0
jmp 0x3daa
leaq 0x4a0(%rsp), %rdi
callq 0x34d0
movl %eax, %esi
movl 0x6d0(%rsp), %edx
leaq 0x720(%rsp), %rdi
movl $0xe, %ecx
callq 0x7df0
jmp 0x3dd4
leaq 0x1a0(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x3150
jmp 0x3deb
leaq 0xab0(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
callq 0xba20
movl %eax, 0xa4(%rsp)
jmp 0x3e09
movl 0xa4(%rsp), %eax
movl %eax, 0x6cc(%rsp)
leaq 0x1a0(%rsp), %rdi
callq 0x31c0
cmpl $0x0, 0x6cc(%rsp)
jge 0x4077
cmpl $-0x1, 0x6cc(%rsp)
jne 0x3e41
jmp 0x3fff
leaq 0x17226(%rip), %rdi     # 0x1b06e
leaq 0x1722f(%rip), %rsi     # 0x1b07e
movl $0x45, %edx
leaq 0x17235(%rip), %rcx     # 0x1b090
callq 0x31e0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
jmp 0x3e97
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
leaq 0x700(%rsp), %rdi
callq 0x31c0
leaq 0x6ff(%rsp), %rdi
callq 0x3330
jmp 0x4689
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
jmp 0x3ee0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
leaq 0x6d8(%rsp), %rdi
callq 0x31c0
leaq 0x6d7(%rsp), %rdi
callq 0x3330
jmp 0x4689
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
jmp 0x467c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
jmp 0x466f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
jmp 0x3fae
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
jmp 0x3f94
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
jmp 0x3f87
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
leaq 0x228(%rsp), %rdi
callq 0x31c0
leaq 0x1e0(%rsp), %rdi
callq 0x31c0
leaq 0x1df(%rsp), %rdi
callq 0x3330
leaq 0x208(%rsp), %rdi
callq 0x31c0
leaq 0x207(%rsp), %rdi
callq 0x3330
jmp 0x4662
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
jmp 0x4655
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
leaq 0x1a0(%rsp), %rdi
callq 0x31c0
jmp 0x4655
leaq 0x180(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x3150
jmp 0x4016
leaq 0x720(%rsp), %rdi
leaq 0x180(%rsp), %rsi
callq 0x7e40
movl %eax, 0xa0(%rsp)
jmp 0x4034
movl 0xa0(%rsp), %eax
movl %eax, 0x6cc(%rsp)
leaq 0x180(%rsp), %rdi
callq 0x31c0
jmp 0x4077
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
leaq 0x180(%rsp), %rdi
callq 0x31c0
jmp 0x4655
leaq 0xf48(%rsp), %rdi
leaq 0x6cc(%rsp), %rsi
callq 0x49a0
movq %rax, 0x98(%rsp)
jmp 0x4096
movq 0x98(%rsp), %rax
movq %rax, 0x178(%rsp)
leaq 0xf48(%rsp), %rdi
callq 0x49d0
movq %rax, 0x170(%rsp)
leaq 0x178(%rsp), %rdi
leaq 0x170(%rsp), %rsi
callq 0x4980
testb $0x1, %al
jne 0x40d6
jmp 0x4106
leaq 0xf48(%rsp), %rdi
leaq 0x6cc(%rsp), %rsi
callq 0x4a00
movq %rax, 0x90(%rsp)
jmp 0x40f5
movq 0x90(%rsp), %rax
movq $0x1, (%rax)
jmp 0x4137
leaq 0xf48(%rsp), %rdi
leaq 0x6cc(%rsp), %rsi
callq 0x4a00
movq %rax, 0x88(%rsp)
jmp 0x4125
movq 0x88(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
leaq 0x4c0(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x30b0
jmp 0x414e
leaq 0x4c0(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x30b0
jmp 0x4165
leaq 0x4c0(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x30b0
jmp 0x417c
jmp 0x417e
movq 0x4c0(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x4c0(%rsp,%rax), %rdi
callq 0x3600
movb %al, 0x87(%rsp)
jmp 0x41a0
movb 0x87(%rsp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x41b2
jmp 0x4404
leaq 0x4c0(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x30b0
jmp 0x41c9
leaq 0x4a0(%rsp), %rdi
movl $0x4e, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x3420
cmpq $-0x1, %rax
jne 0x43ba
leaq 0x150(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x3150
jmp 0x4200
leaq 0xab0(%rsp), %rdi
leaq 0x150(%rsp), %rsi
callq 0xba20
movl %eax, 0x80(%rsp)
jmp 0x421e
movl 0x80(%rsp), %eax
movl %eax, 0x6cc(%rsp)
leaq 0x150(%rsp), %rdi
callq 0x31c0
cmpl $0x0, 0x6cc(%rsp)
jge 0x430a
cmpl $-0x1, 0x6cc(%rsp)
jne 0x4253
jmp 0x4298
leaq 0x16e14(%rip), %rdi     # 0x1b06e
leaq 0x16e1d(%rip), %rsi     # 0x1b07e
movl $0x5f, %edx
leaq 0x16e23(%rip), %rcx     # 0x1b090
callq 0x31e0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
leaq 0x150(%rsp), %rdi
callq 0x31c0
jmp 0x4655
leaq 0x130(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x3150
jmp 0x42af
leaq 0x720(%rsp), %rdi
leaq 0x130(%rsp), %rsi
callq 0x7e40
movl %eax, 0x7c(%rsp)
jmp 0x42ca
movl 0x7c(%rsp), %eax
movl %eax, 0x6cc(%rsp)
leaq 0x130(%rsp), %rdi
callq 0x31c0
jmp 0x430a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xaa8(%rsp)
movl %eax, 0xaa4(%rsp)
leaq 0x130(%rsp), %rdi
callq 0x31c0
jmp 0x4655
leaq 0xf48(%rsp), %rdi
leaq 0x6cc(%rsp), %rsi
callq 0x49a0
movq %rax, 0x70(%rsp)
jmp 0x4326
movq 0x70(%rsp), %rax
movq %rax, 0x128(%rsp)
leaq 0xf48(%rsp), %rdi
callq 0x49d0
movq %rax, 0x120(%rsp)
leaq 0x128(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x4980
testb $0x1, %al
jne 0x4363
jmp 0x438d
leaq 0xf48(%rsp), %rdi
leaq 0x6cc(%rsp), %rsi
callq 0x4a00
movq %rax, 0x68(%rsp)
jmp 0x437f
movq 0x68(%rsp), %rax
movq $0x1, (%rax)
jmp 0x43b8
leaq 0xf48(%rsp), %rdi
leaq 0x6cc(%rsp), %rsi
callq 0x4a00
movq %rax, 0x60(%rsp)
jmp 0x43a9
movq 0x60(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0x43ba
leaq 0x4c0(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x30b0
jmp 0x43d1
leaq 0x4c0(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x30b0
jmp 0x43e8
leaq 0x4c0(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x30b0
jmp 0x43ff
jmp 0x417e
movq 0x20bbd(%rip), %rdi     # 0x24fc8
leaq 0x16c9b(%rip), %rsi     # 0x1b0ad
callq 0x32c0
movq %rax, 0x58(%rsp)
jmp 0x441e
movq 0x58(%rsp), %rdi
movl 0x6d0(%rsp), %esi
callq 0x35a0
movq %rax, 0x50(%rsp)
jmp 0x4436
movq 0x50(%rsp), %rdi
leaq 0x16c75(%rip), %rsi     # 0x1b0b7
callq 0x32c0
movq %rax, 0x48(%rsp)
jmp 0x444e
movq 0x48(%rsp), %rdi
movl 0x1d8(%rsp), %esi
callq 0x35a0
movq %rax, 0x40(%rsp)
jmp 0x4466
movq 0x40(%rsp), %rdi
movq 0x20b46(%rip), %rsi     # 0x24fb8
callq 0x3310
jmp 0x4479
leaq 0x16c2d(%rip), %rsi     # 0x1b0ad
leaq 0x248(%rsp), %rdi
callq 0x32c0
movq %rax, 0x38(%rsp)
jmp 0x4494
movq 0x38(%rsp), %rdi
movl 0x6d0(%rsp), %esi
callq 0x35a0
movq %rax, 0x30(%rsp)
jmp 0x44ac
movq 0x30(%rsp), %rdi
leaq 0x16bff(%rip), %rsi     # 0x1b0b7
callq 0x32c0
movq %rax, 0x28(%rsp)
jmp 0x44c4
movq 0x28(%rsp), %rdi
movl 0x1d8(%rsp), %esi
callq 0x35a0
movq %rax, 0x20(%rsp)
jmp 0x44dc
movq 0x20(%rsp), %rdi
movq 0x20ad0(%rip), %rsi     # 0x24fb8
callq 0x3310
jmp 0x44ef
leaq 0xf48(%rsp), %rdi
callq 0x4af0
movq %rax, 0x118(%rsp)
leaq 0xf48(%rsp), %rdi
callq 0x49d0
movq %rax, 0x110(%rsp)
leaq 0x118(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0x4b20
testb $0x1, %al
jne 0x4537
jmp 0x45c5
leaq 0x118(%rsp), %rdi
callq 0x4b40
movl (%rax), %esi
leaq 0x248(%rsp), %rdi
callq 0x35a0
movq %rax, 0x18(%rsp)
jmp 0x455a
movq 0x18(%rsp), %rdi
leaq 0x172c0(%rip), %rsi     # 0x1b826
callq 0x32c0
movq %rax, 0x10(%rsp)
jmp 0x4572
leaq 0x118(%rsp), %rdi
callq 0x4b40
movq 0x10(%rsp), %rdi
movq 0x8(%rax), %rsi
callq 0x32a0
movq %rax, 0x8(%rsp)
jmp 0x4594
movq 0x8(%rsp), %rdi
movq 0x20a18(%rip), %rsi     # 0x24fb8
callq 0x3310
jmp 0x45a7
jmp 0x45a9
leaq 0x118(%rsp), %rdi
xorl %esi, %esi
callq 0x4b60
movq %rax, 0x108(%rsp)
jmp 0x4504
movq 0x20a0c(%rip), %rdi     # 0x24fd8
leaq 0x6d0(%rsp), %rsi
callq 0x31b0
jmp 0x45db
jmp 0x3cd0
movl $0x0, 0xf84(%rsp)
leaq 0x1c0(%rsp), %rdi
callq 0x4ba0
leaq 0x248(%rsp), %rdi
callq 0x34c0
leaq 0x4a0(%rsp), %rdi
callq 0x31c0
leaq 0x4c0(%rsp), %rdi
callq 0x30f0
leaq 0x720(%rsp), %rdi
callq 0x7d50
leaq 0xab0(%rsp), %rdi
callq 0x4c00
leaq 0xf48(%rsp), %rdi
callq 0x4ce0
movl 0xf84(%rsp), %eax
addq $0xf88, %rsp            # imm = 0xF88
retq
leaq 0x1c0(%rsp), %rdi
callq 0x4ba0
leaq 0x248(%rsp), %rdi
callq 0x34c0
leaq 0x4a0(%rsp), %rdi
callq 0x31c0
leaq 0x4c0(%rsp), %rdi
callq 0x30f0
leaq 0x720(%rsp), %rdi
callq 0x7d50
leaq 0xab0(%rsp), %rdi
callq 0x4c00
leaq 0xf48(%rsp), %rdi
callq 0x4ce0
movq 0xaa8(%rsp), %rdi
callq 0x35c0
nopl (%rax)