// File: chhylp123[P]hifiasm/gfa_ut.cpp
// Function: debug_sysm_usg_t(usg_t*, char const*)
void debug_sysm_usg_t(usg_t *ng, const char *cmd) 
{
    uint32_t v, i; usg_arc_t *p, *q; uint32_t nv;
    for (v = 0; v < (ng->n<<1); v++) {
        p = usg_arc_a(ng, v); nv = usg_arc_n(ng, v);
        for (i = 0; i < nv; i++) {
            q = get_usg_arc(ng, p[i].v^1, v^1);
            if((!q) || (p[i].del != q->del)) {
                fprintf(stderr, "[M::%s::%s] utg%.6dl(%c)%u -> utg%.6dl(%c)%u, p->del::%u, q->del::%u\n", 
                __func__, cmd, 
                (int32_t)(v>>1)+1, "+-"[v&1], v, 
                (int32_t)(p[i].v>>1)+1, "+-"[p[i].v&1], p[i].v, 
                p[i].del, q?q->del:1);
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x20(%rbp), %rcx
movq 0x8(%rcx), %rcx
shlq %rcx
cmpq %rcx, %rax
jae 0x3588da
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl -0x2c(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movl -0x2c(%rbp), %ecx
andl $0x1, %ecx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl -0x2c(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movl -0x2c(%rbp), %ecx
andl $0x1, %ecx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movl %eax, -0x44(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x44(%rbp), %eax
jae 0x3588ca
movq -0x20(%rbp), %rdi
movq -0x38(%rbp), %rax
movl -0x30(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movl -0x2c(%rbp), %edx
xorl $0x1, %edx
callq 0x37d400
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x35879b
movq -0x38(%rbp), %rax
movl -0x30(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
movq -0x40(%rbp), %rcx
movl 0xc(%rcx), %ecx
shrl $0x1f, %ecx
cmpl %ecx, %eax
je 0x3588ba
movq 0x6b83e(%rip), %rax     # 0x3c3fe0
movq (%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x68(%rbp)
movl -0x2c(%rbp), %eax
shrl %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
movl -0x2c(%rbp), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x2a6ce(%rip), %rax     # 0x382e9b
movsbl (%rax,%rcx), %eax
movl %eax, -0x5c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x58(%rbp)
movq -0x38(%rbp), %rax
movl -0x30(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
movq -0x38(%rbp), %rax
movl -0x30(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x2a689(%rip), %rax     # 0x382e9b
movsbl (%rax,%rcx), %eax
movl %eax, -0x50(%rbp)
movq -0x38(%rbp), %rax
movl -0x30(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x4c(%rbp)
movq -0x38(%rbp), %rax
movl -0x30(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
movl %eax, -0x48(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x35885a
movq -0x40(%rbp), %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
movl %eax, -0x74(%rbp)
jmp 0x358864
movl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0x358864
movl -0x48(%rbp), %r10d
movl -0x4c(%rbp), %r11d
movl -0x50(%rbp), %ebx
movl -0x54(%rbp), %r14d
movl -0x58(%rbp), %r15d
movl -0x5c(%rbp), %r9d
movl -0x60(%rbp), %r8d
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rdi
movl -0x74(%rbp), %eax
leaq 0x40e6d(%rip), %rsi     # 0x3996fe
leaq 0x40eac(%rip), %rdx     # 0x399744
movl %r15d, (%rsp)
movl %r14d, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq 0x22a0
jmp 0x3588bc
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x35873b
jmp 0x3588cc
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x3586bf
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax,%rax)