// File: 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
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
movq -0x30(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movl %eax, -0x3c(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jae 0x17c326
movl -0x34(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x17c01e
movq 0x247fd3(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x20aa11(%rip), %rsi    # 0x386a28
movb $0x0, %al
callq 0x22a0
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x34(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x17c096
movq 0x247fa1(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movl -0x34(%rbp), %edx
shrl %edx
movl -0x34(%rbp), %ecx
andl $0x1, %ecx
movl -0x34(%rbp), %r8d
shrl %r8d
addl $0x1, %r8d
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x34(%rbp), %esi
shrl %esi
movl %esi, %esi
imulq $0x28, %rsi, %rsi
addq %rsi, %rax
movl (%rax), %eax
shrl $0x1f, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x209285(%rip), %rax    # 0x385303
movsbl (%rax,%rsi), %r9d
leaq 0x20e43c(%rip), %rsi    # 0x38a4c6
movb $0x0, %al
callq 0x22a0
jmp 0x17c318
movq 0x247f43(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movl -0x34(%rbp), %edx
shrl %edx
movl -0x34(%rbp), %ecx
andl $0x1, %ecx
movl -0x34(%rbp), %r8d
shrl %r8d
addl $0x1, %r8d
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x34(%rbp), %esi
shrl %esi
movl %esi, %esi
imulq $0x28, %rsi, %rsi
addq %rsi, %rax
movl (%rax), %eax
shrl $0x1f, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x209227(%rip), %rax    # 0x385303
movsbl (%rax,%rsi), %r9d
leaq 0x20e400(%rip), %rsi    # 0x38a4e8
movb $0x0, %al
callq 0x22a0
movq -0x30(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x34(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x30(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x34(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x40(%rbp), %eax
jae 0x17c316
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x17c158
jmp 0x17c308
movq 0x247e81(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x21, %rax
movl %eax, %edx
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x21, %rax
movl %eax, %ecx
addl $0x1, %ecx
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x48(%rbp), %rsi
movl -0x38(%rbp), %r8d
imulq $0x18, %r8, %r8
addq %r8, %rsi
movq (%rsi), %rsi
shrq $0x21, %rsi
imulq $0x28, %rsi, %rsi
addq %rsi, %rax
movl (%rax), %eax
shrl $0x1f, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x20913b(%rip), %rax    # 0x385303
movsbl (%rax,%rsi), %r8d
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movq (%rax), %rax
shrq $0x20, %rax
movl %eax, %r9d
andl $0x1, %r9d
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x48(%rbp), %rsi
movl -0x38(%rbp), %r10d
imulq $0x18, %r10, %r10
addq %r10, %rsi
movq (%rsi), %rsi
shrq $0x21, %rsi
imulq $0x28, %rsi, %rsi
addq %rsi, %rax
movl (%rax), %r12d
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0x8(%rax), %r15d
shrl %r15d
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0x8(%rax), %r14d
shrl %r14d
addl $0x1, %r14d
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x48(%rbp), %rsi
movl -0x38(%rbp), %r10d
imulq $0x18, %r10, %r10
addq %r10, %rsi
movl 0x8(%rsi), %esi
shrl %esi
movl %esi, %esi
imulq $0x28, %rsi, %rsi
addq %rsi, %rax
movl (%rax), %eax
shrl $0x1f, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x209088(%rip), %rax    # 0x385303
movsbl (%rax,%rsi), %ebx
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0x8(%rax), %r11d
andl $0x1, %r11d
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x48(%rbp), %rsi
movl -0x38(%rbp), %r10d
imulq $0x18, %r10, %r10
addq %r10, %rsi
movl 0x8(%rsi), %esi
shrl %esi
movl %esi, %esi
imulq $0x28, %rsi, %rsi
addq %rsi, %rax
movl (%rax), %r10d
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
leaq 0x20e22a(%rip), %rsi    # 0x38a50b
movl %r12d, (%rsp)
movl %r15d, 0x8(%rsp)
movl %r14d, 0x10(%rsp)
movl %ebx, 0x18(%rsp)
movl %r11d, 0x20(%rsp)
movl %r10d, 0x28(%rsp)
movl %eax, 0x30(%rsp)
movb $0x0, %al
callq 0x22a0
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x17c12e
jmp 0x17c318
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x17bfef
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)