// File: /workspace/github_cpp_makefile_star2_O3/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
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x1c92b
movq %rax, 0x8(%r14)
movl 0x18(%rbx), %ecx
cmpl $0x2, %ecx
jl 0x1cb24
movq 0x28(%rbx), %rax
movl $0x1, %r12d
xorl %r13d, %r13d
cmpl $0x0, (%rax,%r12,4)
jle 0x1cb15
leaq (%rax,%r12,4), %rdx
leaq (,%r12,8), %rcx
leaq (%rcx,%rcx,2), %rcx
movq %rcx, 0x8(%rsp)
xorl %r15d, %r15d
movq 0x20(%rbx), %rcx
movq (%rcx,%r12,8), %rsi
movslq (%rsi,%r15,4), %r8
testq %r8, %r8
js 0x1caff
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 0x1cad0
movq 0x30(%rbx), %rdi
movq 0x8(%rsp), %r10
movsd (%rdi,%r10), %xmm1
movsd 0x8(%rdi,%r10), %xmm2
movsd 0x10(%rdi,%r10), %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,%r10,2), %r9d
movslq %r9d, %r9
movsd (%rdi,%r9,8), %xmm4
movsd 0x8(%rdi,%r9,8), %xmm6
movsd 0x10(%rdi,%r9,8), %xmm5
leal (%r8,%r8,2), %r9d
movslq %r9d, %r9
movsd (%rdi,%r9,8), %xmm8
movsd 0x8(%rdi,%r9,8), %xmm7
movsd 0x10(%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, %xmm8
subsd %xmm2, %xmm7
subsd %xmm3, %xmm9
movapd %xmm7, %xmm10
mulsd %xmm5, %xmm10
mulsd %xmm8, %xmm5
mulsd %xmm6, %xmm8
mulsd %xmm9, %xmm6
subsd %xmm10, %xmm6
mulsd %xmm4, %xmm9
subsd %xmm9, %xmm5
mulsd %xmm4, %xmm7
subsd %xmm8, %xmm7
mulsd %xmm5, %xmm5
mulsd %xmm6, %xmm6
addsd %xmm5, %xmm6
mulsd %xmm7, %xmm7
addsd %xmm6, %xmm7
xorps %xmm4, %xmm4
sqrtsd %xmm7, %xmm4
addsd %xmm4, %xmm0
cmpq %r10, %r12
jne 0x1c9df
mulsd 0x32c08(%rip), %xmm0    # 0x4f6d8
movsd %xmm0, 0x10(%rsp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x1caee
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r14)
jmp 0x1caff
movq %r14, %rdi
leaq 0x10(%rsp), %rdx
callq 0x26040
movq 0x28(%rbx), %rax
incq %r15
leaq (%rax,%r12,4), %rdx
movslq (%rdx), %rcx
cmpq %rcx, %r15
jl 0x1c967
movl 0x18(%rbx), %ecx
incq %r12
movslq %ecx, %rdx
cmpq %rdx, %r12
jl 0x1c944
testl %ecx, %ecx
jle 0x1cb68
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rdx
xorl %esi, %esi
cmpl $0x0, (%rdx,%rsi,4)
jle 0x1cb5d
movq (%rax,%rsi,8), %rcx
xorl %edi, %edi
movl (%rcx,%rdi,4), %r8d
testl %r8d, %r8d
jns 0x1cb77
notl %r8d
movl %r8d, (%rcx,%rdi,4)
incq %rdi
movslq (%rdx,%rsi,4), %r8
cmpq %r8, %rdi
jl 0x1cb3e
movl 0x18(%rbx), %ecx
incq %rsi
movslq %ecx, %rdi
cmpq %rdi, %rsi
jl 0x1cb32
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7b1e