// File: /workspace/github_cpp_makefile_star2_O1/splatlab[P]debgr/debruijn_graph.cc
// Function: dna::debruijn_graph::insert_read(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void debruijn_graph::insert_read(string s) {
		// TODO: handle locking
		if (s.size() < len)
			return;
		kmer k(s.substr(0, len));
		node n = prefix(k, len-1);    
		record_end(n, k);
		record_occurence(k);
		for (auto it = s.begin() + len; it != s.end(); ++it) {
			node nextn = suffix(k, len-1);
			if (can_have_duplex_edges(nextn))
				record_end(nextn, k);
			k = k << base_from_char.at(*it);
			record_occurence(k);
			if (can_have_duplex_edges(nextn))
				record_end(nextn, k);
		}
		n = suffix(k, len-1);
		record_end(n, k);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, 0x8(%rsp)
movl (%rdi), %ecx
cmpq %rcx, 0x8(%rsi)
jb 0x3175
movq %rsi, %r14
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2260
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x27a0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fdd
callq 0x2210
movl 0x10(%rsp), %ebx
movq 0x18(%rsp), %r15
movq 0x8(%rsp), %r13
movl (%r13), %edx
decl %edx
movl %ebx, %edi
movq %r15, %rsi
callq 0x2bc8
movl %eax, %edi
movq %rdx, %rsi
callq 0x2a7b
movl %eax, %ebp
movq %rdx, %r12
movl %ebx, %edi
movq %r15, %rsi
callq 0x2a7b
movq %rdx, %r8
movq %r13, %rdi
movl %ebp, %esi
movq %r12, %rdx
movl %eax, %ecx
callq 0x31a2
movl %ebx, %edi
movq %r15, %rsi
callq 0x2a7b
leaq 0x8(%r13), %rdi
movl $0x1, %ecx
movq %rdi, 0x20(%rsp)
movl %eax, %esi
callq 0x9980
movl (%r13), %r13d
movl 0x10(%rsp), %ebp
movq 0x18(%rsp), %r15
cmpq %r13, 0x8(%r14)
je 0x312e
addq (%r14), %r13
movq 0x8(%rsp), %rax
movl (%rax), %edx
decl %edx
movq %r15, %rsi
callq 0x2c1d
movl %eax, %edi
movq %rdx, %rsi
callq 0x2a7b
movl %eax, %r12d
movq %rdx, %rbx
movl %eax, %edi
movq %rdx, %rsi
callq 0x321e
testb %al, %al
je 0x30ad
movl %ebp, %edi
movq %r15, %rsi
callq 0x2a7b
movq %rdx, %r8
movq 0x8(%rsp), %rdi
movl %r12d, %esi
movq %rbx, %rdx
movl %eax, %ecx
callq 0x31a2
leaq 0x18194(%rip), %rdi     # 0x1b248
movq %r13, %rsi
callq 0x8872
movl (%rax), %ecx
movl %ebp, %edi
movq %r15, %rsi
movl $0x1, %edx
callq 0x2ab9
movl %eax, %ebp
movq %rdx, %r15
movl %eax, %edi
movq %rdx, %rsi
callq 0x2a7b
movl $0x1, %ecx
movq 0x20(%rsp), %rdi
movl %eax, %esi
callq 0x9980
movl %r12d, %edi
movq %rbx, %rsi
callq 0x321e
testb %al, %al
je 0x311b
movl %ebp, %edi
movq %r15, %rsi
callq 0x2a7b
movq %rdx, %r8
movq 0x8(%rsp), %rdi
movl %r12d, %esi
movq %rbx, %rdx
movl %eax, %ecx
callq 0x31a2
incq %r13
movq (%r14), %rax
addq 0x8(%r14), %rax
cmpq %rax, %r13
jne 0x305f
movl %ebp, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movq 0x8(%rsp), %r12
movl (%r12), %edx
decl %edx
movq %r15, %rsi
callq 0x2c1d
movl %eax, %edi
movq %rdx, %rsi
callq 0x2a7b
movl %eax, %ebx
movq %rdx, %r14
movl %ebp, %edi
movq %r15, %rsi
callq 0x2a7b
movq %rdx, %r8
movq %r12, %rdi
movl %ebx, %esi
movq %r14, %rdx
movl %eax, %ecx
callq 0x31a2
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x319a
callq 0x2210
movq %rbx, %rdi
callq 0x23c0