// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: print_specfic_read_ovlp(unsigned int, ma_hit_t_alloc*, ma_hit_t_alloc*, char const*)
void print_specfic_read_ovlp(uint32_t Rid,  ma_hit_t_alloc* sources, ma_hit_t_alloc* reverse_sources, 
const char* command)
{
    long long j, i = Rid;
    uint32_t tn;


    fprintf(stderr, "\n\n\nafter %s\n", command);

    fprintf(stderr, "****************ma_hit_t (%lld)ref_read: %.*s****************\n", 
    i, (int)Get_NAME_LENGTH(R_INF, i), Get_NAME(R_INF, i));


    fprintf(stderr, "sources Len: %d, is_fully_corrected: %d\n", 
    sources[i].length, sources[i].is_fully_corrected);

    for (j = 0; j < sources[i].length; j++)
    {
        tn = Get_tn(sources[i].buffer[j]);
        fprintf(stderr, "target: %.*s, qs: %u, qe: %u, ts: %u, te: %u, ml: %u, rev: %u, el: %u, del: %u\n", 
        (int)Get_NAME_LENGTH(R_INF, tn), Get_NAME(R_INF, tn),
        Get_qs(sources[i].buffer[j]),
        Get_qe(sources[i].buffer[j]),
        Get_ts(sources[i].buffer[j]),
        Get_te(sources[i].buffer[j]),
        sources[i].buffer[j].ml,
        sources[i].buffer[j].rev,
        sources[i].buffer[j].el,
        (uint32_t)sources[i].buffer[j].del);
    }


    
    fprintf(stderr, "######reverse_query_read Len: %d\n", reverse_sources[i].length);



    for (j = 0; j < reverse_sources[i].length; j++)
    {
        tn = Get_tn(reverse_sources[i].buffer[j]);
        fprintf(stderr, "target: %.*s, qs: %u, qe: %u, ts: %u, te: %u, del: %u\n", 
        (int)Get_NAME_LENGTH(R_INF, tn), Get_NAME(R_INF, tn),
        Get_qs(reverse_sources[i].buffer[j]),
        Get_qe(reverse_sources[i].buffer[j]),
        Get_ts(reverse_sources[i].buffer[j]),
        Get_te(reverse_sources[i].buffer[j]),
        (uint32_t)sources[i].buffer[j].del);
    }

    
        

    fflush(stderr);

    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x8(%rsp)
movq %rsi, %r14
movl %edi, %r15d
movq 0x1c0add(%rip), %rbx    # 0x252fe0
movq (%rbx), %rdi
leaq 0x15604a(%rip), %rsi    # 0x1e8557
movq %rcx, %rdx
xorl %eax, %eax
callq 0x22b0
movq (%rbx), %rdi
leaq 0x1c1d0f(%rip), %rdx    # 0x254230
movq 0x40(%rdx), %rax
movl 0x8(%rax,%r15,8), %ecx
movq (%rax,%r15,8), %r8
subl %r8d, %ecx
addq 0x8(%rdx), %r8
leaq 0x156ad4(%rip), %rsi    # 0x1e9010
movq %r15, %rdx
xorl %eax, %eax
callq 0x22b0
movq (%rbx), %rdi
imulq $0x18, %r15, %rax
leaq (%r14,%rax), %r12
movl 0xc(%r14,%rax), %edx
movq %rax, (%rsp)
movzbl 0x10(%r14,%rax), %ecx
leaq 0x156046(%rip), %rsi    # 0x1e85ad
xorl %eax, %eax
callq 0x22b0
pushq $0x20
popq %rbx
xorl %ecx, %ecx
movl 0xc(%r12), %eax
cmpq %rax, %rcx
jae 0x9261c
movq (%r12), %rax
movq %rcx, 0x10(%rsp)
movl -0x14(%rax,%rbx), %ecx
movq 0x1c0a4b(%rip), %rdx    # 0x252fe0
movq (%rdx), %rdi
leaq 0x1c1c91(%rip), %r8     # 0x254230
movq 0x40(%r8), %rsi
leal 0x1(%rcx), %edx
movl (%rsi,%rdx,8), %edx
movq (%rsi,%rcx,8), %rcx
subl %ecx, %edx
addq 0x8(%r8), %rcx
movl -0x20(%rax,%rbx), %r8d
movl -0x18(%rax,%rbx), %r9d
movl -0x10(%rax,%rbx), %r10d
movl -0xc(%rax,%rbx), %r11d
movq %r12, %rbp
movq -0x8(%rax,%rbx), %r12
movl %r12d, %r14d
shrl $0x1e, %r14d
andl $0x1, %r14d
movl %r12d, %r13d
shrl $0x1f, %r13d
movzbl (%rax,%rbx), %r15d
shrq $0x3f, %r12
leaq 0x155fe5(%rip), %rsi    # 0x1e85d6
xorl %eax, %eax
pushq %r12
movq %rbp, %r12
pushq %r15
pushq %r13
pushq %r14
pushq %r11
pushq %r10
callq 0x22b0
movq 0x40(%rsp), %rcx
addq $0x30, %rsp
incq %rcx
addq $0x28, %rbx
jmp 0x92573
movq 0x1c09bd(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
movq 0x8(%rsp), %rax
movq (%rsp), %rcx
leaq (%rax,%rcx), %r14
movl 0xc(%rax,%rcx), %edx
leaq 0x155fe8(%rip), %rsi    # 0x1e8626
xorl %eax, %eax
callq 0x22b0
leaq 0x156a03(%rip), %r13    # 0x1e904f
xorl %ebp, %ebp
xorl %ebx, %ebx
movl 0xc(%r14), %eax
cmpq %rax, %rbx
jae 0x926c6
movq (%r14), %rax
movl 0xc(%rax,%rbp), %ecx
leaq 0x1c1bc9(%rip), %rdi    # 0x254230
movq 0x40(%rdi), %rsi
leal 0x1(%rcx), %edx
movl (%rsi,%rdx,8), %edx
movq (%rsi,%rcx,8), %rcx
subl %ecx, %edx
addq 0x8(%rdi), %rcx
movq 0x1c095e(%rip), %rsi    # 0x252fe0
movq (%rsi), %rdi
movl (%rax,%rbp), %r8d
movl 0x8(%rax,%rbp), %r9d
movl 0x10(%rax,%rbp), %r10d
movl 0x14(%rax,%rbp), %r11d
movq (%r12), %rax
movq 0x18(%rax,%rbp), %r15
shrq $0x3f, %r15
subq $0x8, %rsp
movq %r13, %rsi
xorl %eax, %eax
pushq %r15
pushq %r11
pushq %r10
callq 0x22b0
addq $0x20, %rsp
incq %rbx
addq $0x28, %rbp
jmp 0x92650
movq 0x1c0913(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2200