// File: /workspace/github_c_makefile_star2_O2/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
pushq $-0x2
popq %rdi
cmpq $0x6, %rcx
je 0xafd0
movslq 0xc(%r12), %r9
cmpq %r9, (%rsi)
jae 0xafc7
movl %edi, %r9d
roll %cl, %r9d
andl %r9d, (%rax)
incq %rcx
addq $0x20, %rsi
jmp 0xafae
cmpl %edx, 0x8(%r12)
jg 0xb14e
movq (%r12), %rdi
movq %rsp, %rdx
xorl %ebp, %ebp
movq %r8, %rsi
xorl %ecx, %ecx
callq 0x39db
cmpl $0x0, 0x14(%r12)
je 0xb039
xorl %eax, %eax
cmpq $0x80, %rax
je 0xb00f
cmpq $0x1, 0x30(%rsp,%rax)
sbbl $-0x1, %ebp
addq $0x20, %rax
jmp 0xaff8
xorl %ecx, %ecx
xorl %eax, %eax
cmpq $0x80, %rcx
je 0xb02b
cmpq $0x1, 0x30(%r15,%rcx)
sbbl $-0x1, %eax
addq $0x20, %rcx
jmp 0xb013
cmpl $0x1, %ebp
ja 0xb039
cmpl $0x2, %eax
jb 0xb14e
shlq $0x4, %r13
addq %r13, %rbx
andl $0x0, (%rbx)
addq $0x10, %r15
xorl %r12d, %r12d
pushq $0x3a
popq %rbp
testq %r12, %r12
je 0xb062
cmpq $0x6, %r12
je 0xb076
movl %ebp, %edi
movq %rbx, %rsi
callq 0xb1a9
movq (%r15), %rdi
movq %rbx, %rsi
callq 0xb21a
incq %r12
addq $0x20, %r15
jmp 0xb04d
pushq $0x9
popq %rdi
movq %rbx, %rsi
callq 0xb1a9
movq %r14, %rdi
callq 0x20e0
movq %rax, %r15
movl (%rbx), %ecx
addl %ecx, %eax
incl %eax
cmpl 0x4(%rbx), %eax
jae 0xb09d
movq 0x8(%rbx), %rax
jmp 0xb0d3
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)
pushq $0x9
popq %rdi
movq %rbx, %rsi
callq 0xb1a9
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0xb21a
movl $0x90, %r14d
pushq $0x3a
popq %rbp
movl %ebp, %edi
movq %rbx, %rsi
callq 0xb1a9
cmpq $0x10, %r14
je 0xb135
movq (%rsp,%r14), %rdi
movq %rbx, %rsi
callq 0xb21a
addq $-0x20, %r14
jmp 0xb113
movq 0xb0(%rsp), %rdi
movq %rbx, %rsi
callq 0xb21a
movq 0x8(%rbx), %rdi
callq 0x2080
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq