// File: /workspace/github_cpp_makefile_star2_O3/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 $0x28, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, %r14
movl %edi, %r15d
movq 0x28abd9(%rip), %rbp    # 0x294fe0
movq (%rbp), %rdi
leaq 0x22c245(%rip), %rsi    # 0x236657
movq %rcx, %rdx
xorl %eax, %eax
callq 0x22b0
movq (%rbp), %rdi
leaq 0x28be09(%rip), %r13    # 0x296230
movq 0x40(%r13), %rax
movl 0x8(%rax,%r15,8), %ecx
movq (%rax,%r15,8), %r8
subl %r8d, %ecx
addq 0x8(%r13), %r8
leaq 0x22ccce(%rip), %rsi    # 0x237110
movq %r15, %rdx
xorl %eax, %eax
callq 0x22b0
movq (%rbp), %rdi
imulq $0x18, %r15, %rbx
leaq (%r14,%rbx), %r15
movl 0xc(%r14,%rbx), %edx
movzbl 0x10(%r14,%rbx), %ecx
leaq 0x22c243(%rip), %rsi    # 0x2366ad
xorl %eax, %eax
callq 0x22b0
movq %rbx, 0x8(%rsp)
cmpl $0x0, 0xc(%r14,%rbx)
movq %r15, (%rsp)
je 0xa52d
pushq $0x20
popq %rbx
xorl %r12d, %r12d
movq (%r15), %rax
movl -0x14(%rax,%rbx), %ecx
movq (%rbp), %rdi
movq 0x40(%r13), %rsi
leal 0x1(%rcx), %edx
movl (%rsi,%rdx,8), %edx
movq (%rsi,%rcx,8), %rcx
subl %ecx, %edx
addq 0x8(%r13), %rcx
movl -0x20(%rax,%rbx), %r8d
movl -0x18(%rax,%rbx), %r9d
movl -0x10(%rax,%rbx), %esi
movq %rsi, 0x20(%rsp)
movl -0xc(%rax,%rbx), %esi
movq %rsi, 0x18(%rsp)
movq %rbp, %r10
movq -0x8(%rax,%rbx), %rbp
movl %ebp, %r14d
shrl $0x1e, %r14d
andl $0x1, %r14d
movq %r13, %r11
movl %ebp, %r13d
shrl $0x1f, %r13d
movzbl (%rax,%rbx), %r15d
shrq $0x3f, %rbp
leaq 0x22c1e2(%rip), %rsi    # 0x2366d6
xorl %eax, %eax
pushq %rbp
movq %r10, %rbp
pushq %r15
movq 0x10(%rsp), %r15
pushq %r13
movq %r11, %r13
pushq %r14
pushq 0x38(%rsp)
pushq 0x48(%rsp)
callq 0x22b0
addq $0x30, %rsp
incq %r12
movl 0xc(%r15), %eax
addq $0x28, %rbx
cmpq %rax, %r12
jb 0xa48c
movq (%rbp), %rdi
movq 0x10(%rsp), %r13
movq 0x8(%rsp), %rbx
movl 0xc(%r13,%rbx), %edx
leaq 0x22c1df(%rip), %rsi    # 0x236726
xorl %eax, %eax
callq 0x22b0
cmpl $0x0, 0xc(%r13,%rbx)
je 0xa5dc
addq %rbx, %r13
leaq 0x22cbeb(%rip), %r14    # 0x23714f
xorl %ebx, %ebx
xorl %r12d, %r12d
movq (%r13), %rax
movl 0xc(%rax,%rbx), %ecx
leaq 0x28bcb8(%rip), %rdi    # 0x296230
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 (%rbp), %rdi
movl (%rax,%rbx), %r8d
movl 0x8(%rax,%rbx), %r9d
movl 0x10(%rax,%rbx), %r10d
movl 0x14(%rax,%rbx), %r11d
movq (%r15), %rax
movq 0x18(%rax,%rbx), %r15
shrq $0x3f, %r15
subq $0x8, %rsp
movq %r14, %rsi
xorl %eax, %eax
pushq %r15
movq 0x10(%rsp), %r15
pushq %r11
pushq %r10
callq 0x22b0
addq $0x20, %rsp
incq %r12
movl 0xc(%r13), %eax
addq $0x28, %rbx
cmpq %rax, %r12
jb 0xa569
movq (%rbp), %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2200