// File: splatlab[P]debgr/debruijn_graph.cc
// Function: dna::debruijn_graph::node_iterator<std::queue>::operator++()
void debruijn_graph::node_iterator<Q>::operator++(void) {
		work_item w;
		w = front(work);
		work.pop();
		
		uint64_t nsiblings = 0;
		if (w.depth)
			for (const auto &neighbor : dbg.neighbors(w.curr))
				if (neighbor != w.curr && neighbor != w.prev) {
					if (visited.count(neighbor))
						nsiblings++;
					else {
						work_item neww = { neighbor,
															 w.curr,
															 w.depth == infinite_depth
															 ? infinite_depth
															 : w.depth - 1 };
						visited.insert(neighbor);
						work.push(neww);
					}
				}
		if (w.depth == infinite_depth && nsiblings == 0)
			visited.erase(w.curr);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x150(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x1b960
movq -0x150(%rbp), %rsi
movq %rsi, %rdx
addq $0x8, %rdx
leaq -0x58(%rbp), %rdi
callq 0x1d020
leaq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rsi
movl $0x28, %edx
callq 0x3220
movq -0x150(%rbp), %rdi
addq $0x8, %rdi
callq 0x1d060
movq $0x0, -0x60(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x101e0
movq -0x150(%rbp), %rax
movq (%rax), %rsi
movq -0x30(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl -0xa8(%rbp), %edx
movq -0xa0(%rbp), %rcx
leaq -0x98(%rbp), %rdi
callq 0x6d10
leaq -0x98(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
callq 0xe180
movq %rax, -0xb0(%rbp)
movq -0x68(%rbp), %rdi
callq 0xe1b0
movq %rax, -0xb8(%rbp)
leaq -0xb0(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0xe1e0
testb $0x1, %al
jne 0xffcb
leaq -0x98(%rbp), %rdi
callq 0xe0f0
jmp 0x101de
leaq -0xb0(%rbp), %rdi
callq 0xe210
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0xd0(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0xc8(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xd8(%rbp)
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
movl -0xe0(%rbp), %edx
movq -0xd8(%rbp), %rcx
callq 0x3bc0
testb $0x1, %al
jne 0x10038
jmp 0x101cb
movq -0xc0(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0xf0(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0xe8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xf8(%rbp)
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
movl -0x100(%rbp), %edx
movq -0xf8(%rbp), %rcx
callq 0x3bc0
testb $0x1, %al
jne 0x10092
jmp 0x101cb
movq -0x150(%rbp), %rdi
addq $0x58, %rdi
movq -0xc0(%rbp), %rsi
callq 0x10300
movq %rax, -0x158(%rbp)
jmp 0x100b2
movq -0x158(%rbp), %rax
cmpq $0x0, %rax
je 0x100f3
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
jmp 0x101c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x108(%rbp)
movl %eax, -0x10c(%rbp)
leaq -0x98(%rbp), %rdi
callq 0xe0f0
jmp 0x1020b
movq -0xc0(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0x138(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x130(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq -0x138(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x160(%rbp)
cmpq $-0x1, -0x10(%rbp)
jne 0x1014e
movq $-0x1, %rax
movq %rax, -0x168(%rbp)
jmp 0x1015d
movq -0x10(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x168(%rbp)
movq -0x150(%rbp), %rdi
movq -0x160(%rbp), %rax
movq -0x168(%rbp), %rcx
movq %rcx, (%rax)
addq $0x58, %rdi
movq -0xc0(%rbp), %rsi
callq 0x10680
movb %dl, -0x171(%rbp)
movq %rax, -0x170(%rbp)
jmp 0x10194
movq -0x150(%rbp), %rdi
movb -0x171(%rbp), %al
movq -0x170(%rbp), %rcx
movq %rcx, -0x148(%rbp)
movb %al, -0x140(%rbp)
addq $0x8, %rdi
leaq -0x138(%rbp), %rsi
callq 0x1b990
jmp 0x101c7
jmp 0x101c9
jmp 0x101cb
jmp 0x101cd
leaq -0xb0(%rbp), %rdi
callq 0xe230
jmp 0xffa3
jmp 0x101e0
cmpq $-0x1, -0x10(%rbp)
jne 0x10202
cmpq $0x0, -0x60(%rbp)
jne 0x10202
movq -0x150(%rbp), %rdi
addq $0x58, %rdi
leaq -0x30(%rbp), %rsi
callq 0x10650
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
movq -0x108(%rbp), %rdi
callq 0x3480
nopw (%rax,%rax)