// File: /workspace/github_cpp_makefile_star2_O2/Luthaf[P]zeopp/voro++/src/cell.cc
// Function: voro::voronoicell_base::face_perimeters(std::vector<double, std::allocator<double>>&)
void voronoicell_base::face_perimeters(std::vector<double> &v) {
	v.clear();
	int i,j,k,l,m;
	double dx,dy,dz,perim;
	for(i=1;i<p;i++) for(j=0;j<nu[i];j++) {
		k=ed[i][j];
		if(k>=0) {
			dx=pts[k<<2]-pts[i<<2];
			dy=pts[(k<<2)+1]-pts[(i<<2)+1];
			dz=pts[(k<<2)+2]-pts[(i<<2)+2];
			perim=sqrt(dx*dx+dy*dy+dz*dz);
			ed[i][j]=-1-k;
			l=cycle_up(ed[i][nu[i]+j],k);
			do {
				m=ed[k][l];
				dx=pts[m<<2]-pts[k<<2];
				dy=pts[(m<<2)+1]-pts[(k<<2)+1];
				dz=pts[(m<<2)+2]-pts[(k<<2)+2];
				perim+=sqrt(dx*dx+dy*dy+dz*dz);
				ed[k][l]=-1-m;
				l=cycle_up(ed[k][nu[k]+l],m);
				k=m;
			} while (k!=i);
			v.push_back(0.5*perim);
		}
	}
	reset_edges();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x8835
movq %rax, 0x8(%r15)
pushq $0x1
popq %r12
xorl %r13d, %r13d
movslq 0x1c(%rbx), %rax
cmpq %rax, %r12
jge 0x8a1b
leal (,%r12,4), %eax
cltq
movq %rax, 0x8(%rsp)
leal 0x1(,%r12,4), %eax
cltq
movq %rax, (%rsp)
leal 0x2(,%r12,4), %eax
movslq %eax, %r14
xorl %ebp, %ebp
movq 0x30(%rbx), %rax
movslq (%rax,%r12,4), %rcx
cmpq %rcx, %rbp
jge 0x8a13
movq 0x28(%rbx), %rcx
movq (%rcx,%r12,8), %rdi
movslq (%rdi,%rbp,4), %rdx
testq %rdx, %rdx
js 0x8a0b
movq 0x40(%rbx), %rsi
leal (,%rdx,4), %r8d
movslq %r8d, %r8
movsd (%rsi,%r8,8), %xmm0
movq 0x8(%rsp), %r8
subsd (%rsi,%r8,8), %xmm0
leal 0x1(,%rdx,4), %r8d
movslq %r8d, %r8
movsd (%rsi,%r8,8), %xmm1
movq (%rsp), %r8
subsd (%rsi,%r8,8), %xmm1
leal 0x2(,%rdx,4), %r8d
movslq %r8d, %r8
movsd (%rsi,%r8,8), %xmm2
subsd (%rsi,%r14,8), %xmm2
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
mulsd %xmm2, %xmm2
addsd %xmm0, %xmm2
sqrtsd %xmm2, %xmm0
movl %edx, %r8d
notl %r8d
movl %r8d, (%rdi,%rbp,4)
movslq (%rax,%r12,4), %r8
movslq %ebp, %r9
addq %r8, %r9
movl (%rdi,%r9,4), %edi
movl (%rax,%rdx,4), %r9d
decl %r9d
leal 0x1(%rdi), %r8d
cmpl %edi, %r9d
cmovel %r13d, %r8d
movslq %edx, %r9
movq (%rcx,%r9,8), %rdi
movslq %r8d, %r8
movl (%rdi,%r8,4), %edx
leal (,%rdx,4), %r10d
movslq %r10d, %r10
movsd (%rsi,%r10,8), %xmm1
leal (,%r9,4), %r10d
movslq %r10d, %r10
subsd (%rsi,%r10,8), %xmm1
leal 0x1(,%rdx,4), %r10d
movslq %r10d, %r10
movsd (%rsi,%r10,8), %xmm2
leal 0x1(,%r9,4), %r10d
movslq %r10d, %r10
subsd (%rsi,%r10,8), %xmm2
leal 0x2(,%rdx,4), %r10d
movslq %r10d, %r10
movsd (%rsi,%r10,8), %xmm3
leal 0x2(,%r9,4), %r10d
movslq %r10d, %r10
subsd (%rsi,%r10,8), %xmm3
mulsd %xmm2, %xmm2
mulsd %xmm1, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm3, %xmm3
addsd %xmm1, %xmm3
sqrtsd %xmm3, %xmm1
addsd %xmm1, %xmm0
movl %edx, %r10d
notl %r10d
movl %r10d, (%rdi,%r8,4)
movslq (%rax,%r9,4), %r9
addq %r8, %r9
movl (%rdi,%r9,4), %edi
movslq %edx, %r8
movl (%rax,%r8,4), %r9d
decl %r9d
leal 0x1(%rdi), %r8d
cmpl %edi, %r9d
cmovel %r13d, %r8d
cmpq %rdx, %r12
jne 0x892d
mulsd 0x26638(%rip), %xmm0    # 0x2f030
movsd %xmm0, 0x10(%rsp)
movq %r15, %rdi
leaq 0x10(%rsp), %rsi
callq 0xea8e
incq %rbp
jmp 0x8873
incq %r12
jmp 0x883c
movq %rbx, %rdi
callq 0xe024
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq