// File: chhylp123[P]hifiasm/inter.cpp
// Function: prt_all_chain(kv_ul_ov_t*, ul_ov_t*, long)
void prt_all_chain(kv_ul_ov_t *idx, ul_ov_t *a, int64_t ql)
{
	uint64_t i, k;
	for (i = 0; i < idx->n; i++) {
		fprintf(stderr, "\n[M::%s] q::[%u, %u), ql::%ld, sc::%u\n", __func__, idx->a[i].qs, idx->a[i].qe, ql, idx->a[i].qn);
		for (k = idx->a[i].ts; k < idx->a[i].te; k++) {
			fprintf(stderr, "%.*s\t%c\tq::[%u, %u)\tt::[%u, %u)\tc::%u\n", 
                    (int)Get_NAME_LENGTH(R_INF, a[k].tn), Get_NAME(R_INF, a[k].tn), "+-"[a[k].rev],
                    a[k].qs, a[k].qe, a[k].ts, a[k].te, !a[k].el);
		}
	}
	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x48, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x2bb06c
movq 0x10913a(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x28(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x28(%rbp), %rdx
addq %rdx, %rax
movl 0x8(%rax), %r8d
movq -0x20(%rbp), %r9
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x28(%rbp), %rdx
addq %rdx, %rax
movl (%rax), %eax
leaq 0xd78f3(%rip), %rsi     # 0x3927dd
leaq 0xd7913(%rip), %rdx     # 0x392804
movl %eax, (%rsp)
movb $0x0, %al
callq 0x22a0
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x28(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
imulq $0x1c, -0x28(%rbp), %rdx
addq %rdx, %rcx
movl 0x14(%rcx), %ecx
cmpq %rcx, %rax
jae 0x2bb059
movq 0x1090a9(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x10a38f(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movq -0x18(%rbp), %rcx
imulq $0x1c, -0x30(%rbp), %rdx
addq %rdx, %rcx
movl 0xc(%rcx), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
leaq 0x10a36c(%rip), %rcx    # 0x3c52d0
movq 0x40(%rcx), %rcx
movq -0x18(%rbp), %rdx
imulq $0x1c, -0x30(%rbp), %rsi
addq %rsi, %rdx
movl 0xc(%rdx), %edx
subq (%rcx,%rdx,8), %rax
movl %eax, %edx
leaq 0x10a34c(%rip), %rax    # 0x3c52d0
movq 0x8(%rax), %rcx
leaq 0x10a341(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movq -0x18(%rbp), %rsi
imulq $0x1c, -0x30(%rbp), %r8
addq %r8, %rsi
movl 0xc(%rsi), %esi
addq (%rax,%rsi,8), %rcx
movq -0x18(%rbp), %rax
imulq $0x1c, -0x30(%rbp), %rsi
addq %rsi, %rax
movl 0x18(%rax), %eax
shrl $0x1f, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0xc7ed8(%rip), %rax     # 0x382e9b
movsbl (%rax,%rsi), %r8d
movq -0x18(%rbp), %rax
imulq $0x1c, -0x30(%rbp), %rsi
addq %rsi, %rax
movl 0x4(%rax), %r9d
movq -0x18(%rbp), %rax
imulq $0x1c, -0x30(%rbp), %rsi
addq %rsi, %rax
movl 0x8(%rax), %ebx
movq -0x18(%rbp), %rax
imulq $0x1c, -0x30(%rbp), %rsi
addq %rsi, %rax
movl 0x10(%rax), %r11d
movq -0x18(%rbp), %rax
imulq $0x1c, -0x30(%rbp), %rsi
addq %rsi, %rax
movl 0x14(%rax), %r10d
movq -0x18(%rbp), %rax
imulq $0x1c, -0x30(%rbp), %rsi
addq %rsi, %rax
movl 0x18(%rax), %eax
shrl $0x1e, %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
leaq 0xd77e2(%rip), %rsi     # 0x392812
movl %ebx, (%rsp)
movl %r11d, 0x8(%rsp)
movl %r10d, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movb $0x0, %al
callq 0x22a0
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x2baf11
jmp 0x2bb05b
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x2bae8d
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
nopw %cs:(%rax,%rax)