// File: /workspace/github_cpp_makefile_star2_O2/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 0x1e7880(%rip), %rax    # 0x252fe0
movq (%rax), %rcx
leaq 0x17c708(%rip), %rdi    # 0x1e7e72
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
pushq $0xc
popq %rbx
xorl %r14d, %r14d
movl 0xc(%r12), %eax
cmpq %rax, %r14
jae 0x6b82e
movq (%r12), %rax
movq -0xc(%rax,%rbx), %r8
testl %r8d, %r8d
je 0x6b7a0
incq %r14
addq $0x28, %rbx
jmp 0x6b77b
movq 0x1e7839(%rip), %rcx    # 0x252fe0
movq (%rcx), %rdi
shrq $0x20, %r8
movl -0x4(%rax,%rbx), %r10d
movl (%rax,%rbx), %r9d
movl 0x4(%rax,%rbx), %r11d
movl 0x8(%rax,%rbx), %r13d
movl 0xc(%rax,%rbx), %ebp
shrl $0x1f, %ebp
leaq 0x17c6ab(%rip), %rsi    # 0x1e7e7a
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
xorl %eax, %eax
pushq %rbp
pushq %r13
pushq %r11
pushq %r10
pushq $0x0
pushq %r14
callq 0x22b0
addq $0x30, %rsp
movq 0x1e77ea(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
leaq 0x1e8a30(%rip), %rsi    # 0x254230
movq 0x40(%rsi), %rax
movq (%r12), %rcx
movl (%rcx,%rbx), %ecx
leal 0x1(%rcx), %edx
movl (%rax,%rdx,8), %edx
movq (%rax,%rcx,8), %rcx
subl %ecx, %edx
addq 0x8(%rsi), %rcx
leaq 0x18c848(%rip), %rsi    # 0x1f806a
xorl %eax, %eax
callq 0x22b0
jmp 0x6b797
movq 0x1e77ab(%rip), %rax    # 0x252fe0
movq (%rax), %rcx
leaq 0x17c6a8(%rip), %rdi    # 0x1e7ee7
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
pushq $0xc
popq %rbx
xorl %r14d, %r14d
movl 0xc(%r12), %eax
cmpq %rax, %r14
jae 0x6b90c
movq (%r12), %rax
movl -0x4(%rax,%rbx), %r10d
cmpq %r15, %r10
je 0x6b875
incq %r14
addq $0x28, %rbx
jmp 0x6b850
movq 0x1e7764(%rip), %rcx    # 0x252fe0
movq (%rcx), %rdi
movq -0xc(%rax,%rbx), %r11
movq %r11, %r8
shrq $0x20, %r8
movl (%rax,%rbx), %r9d
movl 0x4(%rax,%rbx), %ecx
movq %rcx, (%rsp)
movl 0x8(%rax,%rbx), %ebp
movl 0xc(%rax,%rbx), %r13d
shrl $0x1f, %r13d
leaq 0x17c5cf(%rip), %rsi    # 0x1e7e7a
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
xorl %eax, %eax
pushq %r13
pushq %rbp
pushq 0x10(%rsp)
pushq %r10
pushq %r11
pushq %r14
callq 0x22b0
addq $0x30, %rsp
movq 0x1e770c(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
leaq 0x1e8952(%rip), %rsi    # 0x254230
movq 0x40(%rsi), %rax
movq (%r12), %rcx
movl (%rcx,%rbx), %ecx
leal 0x1(%rcx), %edx
movl (%rax,%rdx,8), %edx
movq (%rax,%rcx,8), %rcx
subl %ecx, %edx
addq 0x8(%rsi), %rcx
leaq 0x18c76a(%rip), %rsi    # 0x1f806a
xorl %eax, %eax
callq 0x22b0
jmp 0x6b86c
movq 0x1e76cd(%rip), %rax    # 0x252fe0
movq (%rax), %rcx
leaq 0x17c5d3(%rip), %rdi    # 0x1e7ef0
pushq $0x9
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
pushq $0xc
popq %rbx
xorl %r14d, %r14d
movl 0xc(%r12), %eax
cmpq %rax, %r14
jae 0x6b9ef
movq (%r12), %rax
movq -0xc(%rax,%rbx), %r10
testl %r10d, %r10d
je 0x6b954
movl -0x4(%rax,%rbx), %r11d
cmpq %r15, %r11
jne 0x6b95d
incq %r14
addq $0x28, %rbx
jmp 0x6b92e
movq 0x1e767c(%rip), %rcx    # 0x252fe0
movq (%rcx), %rdi
movq %r10, %r8
shrq $0x20, %r8
movl (%rax,%rbx), %r9d
movl 0x4(%rax,%rbx), %ecx
movq %rcx, (%rsp)
movl 0x8(%rax,%rbx), %ebp
movl 0xc(%rax,%rbx), %r13d
shrl $0x1f, %r13d
leaq 0x17c4ec(%rip), %rsi    # 0x1e7e7a
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
xorl %eax, %eax
pushq %r13
pushq %rbp
pushq 0x10(%rsp)
pushq %r11
pushq %r10
pushq %r14
callq 0x22b0
addq $0x30, %rsp
movq 0x1e7629(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
leaq 0x1e886f(%rip), %rsi    # 0x254230
movq 0x40(%rsi), %rax
movq (%r12), %rcx
movl (%rcx,%rbx), %ecx
leal 0x1(%rcx), %edx
movl (%rax,%rdx,8), %edx
movq (%rax,%rcx,8), %rcx
subl %ecx, %edx
addq 0x8(%rsi), %rcx
leaq 0x18c687(%rip), %rsi    # 0x1f806a
xorl %eax, %eax
callq 0x22b0
jmp 0x6b954
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq