// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]optimal-seed-solver/KmerHashMain.cc
// Function: main
int main() {
	KmerHash kmer;

	while (1) {
		string Kmer;
		int hash;
		char input;
		cout << "1: get kmer, 2 get hash, q quit: ";
		cin >> input;
		switch (input) {
		case '1':
			cout << "set KmerLengh" << endl;
			cin >> hash;
			kmer.setKmerSize(hash);
			cout << "Input hash: " << endl;
			cin >> hash;
			kmer.setHashVal(hash);

			cout << "Kmer: " << kmer.getKmer() << endl;
			break;

		case '2':
			cout << "Input Kmer" << endl;
			cin >> Kmer;
			kmer.calculateHash(Kmer, Kmer.size() );

			cout << "Hash: " << kmer.getHash() << endl;
			break;

		case 'q':
			return 0;

		default:
			break;
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x1554
leaq 0x20(%rsp), %r15
movq 0x2d4d(%rip), %r14      # 0x3fd0
movq 0x2d56(%rip), %r12      # 0x3fe0
leaq 0xb(%rsp), %r13
movq %r15, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movl $0x21, %edx
movq %r14, %rdi
leaq 0xd53(%rip), %rsi       # 0x2004
callq 0x10b0
movq %r12, %rdi
movq %r13, %rsi
callq 0x10e0
movzbl 0xb(%rsp), %eax
cmpl $0x31, %eax
je 0x1390
cmpl $0x32, %eax
je 0x12e2
cmpl $0x71, %eax
jne 0x14b1
jmp 0x14d1
movl $0xa, %edx
movq %r14, %rdi
leaq 0xd57(%rip), %rsi       # 0x2048
callq 0x10b0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x1090
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1070
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
callq 0x10d0
movl 0x18(%rsp), %edx
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
callq 0x156e
movl $0x6, %edx
movq %r14, %rdi
leaq 0xd09(%rip), %rsi       # 0x2053
callq 0x10b0
movq %rbx, %rdi
callq 0x16de
movl %eax, %esi
movq %r14, %rdi
callq 0x1060
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x1090
movsbl %al, %esi
movq %rbp, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1070
jmp 0x14b1
movl $0xd, %edx
movq %r14, %rdi
leaq 0xc87(%rip), %rsi       # 0x2026
callq 0x10b0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x1090
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1070
movq %r12, %rdi
leaq 0xc(%rsp), %rsi
callq 0x1040
movl 0xc(%rsp), %esi
movq %rbx, %rdi
callq 0x15fc
movl $0xc, %edx
movq %r14, %rdi
leaq 0xc41(%rip), %rsi       # 0x2034
callq 0x10b0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x1090
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1070
movq %r12, %rdi
leaq 0xc(%rsp), %rsi
callq 0x1040
movl 0xc(%rsp), %esi
movq %rbx, %rdi
callq 0x1600
movl $0x6, %edx
movq %r14, %rdi
leaq 0xbfa(%rip), %rsi       # 0x2041
callq 0x10b0
leaq 0x38(%rsp), %rdi
movq %rbx, %rsi
callq 0x1604
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %r14, %rdi
callq 0x10b0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x1090
movsbl %al, %esi
movq %rbp, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1070
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x14b1
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x10a0
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x128f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10a0
jmp 0x128f
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x14e8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10a0
leaq 0x30(%rsp), %rdi
callq 0x15f2
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1526
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1529
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x10a0
jmp 0x1529
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x1540
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10a0
leaq 0x30(%rsp), %rdi
callq 0x15f2
movq %rbx, %rdi
callq 0x1100
nop