// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: dbg_spec_edge(asg_t*, unsigned int, unsigned int)
void dbg_spec_edge(asg_t *g, uint32_t s, uint32_t e)
{
    asg_arc_t *av; uint32_t an, k, v, w;

    if(s >= g->n_seq) return;

    v = s<<1;
    av = asg_arc_a(g, v); an = asg_arc_n(g, v);
    for (k = 0; k < an; k++) {
        if(av[k].del) continue;
        if((av[k].v>>1) == e) {
            w = av[k].v;
            fprintf(stderr, "[M::%s]\tL\tutg%.6dl\t%c\tutg%.6dl\t%c\t%dM\tL1:i:%d\tL2:i:%u\n", __func__,
            (v>>1)+1, "+-"[v&1], (w>>1)+1, "+-"[w&1], av[k].ol, asg_arc_len(av[k]), 0/**au[j].ou**/);
        }
    }

    v = (s<<1)+1;
    av = asg_arc_a(g, v); an = asg_arc_n(g, v);
    for (k = 0; k < an; k++) {
        if(av[k].del) continue;
        if((av[k].v>>1) == e) {
            w = av[k].v;
            fprintf(stderr, "[M::%s]\tL\tutg%.6dl\t%c\tutg%.6dl\t%c\t%dM\tL1:i:%d\tL2:i:%u\n", __func__,
            (v>>1)+1, "+-"[v&1], (w>>1)+1, "+-"[w&1], av[k].ol, asg_arc_len(av[k]), 0/**au[j].ou**/);
        }
    }
    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x48, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x14(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jb 0x14c84c
jmp 0x14caef
movl -0x14(%rbp), %eax
shll %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x2c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jae 0x14c99c
movq -0x20(%rbp), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x14c8bd
jmp 0x14c98e
movq -0x20(%rbp), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
cmpl -0x18(%rbp), %eax
jne 0x14c98c
movq -0x20(%rbp), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x30(%rbp)
movq 0x2776ec(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movl -0x2c(%rbp), %ecx
shrl %ecx
addl $0x1, %ecx
movl -0x2c(%rbp), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %edx
leaq 0x23658b(%rip), %rax    # 0x382e9b
movsbl (%rax,%rdx), %r8d
movl -0x30(%rbp), %r9d
shrl %r9d
addl $0x1, %r9d
movl -0x30(%rbp), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %edx
leaq 0x23656a(%rip), %rax    # 0x382e9b
movsbl (%rax,%rdx), %r11d
movq -0x20(%rbp), %rax
movl -0x28(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movl 0xc(%rax), %r10d
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movq -0x20(%rbp), %rax
movl -0x28(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq (%rax), %rax
leaq 0x23caec(%rip), %rsi    # 0x389453
leaq 0x23cb1c(%rip), %rdx    # 0x38948a
xorl %ebx, %ebx
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movb $0x0, %al
callq 0x22a0
jmp 0x14c98e
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x14c893
movl -0x14(%rbp), %eax
shll %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x2c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jae 0x14caef
movq -0x20(%rbp), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x14ca10
jmp 0x14cae1
movq -0x20(%rbp), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
cmpl -0x18(%rbp), %eax
jne 0x14cadf
movq -0x20(%rbp), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x30(%rbp)
movq 0x277599(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movl -0x2c(%rbp), %ecx
shrl %ecx
addl $0x1, %ecx
movl -0x2c(%rbp), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %edx
leaq 0x236438(%rip), %rax    # 0x382e9b
movsbl (%rax,%rdx), %r8d
movl -0x30(%rbp), %r9d
shrl %r9d
addl $0x1, %r9d
movl -0x30(%rbp), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %edx
leaq 0x236417(%rip), %rax    # 0x382e9b
movsbl (%rax,%rdx), %r11d
movq -0x20(%rbp), %rax
movl -0x28(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movl 0xc(%rax), %r10d
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movq -0x20(%rbp), %rax
movl -0x28(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq (%rax), %rax
leaq 0x23c999(%rip), %rsi    # 0x389453
leaq 0x23c9c9(%rip), %rdx    # 0x38948a
xorl %ebx, %ebx
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movb $0x0, %al
callq 0x22a0
jmp 0x14cae1
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x14c9e6
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
nopw %cs:(%rax,%rax)