// File: Luthaf[P]zeopp/voro++/src/cell.cc
// Function: voro::voronoicell_base::voronoicell_base(double)
voronoicell_base::voronoicell_base(double max_len_sq) :
	current_vertices(init_vertices), current_vertex_order(init_vertex_order),
	current_delete_size(init_delete_size), current_delete2_size(init_delete2_size),
	current_xsearch_size(init_xsearch_size),
	ed(new int*[current_vertices]), nu(new int[current_vertices]),
	mask(new unsigned int[current_vertices]),
	pts(new double[current_vertices<<2]), tol(tolerance*max_len_sq),
	tol_cu(tol*sqrt(tol)), big_tol(big_tolerance_fac*tol), mem(new int[current_vertex_order]),
	mec(new int[current_vertex_order]),
	mep(new int*[current_vertex_order]), ds(new int[current_delete_size]),
	stacke(ds+current_delete_size), ds2(new int[current_delete2_size]),
	stacke2(ds2+current_delete2_size), xse(new int[current_xsearch_size]),
	stacke3(xse+current_xsearch_size), maskc(0) {
	int i;
	for(i=0;i<current_vertices;i++) mask[i]=0;
	for(i=0;i<3;i++) {
		mem[i]=init_n_vertices;mec[i]=0;
		mep[i]=new int[init_n_vertices*((i<<1)+1)];
	}
	mem[3]=init_3_vertices;mec[3]=0;
	mep[3]=new int[init_3_vertices*7];
	for(i=4;i<current_vertex_order;i++) {
		mem[i]=init_n_vertices;mec[i]=0;
		mep[i]=new int[init_n_vertices*((i<<1)+1)];
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
leaq 0x5eae8(%rip), %rcx     # 0x65c18
addq $0x10, %rcx
movq %rcx, (%rax)
movl $0x100, 0x8(%rax)       # imm = 0x100
movl $0x40, 0xc(%rax)
movl $0x100, 0x10(%rax)      # imm = 0x100
movl $0x100, 0x14(%rax)      # imm = 0x100
movl $0x20, 0x18(%rax)
movslq 0x8(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x28(%rax)
movslq 0x8(%rax), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x30(%rax)
movslq 0x8(%rax), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x38(%rax)
movl 0x8(%rax), %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, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x40(%rax)
movsd 0x4ede2(%rip), %xmm0    # 0x56008
mulsd -0x10(%rbp), %xmm0
movsd %xmm0, 0x48(%rax)
movsd 0x48(%rax), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd 0x48(%rax), %xmm0
callq 0x20f0
movq -0x20(%rbp), %rax
movaps %xmm0, %xmm1
movsd -0x28(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x50(%rax)
movsd 0x5039f(%rip), %xmm0    # 0x57600
mulsd 0x48(%rax), %xmm0
movsd %xmm0, 0x58(%rax)
movslq 0xc(%rax), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x60(%rax)
movslq 0xc(%rax), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x68(%rax)
movslq 0xc(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x70(%rax)
movslq 0x10(%rax), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x78(%rax)
movq 0x78(%rax), %rcx
movslq 0x10(%rax), %rdx
shlq $0x2, %rdx
addq %rdx, %rcx
movq %rcx, 0x88(%rax)
movslq 0x14(%rax), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x90(%rax)
movq 0x90(%rax), %rcx
movslq 0x14(%rax), %rdx
shlq $0x2, %rdx
addq %rdx, %rcx
movq %rcx, 0xa0(%rax)
movslq 0x18(%rax), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0xa8(%rax)
movq 0xa8(%rax), %rcx
movslq 0x18(%rax), %rdx
shlq $0x2, %rdx
addq %rdx, %rcx
movq %rcx, 0xb8(%rax)
movl $0x0, 0xc0(%rax)
movl $0x0, -0x14(%rbp)
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x8(%rcx), %eax
jge 0x7414
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x14(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x73ea
movl $0x0, -0x14(%rbp)
cmpl $0x3, -0x14(%rbp)
jge 0x748f
movq -0x20(%rbp), %rax
movq 0x60(%rax), %rcx
movslq -0x14(%rbp), %rdx
movl $0x8, (%rcx,%rdx,4)
movq 0x68(%rax), %rax
movslq -0x14(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x14(%rbp), %eax
shll %eax
addl $0x1, %eax
shll $0x3, %eax
cltq
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, %rdx
movq -0x20(%rbp), %rax
movq 0x70(%rax), %rax
movslq -0x14(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x741b
movq -0x20(%rbp), %rax
movq 0x60(%rax), %rcx
movl $0x100, 0xc(%rcx)       # imm = 0x100
movq 0x68(%rax), %rax
movl $0x0, 0xc(%rax)
movl $0x1c00, %edi           # imm = 0x1C00
callq 0x2030
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq 0x70(%rax), %rax
movq %rcx, 0x18(%rax)
movl $0x4, -0x14(%rbp)
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0xc(%rcx), %eax
jge 0x7543
movq -0x20(%rbp), %rax
movq 0x60(%rax), %rcx
movslq -0x14(%rbp), %rdx
movl $0x8, (%rcx,%rdx,4)
movq 0x68(%rax), %rax
movslq -0x14(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x14(%rbp), %eax
shll %eax
addl $0x1, %eax
shll $0x3, %eax
cltq
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x2030
movq %rax, %rdx
movq -0x20(%rbp), %rax
movq 0x70(%rax), %rax
movslq -0x14(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x74c9
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)