// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x1c87b
movq %rax, 0x8(%r15)
movl 0x18(%rbx), %eax
cmpl $0x2, %eax
jl 0x1ca95
movl $0x1, %r12d
xorl %r9d, %r9d
movq %r15, 0x10(%rsp)
movq 0x28(%rbx), %rcx
cmpl $0x0, (%rcx,%r12,4)
jle 0x1ca85
leaq (%rcx,%r12,4), %rdx
leaq (,%r12,8), %rax
leaq (%rax,%rax,2), %rbp
xorl %r10d, %r10d
movq 0x20(%rbx), %rsi
movq (%rsi,%r12,8), %rdi
movslq (%rdi,%r10,4), %rax
testq %rax, %rax
js 0x1ca6e
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), %r13d
cmpl %edx, %ecx
cmovel %r9d, %r13d
movq (%rsi,%rax,8), %rcx
movslq %r13d, %rdx
movl (%rcx,%rdx,4), %r14d
movl %r14d, %esi
notl %esi
movl %esi, (%rcx,%rdx,4)
xorpd %xmm8, %xmm8
cmpq %r14, %r12
je 0x1ca39
cltq
movq 0x20(%rbx), %rcx
movq 0x28(%rbx), %rdx
movq (%rcx,%rax,8), %rcx
movslq (%rdx,%rax,4), %rsi
movslq %r13d, %rdi
addq %rsi, %rdi
movl (%rcx,%rdi,4), %ecx
movslq %r14d, %r15
movl (%rdx,%r15,4), %edx
decl %edx
leal 0x1(%rcx), %r13d
cmpl %ecx, %edx
cmovel %r9d, %r13d
movq 0x30(%rbx), %rcx
leal (%rax,%rax,2), %eax
cltq
movsd (%rcx,%rax,8), %xmm1
movsd 0x8(%rcx,%rax,8), %xmm3
movsd (%rcx,%rbp), %xmm4
movsd 0x8(%rcx,%rbp), %xmm5
subsd %xmm4, %xmm1
subsd %xmm5, %xmm3
movsd 0x10(%rcx,%rax,8), %xmm2
movsd 0x10(%rcx,%rbp), %xmm6
subsd %xmm6, %xmm2
leal (%r15,%r15,2), %eax
cltq
movsd (%rcx,%rax,8), %xmm7
movsd 0x8(%rcx,%rax,8), %xmm0
subsd %xmm4, %xmm7
subsd %xmm5, %xmm0
movsd 0x10(%rcx,%rax,8), %xmm4
subsd %xmm6, %xmm4
movapd %xmm0, %xmm5
mulsd %xmm2, %xmm5
mulsd %xmm7, %xmm2
mulsd %xmm3, %xmm7
mulsd %xmm4, %xmm3
subsd %xmm5, %xmm3
mulsd %xmm1, %xmm4
subsd %xmm4, %xmm2
mulsd %xmm1, %xmm0
subsd %xmm7, %xmm0
mulsd %xmm2, %xmm2
mulsd %xmm3, %xmm3
addsd %xmm2, %xmm3
mulsd %xmm0, %xmm0
addsd %xmm3, %xmm0
ucomisd 0x2e164(%rip), %xmm0    # 0x4ab48
jb 0x1c9ec
sqrtsd %xmm0, %xmm0
jmp 0x1ca02
movsd %xmm8, 0x18(%rsp)
callq 0x72d0
movsd 0x18(%rsp), %xmm8
xorl %r9d, %r9d
movq 0x20(%rbx), %rax
movq (%rax,%r15,8), %rcx
movslq %r13d, %rdx
movl (%rcx,%rdx,4), %esi
movl %r14d, %eax
movl %esi, %r14d
movl %esi, %edi
notl %edi
movl %edi, (%rcx,%rdx,4)
addsd %xmm0, %xmm8
cmpq %rsi, %r12
jne 0x1c918
mulsd 0x32b34(%rip), %xmm8    # 0x4f568
movq 0x10(%rsp), %r15
movsd %xmm8, 0x20(%rsp)
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x1ca59
movsd %xmm8, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r15)
jmp 0x1ca69
movq %r15, %rdi
leaq 0x20(%rsp), %rdx
callq 0x25d84
xorl %r9d, %r9d
movq 0x8(%rsp), %r10
incq %r10
movq 0x28(%rbx), %rcx
leaq (%rcx,%r12,4), %rdx
movslq (%rdx), %rax
cmpq %rax, %r10
jl 0x1c8b7
incq %r12
movslq 0x18(%rbx), %rax
cmpq %rax, %r12
jl 0x1c895
testl %eax, %eax
jle 0x1cad7
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rcx
xorl %edx, %edx
cmpl $0x0, (%rcx,%rdx,4)
jle 0x1cacb
movq (%rax,%rdx,8), %rsi
xorl %edi, %edi
movl (%rsi,%rdi,4), %r8d
testl %r8d, %r8d
jns 0x1cae6
notl %r8d
movl %r8d, (%rsi,%rdi,4)
incq %rdi
movslq (%rcx,%rdx,4), %r8
cmpq %r8, %rdi
jl 0x1caaf
incq %rdx
movslq 0x18(%rbx), %rsi
cmpq %rsi, %rdx
jl 0x1caa3
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7b10
nop