// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: debug_info_of_specfic_node(char const*, asg_t*, R_to_U*, char const*)
void debug_info_of_specfic_node(const char* name, asg_t *g, R_to_U* ruIndex, const char* command)
{
    fprintf(stderr, "\n\n\n");
    uint32_t v, n_vtx = g->n_seq * 2, queryLen = strlen(name), flag = 0, contain_rId, is_Unitig;
    for (v = 0; v < n_vtx; ++v) 
    {
        if(queryLen == Get_NAME_LENGTH(R_INF, (v>>1)) && memcmp(name, Get_NAME(R_INF, (v>>1)), Get_NAME_LENGTH(R_INF, (v>>1))) == 0)
        {
            if(flag == 0) fprintf(stderr, "\nafter %s\n", command);
            fprintf(stderr, "****************graph ref_read: %.*s, id: %u, dir: %u****************\n", 
            (int)Get_NAME_LENGTH(R_INF, (v>>1)), Get_NAME(R_INF, (v>>1)), v>>1, v&1);
            if(g->seq[v>>1].del)
            {
                get_R_to_U(ruIndex, (v>>1), &contain_rId, &is_Unitig);
                if(contain_rId != (uint32_t)-1 && is_Unitig != 1)
                {
                    fprintf(stderr, "read is deleted as a contained read by: %.*s\n contain_rId: %u, del: %u\n", 
                    (int)Get_NAME_LENGTH(R_INF, contain_rId), Get_NAME(R_INF, contain_rId), contain_rId, g->seq[contain_rId].del);
                }
                else
                {
                    fprintf(stderr, "read has already been deleted.\n");
                }
                
                return;
            }

            asg_arc_t *av = asg_arc_a(g, v);
            uint32_t i, nv = asg_arc_n(g, v);
            for (i = 0; i < nv; ++i)
            {
                fprintf(stderr, "target: %.*s, el: %u, strong: %u, ol: %u, del: %u\n", 
                (int)Get_NAME_LENGTH(R_INF, (av[i].v>>1)), 
                Get_NAME(R_INF, (av[i].v>>1)),
                av[i].el, av[i].strong, av[i].ol, av[i].del);
            }
            flag = 1;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
movq 0x1e6f89(%rip), %rax    # 0x252fe0
movq (%rax), %rcx
leaq 0x17be99(%rip), %rdi    # 0x1e7efa
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
movq %rbx, 0x28(%rsp)
movl 0x14(%rbx), %ebx
addl %ebx, %ebx
movq %r14, 0x30(%rsp)
movq %r14, %rdi
callq 0x2090
movl %eax, %r13d
leaq 0x1e81a3(%rip), %rcx    # 0x254230
xorl %r15d, %r15d
movl $0x0, 0xc(%rsp)
movq %rbx, 0x10(%rsp)
cmpq %rbx, %r15
je 0x6c20a
movq 0x40(%rcx), %rax
movl %r15d, %ebp
shrl %ebp
movq (%rax,%rbp,8), %r12
movq 0x8(%rax,%rbp,8), %r14
subq %r12, %r14
cmpq %r14, %r13
jne 0x6c0e5
movq 0x8(%rcx), %rbx
leaq (%rbx,%r12), %rsi
movq 0x30(%rsp), %rdi
movq %r13, %rdx
callq 0x21a0
testl %eax, %eax
je 0x6c0ea
leaq 0x1e8150(%rip), %rcx    # 0x254230
movq 0x10(%rsp), %rbx
incq %r15
jmp 0x6c09d
cmpl $0x0, 0xc(%rsp)
jne 0x6c12c
leaq 0x1(%rbp), %r14
movq 0x1e6ee4(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
leaq 0x17c453(%rip), %rsi    # 0x1e8559
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0x22b0
leaq 0x1e8117(%rip), %rax    # 0x254230
movq 0x8(%rax), %rbx
movq 0x40(%rax), %rax
movq (%rax,%r14,8), %r14
movq (%rax,%rbp,8), %r12
subq %r12, %r14
addq %r12, %rbx
movq 0x1e6eaa(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
movl %r15d, %r9d
andl $0x1, %r9d
leaq 0x17bdb7(%rip), %rsi    # 0x1e7efe
movl %r14d, %edx
movq %rbx, %rcx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x22b0
movq 0x28(%rsp), %rcx
movq 0x20(%rcx), %rax
cmpl $0x0, (%rax,%rbp,8)
js 0x6c219
movq 0x8(%rcx), %rax
movq 0x28(%rcx), %rcx
movq (%rcx,%r15,8), %rcx
movl %ecx, %edx
shrq $0x20, %rcx
imulq $0x18, %rdx, %rbx
imulq $0x18, %rcx, %rcx
leaq (%rax,%rcx), %r14
addq $0x12, %r14
xorl %ebp, %ebp
cmpq %rbp, %rbx
je 0x6c1fe
movq 0x1e6e46(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
leaq 0x1e808c(%rip), %rsi    # 0x254230
movq 0x40(%rsi), %rax
movl -0xa(%r14,%rbp), %ecx
shrl %ecx
movl 0x8(%rax,%rcx,8), %edx
movq (%rax,%rcx,8), %rcx
subl %ecx, %edx
addq 0x8(%rsi), %rcx
movl -0x6(%r14,%rbp), %r10d
movzbl (%r14,%rbp), %r8d
movl -0x2(%r14,%rbp), %r9d
shrl $0xe, %r9d
andl $0x1, %r9d
movl %r10d, %r11d
andl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
shrl $0x1f, %r10d
leaq 0x17bdc4(%rip), %rsi    # 0x1e7fad
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x22b0
addq $0x10, %rsp
addq $0x18, %rbp
jmp 0x6c18e
pushq $0x1
popq %rax
movl %eax, 0xc(%rsp)
jmp 0x6c0d9
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rsp), %rcx
cmpq %rbp, (%rcx)
jbe 0x6c278
movq 0x8(%rcx), %rcx
movl (%rcx,%rbp,4), %r8d
testl %r8d, %r8d
js 0x6c278
movq 0x1e6da9(%rip), %rcx    # 0x252fe0
movq (%rcx), %rdi
leaq 0x1e7fef(%rip), %rsi    # 0x254230
movq 0x40(%rsi), %rcx
movl 0x8(%rcx,%r8,8), %edx
movq (%rcx,%r8,8), %rcx
subl %ecx, %edx
addq 0x8(%rsi), %rcx
movl (%rax,%r8,8), %r9d
shrl $0x1f, %r9d
leaq 0x17bce2(%rip), %rsi    # 0x1e7f45
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x22b0
movq 0x1e6d61(%rip), %rax    # 0x252fe0
movq (%rax), %rcx
leaq 0x17bd04(%rip), %rdi    # 0x1e7f8d
pushq $0x1f
popq %rsi
pushq $0x1
popq %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2410