// File: /workspace/github_cpp_makefile_star2_O2/icemiliang[P]vot/src/vot/cell.cc
// Function: bool voro::voronoicell_base::delete_connection<voro::voronoicell_neighbor>(voro::voronoicell_neighbor&, int, int, bool)
inline bool voronoicell_base::delete_connection(vc_class &vc,int j,int k,bool hand) {
    int q=hand?k:cycle_up(k,j);
    int i=nu[j]-1,l,*edp,*edd,m;
#if VOROPP_VERBOSE >=1
    if(i<1) {
        fputs("Zero order vertex formed\n",stderr);
        return false;
    }
#endif
    if(mec[i]==mem[i]) add_memory(vc,i,ds2);
    vc.n_set_aux1(i);
    for(l=0;l<q;l++) vc.n_copy_aux1(j,l);
    while(l<i) {
        vc.n_copy_aux1_shift(j,l);
        l++;
    }
    edp=mep[i]+((i<<1)+1)*mec[i]++;
    edp[i<<1]=j;
    for(l=0;l<k;l++) {
        edp[l]=ed[j][l];
        edp[l+i]=ed[j][l+nu[j]];
    }
    while(l<i) {
        m=ed[j][l+1];
        edp[l]=m;
        k=ed[j][l+nu[j]+1];
        edp[l+i]=k;
        ed[m][nu[m]+k]--;
        l++;
    }

    edd=mep[nu[j]]+((nu[j]<<1)+1)*--mec[nu[j]];
    for(l=0;l<=(nu[j]<<1);l++) ed[j][l]=edd[l];
    vc.n_set_aux2_copy(j,nu[j]);
    vc.n_set_to_aux2(edd[nu[j]<<1]);
    vc.n_set_to_aux1(j);
    ed[edd[nu[j]<<1]]=edd;
    ed[j]=edp;
    nu[j]=i;
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r12d
movq %rdi, %r11
movl %edx, 0xc(%rsp)
movslq %edx, %r13
movq 0x28(%rdi), %rax
movslq (%rax,%r13,4), %r15
leaq -0x1(%r15), %r14
leal 0x1(%r12), %ebp
xorl %ebx, %ebx
cmpl %ecx, %r14d
cmovel %ebx, %ebp
movq 0x38(%rdi), %rax
testl %r8d, %r8d
cmovnel %ecx, %ebp
movq 0x40(%rdi), %rcx
movl -0x4(%rcx,%r15,4), %ecx
cmpl -0x4(%rax,%r15,4), %ecx
movq %rsi, (%rsp)
jne 0x201f5
movq 0x60(%r11), %rcx
movq %r11, %rdi
movq (%rsp), %rsi
movl %r14d, %edx
movq %r11, 0x10(%rsp)
callq 0x1e3ac
movq (%rsp), %rsi
movq 0x10(%rsp), %r11
movq 0x40(%rsi), %rax
movq 0xa0(%rsi), %rcx
movl -0x4(%rax,%r15,4), %eax
imull %r14d, %eax
cltq
shlq $0x2, %rax
addq -0x8(%rcx,%r15,8), %rax
movq %rax, 0xb0(%rsi)
movq 0xa8(%rsi), %rcx
testl %ebp, %ebp
cmovlel %ebx, %ebp
cmpq %rbx, %rbp
je 0x2023b
movq (%rcx,%r13,8), %rdx
movl (%rdx,%rbx,4), %edx
movl %edx, (%rax,%rbx,4)
incq %rbx
jmp 0x20227
movq 0xa8(%rsi), %rcx
movl 0xc(%rsp), %esi
cmpq %r14, %rbp
jge 0x2025b
movq (%rcx,%r13,8), %rdx
movl 0x4(%rdx,%rbp,4), %edx
movl %edx, (%rax,%rbp,4)
incq %rbp
jmp 0x20246
movq 0x40(%r11), %rax
movq 0x48(%r11), %rcx
leal (%r14,%r14), %edx
leal 0x1(,%r14,2), %r9d
movl -0x4(%rax,%r15,4), %edi
leal 0x1(%rdi), %r8d
imull %r9d, %edi
movslq %edi, %rbp
shlq $0x2, %rbp
addq -0x8(%rcx,%r15,8), %rbp
movl %r8d, -0x4(%rax,%r15,4)
movslq %edx, %rdx
movl %esi, (%rbp,%rdx,4)
movq 0x20(%r11), %rbx
movq 0x28(%r11), %rdi
xorl %r8d, %r8d
testl %r12d, %r12d
cmovlel %r8d, %r12d
leaq (,%r14,4), %rdx
addq %rbp, %rdx
cmpq %r8, %r12
je 0x202d7
movq (%rbx,%r13,8), %r9
leaq (%r9,%r8,4), %r9
movl (%r9), %r10d
movl %r10d, (%rbp,%r8,4)
movslq (%rdi,%r13,4), %r10
movl (%r9,%r10,4), %r9d
movl %r9d, (%rdx,%r8,4)
incq %r8
jmp 0x202b1
movq 0x20(%r11), %rbx
movq 0x28(%r11), %rdi
cmpq %r14, %r12
jge 0x20316
movq (%rbx,%r13,8), %r8
leaq (%r8,%r12,4), %r8
movslq 0x4(%r8), %r9
movl %r9d, (%rbp,%r12,4)
movslq (%rdi,%r13,4), %r10
movslq 0x4(%r8,%r10,4), %r8
movl %r8d, (%rdx,%r12,4)
incq %r12
movq (%rbx,%r9,8), %r10
movslq (%rdi,%r9,4), %r9
addq %r8, %r9
decl (%r10,%r9,4)
jmp 0x202df
movq 0x28(%r11), %r9
movslq (%r9,%r13,4), %rdx
leal 0x1(,%rdx,2), %edi
movl (%rax,%rdx,4), %r8d
decl %r8d
imull %r8d, %edi
movslq %edi, %r15
shlq $0x2, %r15
addq (%rcx,%rdx,8), %r15
movl %r8d, (%rax,%rdx,4)
movq 0x20(%r11), %rax
xorl %ecx, %ecx
movl (%r9,%r13,4), %edx
leal (%rdx,%rdx), %edi
movslq %edi, %rdi
cmpq %rdi, %rcx
jg 0x20364
movl (%r15,%rcx,4), %edx
movq (%rax,%r13,8), %rdi
movl %edx, (%rdi,%rcx,4)
incq %rcx
jmp 0x20345
movq (%rsp), %r12
movq %r12, %rdi
movq %r11, %rbx
callq 0x1e6a4
movq 0x28(%rbx), %rax
movl (%rax,%r13,4), %eax
addl %eax, %eax
cltq
movslq (%r15,%rax,4), %rax
movq 0xa8(%r12), %rcx
movq 0xb8(%r12), %rdx
movq %rdx, (%rcx,%rax,8)
movq 0xa8(%r12), %rax
movq 0xb0(%r12), %rcx
movq %rcx, (%rax,%r13,8)
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rcx
movl (%rcx,%r13,4), %ecx
addl %ecx, %ecx
movslq %ecx, %rcx
movslq (%r15,%rcx,4), %rcx
movq %r15, (%rax,%rcx,8)
movq 0x20(%rbx), %rax
movq %rbp, (%rax,%r13,8)
movq 0x28(%rbx), %rax
movl %r14d, (%rax,%r13,4)
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)