// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: prt_spec_edge(asg_t*, ma_hit_t_alloc*, unsigned int, unsigned int, unsigned int, ug_opt_t*, char const*)
void prt_spec_edge(asg_t *rg, ma_hit_t_alloc *src, uint32_t tot_rid, uint32_t vid, uint32_t wid, ug_opt_t *uopt, const char *cmd)
{
    if(vid >= tot_rid) return;
    uint32_t k, qn, tn; int32_t r; asg_arc_t p; ma_hit_t_alloc *s = &(src[vid]); 
    for (k = 0; k < s->length; k++) {
        qn = Get_qn(s->buffer[k]); tn = Get_tn(s->buffer[k]);
        if(qn == vid && tn == wid) {
            r = ma_hit2arc(&(s->buffer[k]), rg->seq[qn].len, rg->seq[tn].len, uopt->max_hang, asm_opt.max_hang_rate, uopt->min_ovlp, &p);
            fprintf(stderr, "[M::%s::]%s\tqn::%u(%c)\tq::[%u,\t%u)\t%c\ttn::%u(%c)\tt::[%u,\t%u)\n", 
                    __func__, cmd, qn, (r>=0)?("+-"[(p.ul>>32)&1]):('*'), Get_qs(s->buffer[k]), Get_qe(s->buffer[k]), 
                    "+-"[s->buffer[k].rev], 
                    tn, (r>=0)?("+-"[p.v&1]):('*'), Get_ts(s->buffer[k]), Get_te(s->buffer[k]));
        }
    }
}

// Assembly:
cmpl %edx, %ecx
jae 0x1f94d7
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %ecx, %ebp
movl %ecx, %eax
leaq (%rax,%rax,2), %rcx
movl 0xc(%rsi,%rcx,8), %eax
testl %eax, %eax
je 0x1f94c9
movl %r8d, %r14d
leaq (%rsi,%rcx,8), %r13
movl %r8d, %ecx
movq %rcx, 0x28(%rsp)
movl $0x18, %r12d
movl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
xorl %r15d, %r15d
movq %r9, 0x20(%rsp)
movq %rdi, 0x30(%rsp)
movq (%r13), %r11
movq -0x18(%r11,%r12), %r10
movq %r10, %rsi
shrq $0x20, %rsi
cmpl %ebp, %esi
jne 0x1f92ce
cmpl %r14d, -0xc(%r11,%r12)
je 0x1f92e1
incq %r15
movl %eax, %ecx
addq $0x28, %r12
cmpq %rcx, %r15
jb 0x1f92b3
jmp 0x1f94c9
movq 0x20(%rdi), %r8
movq 0x28(%rsp), %rax
movl (%r8,%rax,8), %ecx
andl %ebx, %ecx
movq (%r11,%r12), %rax
testl %eax, %eax
js 0x1f9314
movl -0x8(%r11,%r12), %edi
movl -0x4(%r11,%r12), %edx
movq %rdx, 0x8(%rsp)
subl %edx, %ecx
movl %ecx, %edx
movq %rdi, 0x10(%rsp)
movl %edi, %ecx
jmp 0x1f932a
movl -0x8(%r11,%r12), %edx
movl -0x4(%r11,%r12), %edi
movq %rdi, 0x8(%rsp)
subl %edi, %ecx
movq %rdx, 0x10(%rsp)
movl (%r8,%rsi,8), %esi
andl %ebx, %esi
movl 0x40(%r9), %r8d
cmpl %r10d, %ecx
movl %r10d, %ebx
cmovll %ecx, %ebx
movl -0x10(%r11,%r12), %edi
movl %esi, %r9d
movq %rdi, 0x18(%rsp)
subl %edi, %r9d
cmpl %edx, %r9d
movl %edx, %edi
cmovll %r9d, %edi
cmpl %r8d, %ebx
jg 0x1f93b9
cmpl %r8d, %edi
jg 0x1f93b9
movq 0x18(%rsp), %r8
subl %r10d, %r8d
cvtsi2ss %r8, %xmm1
addl %ebx, %r8d
addl %edi, %r8d
cvtsi2ss %r8, %xmm2
leaq 0x9c3d9(%rip), %r11     # 0x295758
movss 0x158(%r11), %xmm0
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
ja 0x1f93b9
movq 0x8(%rsp), %r11
subl 0x10(%rsp), %r11d
xorps %xmm1, %xmm1
cvtsi2ss %r11, %xmm1
addl %ebx, %edi
addl %r11d, %edi
xorps %xmm2, %xmm2
cvtsi2ss %rdi, %xmm2
mulss %xmm2, %xmm0
ucomiss %xmm1, %xmm0
jbe 0x1f942d
movq 0x9bc20(%rip), %rcx     # 0x294fe0
movq (%rcx), %rdi
movl $0x2a, %r9d
movl $0x2a, %ebx
shrl $0x1f, %eax
leaq 0x38efb(%rip), %rcx     # 0x2322d3
movsbl (%rax,%rcx), %r11d
subq $0x8, %rsp
leaq 0x4c876(%rip), %rsi     # 0x245c5e
leaq 0x4c8ad(%rip), %rdx     # 0x245c9c
movq 0x78(%rsp), %rcx
movl %ebp, %r8d
xorl %eax, %eax
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq %rbx
pushq %r14
pushq %r11
pushq 0x48(%rsp)
pushq %r10
callq 0x22b0
addq $0x40, %rsp
movl 0xc(%r13), %eax
movq 0x20(%rsp), %r9
movq 0x30(%rsp), %rdi
movl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
jmp 0x1f92ce
cmpl %edx, %r9d
setl 0x7(%rsp)
setg %r11b
cmpl %ecx, %r10d
setg %r9b
setl %bl
orb %r11b, %r9b
cmpb $0x1, %r9b
jne 0x1f93b9
orb 0x7(%rsp), %bl
je 0x1f93b9
movq 0x20(%rsp), %r9
movl 0x44(%r9), %r9d
cmpl %r9d, %r8d
jl 0x1f93b9
cmpl %r9d, %edi
jl 0x1f93b9
addl 0x18(%rsp), %edx
subl %edx, %esi
movl %r10d, %edx
subl %ecx, %edx
cmovlel %esi, %edx
movq 0x9bb56(%rip), %rsi     # 0x294fe0
movq (%rsi), %rdi
movl $0x2a, %r9d
testl %edx, %edx
js 0x1f93c9
xorl %edx, %edx
cmpl %ecx, %r10d
setg %cl
setle %dl
testl %eax, %eax
setns %sil
xorb %cl, %sil
leaq 0x38e1d(%rip), %r8      # 0x2322d3
movsbl (%rdx,%r8), %r9d
movzbl %sil, %ecx
movsbl (%rcx,%r8), %ebx
jmp 0x1f93ce
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq