// File: chhylp123[P]hifiasm/inter.cpp
// Function: print_ul_alignment(ma_ug_t*, all_ul_t*, unsigned int, char const*)
void print_ul_alignment(ma_ug_t *ug, all_ul_t *aln, uint32_t id, const char* cmd)
{
	uc_block_t *a = NULL; int64_t k, a_n;
	a = aln->a[id].bb.a; a_n = aln->a[id].bb.n;
	fprintf(stderr, "\n%s::[M::%s::ul_id->%u::a_n->%ld]\n", cmd, __func__, id, a_n);
	for (k = 0; k < a_n; k++) {
		fprintf(stderr, "[k->%ld::utg%.6d%c(len->%u)]\tts::%u\tte::%u\t%c\tqs::%u\tqe::%u\tpchain::%u\tpidx::%u\taidx::%u\tpdis::%u\n", 
			k, a[k].hid + 1, "lc"[ug->u.a[a[k].hid].circ], ug->u.a[a[k].hid].len, 
			a[k].ts, a[k].te, "+-"[a[k].rev], a[k].qs, a[k].qe, a[k].pchain, a[k].pidx, a[k].aidx, a[k].pdis);
		
	}
	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movl %edx, -0x3c(%rbp)
movq %rcx, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x38(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x3c(%rbp), %ecx
imulq $0x58, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x38(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x3c(%rbp), %ecx
imulq $0x58, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movq %rax, -0x60(%rbp)
movq 0xd29aa(%rip), %rax     # 0x3c3fe0
movq (%rax), %rdi
movq -0x48(%rbp), %rdx
movl -0x3c(%rbp), %r8d
movq -0x60(%rbp), %r9
leaq 0xa3674(%rip), %rsi     # 0x394cc0
leaq 0xa3690(%rip), %rcx     # 0x394ce3
movb $0x0, %al
callq 0x22a0
movq $0x0, -0x58(%rbp)
movq -0x58(%rbp), %rax
cmpq -0x60(%rbp), %rax
jge 0x2f17e3
movq 0xd2969(%rip), %rax     # 0x3c3fe0
movq (%rax), %rdi
movq -0x58(%rbp), %rdx
movq -0x50(%rbp), %rax
imulq $0x24, -0x58(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %ecx
addl $0x1, %ecx
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x50(%rbp), %rsi
imulq $0x24, -0x58(%rbp), %r8
addq %r8, %rsi
movl (%rsi), %esi
imulq $0x28, %rsi, %rsi
addq %rsi, %rax
movl (%rax), %eax
shrl $0x1f, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x93c47(%rip), %rax     # 0x385303
movsbl (%rax,%rsi), %r8d
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x50(%rbp), %rsi
imulq $0x24, -0x58(%rbp), %r9
addq %r9, %rsi
movl (%rsi), %esi
imulq $0x28, %rsi, %rsi
addq %rsi, %rax
movl (%rax), %r9d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movq -0x50(%rbp), %rax
imulq $0x24, -0x58(%rbp), %rsi
addq %rsi, %rax
movl 0xc(%rax), %eax
movl %eax, -0x68(%rbp)
movq -0x50(%rbp), %rax
imulq $0x24, -0x58(%rbp), %rsi
addq %rsi, %rax
movl 0x10(%rax), %r13d
movq -0x50(%rbp), %rax
imulq $0x24, -0x58(%rbp), %rsi
addq %rsi, %rax
movb 0x20(%rax), %al
shrb $0x5, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, %esi
leaq 0x91771(%rip), %rax     # 0x382e9b
movsbl (%rax,%rsi), %r12d
movq -0x50(%rbp), %rax
imulq $0x24, -0x58(%rbp), %rsi
addq %rsi, %rax
movl 0x4(%rax), %r15d
movq -0x50(%rbp), %rax
imulq $0x24, -0x58(%rbp), %rsi
addq %rsi, %rax
movl 0x8(%rax), %r14d
movq -0x50(%rbp), %rax
imulq $0x24, -0x58(%rbp), %rsi
addq %rsi, %rax
movb 0x20(%rax), %al
andb $0x1f, %al
movzbl %al, %ebx
movq -0x50(%rbp), %rax
imulq $0x24, -0x58(%rbp), %rsi
addq %rsi, %rax
movl 0x14(%rax), %r11d
movq -0x50(%rbp), %rax
imulq $0x24, -0x58(%rbp), %rsi
addq %rsi, %rax
movl 0x1c(%rax), %r10d
movq -0x50(%rbp), %rsi
imulq $0x24, -0x58(%rbp), %rax
addq %rax, %rsi
movl -0x68(%rbp), %eax
movl 0x18(%rsi), %esi
movl %esi, -0x64(%rbp)
leaq 0xa3557(%rip), %rsi     # 0x394cf6
movl %eax, (%rsp)
movl -0x64(%rbp), %eax
movl %r13d, 0x8(%rsp)
movl %r12d, 0x10(%rsp)
movl %r15d, 0x18(%rsp)
movl %r14d, 0x20(%rsp)
movl %ebx, 0x28(%rsp)
movl %r11d, 0x30(%rsp)
movl %r10d, 0x38(%rsp)
movl %eax, 0x40(%rsp)
movb $0x0, %al
callq 0x22a0
movq -0x58(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
jmp 0x2f1662
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)