// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Overlaps.cpp
// Function: print_overlaps(ma_hit_t_alloc*, long long, long long, long long)
void print_overlaps(ma_hit_t_alloc* paf, long long rLen, long long interval_s, long long interval_e)
{
    long long j;

    fprintf(stderr, "left: \n");
    for (j = 0; j < paf->length; j++)
    {
        if(Get_qs(paf->buffer[j]) == 0)
        {
            fprintf(stderr, "?????? interval_s: %lld, interval_e: %lld, qn: %u, tn: %u, j: %lld, qs: %u, qe: %u, ts: %u, te: %u, dir: %u\n",
            interval_s, interval_e,
            Get_qn(paf->buffer[j]), Get_tn(paf->buffer[j]),
            j, Get_qs(paf->buffer[j]), Get_qe(paf->buffer[j]),
            Get_ts(paf->buffer[j]), Get_te(paf->buffer[j]),
            paf->buffer[j].rev);

            fprintf(stderr, "%.*s\n", (int)Get_NAME_LENGTH(R_INF, Get_tn(paf->buffer[j])),
                Get_NAME(R_INF, Get_tn(paf->buffer[j])));
        }   
    }

    fprintf(stderr, "right: \n");
    for (j = 0; j < paf->length; j++)
    {
        if(Get_qe(paf->buffer[j]) == rLen)
        {
            fprintf(stderr, "?????? interval_s: %lld, interval_e: %lld, qn: %u, tn: %u, j: %lld, qs: %u, qe: %u, ts: %u, te: %u, dir: %u\n",
            interval_s, interval_e,
            Get_qn(paf->buffer[j]), Get_tn(paf->buffer[j]),
            j, Get_qs(paf->buffer[j]), Get_qe(paf->buffer[j]),
            Get_ts(paf->buffer[j]), Get_te(paf->buffer[j]),
            paf->buffer[j].rev);
            
            fprintf(stderr, "%.*s\n", (int)Get_NAME_LENGTH(R_INF, Get_tn(paf->buffer[j])),
                Get_NAME(R_INF, Get_tn(paf->buffer[j])));
        }
    }


    fprintf(stderr, "middle: \n");
    for (j = 0; j < paf->length; j++)
    {
        if(Get_qs(paf->buffer[j]) != 0 && Get_qe(paf->buffer[j]) != rLen)
        {
            fprintf(stderr, "?????? interval_s: %lld, interval_e: %lld, qn: %u, tn: %u, j: %lld, qs: %u, qe: %u, ts: %u, te: %u, dir: %u\n",
            interval_s, interval_e,
            Get_qn(paf->buffer[j]), Get_tn(paf->buffer[j]),
            j, Get_qs(paf->buffer[j]), Get_qe(paf->buffer[j]),
            Get_ts(paf->buffer[j]), Get_te(paf->buffer[j]),
            paf->buffer[j].rev);
            
            fprintf(stderr, "%.*s\n", (int)Get_NAME_LENGTH(R_INF, Get_tn(paf->buffer[j])),
                Get_NAME(R_INF, Get_tn(paf->buffer[j])));
        }
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movq %rsi, %r15
movq %rdi, %r12
movq 0x283e38(%rip), %rax    # 0x289fe0
movq (%rax), %rcx
leaq 0x223bd0(%rip), %rdi    # 0x229d82
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
cmpl $0x0, 0xc(%r12)
jne 0x62ee
movq 0x283e10(%rip), %rax    # 0x289fe0
movq (%rax), %rcx
leaq 0x223c1d(%rip), %rdi    # 0x229df7
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
cmpl $0x0, 0xc(%r12)
jne 0x63a6
movq 0x283de8(%rip), %rax    # 0x289fe0
movq (%rax), %rcx
leaq 0x223bfe(%rip), %rdi    # 0x229e00
pushq $0x9
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
cmpl $0x0, 0xc(%r12)
je 0x62df
pushq $0xc
popq %rbp
xorl %ebx, %ebx
movq (%r12), %rax
movq -0xc(%rax,%rbp), %r10
testl %r10d, %r10d
je 0x6236
movl -0x4(%rax,%rbp), %r11d
cmpq %r15, %r11
jne 0x624c
incq %rbx
movl 0xc(%r12), %eax
addq $0x28, %rbp
cmpq %rax, %rbx
jb 0x621e
jmp 0x62df
movq 0x283d8d(%rip), %rcx    # 0x289fe0
movq (%rcx), %rdi
movq %r10, %r8
shrq $0x20, %r8
movl (%rax,%rbp), %r9d
movl 0x4(%rax,%rbp), %ecx
movq %rcx, (%rsp)
movl 0x8(%rax,%rbp), %r13d
movl 0xc(%rax,%rbp), %r14d
shrl $0x1f, %r14d
leaq 0x223b0c(%rip), %rsi    # 0x229d8a
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
xorl %eax, %eax
pushq %r14
pushq %r13
pushq 0x10(%rsp)
pushq %r11
pushq %r10
pushq %rbx
callq 0x22b0
addq $0x30, %rsp
movq 0x283d39(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x284f7f(%rip), %rsi    # 0x28b230
movq 0x40(%rsi), %rax
movq (%r12), %rcx
movl (%rcx,%rbp), %ecx
leal 0x1(%rcx), %edx
movl (%rax,%rdx,8), %edx
movq (%rax,%rcx,8), %rcx
subl %ecx, %edx
addq 0x8(%rsi), %rcx
leaq 0x233be3(%rip), %rsi    # 0x239eb6
xorl %eax, %eax
callq 0x22b0
jmp 0x6236
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0xc
popq %rbp
xorl %r14d, %r14d
movq (%r12), %rax
movq -0xc(%rax,%rbp), %r8
testl %r8d, %r8d
je 0x6318
incq %r14
movl 0xc(%r12), %eax
addq $0x28, %rbp
cmpq %rax, %r14
jb 0x62f4
jmp 0x61c9
movq 0x283cc1(%rip), %rcx    # 0x289fe0
movq (%rcx), %rdi
shrq $0x20, %r8
movl -0x4(%rax,%rbp), %r10d
movl (%rax,%rbp), %r9d
movl 0x4(%rax,%rbp), %r11d
movl 0x8(%rax,%rbp), %r13d
movl 0xc(%rax,%rbp), %ebx
shrl $0x1f, %ebx
leaq 0x223a43(%rip), %rsi    # 0x229d8a
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
xorl %eax, %eax
pushq %rbx
pushq %r13
pushq %r11
pushq %r10
pushq $0x0
pushq %r14
callq 0x22b0
addq $0x30, %rsp
movq 0x283c72(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x284eb8(%rip), %rsi    # 0x28b230
movq 0x40(%rsi), %rax
movq (%r12), %rcx
movl (%rcx,%rbp), %ecx
leal 0x1(%rcx), %edx
movl (%rax,%rdx,8), %edx
movq (%rax,%rcx,8), %rcx
subl %ecx, %edx
addq 0x8(%rsi), %rcx
leaq 0x233b1c(%rip), %rsi    # 0x239eb6
xorl %eax, %eax
callq 0x22b0
jmp 0x6302
pushq $0xc
popq %rbp
xorl %r14d, %r14d
movq (%r12), %rax
movl -0x4(%rax,%rbp), %r10d
cmpq %r15, %r10
je 0x63d0
incq %r14
movl 0xc(%r12), %eax
addq $0x28, %rbp
cmpq %rax, %r14
jb 0x63ac
jmp 0x61f1
movq 0x283c09(%rip), %rcx    # 0x289fe0
movq (%rcx), %rdi
movq -0xc(%rax,%rbp), %r11
movq %r11, %r8
shrq $0x20, %r8
movl (%rax,%rbp), %r9d
movl 0x4(%rax,%rbp), %ecx
movq %rcx, (%rsp)
movl 0x8(%rax,%rbp), %ebx
movl 0xc(%rax,%rbp), %r13d
shrl $0x1f, %r13d
leaq 0x223984(%rip), %rsi    # 0x229d8a
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
xorl %eax, %eax
pushq %r13
pushq %rbx
pushq 0x10(%rsp)
pushq %r10
pushq %r11
pushq %r14
callq 0x22b0
addq $0x30, %rsp
movq 0x283bb1(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x284df7(%rip), %rsi    # 0x28b230
movq 0x40(%rsi), %rax
movq (%r12), %rcx
movl (%rcx,%rbp), %ecx
leal 0x1(%rcx), %edx
movl (%rax,%rdx,8), %edx
movq (%rax,%rcx,8), %rcx
subl %ecx, %edx
addq 0x8(%rsi), %rcx
leaq 0x233a5b(%rip), %rsi    # 0x239eb6
xorl %eax, %eax
callq 0x22b0
jmp 0x63ba