// File: /workspace/github_cpp_makefile_star2_O3/CK7[P]abawaca/src/abawaca-build.cpp
// Function: prepare_mer_indexes_recursive(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, unsigned long>>>&)
void prepare_mer_indexes_recursive(int k, string mer, map<string, size_t>& mer2index)
{
	if(k==0) {
		static int next_id = 0;
		auto it = mer2index.find(Bio::DNAString(mer).reverse_complement());
		if(it == mer2index.end()) {
			mer2index.insert(pair<string, size_t>(mer, next_id++));
			dimension_order.push_back(mer);
		}
		else {
			mer2index.insert(pair<string, size_t>(mer, it->second));
		}
		return;
	}

	static char acgt[] = {'A', 'C', 'G', 'T'};
	for(auto i=0; i<4; i++) {
		prepare_mer_indexes_recursive(k-1, mer+acgt[i], mer2index);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %rbx
movq %rsi, %r14
testl %edi, %edi
je 0x85e2
movl %edi, %r15d
movq %rbx, -0x78(%rbp)
decl %r15d
xorl %ebx, %ebx
leaq -0x48(%rbp), %r12
leaq 0x967f(%rip), %rax      # 0x11bf0
movsbl (%rbx,%rax), %r13d
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x63a2
movq -0x40(%rbp), %rsi
movl $0x1, %ecx
movq %r12, %rdi
xorl %edx, %edx
movl %r13d, %r8d
callq 0x4550
movl %r15d, %edi
movq %r12, %rsi
movq -0x78(%rbp), %rdx
callq 0x8538
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x85c7
callq 0x4280
incq %rbx
cmpq $0x4, %rbx
jne 0x856a
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0xb8(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xfa34
leaq -0x98(%rbp), %rdi
movq %r15, %rsi
callq 0xfc88
leaq -0x60(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x98(%rbp), %rsi
movq -0x90(%rbp), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x63a2
leaq -0x70(%rbp), %rsi
movq %rbx, %rdi
callq 0xcf92
movq %rax, %r15
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x8642
callq 0x4280
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8657
callq 0x4280
leaq -0xa8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x866c
callq 0x4280
leaq 0x8(%rbx), %rax
cmpq %rax, %r15
je 0x86ba
leaq -0x70(%rbp), %r12
movq %r13, (%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x63a2
movq 0x40(%r15), %rax
movq %rax, 0x20(%r12)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xd030
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x85d0
callq 0x4280
jmp 0x85d0
movq %rbx, %r12
movslq 0xfcb4(%rip), %rbx      # 0x18378
leal 0x1(%rbx), %eax
movl %eax, 0xfcab(%rip)      # 0x18378
leaq -0x70(%rbp), %r15
movq %r13, (%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x63a2
movq %rbx, 0x20(%r15)
movq %r12, %rdi
movq %r15, %rsi
callq 0xd030
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x8703
callq 0x4280
leaq 0xfc4e(%rip), %rdi      # 0x18358
movq %r14, %rsi
callq 0xbad0
jmp 0x85d0
jmp 0x8719
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
jne 0x8776
jmp 0x877b
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x873d
callq 0x4280
jmp 0x873d
movq %rax, %rbx
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8757
callq 0x4280
jmp 0x8757
movq %rax, %rbx
leaq -0xa8(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x8771
jmp 0x8766
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x877b
callq 0x4280
movq %rbx, %rdi
callq 0x44f0