// File: Luthaf[P]zeopp/voro++/src/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 0x14b9a
leaq 0x430cc(%rip), %rdi     # 0x57c5c
movl $0x2, %esi
callq 0x1b690
movq 0x5143f(%rip), %rax     # 0x65fe0
movq (%rax), %rdi
movl -0x14(%rbp), %edx
leaq 0x430e7(%rip), %rsi     # 0x57c95
movb $0x0, %al
callq 0x21a0
movslq -0x14(%rbp), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, -0x20(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x30(%rbp), %rcx
movl -0x18(%rbp), %eax
cmpl 0xc(%rcx), %eax
jge 0x14c16
movq -0x30(%rbp), %rax
movq 0x60(%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 0x14be5
jmp 0x14c18
movl -0x18(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x14c3b
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 0x14c18
movq -0x30(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x14c56
movq -0x38(%rbp), %rdi
callq 0x2180
movq -0x30(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, 0x60(%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 0x2030
movq %rax, -0x28(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x30(%rbp), %rcx
movl -0x18(%rbp), %eax
cmpl 0xc(%rcx), %eax
jge 0x14cc5
movq -0x30(%rbp), %rax
movq 0x70(%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 0x14c92
movq -0x30(%rbp), %rax
movq 0x70(%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x14ce0
movq -0x40(%rbp), %rdi
callq 0x2180
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rcx, 0x70(%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 0x2030
movq %rax, -0x20(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x30(%rbp), %rcx
movl -0x18(%rbp), %eax
cmpl 0xc(%rcx), %eax
jge 0x14d4d
movq -0x30(%rbp), %rax
movq 0x68(%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 0x14d1c
jmp 0x14d4f
movl -0x18(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x14d72
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 0x14d4f
movq -0x30(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
je 0x14d8d
movq -0x48(%rbp), %rdi
callq 0x2180
movq -0x30(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, 0x68(%rax)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x1b230
movq -0x30(%rbp), %rax
movl -0x14(%rbp), %ecx
movl %ecx, 0xc(%rax)
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop