// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: prt_specfic_sge(asg_t*, unsigned int, unsigned int, char const*)
void prt_specfic_sge(asg_t *g, uint32_t src, uint32_t dst, const char* cmd)
{
    uint32_t k, v, w, nv; asg_arc_t *av;
    fprintf(stderr, "[M::%s::%s] src::%.*s(id::%u), dst::%.*s(id::%u)\n", __func__, cmd, 
    (int)Get_NAME_LENGTH(R_INF, src), Get_NAME(R_INF, src), src, 
    (int)Get_NAME_LENGTH(R_INF, dst), Get_NAME(R_INF, dst), dst);
    v = src<<1; 
    nv = asg_arc_n(g, v); av = asg_arc_a(g, v);
    for (k = 0; k < nv; ++k) {
        if ((av[k].v>>1) == dst) {
            w = av[k].v;
            fprintf(stderr, "[M::%s::]\t%.*s(%c)\t%.*s(%c)\tou::%u\n", __func__,
					(int)Get_NAME_LENGTH(R_INF, (v>>1)), Get_NAME(R_INF, (v>>1)), "+-"[v&1],
					(int)Get_NAME_LENGTH(R_INF, (w>>1)), Get_NAME(R_INF, (w>>1)), "+-"[w&1], av[k].ou);
        }
    }

    v = (src<<1)+1; 
    nv = asg_arc_n(g, v); av = asg_arc_a(g, v);
    for (k = 0; k < nv; ++k) {
        if ((av[k].v>>1) == dst) {
            w = av[k].v;
            fprintf(stderr, "[M::%s::]\t%.*s(%c)\t%.*s(%c)\tou::%u\n", __func__,
					(int)Get_NAME_LENGTH(R_INF, (v>>1)), Get_NAME(R_INF, (v>>1)), "+-"[v&1],
					(int)Get_NAME_LENGTH(R_INF, (w>>1)), Get_NAME(R_INF, (w>>1)), "+-"[w&1], av[k].ou);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
movq 0xa4c78(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
leaq 0xa5ebe(%rip), %rax     # 0x254230
movq 0x8(%rax), %r10
movq 0x40(%rax), %rax
leal 0x1(%r14), %edx
movl (%rax,%rdx,8), %r8d
movl %esi, %edx
movq (%rax,%rdx,8), %r9
subl %r9d, %r8d
addq %r10, %r9
leal 0x1(%rbx), %edx
movq %rdx, 0x18(%rsp)
movl (%rax,%rdx,8), %r11d
movl %ebx, %edx
movq %rdx, 0x10(%rsp)
movq (%rax,%rdx,8), %rax
subl %eax, %r11d
addq %rax, %r10
leaq 0x497fd(%rip), %rsi     # 0x1f7baf
leaq 0x49828(%rip), %rdx     # 0x1f7be1
xorl %eax, %eax
pushq %rbx
pushq %r10
pushq %r11
pushq %r14
callq 0x22b0
addq $0x20, %rsp
leal (%r14,%r14), %edx
movq 0x8(%r15), %rax
movq %r15, 0x30(%rsp)
movq 0x28(%r15), %rcx
movq %rdx, 0x28(%rsp)
movq (%rcx,%rdx,8), %rcx
movl %ecx, %edx
shrq $0x20, %rcx
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
movq %r14, 0x20(%rsp)
leal 0x1(%r14), %esi
movq %rsi, 0x8(%rsp)
imulq $0x18, %rdx, %rbp
imulq $0x18, %rcx, %rcx
leaq (%rcx,%rax), %r12
addq $0x10, %r12
xorl %r13d, %r13d
cmpq %r13, %rbp
je 0x1ae4bc
movl -0x8(%r12,%r13), %eax
movl %eax, %ecx
shrl %ecx
cmpl %ebx, %ecx
je 0x1ae42f
addq $0x18, %r13
jmp 0x1ae413
movq 0xa4baa(%rip), %rcx     # 0x252fe0
movq (%rcx), %rdi
leaq 0xa5df0(%rip), %rcx     # 0x254230
movq 0x8(%rcx), %r10
movq 0x40(%rcx), %rdx
movq 0x8(%rsp), %rcx
movl (%rdx,%rcx,8), %ecx
movq 0x20(%rsp), %rsi
movq (%rdx,%rsi,8), %r8
subl %r8d, %ecx
addq %r10, %r8
movq 0x18(%rsp), %rsi
movl (%rdx,%rsi,8), %r11d
movq 0x10(%rsp), %rsi
movq (%rdx,%rsi,8), %rdx
subl %edx, %r11d
addq %rdx, %r10
andl $0x1, %eax
leaq 0x35da2(%rip), %rdx     # 0x1e4223
movsbl (%rax,%rdx), %r15d
movzwl (%r12,%r13), %r14d
andl $0x3fff, %r14d          # imm = 0x3FFF
leaq 0x49758(%rip), %rsi     # 0x1f7bf1
leaq 0x49741(%rip), %rdx     # 0x1f7be1
pushq $0x2b
popq %r9
xorl %eax, %eax
pushq %r14
pushq %r15
pushq %r10
pushq %r11
callq 0x22b0
addq $0x20, %rsp
jmp 0x1ae429
movq 0x30(%rsp), %rcx
movq 0x8(%rcx), %rax
movq 0x28(%rcx), %rcx
movl 0x28(%rsp), %edx
movq 0x8(%rcx,%rdx,8), %rcx
movl %ecx, %edx
shrq $0x20, %rcx
imulq $0x18, %rdx, %r13
imulq $0x18, %rcx, %rcx
leaq (%rcx,%rax), %rbp
addq $0x10, %rbp
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x1ae595
movl -0x8(%rbp,%r12), %eax
movl %eax, %ecx
shrl %ecx
cmpl %ebx, %ecx
je 0x1ae507
addq $0x18, %r12
jmp 0x1ae4eb
movq 0xa4ad2(%rip), %rcx     # 0x252fe0
movq (%rcx), %rdi
leaq 0xa5d18(%rip), %rcx     # 0x254230
movq 0x8(%rcx), %r10
movq 0x40(%rcx), %rdx
movq 0x8(%rsp), %rcx
movl (%rdx,%rcx,8), %ecx
movq 0x20(%rsp), %rsi
movq (%rdx,%rsi,8), %r8
subl %r8d, %ecx
addq %r10, %r8
movq 0x18(%rsp), %rsi
movl (%rdx,%rsi,8), %r11d
movq 0x10(%rsp), %rsi
movq (%rdx,%rsi,8), %rdx
subl %edx, %r11d
addq %rdx, %r10
andl $0x1, %eax
leaq 0x35cca(%rip), %rdx     # 0x1e4223
movsbl (%rax,%rdx), %r14d
movzwl (%rbp,%r12), %r15d
andl $0x3fff, %r15d          # imm = 0x3FFF
leaq 0x4967f(%rip), %rsi     # 0x1f7bf1
leaq 0x49668(%rip), %rdx     # 0x1f7be1
pushq $0x2d
popq %r9
xorl %eax, %eax
pushq %r15
pushq %r14
pushq %r10
pushq %r11
callq 0x22b0
addq $0x20, %rsp
jmp 0x1ae501
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq