// File: Luthaf[P]zeopp/voro++/src/cell.cc
// Function: void voro::voronoicell_base::add_memory_vertices<voro::voronoicell>(voro::voronoicell&)
void voronoicell_base::add_memory_vertices(vc_class &vc) {
	int i=(current_vertices<<1),j,**pp,*pnu;
	unsigned int* pmask;
	if(i>max_vertices) voro_fatal_error("Vertex memory allocation exceeded absolute maximum",VOROPP_MEMORY_ERROR);
#if VOROPP_VERBOSE >=2
	fprintf(stderr,"Vertex memory scaled up to %d\n",i);
#endif
	double *ppts;
	pp=new int*[i];
	for(j=0;j<current_vertices;j++) pp[j]=ed[j];
	delete [] ed;ed=pp;
	vc.n_add_memory_vertices(i);
	pnu=new int[i];
	for(j=0;j<current_vertices;j++) pnu[j]=nu[j];
	delete [] nu;nu=pnu;
	pmask=new unsigned int[i];
	for(j=0;j<current_vertices;j++) pmask[j]=mask[j];
	while(j<i) pmask[j++]=0;
	delete [] mask;mask=pmask;
	ppts=new double[i<<2];
	for(j=0;j<(current_vertices<<2);j++) ppts[j]=pts[j];
	delete [] pts;pts=ppts;
	current_vertices=i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movl 0x8(%rax), %eax
shll %eax
movl %eax, -0x14(%rbp)
cmpl $0x1000000, -0x14(%rbp) # imm = 0x1000000
jle 0x1520a
leaq 0x42b57(%rip), %rdi     # 0x57d57
movl $0x2, %esi
callq 0x1b690
movq 0x50dcf(%rip), %rax     # 0x65fe0
movq (%rax), %rdi
movl -0x14(%rbp), %edx
leaq 0x42b6c(%rip), %rsi     # 0x57d8a
movb $0x0, %al
callq 0x21a0
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, -0x20(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x40(%rbp), %rcx
movl -0x18(%rbp), %eax
cmpl 0x8(%rcx), %eax
jge 0x15288
movq -0x40(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x20(%rbp), %rax
movslq -0x18(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x15255
movq -0x40(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
je 0x152a3
movq -0x48(%rbp), %rdi
callq 0x2180
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, 0x28(%rax)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x1b290
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, -0x28(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x40(%rbp), %rcx
movl -0x18(%rbp), %eax
cmpl 0x8(%rcx), %eax
jge 0x1531c
movq -0x40(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x18(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x28(%rbp), %rax
movslq -0x18(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x152eb
movq -0x40(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
je 0x15337
movq -0x50(%rbp), %rdi
callq 0x2180
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rcx, 0x30(%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, -0x30(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x40(%rbp), %rcx
movl -0x18(%rbp), %eax
cmpl 0x8(%rcx), %eax
jge 0x153a4
movq -0x40(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x18(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x30(%rbp), %rax
movslq -0x18(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x15373
jmp 0x153a6
movl -0x18(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x153c9
movq -0x30(%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 0x153a6
movq -0x40(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
je 0x153e4
movq -0x58(%rbp), %rdi
callq 0x2180
movq -0x40(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, 0x38(%rax)
movl -0x14(%rbp), %eax
shll $0x2, %eax
cltq
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, -0x38(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x40(%rbp), %rcx
movl -0x18(%rbp), %eax
movl 0x8(%rcx), %ecx
shll $0x2, %ecx
cmpl %ecx, %eax
jge 0x1545e
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x18(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x38(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x15424
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x60(%rbp)
cmpq $0x0, %rax
je 0x15479
movq -0x60(%rbp), %rdi
callq 0x2180
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, 0x40(%rax)
movl -0x14(%rbp), %ecx
movl %ecx, 0x8(%rax)
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)