// File: 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
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq 0x2f0661(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x2b309d(%rip), %rsi    # 0x386a26
movb $0x0, %al
callq 0x22a0
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movl %eax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
callq 0x20a0
movl %eax, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x28(%rbp), %eax
jae 0xd3d40
movl -0x2c(%rbp), %eax
leaq 0x2f18ff(%rip), %rcx    # 0x3c52d0
movq 0x40(%rcx), %rcx
movl -0x24(%rbp), %edx
shrl %edx
addl $0x1, %edx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
leaq 0x2f18e6(%rip), %rdx    # 0x3c52d0
movq 0x40(%rdx), %rdx
movl -0x24(%rbp), %esi
shrl %esi
movl %esi, %esi
subq (%rdx,%rsi,8), %rcx
cmpq %rcx, %rax
jne 0xd3d30
movq -0x8(%rbp), %rdi
leaq 0x2f18c3(%rip), %rax    # 0x3c52d0
movq 0x8(%rax), %rsi
leaq 0x2f18b8(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movl -0x24(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
addq (%rax,%rcx,8), %rsi
leaq 0x2f18a2(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movl -0x24(%rbp), %ecx
shrl %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rdx
leaq 0x2f1889(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movl -0x24(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
subq (%rax,%rcx,8), %rdx
callq 0x20b0
cmpl $0x0, %eax
jne 0xd3d30
cmpl $0x0, -0x30(%rbp)
jne 0xd3a86
movq 0x2f056f(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movq -0x20(%rbp), %rdx
leaq 0x2b3608(%rip), %rsi    # 0x387087
movb $0x0, %al
callq 0x22a0
movq 0x2f0553(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x2f1839(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movl -0x24(%rbp), %ecx
shrl %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
leaq 0x2f1820(%rip), %rcx    # 0x3c52d0
movq 0x40(%rcx), %rcx
movl -0x24(%rbp), %edx
shrl %edx
movl %edx, %edx
subq (%rcx,%rdx,8), %rax
movl %eax, %edx
leaq 0x2f1808(%rip), %rax    # 0x3c52d0
movq 0x8(%rax), %rcx
leaq 0x2f17fd(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movl -0x24(%rbp), %esi
shrl %esi
movl %esi, %esi
addq (%rax,%rsi,8), %rcx
movl -0x24(%rbp), %r8d
shrl %r8d
movl -0x24(%rbp), %r9d
andl $0x1, %r9d
leaq 0x2b2f32(%rip), %rsi    # 0x386a2a
movb $0x0, %al
callq 0x22a0
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x24(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0xd3bd5
movq -0x18(%rbp), %rdi
movl -0x24(%rbp), %esi
shrl %esi
leaq -0x34(%rbp), %rdx
leaq -0x38(%rbp), %rcx
callq 0xd3d50
cmpl $-0x1, -0x34(%rbp)
je 0xd3bb8
cmpl $0x1, -0x38(%rbp)
je 0xd3bb8
movq 0x2f049a(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x2f1780(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movl -0x34(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
leaq 0x2f1769(%rip), %rcx    # 0x3c52d0
movq 0x40(%rcx), %rcx
movl -0x34(%rbp), %edx
subq (%rcx,%rdx,8), %rax
movl %eax, %edx
leaq 0x2f1755(%rip), %rax    # 0x3c52d0
movq 0x8(%rax), %rcx
leaq 0x2f174a(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movl -0x34(%rbp), %esi
addq (%rax,%rsi,8), %rcx
movl -0x34(%rbp), %r8d
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x34(%rbp), %esi
movl (%rax,%rsi,8), %r9d
shrl $0x1f, %r9d
leaq 0x2b2ec2(%rip), %rsi    # 0x386a71
movb $0x0, %al
callq 0x22a0
jmp 0xd3bd0
movq 0x2f0421(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x2b2ef0(%rip), %rsi    # 0x386ab9
movb $0x0, %al
callq 0x22a0
jmp 0xd3d40
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x24(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x24(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x48(%rbp)
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x48(%rbp), %eax
jae 0xd3d29
movq 0x2f03b9(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x2f169f(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movq -0x40(%rbp), %rcx
movl -0x44(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
leaq 0x2f1678(%rip), %rcx    # 0x3c52d0
movq 0x40(%rcx), %rcx
movq -0x40(%rbp), %rdx
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rdx
movl 0x8(%rdx), %edx
shrl %edx
movl %edx, %edx
subq (%rcx,%rdx,8), %rax
movl %eax, %edx
leaq 0x2f1652(%rip), %rax    # 0x3c52d0
movq 0x8(%rax), %rcx
leaq 0x2f1647(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movq -0x40(%rbp), %rsi
movl -0x44(%rbp), %r8d
imulq $0x18, %r8, %r8
addq %r8, %rsi
movl 0x8(%rsi), %esi
shrl %esi
movl %esi, %esi
addq (%rax,%rsi,8), %rcx
movq -0x40(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movzbl 0x12(%rax), %r8d
movq -0x40(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movw 0x10(%rax), %ax
shrw $0xe, %ax
andw $0x1, %ax
movzwl %ax, %r9d
movq -0x40(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0xc(%rax), %r10d
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movq -0x40(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
leaq 0x2b2dcd(%rip), %rsi    # 0x386ad9
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
movb $0x0, %al
callq 0x22a0
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0xd3c14
movl $0x1, -0x30(%rbp)
jmp 0xd3d32
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xd39bb
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)