// File: /workspace/github_c_makefile_star2_O1/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 0xc43e
movl $0xfffffffe, %edi       # imm = 0xFFFFFFFE
roll %cl, %edi
andl %edi, (%rax)
incq %rcx
addq $0x20, %rsi
cmpq $0x6, %rcx
jne 0xc42b
cmpl %edx, 0x8(%r12)
jg 0xc743
movq (%r12), %rdi
movq %rsp, %rdx
xorl %ebp, %ebp
movq %r8, %rsi
xorl %ecx, %ecx
callq 0x5027
cmpl $0x0, 0x14(%r12)
je 0xc4b0
xorl %eax, %eax
cmpq $0x1, 0x30(%rsp,%rax)
sbbl $-0x1, %ebp
addq $0x20, %rax
cmpq $0x80, %rax
jne 0xc473
xorl %ecx, %ecx
xorl %eax, %eax
cmpq $0x1, 0x30(%r15,%rcx)
sbbl $-0x1, %eax
addq $0x20, %rcx
cmpq $0x80, %rcx
jne 0xc48c
cmpl $0x1, %ebp
ja 0xc4b0
cmpl $0x2, %eax
jb 0xc743
shlq $0x4, %r13
addq %r13, %rbx
movl $0x0, (%rbx)
xorl %r12d, %r12d
testq %r12, %r12
je 0xc51b
movl (%rbx), %eax
incl %eax
cmpl 0x4(%rbx), %eax
jb 0xc502
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)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
movb $0x3a, (%rax,%rcx)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
movb $0x0, (%rax,%rcx)
movq 0x10(%r15,%r12), %rdi
movq %rbx, %rsi
callq 0xc797
addq $0x20, %r12
cmpq $0xc0, %r12
jne 0xc4c0
movl (%rbx), %eax
incl %eax
cmpl 0x4(%rbx), %eax
jb 0xc572
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)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
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), %eax
addl %r15d, %eax
incl %eax
cmpl 0x4(%rbx), %eax
jb 0xc5d6
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), %edi
addq 0x8(%rbx), %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), %eax
incl %eax
cmpl 0x4(%rbx), %eax
jb 0xc633
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)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
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 0xc797
movl $0x5, %r15d
movl (%rbx), %eax
incl %eax
cmpl 0x4(%rbx), %eax
jb 0xc6a3
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)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
movb $0x3a, (%rax,%rcx)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
movb $0x0, (%rax,%rcx)
movq (%r14), %rdi
movq %rbx, %rsi
callq 0xc797
decq %r15
addq $-0x20, %r14
cmpq $0x1, %r15
ja 0xc666
movl (%rbx), %eax
incl %eax
cmpl 0x4(%rbx), %eax
jb 0xc711
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)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
movb $0x3a, (%rax,%rcx)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
movb $0x0, (%rax,%rcx)
movq 0xb0(%rsp), %rdi
movq %rbx, %rsi
callq 0xc797
movq 0x8(%rbx), %rdi
callq 0x2080
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq