// File: /workspace/github_c_makefile_star2_O3/lh3[P]fermi2/dfs.c
// Function: dfs_count2
static void dfs_count2(void *data, int tid, int k, char *path, const rldintv_t *ik, const rldintv_t *ok, int *cont)
{
	dfs_count_t *d = (dfs_count_t*)data;
	int c;
	rldintv_t rk[6];
	kstring_t *s = &d->str[tid];
	for (c = 0; c < 6; ++c)
		if (ok[c].x[2] < d->min_occ) *cont &= ~(1<<c);
	if (k < d->len) return;
	rld_extend(d->e, ik, rk, 0);
	if (d->bifur_only) { // check bifurcation
		int n[2];
		n[0] = n[1] = 0;
		for (c = 1; c <= 4; ++c)
			if (rk[c].x[2]) ++n[0];
		for (c = 1; c <= 4; ++c)
			if (ok[c].x[2]) ++n[1];
		if (n[0] < 2 && n[1] < 2) return; // no bifurcation; don't print
	}
	s->l = 0;
	for (c = 0; c < 6; ++c) {
		if (c) kputc(':', s);
		kputl(ok[c].x[2], s);
	}
	kputc('\t', s); kputs(path, s); kputc('\t', s);
	kputl(rk[0].x[2], s);
	for (c = 4; c >= 1; --c) {
		kputc(':', s);
		kputl(rk[c].x[2], s);
	}
	kputc(':', s); kputl(rk[5].x[2], s);
	puts(s->s);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %r9, %r15
movq %rcx, %r14
movq %rdi, %r12
movq 0x100(%rsp), %rax
movq 0x18(%rdi), %rbx
movslq %esi, %r13
leaq 0x10(%r9), %rsi
xorl %ecx, %ecx
movslq 0xc(%r12), %rdi
cmpq %rdi, (%rsi)
jae 0xc987
movl $0xfffffffe, %edi       # imm = 0xFFFFFFFE
roll %cl, %edi
andl %edi, (%rax)
incq %rcx
addq $0x20, %rsi
cmpq $0x6, %rcx
jne 0xc974
cmpl %edx, 0x8(%r12)
jg 0xccab
movq (%r12), %rdi
movq %rsp, %rdx
xorl %ebp, %ebp
movq %r8, %rsi
xorl %ecx, %ecx
callq 0x4ef6
cmpl $0x0, 0x14(%r12)
je 0xc9f9
xorl %eax, %eax
cmpq $0x1, 0x30(%rsp,%rax)
sbbl $-0x1, %ebp
addq $0x20, %rax
cmpq $0x80, %rax
jne 0xc9bc
xorl %ecx, %ecx
xorl %eax, %eax
cmpq $0x1, 0x30(%r15,%rcx)
sbbl $-0x1, %eax
addq $0x20, %rcx
cmpq $0x80, %rcx
jne 0xc9d5
cmpl $0x1, %ebp
ja 0xc9f9
cmpl $0x2, %eax
jb 0xccab
shlq $0x4, %r13
addq %r13, %rbx
movl $0x0, (%rbx)
xorl %r12d, %r12d
testq %r12, %r12
je 0xca69
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
cmpl 0x4(%rbx), %edx
jae 0xca1e
movq 0x8(%rbx), %rax
jmp 0xca57
movl %edx, %eax
shrl %eax
orl %edx, %eax
movl %eax, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x4, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x8, %ecx
orl %eax, %ecx
movl %ecx, %esi
shrl $0x10, %esi
orl %ecx, %esi
incl %esi
movl %esi, 0x4(%rbx)
movq 0x8(%rbx), %rdi
callq 0x2260
movq %rax, 0x8(%rbx)
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
movl %ecx, %ecx
movb $0x3a, (%rax,%rcx)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
movb $0x0, (%rax,%rcx)
movq 0x10(%r15,%r12), %rdi
movq %rbx, %rsi
callq 0xccff
addq $0x20, %r12
cmpq $0xc0, %r12
jne 0xca09
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
cmpl 0x4(%rbx), %edx
jae 0xca93
movq 0x8(%rbx), %rax
jmp 0xcacc
movl %edx, %eax
shrl %eax
orl %edx, %eax
movl %eax, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x4, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x8, %ecx
orl %eax, %ecx
movl %ecx, %esi
shrl $0x10, %esi
orl %ecx, %esi
incl %esi
movl %esi, 0x4(%rbx)
movq 0x8(%rbx), %rdi
callq 0x2260
movq %rax, 0x8(%rbx)
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
movl %ecx, %ecx
movb $0x9, (%rax,%rcx)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
movb $0x0, (%rax,%rcx)
movq %r14, %rdi
callq 0x20e0
movq %rax, %r15
movl (%rbx), %ecx
addl %ecx, %eax
incl %eax
cmpl 0x4(%rbx), %eax
jae 0xcafa
movq 0x8(%rbx), %rax
jmp 0xcb30
movl %eax, %ecx
shrl %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x8, %eax
orl %ecx, %eax
movl %eax, %esi
shrl $0x10, %esi
orl %eax, %esi
incl %esi
movl %esi, 0x4(%rbx)
movq 0x8(%rbx), %rdi
callq 0x2260
movq %rax, 0x8(%rbx)
movl (%rbx), %ecx
movl %ecx, %edi
addq %rax, %rdi
movslq %r15d, %rdx
movq %r14, %rsi
callq 0x21f0
addl (%rbx), %r15d
movl %r15d, (%rbx)
movq 0x8(%rbx), %rax
movb $0x0, (%rax,%r15)
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
cmpl 0x4(%rbx), %edx
jae 0xcb5f
movq 0x8(%rbx), %rax
jmp 0xcb98
movl %edx, %eax
shrl %eax
orl %edx, %eax
movl %eax, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x4, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x8, %ecx
orl %eax, %ecx
movl %ecx, %esi
shrl $0x10, %esi
orl %ecx, %esi
incl %esi
movl %esi, 0x4(%rbx)
movq 0x8(%rbx), %rdi
callq 0x2260
movq %rax, 0x8(%rbx)
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
movl %ecx, %ecx
movb $0x9, (%rax,%rcx)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
movb $0x0, (%rax,%rcx)
leaq 0x90(%rsp), %r14
movq -0x80(%r14), %rdi
movq %rbx, %rsi
callq 0xccff
movl $0x5, %r15d
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
cmpl 0x4(%rbx), %edx
jae 0xcbd4
movq 0x8(%rbx), %rax
jmp 0xcc0d
movl %edx, %eax
shrl %eax
orl %edx, %eax
movl %eax, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x4, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x8, %ecx
orl %eax, %ecx
movl %ecx, %esi
shrl $0x10, %esi
orl %ecx, %esi
incl %esi
movl %esi, 0x4(%rbx)
movq 0x8(%rbx), %rdi
callq 0x2260
movq %rax, 0x8(%rbx)
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
movl %ecx, %ecx
movb $0x3a, (%rax,%rcx)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
movb $0x0, (%rax,%rcx)
movq (%r14), %rdi
movq %rbx, %rsi
callq 0xccff
decq %r15
addq $-0x20, %r14
cmpq $0x1, %r15
ja 0xcbc4
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
cmpl 0x4(%rbx), %edx
jae 0xcc47
movq 0x8(%rbx), %rax
jmp 0xcc80
movl %edx, %eax
shrl %eax
orl %edx, %eax
movl %eax, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x4, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x8, %ecx
orl %eax, %ecx
movl %ecx, %esi
shrl $0x10, %esi
orl %ecx, %esi
incl %esi
movl %esi, 0x4(%rbx)
movq 0x8(%rbx), %rdi
callq 0x2260
movq %rax, 0x8(%rbx)
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
movl %ecx, %ecx
movb $0x3a, (%rax,%rcx)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
movb $0x0, (%rax,%rcx)
movq 0xb0(%rsp), %rdi
movq %rbx, %rsi
callq 0xccff
movq 0x8(%rbx), %rdi
callq 0x2080
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq