// File: /workspace/github_cpp_makefile_star2_O1/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 $0x38, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x919d
movq %rax, 0x8(%r15)
movl 0x1c(%rbx), %eax
cmpl $0x2, %eax
jl 0x93fe
movl $0x1, %r12d
xorl %r9d, %r9d
movq %r15, 0x10(%rsp)
movq 0x30(%rbx), %rcx
cmpl $0x0, (%rcx,%r12,4)
jle 0x93ee
leaq (%rcx,%r12,4), %rdx
leaq (,%r12,4), %rax
movq %rax, 0x28(%rsp)
leaq 0x1(,%r12,4), %rax
movq %rax, 0x20(%rsp)
leaq 0x2(,%r12,4), %r14
xorl %r10d, %r10d
movq 0x28(%rbx), %rsi
movq (%rsi,%r12,8), %rdi
movslq (%rdi,%r10,4), %rax
testq %rax, %rax
js 0x93d7
movl %eax, %r8d
notl %r8d
movl %r8d, (%rdi,%r10,4)
movslq (%rdx), %rdx
movq %r10, 0x8(%rsp)
movslq %r10d, %r8
addq %rdx, %r8
movl (%rdi,%r8,4), %edx
movl (%rcx,%rax,4), %ecx
decl %ecx
leal 0x1(%rdx), %ebp
cmpl %edx, %ecx
cmovel %r9d, %ebp
movq (%rsi,%rax,8), %rcx
movslq %ebp, %rdx
movl (%rcx,%rdx,4), %r13d
movl %r13d, %esi
notl %esi
movl %esi, (%rcx,%rdx,4)
xorpd %xmm7, %xmm7
cmpq %r13, %r12
je 0x93a4
movslq %eax, %rcx
movq 0x28(%rbx), %rax
movq 0x30(%rbx), %rdx
movq (%rax,%rcx,8), %rax
movslq (%rdx,%rcx,4), %rsi
movslq %ebp, %rdi
addq %rsi, %rdi
movl (%rax,%rdi,4), %eax
movslq %r13d, %r15
movl (%rdx,%r15,4), %edx
decl %edx
leal 0x1(%rax), %ebp
cmpl %eax, %edx
cmovel %r9d, %ebp
movq 0x40(%rbx), %rax
leal (,%rcx,4), %edx
movslq %edx, %rdx
movsd (%rax,%rdx,8), %xmm1
movq 0x28(%rsp), %rdx
movsd (%rax,%rdx,8), %xmm0
subsd %xmm0, %xmm1
leal 0x1(,%rcx,4), %edx
movslq %edx, %rdx
movsd (%rax,%rdx,8), %xmm3
movq 0x20(%rsp), %rdx
movsd (%rax,%rdx,8), %xmm5
subsd %xmm5, %xmm3
leal 0x2(,%rcx,4), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
movsd (%rax,%r14,8), %xmm6
subsd %xmm6, %xmm2
leal (,%r15,4), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm4
subsd %xmm0, %xmm4
leal 0x1(,%r15,4), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
subsd %xmm5, %xmm0
leal 0x2(,%r15,4), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm5
subsd %xmm6, %xmm5
movapd %xmm0, %xmm6
mulsd %xmm2, %xmm6
mulsd %xmm4, %xmm2
mulsd %xmm3, %xmm4
mulsd %xmm5, %xmm3
subsd %xmm6, %xmm3
mulsd %xmm1, %xmm5
subsd %xmm5, %xmm2
mulsd %xmm1, %xmm0
subsd %xmm4, %xmm0
mulsd %xmm2, %xmm2
mulsd %xmm3, %xmm3
addsd %xmm2, %xmm3
mulsd %xmm0, %xmm0
addsd %xmm3, %xmm0
ucomisd 0x2f6dd(%rip), %xmm0    # 0x38a30
jb 0x935b
sqrtsd %xmm0, %xmm0
jmp 0x936f
movsd %xmm7, 0x18(%rsp)
callq 0x20f0
movsd 0x18(%rsp), %xmm7
xorl %r9d, %r9d
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rcx
movslq %ebp, %rdx
movl (%rcx,%rdx,4), %esi
movl %r13d, %eax
movl %esi, %r13d
movl %esi, %edi
notl %edi
movl %edi, (%rcx,%rdx,4)
addsd %xmm0, %xmm7
cmpq %rsi, %r12
jne 0x924e
mulsd 0x2f641(%rip), %xmm7    # 0x389e0
movq 0x10(%rsp), %r15
movsd %xmm7, 0x30(%rsp)
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x93c2
movsd %xmm7, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r15)
jmp 0x93d2
movq %r15, %rdi
leaq 0x30(%rsp), %rdx
callq 0x11ffa
xorl %r9d, %r9d
movq 0x8(%rsp), %r10
incq %r10
movq 0x30(%rbx), %rcx
leaq (%rcx,%r12,4), %rdx
movslq (%rdx), %rax
cmpq %rax, %r10
jl 0x91ef
incq %r12
movslq 0x1c(%rbx), %rax
cmpq %rax, %r12
jl 0x91b7
testl %eax, %eax
jle 0x945e
xorl %r15d, %r15d
leaq 0x2fa39(%rip), %r14     # 0x38e45
movq 0x30(%rbx), %rax
cmpl $0x0, (%rax,%r15,4)
jle 0x9452
xorl %r12d, %r12d
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rax
cmpl $0x0, (%rax,%r12,4)
js 0x9436
movq %r14, %rdi
movl $0x3, %esi
callq 0x1318d
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rax
notl (%rax,%r12,4)
incq %r12
movq 0x30(%rbx), %rax
movslq (%rax,%r15,4), %rax
cmpq %rax, %r12
jl 0x941a
incq %r15
movslq 0x1c(%rbx), %rax
cmpq %rax, %r15
jl 0x940c
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop