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

    if(id == -1)
    {
        i = 0;
        Len = R_INF.total_reads;
    }
    else
    {
        i = id;
        Len = id + 1;
    }
    

    for (; i < Len; i++)
    {
        if(memcmp(name, Get_NAME(R_INF, i), Get_NAME_LENGTH(R_INF, i)) == 0)
        {
            fprintf(stderr, "\n\n\nafter %s\n", command);

            fprintf(stderr, "****************ma_hit_t (%lld)ref_read: %.*s, len: %lu****************\n", 
					i, (int)Get_NAME_LENGTH(R_INF, i), Get_NAME(R_INF, i), (unsigned long)Get_READ_LENGTH(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, rev: %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]),
                reverse_sources[i].buffer[j].rev,
                (uint32_t)sources[i].buffer[j].del);
            }

            break;
            
        }
    }

    fflush(stderr);

    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq %rsi, (%rsp)
movq %rdi, %r13
xorl %eax, %eax
movl %ecx, %edx
incl %edx
leaq 0x1d6812(%rip), %rsi    # 0x254230
movslq %edx, %r15
cmovnel %ecx, %eax
movslq %eax, %rcx
cmoveq 0x50(%rsi), %r15
movq 0x8(%rsi), %rbp
movq 0x40(%rsi), %r14
imulq $0x18, %rcx, %rbx
decq %rcx
leaq 0x1(%rcx), %r12
cmpq %r15, %r12
jge 0x7dc4a
movq 0x8(%r14,%rcx,8), %rax
movq 0x10(%r14,%rcx,8), %rdx
leaq (%rax,%rbp), %rsi
subq %rax, %rdx
movq %r13, %rdi
callq 0x21a0
addq $0x18, %rbx
movq %r12, %rcx
testl %eax, %eax
jne 0x7da3b
movq 0x1d556d(%rip), %r14    # 0x252fe0
movq (%r14), %rdi
leaq 0x16aada(%rip), %rsi    # 0x1e8557
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x22b0
movq (%r14), %rdi
leaq 0x1d679d(%rip), %rsi    # 0x254230
movq 0x18(%rsi), %rax
movq 0x40(%rsi), %rdx
movl 0x8(%rdx,%r12,8), %ecx
movq (%rdx,%r12,8), %r8
subl %r8d, %ecx
addq 0x8(%rsi), %r8
movq (%rax,%r12,8), %r9
leaq 0x16aaae(%rip), %rsi    # 0x1e8564
movq %r12, %rdx
xorl %eax, %eax
callq 0x22b0
movq (%r14), %rdi
movq (%rsp), %r14
movl -0xc(%r14,%rbx), %edx
movzbl -0x8(%r14,%rbx), %ecx
leaq 0x16aad4(%rip), %rsi    # 0x1e85ad
xorl %eax, %eax
callq 0x22b0
pushq $0x20
popq %r12
xorl %ecx, %ecx
movl -0xc(%r14,%rbx), %eax
cmpq %rax, %rcx
jae 0x7db8d
movq -0x18(%r14,%rbx), %rax
movq %rcx, 0x8(%rsp)
movl -0x14(%rax,%r12), %ecx
movq 0x1d54d6(%rip), %rdx    # 0x252fe0
movq (%rdx), %rdi
leaq 0x1d671c(%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,%r12), %r8d
movl -0x18(%rax,%r12), %r9d
movl -0x10(%rax,%r12), %r10d
movl -0xc(%rax,%r12), %r11d
movq -0x8(%rax,%r12), %r14
movl %r14d, %ebp
shrl $0x1e, %ebp
andl $0x1, %ebp
movl %r14d, %r15d
shrl $0x1f, %r15d
movzbl (%rax,%r12), %r13d
shrq $0x3f, %r14
leaq 0x16aa75(%rip), %rsi    # 0x1e85d6
xorl %eax, %eax
pushq %r14
movq 0x8(%rsp), %r14
pushq %r13
pushq %r15
pushq %rbp
pushq %r11
pushq %r10
callq 0x22b0
movq 0x38(%rsp), %rcx
addq $0x30, %rsp
incq %rcx
addq $0x28, %r12
jmp 0x7dae6
movq 0x1d544c(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
movq 0x10(%rsp), %r15
movl -0xc(%r15,%rbx), %edx
leaq 0x16aa7e(%rip), %rsi    # 0x1e8626
xorl %eax, %eax
callq 0x22b0
pushq $0x18
popq %r12
xorl %r13d, %r13d
movl -0xc(%r15,%rbx), %eax
cmpq %rax, %r13
jae 0x7dc4a
movq 0x10(%rsp), %r15
movq -0x18(%r15,%rbx), %rax
movl -0xc(%rax,%r12), %ecx
movq 0x1d5406(%rip), %rdx    # 0x252fe0
movq (%rdx), %rdi
leaq 0x1d664c(%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 -0x18(%rax,%r12), %r8d
movl -0x10(%rax,%r12), %r9d
movl -0x8(%rax,%r12), %r10d
movl -0x4(%rax,%r12), %r11d
movl (%rax,%r12), %r14d
shrl $0x1f, %r14d
movq (%rsp), %rax
movq -0x18(%rax,%rbx), %rax
movq (%rax,%r12), %rbp
shrq $0x3f, %rbp
leaq 0x16aa1c(%rip), %rsi    # 0x1e8648
xorl %eax, %eax
pushq %rbp
pushq %r14
pushq %r11
pushq %r10
callq 0x22b0
addq $0x20, %rsp
incq %r13
addq $0x28, %r12
jmp 0x7dbb6
movq 0x1d538f(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2200