// File: /workspace/github_cpp_makefile_star2_O3/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, %r14
movq %rdi, %rbx
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0xa8c7
movq %rax, 0x8(%r14)
movl 0x1c(%rbx), %ecx
cmpl $0x2, %ecx
jl 0xab00
movq 0x30(%rbx), %rax
movl $0x1, %r12d
xorl %r13d, %r13d
movsd 0x2c748(%rip), %xmm4    # 0x37030
movq %rbx, (%rsp)
cmpl $0x0, (%rax,%r12,4)
jle 0xaaf1
leal (,%r12,4), %ecx
movslq %ecx, %r11
leal 0x1(,%r12,4), %ecx
movslq %ecx, %rbp
leal 0x2(,%r12,4), %ecx
movslq %ecx, %rcx
movq %rcx, 0x8(%rsp)
xorl %r15d, %r15d
movq 0x28(%rbx), %rcx
movq (%rcx,%r12,8), %rdi
movslq (%rdi,%r15,4), %rdx
testq %rdx, %rdx
js 0xaade
movq 0x40(%rbx), %rsi
leal (,%rdx,4), %r8d
movslq %r8d, %r8
movsd (%rsi,%r8,8), %xmm0
subsd (%rsi,%r11,8), %xmm0
leal 0x1(,%rdx,4), %r8d
movslq %r8d, %r8
movsd (%rsi,%r8,8), %xmm1
subsd (%rsi,%rbp,8), %xmm1
leal 0x2(,%rdx,4), %r8d
movslq %r8d, %r8
movsd (%rsi,%r8,8), %xmm2
movq 0x8(%rsp), %r8
subsd (%rsi,%r8,8), %xmm2
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
mulsd %xmm2, %xmm2
addsd %xmm0, %xmm2
xorps %xmm0, %xmm0
sqrtsd %xmm2, %xmm0
movl %edx, %r8d
notl %r8d
movl %r8d, (%rdi,%r15,4)
movslq (%rax,%r12,4), %r8
movslq %r15d, %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
xorps %xmm1, %xmm1
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 0xa9c7
mulsd %xmm4, %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0xaaaf
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r14)
jmp 0xaade
movq %r14, %rdi
leaq 0x10(%rsp), %rdx
movq %r14, %rbx
movq %rbp, %r14
movq %r11, %rbp
callq 0x11ebc
movq %rbp, %r11
movq %r14, %rbp
movq %rbx, %r14
movq (%rsp), %rbx
movsd 0x2c556(%rip), %xmm4    # 0x37030
movq 0x30(%rbx), %rax
incq %r15
movslq (%rax,%r12,4), %rcx
cmpq %rcx, %r15
jl 0xa920
movl 0x1c(%rbx), %ecx
incq %r12
movslq %ecx, %rdx
cmpq %rdx, %r12
jl 0xa8ec
testl %ecx, %ecx
jle 0xab69
movq 0x30(%rbx), %rax
xorl %r15d, %r15d
leaq 0x2e3a3(%rip), %r14     # 0x38eb5
cmpl $0x0, (%rax,%r15,4)
jle 0xab5e
movq 0x28(%rbx), %rcx
movq (%rcx,%r15,8), %rcx
xorl %r12d, %r12d
movl (%rcx,%r12,4), %edx
testl %edx, %edx
js 0xab49
movq %r14, %rdi
movl $0x3, %esi
callq 0x133c5
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %rax
movq (%rcx,%r15,8), %rcx
movl (%rcx,%r12,4), %edx
notl %edx
movl %edx, (%rcx,%r12,4)
incq %r12
movslq (%rax,%r15,4), %rdx
cmpq %rdx, %r12
jl 0xab24
movl 0x1c(%rbx), %ecx
incq %r15
movslq %ecx, %rdx
cmpq %rdx, %r15
jl 0xab12
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq