// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/horder.cpp
// Function: print_specfic_hic_hits(kvec_pe_hit*, unsigned long, unsigned long, ma_ug_t*)
void print_specfic_hic_hits(kvec_pe_hit *hits, uint64_t v, uint64_t w, ma_ug_t *ug)
{
    uint64_t i, suid, euid, slen, elen, p0s, p0e, p1s, p1e, span_s, span_e, sd, ed;
    for (i = 0; i < hits->a.n; i++)
    {
        if(!hits->a.a[i].id) continue;
        suid = get_hit_suid(*hits, i);
        euid = get_hit_euid(*hits, i);
        if((suid == v && euid == w) || (suid == w && euid == v))
        {
            slen = ug->u.a[suid].len;
            elen = ug->u.a[euid].len;

            p0s = get_hit_spos(*hits, i);
            p0e = get_hit_spos_e(*hits, i);
            span_s = MIN(p0s, p0e);
            span_s = MIN(span_s, slen-1);
            span_e = MAX(p0s, p0e);
            span_e =  MIN(span_e, slen-1);
            span_s = ((span_s+span_e)>>1);
            sd = span_s;


            p1s = get_hit_epos(*hits, i);
            p1e = get_hit_epos_e(*hits, i);
            span_s = MIN(p1s, p1e);
            span_s = MIN(span_s, elen-1);
            span_e = MAX(p1s, p1e);
            span_e =  MIN(span_e, elen-1);
            span_s = ((span_s+span_e)>>1);
            ed = span_s;

            fprintf(stderr, "u-stg%.6lul\t%lu\tv-stg%.6lul\t%lu\n", suid+1, sd, euid + 1, ed);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, (%rsp)
cmpq $0x0, (%rdi)
je 0x1757bc
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl $0x18, %ebp
xorl %r13d, %r13d
movq 0x10(%r12), %rax
cmpq $0x0, -0x8(%rax,%rbp)
je 0x1757ab
movq -0x18(%rax,%rbp), %r10
leaq (%r10,%r10), %rdx
movb 0x48(%r12), %sil
xorl %ecx, %ecx
subb %sil, %cl
shrq %cl, %rdx
movq -0x10(%rax,%rbp), %rdi
leaq (%rdi,%rdi), %r8
shrq %cl, %r8
cmpq %r15, %rdx
jne 0x1756ae
cmpq %r14, %r8
je 0x1756c0
cmpq %r14, %rdx
jne 0x1757ab
cmpq %r15, %r8
jne 0x1757ab
movq 0x50(%r12), %rsi
movq %rsi, %r9
andq %r10, %r9
testq %r10, %r10
js 0x1756dd
movl 0x4(%rax,%rbp), %ecx
leaq (%r9,%rcx), %r10
decq %r10
jmp 0x1756f3
leaq 0x1(%r9), %rcx
movl 0x4(%rax,%rbp), %r10d
subq %r10, %rcx
movl $0x0, %r10d
cmovaeq %rcx, %r10
movq (%rsp), %rcx
movq 0x10(%rcx), %r11
leaq (%rdx,%rdx,4), %rcx
movl (%r11,%rcx,8), %ebx
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andq %rcx, %rbx
decq %rbx
cmpq %r10, %r9
movq %r10, %rcx
cmovbq %r9, %rcx
cmovaq %r9, %r10
cmpq %rbx, %rcx
cmovaeq %rbx, %rcx
cmpq %rbx, %r10
cmovaeq %rbx, %r10
andq %rdi, %rsi
testq %rdi, %rdi
js 0x17573e
movl (%rax,%rbp), %eax
leaq (%rsi,%rax), %r9
decq %r9
jmp 0x175752
leaq 0x1(%rsi), %rdi
movl (%rax,%rbp), %eax
subq %rax, %rdi
movl $0x0, %r9d
cmovaeq %rdi, %r9
leaq (%r8,%r8,4), %rax
movl (%r11,%rax,8), %eax
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
andq %rdi, %rax
addq %r10, %rcx
shrq %rcx
decq %rax
cmpq %r9, %rsi
movq %r9, %rdi
cmovbq %rsi, %rdi
cmovaq %rsi, %r9
cmpq %rax, %rdi
cmovaeq %rax, %rdi
cmpq %rax, %r9
cmovaeq %rax, %r9
addq %rdi, %r9
shrq %r9
movq 0x11484c(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
incq %rdx
incq %r8
leaq 0xbbfc8(%rip), %rsi     # 0x23176c
xorl %eax, %eax
callq 0x22b0
incq %r13
addq $0x20, %rbp
cmpq (%r12), %r13
jb 0x175671
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq