// File: /workspace/github_cpp_makefile_star2_O3/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, %r13d
movq %rdi, %r14
movq 0x26a11a(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x26b360(%rip), %rax    # 0x296230
movq 0x8(%rax), %r10
movq 0x40(%rax), %rax
leal 0x1(%r13), %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 0x21adcf(%rip), %rsi    # 0x245cdf
leaq 0x21adfa(%rip), %rdx    # 0x245d11
xorl %eax, %eax
pushq %rbx
pushq %r10
pushq %r11
pushq %r13
callq 0x22b0
addq $0x20, %rsp
leal (,%r13,2), %edi
movq 0x8(%r14), %rax
movq 0x28(%r14), %rcx
movq (%rcx,%rdi,8), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %rsi, %rdx
je 0x2b048
movq %rdi, 0x20(%rsp)
movq %r14, 0x28(%rsp)
shrq $0x20, %rsi
movq %r13, 0x30(%rsp)
movl %r13d, %r12d
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
movq %r12, 0x8(%rsp)
leal 0x1(%r12), %ecx
movq %rcx, (%rsp)
imulq $0x18, %rsi, %rcx
leaq (%rcx,%rax), %rbp
addq $0x10, %rbp
imulq $0x18, %rdx, %r12
xorl %r15d, %r15d
movl -0x8(%rbp,%r15), %eax
movl %eax, %ecx
shrl %ecx
cmpl %ebx, %ecx
je 0x2afa4
addq $0x18, %r15
cmpq %r15, %r12
jne 0x2af89
jmp 0x2b031
movq 0x26a035(%rip), %rcx    # 0x294fe0
movq (%rcx), %rdi
leaq 0x26b27b(%rip), %rcx    # 0x296230
movq 0x8(%rcx), %r10
movq 0x40(%rcx), %rdx
movq (%rsp), %rcx
movl (%rdx,%rcx,8), %ecx
movq 0x8(%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 0x2072de(%rip), %rdx    # 0x2322d3
movsbl (%rax,%rdx), %r13d
movzwl (%rbp,%r15), %r14d
andl $0x3fff, %r14d          # imm = 0x3FFF
leaq 0x21ad13(%rip), %rsi    # 0x245d21
leaq 0x21acfc(%rip), %rdx    # 0x245d11
pushq $0x2b
popq %r9
xorl %eax, %eax
pushq %r14
pushq %r13
pushq %r10
pushq %r11
callq 0x22b0
addq $0x20, %rsp
jmp 0x2af96
movq 0x28(%rsp), %rcx
movq 0x8(%rcx), %rax
movq 0x28(%rcx), %rcx
movq 0x30(%rsp), %r13
movq 0x20(%rsp), %rdi
movl %edi, %edx
movq 0x8(%rcx,%rdx,8), %rcx
testl %ecx, %ecx
je 0x2b12a
movq %rcx, %rdx
shrq $0x20, %rdx
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
leal 0x1(%r13), %esi
movq %rsi, (%rsp)
movl %ecx, %ecx
imulq $0x18, %rdx, %rdx
leaq (%rdx,%rax), %r14
addq $0x10, %r14
imulq $0x18, %rcx, %rbp
xorl %r15d, %r15d
movl -0x8(%r14,%r15), %eax
movl %eax, %ecx
shrl %ecx
cmpl %ebx, %ecx
je 0x2b09d
addq $0x18, %r15
cmpq %r15, %rbp
jne 0x2b082
jmp 0x2b12a
movq 0x269f3c(%rip), %rcx    # 0x294fe0
movq (%rcx), %rdi
leaq 0x26b182(%rip), %rcx    # 0x296230
movq 0x8(%rcx), %r10
movq 0x40(%rcx), %rdx
movq (%rsp), %rcx
movl (%rdx,%rcx,8), %ecx
movq (%rdx,%r13,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 0x2071ea(%rip), %rdx    # 0x2322d3
movsbl (%rax,%rdx), %eax
movq %rax, 0x8(%rsp)
movzwl (%r14,%r15), %r12d
andl $0x3fff, %r12d          # imm = 0x3FFF
leaq 0x21ac1c(%rip), %rsi    # 0x245d21
leaq 0x21ac05(%rip), %rdx    # 0x245d11
pushq $0x2d
popq %r9
xorl %eax, %eax
pushq %r12
pushq 0x10(%rsp)
pushq %r10
pushq %r11
callq 0x22b0
addq $0x20, %rsp
jmp 0x2b08f
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq