// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/ecovlp.cpp
// Function: del_cns_g_nn(cns_gfa*, unsigned int)
void del_cns_g_nn(cns_gfa *cns, uint32_t v)
{
    uint32_t w, vk, wk; cns_t *av = &((*cns).a[v]), *aw = NULL;

    for (vk = 0; vk < av->arc.nou; vk++) {///out-edge of src
        if(del_cns_arc((*av), vk)) continue;
        w = av->arc.a[vk].v; av->arc.a[vk].v = CNS_DEL_E;

        aw = &((*cns).a[w]);
        for (wk = aw->arc.nou; wk < aw->arc.n; wk++) {///in-edge of des
            if((aw->arc.a[wk].v != v) || (del_cns_arc((*aw), wk))) continue;
            aw->arc.a[wk].v = CNS_DEL_E; break;
        }
        assert(wk < aw->arc.n);
    }

    for (vk = av->arc.nou; vk < av->arc.n; vk++) {///in-edge of src
        if(del_cns_arc((*av), vk)) continue;
        w = av->arc.a[vk].v; av->arc.a[vk].v = CNS_DEL_E;

        aw = &((*cns).a[w]);
        for (wk = 0; wk < aw->arc.nou; wk++) {///out-edge of des
            if((aw->arc.a[wk].v != v) || (del_cns_arc((*aw), wk))) continue;
            aw->arc.a[wk].v = CNS_DEL_E; break;
        }
        assert(wk < aw->arc.n);
    }


    cns->a[v].arc.n = cns->a[v].arc.nou = 0;
    cns->a[v].c = cns->a[v].f = 0; cns->a[v].sc = CNS_DEL_V;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rcx
movl %esi, %eax
imulq $0x28, %rax, %rax
addq %rax, %rcx
addq $0x8, %rcx
xorl %edx, %edx
movl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movl %edx, %edx
movq 0x10(%rcx), %r8
cmpq %rdx, %r8
jbe 0x13f2e3
movq 0x18(%rcx), %r8
movl (%r8,%rdx,8), %ebx
movq %rbx, %r11
andq %r9, %r11
cmpq %r9, %r11
je 0x13f2dc
orl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
movl %ebx, (%r8,%rdx,8)
movq 0x10(%rdi), %r8
imulq $0x28, %r11, %r11
leaq (%r8,%r11), %rbx
addq $0x8, %rbx
movl 0x10(%rbx), %r15d
movq (%rbx), %r11
movl %r15d, %r8d
cmpq %r8, %r11
jbe 0x13f2d3
movq 0x18(%rbx), %r14
movl (%r14,%r8,8), %ebp
movl %ebp, %r15d
andl %r10d, %r15d
cmpl %esi, %r15d
setne %r12b
cmpl %r10d, %r15d
sete %r13b
orb %r12b, %r13b
leal 0x1(%r8), %r15d
testb %r13b, %r13b
jne 0x13f296
orl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl %ebp, (%r14,%r8,8)
movq (%rbx), %r11
cmpq %r8, %r11
jbe 0x13f3a0
incl %edx
jmp 0x13f253
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movl %r8d, %r8d
cmpq %r8, (%rcx)
jbe 0x13f36d
movq 0x18(%rcx), %r10
movl (%r10,%r8,8), %ebx
movq %rbx, %r11
andq %rdx, %r11
cmpq %rdx, %r11
je 0x13f368
orl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
movl %ebx, (%r10,%r8,8)
movq 0x10(%rdi), %r10
imulq $0x28, %r11, %r11
addq %r11, %r10
addq $0x8, %r10
movq 0x10(%r10), %rbx
xorl %r15d, %r15d
movl %r15d, %r11d
cmpq %r11, %rbx
jbe 0x13f363
movq 0x18(%r10), %r14
movl (%r14,%r11,8), %ebp
movl %ebp, %r15d
andl %r9d, %r15d
cmpl %esi, %r15d
setne %r12b
cmpl %r9d, %r15d
sete %r13b
orb %r12b, %r13b
leal 0x1(%r11), %r15d
testb %r13b, %r13b
jne 0x13f329
orl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl %ebp, (%r14,%r11,8)
cmpq %r11, (%r10)
jbe 0x13f3bf
incl %r8d
jmp 0x13f2ee
movq 0x10(%rdi), %rcx
andq $0x0, 0x18(%rcx,%rax)
andq $0x0, 0x8(%rcx,%rax)
andb $-0x5, (%rcx,%rax)
movq 0x10(%rdi), %rcx
andl $-0x4, (%rcx,%rax)
movq 0x10(%rdi), %rcx
orl $-0x8, (%rcx,%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb0cc7(%rip), %rdi     # 0x1f006e
leaq 0xb0b4d(%rip), %rsi     # 0x1efefb
leaq 0xb0cc8(%rip), %rcx     # 0x1f007d
movl $0x4fd, %edx            # imm = 0x4FD
callq 0x2110
leaq 0xb0ca8(%rip), %rdi     # 0x1f006e
leaq 0xb0b2e(%rip), %rsi     # 0x1efefb
leaq 0xb0ca9(%rip), %rcx     # 0x1f007d
movl $0x509, %edx            # imm = 0x509
callq 0x2110