// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Purge_Dups.cpp
// Function: print_purge_gfa(ma_ug_t*, asg_t*)
void print_purge_gfa(ma_ug_t *ug, asg_t *purge_g)
{
    uint32_t v, i, n_vtx = purge_g->n_seq * 2;
    for (v = 0; v < n_vtx; v++)
    {
        if(v%2==0) fprintf(stderr, "\n");
        if(purge_g->seq[v>>1].del)
        {
            fprintf(stderr, "(D) v>>1: %u, v&1: %u, utg%.6d%c\n", v>>1, v&1, (v>>1)+1,
            "lc"[ug->u.a[v>>1].circ]);
            continue;
        } 

        fprintf(stderr, "(E) v>>1: %u, v&1: %u, utg%.6dl%c\n", v>>1, v&1, (v>>1)+1,
        "lc"[ug->u.a[v>>1].circ]);
        
        uint32_t nv = asg_arc_n(purge_g, v);
		asg_arc_t *av = asg_arc_a(purge_g, v);
        for (i = 0; i < nv; i++)
        {
            if(av[i].del) continue;
            fprintf(stderr, "av[i].ul: %u (utg%.6d%c, dir: %u, len: %u), av[i].v: %u (utg%.6d%c, dir: %u, len: %u), ol: %u\n", 
                (uint32_t)(av[i].ul>>33), (uint32_t)(av[i].ul>>33)+1, "lc"[ug->u.a[av[i].ul>>33].circ], (uint32_t)(av[i].ul>>32)&1, ug->u.a[av[i].ul>>33].len, 
                av[i].v>>1, (av[i].v>>1)+1, "lc"[ug->u.a[av[i].v>>1].circ], av[i].v&1, ug->u.a[av[i].v>>1].len, av[i].ol);
        }

    }
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r12
movl 0x14(%rsi), %ebp
addl %ebp, %ebp
xorl %r14d, %r14d
cmpq %rbp, %r14
je 0xce6de
testb $0x1, %r14b
jne 0xce55f
movq 0x184a8c(%rip), %rax    # 0x252fe0
movq (%rax), %rsi
pushq $0xa
popq %rdi
callq 0x2270
movl %r14d, %ecx
andl $0x1, %ecx
movq 0x20(%rbx), %rax
movl %r14d, %edx
shrl %edx
leal 0x1(%rdx), %r8d
movq 0x10(%r12), %rsi
imulq $0x28, %rdx, %rdi
movl (%rsi,%rdi), %esi
shrl $0x1f, %esi
cmpl $0x0, (%rax,%rdx,8)
movq 0x184a54(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
leaq 0x1180f5(%rip), %rax    # 0x1e668b
movsbl (%rsi,%rax), %r9d
movq %r14, 0x40(%rsp)
js 0xce6c3
leaq 0x11d263(%rip), %rsi    # 0x1eb810
xorl %eax, %eax
callq 0x22b0
movq 0x8(%rbx), %rax
movq 0x28(%rbx), %rcx
movq (%rcx,%r14,8), %rcx
movl %ecx, %edx
shrq $0x20, %rcx
imulq $0x18, %rdx, %r15
imulq $0x18, %rcx, %rcx
leaq (%rax,%rcx), %r13
addq $0xc, %r13
xorl %r14d, %r14d
movq %rbx, 0x20(%rsp)
movq %r12, 0x18(%rsp)
movq %rbp, 0x10(%rsp)
cmpq %r14, %r15
je 0xce6d1
movl (%r13,%r14), %r11d
testl %r11d, %r11d
jns 0xce601
addq $0x18, %r14
jmp 0xce5e8
movq 0x1849d8(%rip), %rax    # 0x252fe0
movq (%rax), %rax
movq %rax, 0x38(%rsp)
movq -0xc(%r13,%r14), %r9
movq %r9, %rdx
shrq $0x21, %rdx
leal 0x1(%rdx), %eax
movl %eax, 0xc(%rsp)
movq 0x10(%r12), %rax
imulq $0x28, %rdx, %rsi
movl (%rax,%rsi), %r10d
movl %r10d, %esi
shrl $0x1f, %esi
leaq 0x11804e(%rip), %rdi    # 0x1e668b
movsbl (%rsi,%rdi), %r8d
shrq $0x20, %r9
andl $0x1, %r9d
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %r10d
movl -0x4(%r13,%r14), %ebp
movl %ebp, %ebx
shrl %ebx
leal 0x1(%rbx), %esi
movq %rsi, 0x30(%rsp)
imulq $0x28, %rbx, %rsi
movl (%rax,%rsi), %r12d
movl %r12d, %eax
shrl $0x1f, %eax
movsbl (%rax,%rdi), %eax
movq %rax, 0x28(%rsp)
andl $0x1, %ebp
andl %ecx, %r12d
subq $0x8, %rsp
movq 0x40(%rsp), %rdi
leaq 0x11d1a3(%rip), %rsi    # 0x1eb833
movl 0x14(%rsp), %ecx
xorl %eax, %eax
pushq %r11
pushq %r12
movq 0x30(%rsp), %r12
pushq %rbp
movq 0x30(%rsp), %rbp
pushq 0x48(%rsp)
pushq 0x58(%rsp)
pushq %rbx
movq 0x58(%rsp), %rbx
pushq %r10
callq 0x22b0
addq $0x40, %rsp
jmp 0xce5fb
leaq 0x11d124(%rip), %rsi    # 0x1eb7ee
xorl %eax, %eax
callq 0x22b0
movq 0x40(%rsp), %r14
incq %r14
jmp 0xce53e
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq