// File: /workspace/github_cpp_makefile_star2_O2/icemiliang[P]vot/src/vot/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[3*k]-pts[3*i];
                uy=pts[3*k+1]-pts[3*i+1];
                uz=pts[3*k+2]-pts[3*i+2];
                vx=pts[3*m]-pts[3*i];
                vy=pts[3*m+1]-pts[3*i+1];
                vz=pts[3*m+2]-pts[3*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
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x17a3a
movq %rax, 0x8(%r14)
pushq $0x1
popq %r12
xorl %r13d, %r13d
movslq 0x18(%rbx), %rax
cmpq %rax, %r12
jge 0x17be7
imulq $0x18, %r12, %rbp
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movslq (%rax,%r12,4), %rcx
cmpq %rcx, %r15
jge 0x17bdf
movq 0x20(%rbx), %rcx
movq (%rcx,%r12,8), %rdx
movslq (%rdx,%r15,4), %r8
testq %r8, %r8
js 0x17bd7
movl %r8d, %esi
notl %esi
movl %esi, (%rdx,%r15,4)
movslq (%rax,%r12,4), %rsi
movslq %r15d, %rdi
addq %rsi, %rdi
movl (%rdx,%rdi,4), %edx
movl (%rax,%r8,4), %esi
decl %esi
leal 0x1(%rdx), %eax
cmpl %edx, %esi
cmovel %r13d, %eax
movq (%rcx,%r8,8), %rcx
movslq %eax, %rdx
movl (%rcx,%rdx,4), %r9d
movl %r9d, %esi
notl %esi
movl %esi, (%rcx,%rdx,4)
movq 0x20(%rbx), %rcx
movq 0x28(%rbx), %rdx
movq 0x30(%rbx), %rsi
xorpd %xmm0, %xmm0
movl %r9d, %edi
movl %r9d, %r9d
cmpq %r9, %r12
je 0x17bbf
movslq %r8d, %r9
movq (%rcx,%r9,8), %r8
movslq (%rdx,%r9,4), %r10
cltq
addq %r10, %rax
movl (%r8,%rax,4), %r10d
movslq %edi, %r8
movl (%rdx,%r8,4), %r11d
decl %r11d
leal 0x1(%r10), %eax
cmpl %r10d, %r11d
cmovel %r13d, %eax
leal (%r9,%r9,2), %r9d
movslq %r9d, %r9
movsd (%rsi,%r9,8), %xmm1
movsd 0x8(%rsi,%r9,8), %xmm4
movsd (%rsi,%rbp), %xmm5
movsd 0x8(%rsi,%rbp), %xmm6
subsd %xmm5, %xmm1
subsd %xmm6, %xmm4
movsd 0x10(%rsi,%r9,8), %xmm2
movsd 0x10(%rsi,%rbp), %xmm7
subsd %xmm7, %xmm2
leal (%rdi,%rdi,2), %r9d
movslq %r9d, %r9
movsd (%rsi,%r9,8), %xmm8
movsd 0x8(%rsi,%r9,8), %xmm3
subsd %xmm5, %xmm8
subsd %xmm6, %xmm3
movsd 0x10(%rsi,%r9,8), %xmm5
subsd %xmm7, %xmm5
movapd %xmm3, %xmm6
mulsd %xmm2, %xmm6
mulsd %xmm8, %xmm2
mulsd %xmm4, %xmm8
mulsd %xmm5, %xmm4
subsd %xmm6, %xmm4
mulsd %xmm1, %xmm5
subsd %xmm5, %xmm2
mulsd %xmm1, %xmm3
subsd %xmm8, %xmm3
mulsd %xmm2, %xmm2
mulsd %xmm4, %xmm4
addsd %xmm2, %xmm4
mulsd %xmm3, %xmm3
addsd %xmm4, %xmm3
sqrtsd %xmm3, %xmm1
addsd %xmm1, %xmm0
movq (%rcx,%r8,8), %r8
movslq %eax, %r10
movl (%r8,%r10,4), %r9d
movl %r9d, %r11d
notl %r11d
movl %r11d, (%r8,%r10,4)
movl %edi, %r8d
jmp 0x17ac3
mulsd 0x2c8e1(%rip), %xmm0    # 0x444a8
movsd %xmm0, (%rsp)
movq %r14, %rdi
movq %rsp, %rsi
callq 0x1f16c
incq %r15
jmp 0x17a55
incq %r12
jmp 0x17a41
movq %rbx, %rdi
callq 0x1ea08
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq