// File: icemiliang[P]vot/src/vot/cell.cc
// Function: void voro::voronoicell_base::add_memory_vorder<voro::voronoicell>(voro::voronoicell&)
void voronoicell_base::add_memory_vorder(vc_class &vc) {
    int i=(current_vertex_order<<1),j,*p1,**p2;
    if(i>max_vertex_order) voro_fatal_error("Vertex order memory allocation exceeded absolute maximum",VOROPP_MEMORY_ERROR);
#if VOROPP_VERBOSE >=2
    fprintf(stderr,"Vertex order memory scaled up to %d\n",i);
#endif
    p1=new int[i];
    for(j=0;j<current_vertex_order;j++) p1[j]=mem[j];while(j<i) p1[j++]=0;
    delete [] mem;mem=p1;
    p2=new int*[i];
    for(j=0;j<current_vertex_order;j++) p2[j]=mep[j];
    delete [] mep;mep=p2;
    p1=new int[i];
    for(j=0;j<current_vertex_order;j++) p1[j]=mec[j];while(j<i) p1[j++]=0;
    delete [] mec;mec=p1;
    vc.n_add_memory_vorder(i);
    current_vertex_order=i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movl 0xc(%rax), %eax
shll %eax
movl %eax, -0x14(%rbp)
cmpl $0x800, -0x14(%rbp)     # imm = 0x800
jle 0x4b9ba
leaq 0x48c87(%rip), %rdi     # 0x94637
movl $0x2, %esi
callq 0x4c000
movslq -0x14(%rbp), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0xa030
movq %rax, -0x20(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x30(%rbp), %rcx
movl -0x18(%rbp), %eax
cmpl 0xc(%rcx), %eax
jge 0x4ba1b
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x18(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x20(%rbp), %rax
movslq -0x18(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x4b9ea
jmp 0x4ba1d
movl -0x18(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x4ba40
movq -0x20(%rbp), %rax
movl -0x18(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x18(%rbp)
movslq %ecx, %rcx
movl $0x0, (%rax,%rcx,4)
jmp 0x4ba1d
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x4ba5b
movq -0x38(%rbp), %rdi
callq 0xa660
movq -0x30(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, 0x38(%rax)
movslq -0x14(%rbp), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0xa030
movq %rax, -0x28(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x30(%rbp), %rcx
movl -0x18(%rbp), %eax
cmpl 0xc(%rcx), %eax
jge 0x4baca
movq -0x30(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x28(%rbp), %rax
movslq -0x18(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x4ba97
movq -0x30(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x4bae5
movq -0x40(%rbp), %rdi
callq 0xa660
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rcx, 0x48(%rax)
movslq -0x14(%rbp), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0xa030
movq %rax, -0x20(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x30(%rbp), %rcx
movl -0x18(%rbp), %eax
cmpl 0xc(%rcx), %eax
jge 0x4bb52
movq -0x30(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x18(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x20(%rbp), %rax
movslq -0x18(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x4bb21
jmp 0x4bb54
movl -0x18(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x4bb77
movq -0x20(%rbp), %rax
movl -0x18(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x18(%rbp)
movslq %ecx, %rcx
movl $0x0, (%rax,%rcx,4)
jmp 0x4bb54
movq -0x30(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
je 0x4bb92
movq -0x48(%rbp), %rdi
callq 0xa660
movq -0x30(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x54480
movq -0x30(%rbp), %rax
movl -0x14(%rbp), %ecx
movl %ecx, 0xc(%rax)
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)