// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/voro++/src/cell.cc
// Function: voro::voronoicell_base::face_areas(std::vector<double, std::allocator<double>>&)
void voronoicell_base::face_areas(std::vector<double> &v) {
	double area;
	v.clear();
	int i,j,k,l,m,n;
	double ux,uy,uz,vx,vy,vz,wx,wy,wz;
	for(i=1;i<p;i++) for(j=0;j<nu[i];j++) {
		k=ed[i][j];
		if(k>=0) {
			area=0;
			ed[i][j]=-1-k;
			l=cycle_up(ed[i][nu[i]+j],k);
			m=ed[k][l];ed[k][l]=-1-m;
			while(m!=i) {
				n=cycle_up(ed[k][nu[k]+l],m);
				ux=pts[4*k]-pts[4*i];
				uy=pts[4*k+1]-pts[4*i+1];
				uz=pts[4*k+2]-pts[4*i+2];
				vx=pts[4*m]-pts[4*i];
				vy=pts[4*m+1]-pts[4*i+1];
				vz=pts[4*m+2]-pts[4*i+2];
				wx=uy*vz-uz*vy;
				wy=uz*vx-ux*vz;
				wz=ux*vy-uy*vx;
				area+=sqrt(wx*wx+wy*wy+wz*wz);
				k=m;l=n;
				m=ed[k][l];ed[k][l]=-1-m;
			}
			v.push_back(0.125*area);
		}
	}
	reset_edges();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x90cd
movq %rax, 0x8(%r14)
movl 0x1c(%rbx), %ecx
cmpl $0x2, %ecx
jl 0x9316
movq 0x30(%rbx), %rax
movl $0x1, %r12d
xorl %r13d, %r13d
cmpl $0x0, (%rax,%r12,4)
jle 0x9307
leaq (%rax,%r12,4), %rdx
leaq (,%r12,4), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x1(,%r12,4), %rcx
movq %rcx, 0x10(%rsp)
leaq 0x2(,%r12,4), %rcx
movq %rcx, 0x8(%rsp)
xorl %r15d, %r15d
movq 0x28(%rbx), %rcx
movq (%rcx,%r12,8), %rsi
movslq (%rsi,%r15,4), %r8
testq %r8, %r8
js 0x92f1
movl %r8d, %edi
notl %edi
movl %edi, (%rsi,%r15,4)
movslq (%rdx), %rdx
movslq %r15d, %rdi
addq %rdx, %rdi
movl (%rsi,%rdi,4), %edx
movl (%rax,%r8,4), %edi
decl %edi
leal 0x1(%rdx), %esi
cmpl %edx, %edi
cmovel %r13d, %esi
movq (%rcx,%r8,8), %r9
movslq %esi, %rdi
movl (%r9,%rdi,4), %edx
movl %edx, %r10d
notl %r10d
movl %r10d, (%r9,%rdi,4)
xorpd %xmm0, %xmm0
cmpq %rdx, %r12
je 0x92c2
movq 0x40(%rbx), %rdi
movq 0x18(%rsp), %r10
movsd (%rdi,%r10,8), %xmm1
movq 0x10(%rsp), %r10
movsd (%rdi,%r10,8), %xmm2
movq 0x8(%rsp), %r10
movsd (%rdi,%r10,8), %xmm3
movslq %r8d, %r10
movslq (%rax,%r10,4), %r8
movslq %esi, %rsi
addq %r8, %rsi
movl (%r9,%rsi,4), %r9d
movslq %edx, %r8
movl (%rax,%r8,4), %r11d
decl %r11d
leal 0x1(%r9), %esi
cmpl %r9d, %r11d
cmovel %r13d, %esi
leal (,%r10,4), %r9d
movslq %r9d, %r9
movsd (%rdi,%r9,8), %xmm4
leal 0x1(,%r10,4), %r9d
movslq %r9d, %r9
movsd (%rdi,%r9,8), %xmm6
leal 0x2(,%r10,4), %r9d
movslq %r9d, %r9
movsd (%rdi,%r9,8), %xmm5
leal (,%r8,4), %r9d
movslq %r9d, %r9
movsd (%rdi,%r9,8), %xmm7
leal 0x1(,%r8,4), %r9d
movslq %r9d, %r9
movsd (%rdi,%r9,8), %xmm8
leal 0x2(,%r8,4), %r9d
movslq %r9d, %r9
movsd (%rdi,%r9,8), %xmm9
movq (%rcx,%r8,8), %r9
movslq %esi, %r11
movl (%r9,%r11,4), %r10d
movl %edx, %r8d
movl %r10d, %edx
movl %r10d, %ebp
notl %ebp
movl %ebp, (%r9,%r11,4)
subsd %xmm1, %xmm4
subsd %xmm2, %xmm6
subsd %xmm3, %xmm5
subsd %xmm1, %xmm7
subsd %xmm2, %xmm8
subsd %xmm3, %xmm9
movapd %xmm8, %xmm10
mulsd %xmm5, %xmm10
mulsd %xmm7, %xmm5
mulsd %xmm6, %xmm7
mulsd %xmm9, %xmm6
subsd %xmm10, %xmm6
mulsd %xmm4, %xmm9
subsd %xmm9, %xmm5
mulsd %xmm4, %xmm8
subsd %xmm7, %xmm8
mulsd %xmm5, %xmm5
mulsd %xmm6, %xmm6
addsd %xmm5, %xmm6
mulsd %xmm8, %xmm8
addsd %xmm6, %xmm8
xorps %xmm4, %xmm4
sqrtsd %xmm8, %xmm4
addsd %xmm4, %xmm0
cmpq %r10, %r12
jne 0x919f
mulsd 0x2f78e(%rip), %xmm0    # 0x38a50
movsd %xmm0, 0x20(%rsp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x92e0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r14)
jmp 0x92f1
movq %r14, %rdi
leaq 0x20(%rsp), %rdx
callq 0x11ebc
movq 0x30(%rbx), %rax
incq %r15
leaq (%rax,%r12,4), %rdx
movslq (%rdx), %rcx
cmpq %rcx, %r15
jl 0x911f
movl 0x1c(%rbx), %ecx
incq %r12
movslq %ecx, %rdx
cmpq %rdx, %r12
jl 0x90e6
testl %ecx, %ecx
jle 0x937f
movq 0x30(%rbx), %rax
xorl %r15d, %r15d
leaq 0x2fb8d(%rip), %r14     # 0x38eb5
cmpl $0x0, (%rax,%r15,4)
jle 0x9374
movq 0x28(%rbx), %rcx
movq (%rcx,%r15,8), %rcx
xorl %r12d, %r12d
movl (%rcx,%r12,4), %edx
testl %edx, %edx
js 0x935f
movq %r14, %rdi
movl $0x3, %esi
callq 0x133c5
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %rax
movq (%rcx,%r15,8), %rcx
movl (%rcx,%r12,4), %edx
notl %edx
movl %edx, (%rcx,%r12,4)
incq %r12
movslq (%rax,%r15,4), %rdx
cmpq %rdx, %r12
jl 0x933a
movl 0x1c(%rbx), %ecx
incq %r15
movslq %ecx, %rdx
cmpq %rdx, %r15
jl 0x9328
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq