// File: /workspace/github_cpp_makefile_star2_O1/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 0x85de
movl %edi, %r15d
movq %rbx, -0x78(%rbp)
decl %r15d
xorl %ebx, %ebx
leaq -0x48(%rbp), %r12
leaq 0x968f(%rip), %rax      # 0x11bfc
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 0x4560
movl %r15d, %edi
movq %r12, %rsi
movq -0x78(%rbp), %rdx
callq 0x8534
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x85c3
callq 0x4280
incq %rbx
cmpq $0x4, %rbx
jne 0x8566
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 0xfaf8
leaq -0x98(%rbp), %rdi
movq %r15, %rsi
callq 0xfd48
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 0xcf66
movq %rax, %r15
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x863e
callq 0x4280
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8653
callq 0x4280
leaq -0xa8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8668
callq 0x4280
leaq 0x8(%rbx), %rax
cmpq %rax, %r15
je 0x86b6
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 0xd004
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x85cc
callq 0x4280
jmp 0x85cc
movq %rbx, %r12
movslq 0xfcc0(%rip), %rbx      # 0x18380
leal 0x1(%rbx), %eax
movl %eax, 0xfcb7(%rip)      # 0x18380
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 0xd004
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x86ff
callq 0x4280
leaq 0xfc5a(%rip), %rdi      # 0x18360
movq %r14, %rsi
callq 0xbab2
jmp 0x85cc
jmp 0x8715
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
jne 0x8772
jmp 0x8777
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x8739
callq 0x4280
jmp 0x8739
movq %rax, %rbx
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8753
callq 0x4280
jmp 0x8753
movq %rax, %rbx
leaq -0xa8(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x876d
jmp 0x8762
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x8777
callq 0x4280
movq %rbx, %rdi
callq 0x4500