// File: chhylp123[P]hifiasm/inter.cpp
// Function: print_debug_gchain(ul_idx_t const*, mg_lchain_t*, long, ul_vec_t*)
void print_debug_gchain(const ul_idx_t *uref, mg_lchain_t *a, int64_t a_n, ul_vec_t *rch)
{
	int64_t k;
	fprintf(stderr, "\n[M::%s] a_n->%ld\n", __func__, a_n);
	for (k = 0; k < a_n; k++) {
		fprintf(stderr, "[M::%s::k->%ld] utg%.6d%c(%c), qs->%d, qe->%d, rs->%u, re->%u, qlen->%u\n", __func__, k, 
		(int32_t)(a[k].v>>1)+1, "lc"[uref->ug->u.a[(a[k].v>>1)].circ], "+-"[(a[k].v&1)],
		a[k].off<0?-1:a[k].qs, a[k].off<0?-1:a[k].qe, a[k].rs, a[k].re, rch->rlen);
	}
	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq 0xe7e59(%rip), %rax     # 0x3c3fe0
movq (%rax), %rdi
movq -0x30(%rbp), %rcx
leaq 0xb7b7c(%rip), %rsi     # 0x393d11
leaq 0xb7b88(%rip), %rdx     # 0x393d24
movb $0x0, %al
callq 0x22a0
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x30(%rbp), %rax
jge 0x2dc329
movq 0xe7e20(%rip), %rax     # 0x3c3fe0
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
imulq $0x28, -0x40(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movq -0x28(%rbp), %rcx
imulq $0x28, -0x40(%rbp), %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
shrl $0x1f, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0xa90e8(%rip), %rax     # 0x385303
movsbl (%rax,%rcx), %eax
movl %eax, -0x48(%rbp)
movq -0x28(%rbp), %rax
imulq $0x28, -0x40(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0xa6c5c(%rip), %rax     # 0x382e9b
movsbl (%rax,%rcx), %eax
movl %eax, -0x44(%rbp)
movq -0x28(%rbp), %rax
imulq $0x28, -0x40(%rbp), %rcx
addq %rcx, %rax
cmpl $0x0, (%rax)
jge 0x2dc261
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x64(%rbp)
jmp 0x2dc273
movq -0x28(%rbp), %rax
imulq $0x28, -0x40(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %eax
movl %eax, -0x68(%rbp)
movq -0x28(%rbp), %rax
imulq $0x28, -0x40(%rbp), %rcx
addq %rcx, %rax
cmpl $0x0, (%rax)
jge 0x2dc294
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x6c(%rbp)
jmp 0x2dc2a6
movq -0x28(%rbp), %rax
imulq $0x28, -0x40(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
movl %eax, -0x6c(%rbp)
movl -0x68(%rbp), %r14d
movl -0x44(%rbp), %r15d
movl -0x48(%rbp), %r9d
movl -0x4c(%rbp), %r8d
movq -0x58(%rbp), %rcx
movq -0x60(%rbp), %rdi
movl -0x6c(%rbp), %ebx
movq -0x28(%rbp), %rax
imulq $0x28, -0x40(%rbp), %rdx
addq %rdx, %rax
movl 0xc(%rax), %r11d
movq -0x28(%rbp), %rax
imulq $0x28, -0x40(%rbp), %rdx
addq %rdx, %rax
movl 0x10(%rax), %r10d
movq -0x38(%rbp), %rax
movl 0x18(%rax), %eax
leaq 0xb7a48(%rip), %rsi     # 0x393d37
leaq 0xb7a2e(%rip), %rdx     # 0x393d24
movl %r15d, (%rsp)
movl %r14d, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq 0x22a0
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x2dc1ab
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopw (%rax,%rax)