// File: /workspace/github_cpp_makefile_star2_O1/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, 0x10(%rsp)
movq 0x283b52(%rip), %rax    # 0x289fe0
movq (%rax), %rcx
leaq 0x223972(%rip), %rdi    # 0x229e0a
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
movq %rbx, 0x8(%rsp)
movl 0x14(%rbx), %ebx
addl %ebx, %ebx
je 0x6635
movq 0x10(%rsp), %rdi
callq 0x2090
movl %eax, %eax
movq %rax, 0x30(%rsp)
movl %ebx, %ebx
leaq 0x284d63(%rip), %r8     # 0x28b230
leaq 0x2239e9(%rip), %r13    # 0x229ebd
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x40(%r8), %rax
movl %r15d, %ebp
shrl %ebp
movq (%rax,%rbp,8), %rsi
movq 0x8(%rax,%rbp,8), %rdx
subq %rsi, %rdx
cmpq %rdx, 0x30(%rsp)
jne 0x650e
movq %r8, %r14
addq 0x8(%r8), %rsi
movq 0x10(%rsp), %rdi
callq 0x21a0
testl %eax, %eax
je 0x651b
movq %r14, %r8
incq %r15
cmpq %rbx, %r15
jne 0x64da
jmp 0x6635
testl %r12d, %r12d
movq 0x283abb(%rip), %r12    # 0x289fe0
jne 0x653e
movq (%r12), %rdi
leaq 0x223f37(%rip), %rsi    # 0x22a469
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0x22b0
leaq 0x1(%rbp), %rax
movq (%r12), %rdi
movq 0x40(%r14), %rcx
movl (%rcx,%rax,8), %edx
movq (%rcx,%rbp,8), %rcx
subl %ecx, %edx
addq 0x8(%r14), %rcx
movl %r15d, %r9d
andl $0x1, %r9d
leaq 0x2238a9(%rip), %rsi    # 0x229e0e
movl %ebp, %r8d
xorl %eax, %eax
callq 0x22b0
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rsi
cmpl $0x0, (%rsi,%rbp,8)
js 0x6644
movq 0x28(%rax), %rax
movq (%rax,%r15,8), %rax
pushq $0x1
popq %r12
testl %eax, %eax
movq %r14, %r8
je 0x650e
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq %rax, %rdx
shrq $0x20, %rdx
movl %eax, %eax
imulq $0x18, %rdx, %rdx
leaq (%rcx,%rdx), %rbp
addq $0x12, %rbp
imulq $0x18, %rax, %rax
movq %rax, 0x28(%rsp)
xorl %r12d, %r12d
movq 0x283a16(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
movq 0x40(%r8), %rax
movl -0xa(%rbp,%r12), %ecx
shrl %ecx
movl 0x8(%rax,%rcx,8), %edx
movq (%rax,%rcx,8), %rcx
subl %ecx, %edx
addq 0x8(%r8), %rcx
movl -0x6(%rbp,%r12), %r10d
movzbl (%rbp,%r12), %r8d
movl -0x2(%rbp,%r12), %r9d
shrl $0xe, %r9d
andl $0x1, %r9d
movl %r10d, %r11d
andl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
shrl $0x1f, %r10d
movq %r13, %rsi
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x22b0
movq %r14, %r8
addq $0x10, %rsp
addq $0x18, %r12
cmpq %r12, 0x28(%rsp)
jne 0x65c3
pushq $0x1
popq %r12
jmp 0x650e
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %al
pushq $-0x1
popq %r8
movq 0x18(%rsp), %rcx
cmpq %rbp, (%rcx)
jbe 0x666f
movq 0x8(%rcx), %rcx
movl (%rcx,%rbp,4), %ecx
cmpl $-0x1, %ecx
je 0x666f
movl %ecx, %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
testl %ecx, %ecx
setns %al
cmpl $-0x1, %r8d
sete %dl
xorb $0x1, %al
movq (%r12), %rcx
orb %dl, %al
jne 0x66bf
movq 0x40(%r14), %rax
movl %r8d, %edi
movl 0x8(%rax,%rdi,8), %edx
movq (%rax,%rdi,8), %rax
subl %eax, %edx
addq 0x8(%r14), %rax
movl (%rsi,%rdi,8), %r9d
shrl $0x1f, %r9d
leaq 0x2237b1(%rip), %rsi    # 0x229e55
movq %rcx, %rdi
movq %rax, %rcx
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x22b0
leaq 0x2237d7(%rip), %rdi    # 0x229e9d
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