// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: print_gfa(asg_t*)
void print_gfa(asg_t *g)
{
    uint32_t v, i, n_vtx = g->n_seq * 2;
    for (v = 0; v < n_vtx; v++)
    {
        if(g->seq[v>>1].del)
        {
            fprintf(stderr, "(D) v>>1: %u, v&1: %u, %.*s\n", v>>1, v&1, 
                (int)Get_NAME_LENGTH((R_INF), v>>1), Get_NAME((R_INF), v>>1));
            continue;
        } 

        fprintf(stderr, "(E) v>>1: %u, v&1: %u, %.*s\n", v>>1, v&1, 
                (int)Get_NAME_LENGTH((R_INF), v>>1), Get_NAME((R_INF), v>>1));
        
        uint32_t nv = asg_arc_n(g, v);
		asg_arc_t *av = asg_arc_a(g, v);
        for (i = 0; i < nv; i++)
        {
            if(av[i].del) continue;
            fprintf(stderr, "av[i].v: %u, av[i].ul: %u\n", 
                            av[i].v, (uint32_t)(av[i].ul>>32));
        }

    }
    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movl %eax, -0x14(%rbp)
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x14573e
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movl -0xc(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x145608
movq 0x27ea4f(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movl -0xc(%rbp), %edx
shrl %edx
movl -0xc(%rbp), %ecx
andl $0x1, %ecx
leaq 0x27fd2a(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movl -0xc(%rbp), %esi
shrl %esi
addl $0x1, %esi
movl %esi, %esi
movq (%rax,%rsi,8), %rax
leaq 0x27fd11(%rip), %rsi    # 0x3c52d0
movq 0x40(%rsi), %rsi
movl -0xc(%rbp), %r8d
shrl %r8d
movl %r8d, %r8d
subq (%rsi,%r8,8), %rax
movl %eax, %r8d
leaq 0x27fcf5(%rip), %rax    # 0x3c52d0
movq 0x8(%rax), %r9
leaq 0x27fcea(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movl -0xc(%rbp), %esi
shrl %esi
movl %esi, %esi
addq (%rax,%rsi,8), %r9
leaq 0x243a32(%rip), %rsi    # 0x38902e
movb $0x0, %al
callq 0x22a0
jmp 0x145730
movq 0x27e9d1(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movl -0xc(%rbp), %edx
shrl %edx
movl -0xc(%rbp), %ecx
andl $0x1, %ecx
leaq 0x27fcac(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movl -0xc(%rbp), %esi
shrl %esi
addl $0x1, %esi
movl %esi, %esi
movq (%rax,%rsi,8), %rax
leaq 0x27fc93(%rip), %rsi    # 0x3c52d0
movq 0x40(%rsi), %rsi
movl -0xc(%rbp), %r8d
shrl %r8d
movl %r8d, %r8d
subq (%rsi,%r8,8), %rax
movl %eax, %r8d
leaq 0x27fc77(%rip), %rax    # 0x3c52d0
movq 0x8(%rax), %r9
leaq 0x27fc6c(%rip), %rax    # 0x3c52d0
movq 0x40(%rax), %rax
movl -0xc(%rbp), %esi
shrl %esi
movl %esi, %esi
addq (%rax,%rsi,8), %r9
leaq 0x2439d1(%rip), %rsi    # 0x38904b
movb $0x0, %al
callq 0x22a0
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0xc(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0xc(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0x18(%rbp), %eax
jae 0x14572e
movq -0x20(%rbp), %rax
movl -0x10(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x1456e3
jmp 0x145723
movq 0x27e8f6(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movq -0x20(%rbp), %rax
movl -0x10(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %edx
movq -0x20(%rbp), %rax
movl -0x10(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
movl %eax, %ecx
leaq 0x24394c(%rip), %rsi    # 0x389068
movb $0x0, %al
callq 0x22a0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x1456c0
jmp 0x145730
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x145564
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)