// File: chhylp123[P]hifiasm/gfa_ut.cpp
// Function: print_node(asg_t*, unsigned int)
void print_node(asg_t *sg, uint32_t src)
{
    asg_arc_t *av; uint32_t nv, v, i;
    v = src<<1;
    av = asg_arc_a(sg, v); nv = asg_arc_n(sg, v);
    fprintf(stderr, "\n%.*s(%c)\tnv:%u\n", 
                (int32_t)Get_NAME_LENGTH(R_INF, v>>1), Get_NAME(R_INF, v>>1), "+-"[v&1], nv);
    for (i = 0; i < nv; i++) {
        fprintf(stderr, "++++++%.*s(%c)<id:%lu>\t%.*s(%c)<id:%u>\tol:%u\tou:%u\tdel:%u\n", 
                (int32_t)Get_NAME_LENGTH(R_INF, (av[i].ul>>33)), Get_NAME(R_INF, (av[i].ul>>33)), "+-"[(av[i].ul>>32)&1], av[i].ul>>33, 
                (int32_t)Get_NAME_LENGTH(R_INF, (av[i].v>>1)), Get_NAME(R_INF, (av[i].v>>1)), "+-"[av[i].v&1], av[i].v>>1, av[i].ol, av[i].ou, av[i].del);
    }

    v = (src<<1)+1;
    av = asg_arc_a(sg, v); nv = asg_arc_n(sg, v);
    fprintf(stderr, "\n%.*s(%c)\tnv:%u\n", 
                (int32_t)Get_NAME_LENGTH(R_INF, v>>1), Get_NAME(R_INF, v>>1), "+-"[v&1], nv);
    for (i = 0; i < nv; i++) {
        fprintf(stderr, "------%.*s(%c)<id:%lu>\t%.*s(%c)<id:%u>\tol:%u\tou:%u\tdel:%u\n", 
                (int32_t)Get_NAME_LENGTH(R_INF, (av[i].ul>>33)), Get_NAME(R_INF, (av[i].ul>>33)), "+-"[(av[i].ul>>32)&1], av[i].ul>>33, 
                (int32_t)Get_NAME_LENGTH(R_INF, (av[i].v>>1)), Get_NAME(R_INF, (av[i].v>>1)), "+-"[av[i].v&1], av[i].v>>1, av[i].ol, av[i].ou, av[i].del);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rdi, -0x28(%rbp)
movl %esi, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
shll %eax
movl %eax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x28(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x40(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x40(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x3c(%rbp)
movq 0xa5cc3(%rip), %rax     # 0x3c3fe0
movq (%rax), %rdi
leaq 0xa6fa9(%rip), %rax     # 0x3c52d0
movq 0x40(%rax), %rax
movl -0x40(%rbp), %ecx
shrl %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
leaq 0xa6f90(%rip), %rcx     # 0x3c52d0
movq 0x40(%rcx), %rcx
movl -0x40(%rbp), %edx
shrl %edx
movl %edx, %edx
subq (%rcx,%rdx,8), %rax
movl %eax, %edx
leaq 0xa6f78(%rip), %rax     # 0x3c52d0
movq 0x8(%rax), %rcx
leaq 0xa6f6d(%rip), %rax     # 0x3c52d0
movq 0x40(%rax), %rax
movl -0x40(%rbp), %esi
shrl %esi
movl %esi, %esi
addq (%rax,%rsi,8), %rcx
movl -0x40(%rbp), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x64b18(%rip), %rax     # 0x382e9b
movsbl (%rax,%rsi), %r8d
movl -0x3c(%rbp), %r9d
leaq 0x783ba(%rip), %rsi     # 0x39674d
movb $0x0, %al
callq 0x22a0
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jae 0x31e5a9
movq 0xa5c2c(%rip), %rax     # 0x3c3fe0
movq (%rax), %rdi
leaq 0xa6f12(%rip), %rax     # 0x3c52d0
movq 0x40(%rax), %rax
movq -0x38(%rbp), %rcx
movl -0x44(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movq (%rcx), %rcx
shrq $0x21, %rcx
movq 0x8(%rax,%rcx,8), %rax
leaq 0xa6eed(%rip), %rcx     # 0x3c52d0
movq 0x40(%rcx), %rcx
movq -0x38(%rbp), %rdx
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rdx
movq (%rdx), %rdx
shrq $0x21, %rdx
subq (%rcx,%rdx,8), %rax
movl %eax, %edx
leaq 0xa6ec7(%rip), %rax     # 0x3c52d0
movq 0x8(%rax), %rcx
leaq 0xa6ebc(%rip), %rax     # 0x3c52d0
movq 0x40(%rax), %rax
movq -0x38(%rbp), %rsi
movl -0x44(%rbp), %r8d
imulq $0x18, %r8, %r8
addq %r8, %rsi
movq (%rsi), %rsi
shrq $0x21, %rsi
addq (%rax,%rsi,8), %rcx
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movq (%rax), %rsi
shrq $0x20, %rsi
andq $0x1, %rsi
leaq 0x64a49(%rip), %rax     # 0x382e9b
movsbl (%rax,%rsi), %r8d
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movq (%rax), %r9
shrq $0x21, %r9
leaq 0xa6e5d(%rip), %rax     # 0x3c52d0
movq 0x40(%rax), %rax
movq -0x38(%rbp), %rsi
movl -0x44(%rbp), %r10d
imulq $0x18, %r10, %r10
addq %r10, %rsi
movl 0x8(%rsi), %esi
shrl %esi
addl $0x1, %esi
movl %esi, %esi
movq (%rax,%rsi,8), %rax
leaq 0xa6e35(%rip), %rsi     # 0x3c52d0
movq 0x40(%rsi), %rsi
movq -0x38(%rbp), %r10
movl -0x44(%rbp), %r11d
imulq $0x18, %r11, %r11
addq %r11, %r10
movl 0x8(%r10), %r10d
shrl %r10d
movl %r10d, %r10d
subq (%rsi,%r10,8), %rax
movl %eax, %r12d
leaq 0xa6e0a(%rip), %rax     # 0x3c52d0
movq 0x8(%rax), %r15
leaq 0xa6dff(%rip), %rax     # 0x3c52d0
movq 0x40(%rax), %rax
movq -0x38(%rbp), %rsi
movl -0x44(%rbp), %r10d
imulq $0x18, %r10, %r10
addq %r10, %rsi
movl 0x8(%rsi), %esi
shrl %esi
movl %esi, %esi
addq (%rax,%rsi,8), %r15
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x6498d(%rip), %rax     # 0x382e9b
movsbl (%rax,%rsi), %r14d
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0x8(%rax), %ebx
shrl %ebx
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0xc(%rax), %r11d
andl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movw 0x10(%rax), %ax
andw $0x3fff, %ax            # imm = 0x3FFF
movzwl %ax, %r10d
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
leaq 0x781ea(%rip), %rsi     # 0x39675e
movl %r12d, (%rsp)
movq %r15, 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 -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x31e3a1
movl -0x2c(%rbp), %eax
shll %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x28(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x40(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x40(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x3c(%rbp)
movq 0xa59ed(%rip), %rax     # 0x3c3fe0
movq (%rax), %rdi
leaq 0xa6cd3(%rip), %rax     # 0x3c52d0
movq 0x40(%rax), %rax
movl -0x40(%rbp), %ecx
shrl %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
leaq 0xa6cba(%rip), %rcx     # 0x3c52d0
movq 0x40(%rcx), %rcx
movl -0x40(%rbp), %edx
shrl %edx
movl %edx, %edx
subq (%rcx,%rdx,8), %rax
movl %eax, %edx
leaq 0xa6ca2(%rip), %rax     # 0x3c52d0
movq 0x8(%rax), %rcx
leaq 0xa6c97(%rip), %rax     # 0x3c52d0
movq 0x40(%rax), %rax
movl -0x40(%rbp), %esi
shrl %esi
movl %esi, %esi
addq (%rax,%rsi,8), %rcx
movl -0x40(%rbp), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x64842(%rip), %rax     # 0x382e9b
movsbl (%rax,%rsi), %r8d
movl -0x3c(%rbp), %r9d
leaq 0x780e4(%rip), %rsi     # 0x39674d
movb $0x0, %al
callq 0x22a0
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jae 0x31e87f
movq 0xa5956(%rip), %rax     # 0x3c3fe0
movq (%rax), %rdi
leaq 0xa6c3c(%rip), %rax     # 0x3c52d0
movq 0x40(%rax), %rax
movq -0x38(%rbp), %rcx
movl -0x44(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movq (%rcx), %rcx
shrq $0x21, %rcx
movq 0x8(%rax,%rcx,8), %rax
leaq 0xa6c17(%rip), %rcx     # 0x3c52d0
movq 0x40(%rcx), %rcx
movq -0x38(%rbp), %rdx
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rdx
movq (%rdx), %rdx
shrq $0x21, %rdx
subq (%rcx,%rdx,8), %rax
movl %eax, %edx
leaq 0xa6bf1(%rip), %rax     # 0x3c52d0
movq 0x8(%rax), %rcx
leaq 0xa6be6(%rip), %rax     # 0x3c52d0
movq 0x40(%rax), %rax
movq -0x38(%rbp), %rsi
movl -0x44(%rbp), %r8d
imulq $0x18, %r8, %r8
addq %r8, %rsi
movq (%rsi), %rsi
shrq $0x21, %rsi
addq (%rax,%rsi,8), %rcx
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movq (%rax), %rsi
shrq $0x20, %rsi
andq $0x1, %rsi
leaq 0x64773(%rip), %rax     # 0x382e9b
movsbl (%rax,%rsi), %r8d
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movq (%rax), %r9
shrq $0x21, %r9
leaq 0xa6b87(%rip), %rax     # 0x3c52d0
movq 0x40(%rax), %rax
movq -0x38(%rbp), %rsi
movl -0x44(%rbp), %r10d
imulq $0x18, %r10, %r10
addq %r10, %rsi
movl 0x8(%rsi), %esi
shrl %esi
addl $0x1, %esi
movl %esi, %esi
movq (%rax,%rsi,8), %rax
leaq 0xa6b5f(%rip), %rsi     # 0x3c52d0
movq 0x40(%rsi), %rsi
movq -0x38(%rbp), %r10
movl -0x44(%rbp), %r11d
imulq $0x18, %r11, %r11
addq %r11, %r10
movl 0x8(%r10), %r10d
shrl %r10d
movl %r10d, %r10d
subq (%rsi,%r10,8), %rax
movl %eax, %r12d
leaq 0xa6b34(%rip), %rax     # 0x3c52d0
movq 0x8(%rax), %r15
leaq 0xa6b29(%rip), %rax     # 0x3c52d0
movq 0x40(%rax), %rax
movq -0x38(%rbp), %rsi
movl -0x44(%rbp), %r10d
imulq $0x18, %r10, %r10
addq %r10, %rsi
movl 0x8(%rsi), %esi
shrl %esi
movl %esi, %esi
addq (%rax,%rsi,8), %r15
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x646b7(%rip), %rax     # 0x382e9b
movsbl (%rax,%rsi), %r14d
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0x8(%rax), %ebx
shrl %ebx
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0xc(%rax), %r11d
andl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movw 0x10(%rax), %ax
andw $0x3fff, %ax            # imm = 0x3FFF
movzwl %ax, %r10d
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
leaq 0x77f4f(%rip), %rsi     # 0x396799
movl %r12d, (%rsp)
movq %r15, 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 -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x31e677
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)