// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: prt_chains(ul_ov_t*, long, ul_ov_t*, unsigned long*, long, vec_mg_lchain_t*, long)
void prt_chains(ul_ov_t *l_idx, int64_t l_idx_n, ul_ov_t *l_a, uint64_t *g_idx, int64_t g_idx_n, vec_mg_lchain_t *g_a, int64_t ql)
{
	int64_t k, i, s, e;
	if(l_idx && l_a) {
		fprintf(stderr, "\n[M::%s::qlen->%ld] print linear chains\n", __func__, ql);
		for (k = 0; k < l_idx_n; k++) {
			s = l_idx[k].ts; e = l_idx[k].te;
			fprintf(stderr, "[M::%s::linear_chain] sc::%u, occ::%ld\n", __func__, l_idx[k].qn, e-s);
			for (i = s; i < e; i++) {
				fprintf(stderr, "[M::%s::utg%.6dl] q::[%u, %u)\n", __func__, (int32_t)l_a[i].tn+1, l_a[i].qs, l_a[i].qe);
			}
		}
	}

	if(g_idx && g_a) {
		fprintf(stderr, "\n[M::%s::qlen->%ld] print graph chains\n", __func__, ql);
		for (k = s = e = 0; k < g_idx_n; ++k) {
			s = e; e += ((uint32_t)g_idx[k]);
			fprintf(stderr, "[M::%s::grapn_chain] sc::%lu, occ::%ld\n", __func__, g_idx[k]>>32, e-s);
			for (i = s; i < e; i++) {
				fprintf(stderr, "[M::%s::utg%.6dl] q::[%u, %u)\n", __func__, (int32_t)(g_a->a[i].v>>1)+1, g_a->a[i].qs, g_a->a[i].qe);
			}
    	}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %rbx
movq %r8, %r15
movq %rdx, %r13
movq 0x60(%rsp), %r8
testq %rdi, %rdi
sete %al
testq %rdx, %rdx
sete %dl
orb %al, %dl
je 0x16e720
testq %rcx, %rcx
sete %al
testq %rbx, %rbx
sete %dl
orb %al, %dl
je 0x16e80a
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %rbp
movq %rdi, %r12
movq %rcx, 0x8(%rsp)
movq 0xe48ae(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
leaq 0x84d6f(%rip), %rsi     # 0x1f34ab
leaq 0x84d91(%rip), %rdx     # 0x1f34d4
xorl %r14d, %r14d
movq %r8, %rcx
xorl %eax, %eax
callq 0x22b0
testq %rbp, %rbp
cmovleq %r14, %rbp
addq $0xc, %r13
xorl %eax, %eax
movq %r15, 0x18(%rsp)
movq %rbx, 0x10(%rsp)
cmpq %rbp, %rax
movq 0x8(%rsp), %rcx
movq 0x60(%rsp), %r8
je 0x16e6fd
movq %rax, 0x20(%rsp)
imulq $0x1c, %rax, %rax
movl (%r12,%rax), %ecx
movl 0x10(%r12,%rax), %r14d
movl 0x14(%r12,%rax), %ebx
movq 0xe484c(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
movq %rbx, %r8
subq %r14, %r8
leaq 0x84d3b(%rip), %rsi     # 0x1f34df
leaq 0x84d29(%rip), %rdx     # 0x1f34d4
xorl %eax, %eax
callq 0x22b0
imulq $0x1c, %r14, %r15
addq %r13, %r15
cmpq %rbx, %r14
jae 0x16e7f3
movq 0xe481b(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
movl (%r15), %ecx
incl %ecx
movl -0x8(%r15), %r8d
movl -0x4(%r15), %r9d
leaq 0x84d2b(%rip), %rsi     # 0x1f3507
leaq 0x84cf1(%rip), %rdx     # 0x1f34d4
xorl %eax, %eax
callq 0x22b0
incq %r14
addq $0x1c, %r15
jmp 0x16e7b9
movq 0x20(%rsp), %rax
incq %rax
movq 0x18(%rsp), %r15
movq 0x10(%rsp), %rbx
jmp 0x16e767
movq %rcx, 0x8(%rsp)
movq 0xe47ca(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
leaq 0x84d06(%rip), %rsi     # 0x1f3526
leaq 0x84cad(%rip), %rdx     # 0x1f34d4
xorl %r14d, %r14d
movq %r8, %rcx
xorl %eax, %eax
callq 0x22b0
testq %r15, %r15
cmovleq %r14, %r15
xorl %ebp, %ebp
xorl %r14d, %r14d
cmpq %r15, %rbp
movq 0x8(%rsp), %rax
je 0x16e711
movq (%rax,%rbp,8), %rcx
movl %ecx, %r8d
leaq (%r8,%r14), %r13
movq 0xe4780(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
shrq $0x20, %rcx
leaq 0x84ce0(%rip), %rsi     # 0x1f354e
leaq 0x84c5f(%rip), %rdx     # 0x1f34d4
xorl %eax, %eax
callq 0x22b0
imulq $0x28, %r14, %r12
addq $0x18, %r12
cmpq %r13, %r14
jae 0x16e8c6
movq 0xe4750(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
movq (%rbx), %rax
movl -0x10(%rax,%r12), %ecx
movl -0x4(%rax,%r12), %r8d
shrl %ecx
incl %ecx
movl (%rax,%r12), %r9d
leaq 0x84c58(%rip), %rsi     # 0x1f3507
leaq 0x84c1e(%rip), %rdx     # 0x1f34d4
xorl %eax, %eax
callq 0x22b0
incq %r14
addq $0x28, %r12
jmp 0x16e884
incq %rbp
movq %r13, %r14
jmp 0x16e840