// File: 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
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
movq %rsi, -0x260(%rbp)
movq %rdi, %rax
movq -0x260(%rbp), %rdi
movq %rdi, -0x258(%rbp)
movq %rax, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x250(%rbp)
callq 0x31a0
movq -0x250(%rbp), %rcx
movl (%rcx), %ecx
cmpq %rcx, %rax
jae 0x45ce
jmp 0x4ade
movq -0x258(%rbp), %rsi
movq -0x250(%rbp), %rax
movl (%rax), %eax
movl %eax, %ecx
xorl %eax, %eax
movl %eax, %edx
leaq -0x40(%rbp), %rdi
movq %rdi, -0x268(%rbp)
callq 0x32c0
movq -0x268(%rbp), %rsi
leaq -0x20(%rbp), %rdi
callq 0x38e0
jmp 0x4606
leaq -0x40(%rbp), %rdi
callq 0x3150
movq -0x250(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, -0x78(%rbp)
movl (%rax), %edx
subl $0x1, %edx
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x3f90
movl %eax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movl -0x70(%rbp), %esi
movq -0x68(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x4300
movq -0x60(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xa8(%rbp)
movl -0xb0(%rbp), %esi
movq -0xa8(%rbp), %rdx
leaq -0xa0(%rbp), %rdi
callq 0x4300
movq -0x250(%rbp), %rdi
movl -0x90(%rbp), %esi
movq -0x88(%rbp), %rdx
movl -0xa0(%rbp), %ecx
movq -0x98(%rbp), %r8
callq 0x4af0
movq -0x20(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xc8(%rbp)
movl -0xd0(%rbp), %esi
movq -0xc8(%rbp), %rdx
leaq -0xc0(%rbp), %rdi
callq 0x4300
movq -0x250(%rbp), %rdi
movl -0xc0(%rbp), %esi
movq -0xb8(%rbp), %rdx
callq 0x4bf0
movq -0x258(%rbp), %rdi
callq 0x3250
movq %rax, %rcx
movq -0x250(%rbp), %rax
movq %rcx, -0xe0(%rbp)
movl (%rax), %eax
movl %eax, %esi
leaq -0xe0(%rbp), %rdi
callq 0xdd20
movq %rax, -0xd8(%rbp)
movq -0x258(%rbp), %rdi
callq 0x3130
movq %rax, -0xe8(%rbp)
leaq -0xd8(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0xdd60
testb $0x1, %al
jne 0x4764
jmp 0x4a03
movq -0x250(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, -0x118(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, -0x110(%rbp)
movl (%rax), %edx
subl $0x1, %edx
movl -0x118(%rbp), %edi
movq -0x110(%rbp), %rsi
callq 0x3fd0
movl %eax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movl -0x108(%rbp), %esi
movq -0x100(%rbp), %rdx
leaq -0xf8(%rbp), %rdi
callq 0x4300
movq -0xf8(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x120(%rbp)
movl -0x128(%rbp), %edi
movq -0x120(%rbp), %rsi
callq 0x4c40
testb $0x1, %al
jne 0x47f5
jmp 0x4882
movq -0xf8(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x150(%rbp)
movl -0x158(%rbp), %esi
movq -0x150(%rbp), %rdx
leaq -0x148(%rbp), %rdi
callq 0x4300
movq -0x250(%rbp), %rdi
movl -0x138(%rbp), %esi
movq -0x130(%rbp), %rdx
movl -0x148(%rbp), %ecx
movq -0x140(%rbp), %r8
callq 0x4af0
jmp 0x4882
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x3150
jmp 0x4ae7
movq -0x20(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x170(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0xde40
movq %rax, %rsi
leaq 0x35a0a(%rip), %rdi     # 0x3a2b8
callq 0xdda0
movl (%rax), %esi
leaq -0x188(%rbp), %rdi
callq 0x3820
movl -0x178(%rbp), %edi
movq -0x170(%rbp), %rsi
movl -0x188(%rbp), %edx
movq -0x180(%rbp), %rcx
callq 0x3de0
movl %eax, -0x168(%rbp)
movq %rdx, -0x160(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movl -0x1a8(%rbp), %esi
movq -0x1a0(%rbp), %rdx
leaq -0x198(%rbp), %rdi
callq 0x4300
movq -0x250(%rbp), %rdi
movl -0x198(%rbp), %esi
movq -0x190(%rbp), %rdx
callq 0x4bf0
movq -0xf8(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movl -0x1b8(%rbp), %edi
movq -0x1b0(%rbp), %rsi
callq 0x4c40
testb $0x1, %al
jne 0x497f
jmp 0x49f0
movq -0xf8(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movl -0x1e8(%rbp), %esi
movq -0x1e0(%rbp), %rdx
leaq -0x1d8(%rbp), %rdi
callq 0x4300
movq -0x250(%rbp), %rdi
movl -0x1c8(%rbp), %esi
movq -0x1c0(%rbp), %rdx
movl -0x1d8(%rbp), %ecx
movq -0x1d0(%rbp), %r8
callq 0x4af0
jmp 0x49f2
leaq -0xd8(%rbp), %rdi
callq 0xde60
jmp 0x4735
movq -0x250(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, -0x218(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, -0x210(%rbp)
movl (%rax), %edx
subl $0x1, %edx
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x3fd0
movl %eax, -0x208(%rbp)
movq %rdx, -0x200(%rbp)
movl -0x208(%rbp), %esi
movq -0x200(%rbp), %rdx
leaq -0x1f8(%rbp), %rdi
callq 0x4300
movq -0x1f8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x248(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x240(%rbp)
movl -0x248(%rbp), %esi
movq -0x240(%rbp), %rdx
leaq -0x238(%rbp), %rdi
callq 0x4300
movq -0x250(%rbp), %rdi
movl -0x228(%rbp), %esi
movq -0x220(%rbp), %rdx
movl -0x238(%rbp), %ecx
movq -0x230(%rbp), %r8
callq 0x4af0
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x3480