// File: /workspace/github_cpp_makefile_star2_O1/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 $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0xa99f
movq %rax, 0x8(%r14)
movl 0x1c(%rbx), %eax
cmpl $0x2, %eax
jl 0xabfc
movl $0x1, %r12d
movq %r14, 0x8(%rsp)
movq 0x30(%rbx), %rax
cmpl $0x0, (%rax,%r12,4)
jle 0xabec
leal (,%r12,4), %eax
cltq
movq %rax, 0x20(%rsp)
leal 0x1(,%r12,4), %eax
cltq
movq %rax, 0x18(%rsp)
leal 0x2(,%r12,4), %eax
cltq
movq %rax, 0x10(%rsp)
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movq (%rax,%r12,8), %rax
movslq (%rax,%r15,4), %rbp
testq %rbp, %rbp
js 0xabd8
movq 0x40(%rbx), %rax
leal (,%rbp,4), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x20(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
leal 0x1(,%rbp,4), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x18(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm2
leal 0x2(,%rbp,4), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x10(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm0
mulsd %xmm2, %xmm2
mulsd %xmm1, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
ucomisd 0x2dfbb(%rip), %xmm0    # 0x38a30
jb 0xaa80
xorps %xmm3, %xmm3
sqrtsd %xmm0, %xmm3
jmp 0xaa89
callq 0x20f0
movapd %xmm0, %xmm3
movl %ebp, %eax
notl %eax
movq 0x28(%rbx), %rcx
movq (%rcx,%r12,8), %rcx
movl %eax, (%rcx,%r15,4)
movq 0x30(%rbx), %rax
movslq (%rax,%r12,4), %rdx
movslq %r15d, %rsi
addq %rdx, %rsi
movl (%rcx,%rsi,4), %ecx
movl (%rax,%rbp,4), %edx
decl %edx
leal 0x1(%rcx), %eax
cmpl %ecx, %edx
movl $0x0, %ecx
cmovel %ecx, %eax
movslq %ebp, %r14
movq 0x28(%rbx), %rcx
movq 0x40(%rbx), %rdx
movq (%rcx,%r14,8), %rcx
movslq %eax, %r13
movl (%rcx,%r13,4), %ebp
leal (,%rbp,4), %eax
cltq
movsd (%rdx,%rax,8), %xmm1
leal (,%r14,4), %eax
cltq
subsd (%rdx,%rax,8), %xmm1
leal 0x1(,%rbp,4), %eax
cltq
movsd (%rdx,%rax,8), %xmm2
leal 0x1(,%r14,4), %eax
cltq
subsd (%rdx,%rax,8), %xmm2
leal 0x2(,%rbp,4), %eax
cltq
movsd (%rdx,%rax,8), %xmm0
leal 0x2(,%r14,4), %eax
cltq
subsd (%rdx,%rax,8), %xmm0
mulsd %xmm2, %xmm2
mulsd %xmm1, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
ucomisd 0x2deeb(%rip), %xmm0    # 0x38a30
jb 0xab4d
sqrtsd %xmm0, %xmm0
jmp 0xab5e
movsd %xmm3, 0x28(%rsp)
callq 0x20f0
movsd 0x28(%rsp), %xmm3
addsd %xmm0, %xmm3
movslq %ebp, %rax
movl %ebp, %ecx
notl %ecx
movq 0x28(%rbx), %rdx
movq (%rdx,%r14,8), %rdx
movl %ecx, (%rdx,%r13,4)
movq 0x30(%rbx), %rcx
movslq (%rcx,%r14,4), %rsi
addq %r13, %rsi
movl (%rdx,%rsi,4), %edx
movl (%rcx,%rax,4), %ecx
decl %ecx
leal 0x1(%rdx), %eax
cmpl %edx, %ecx
movl $0x0, %ecx
cmovel %ecx, %eax
movl %ebp, %ecx
cmpq %rcx, %r12
jne 0xaabc
mulsd 0x2c480(%rip), %xmm3    # 0x37028
movsd %xmm3, 0x30(%rsp)
movq 0x8(%rsp), %r14
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0xabcb
movsd %xmm3, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r14)
jmp 0xabd8
movq %r14, %rdi
leaq 0x30(%rsp), %rdx
callq 0x11ffa
incq %r15
movq 0x30(%rbx), %rax
movslq (%rax,%r12,4), %rax
cmpq %rax, %r15
jl 0xa9f5
incq %r12
movslq 0x1c(%rbx), %rax
cmpq %rax, %r12
jl 0xa9b6
testl %eax, %eax
jle 0xac5c
xorl %r15d, %r15d
leaq 0x2e23b(%rip), %r14     # 0x38e45
movq 0x30(%rbx), %rax
cmpl $0x0, (%rax,%r15,4)
jle 0xac50
xorl %r12d, %r12d
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rax
cmpl $0x0, (%rax,%r12,4)
js 0xac34
movq %r14, %rdi
movl $0x3, %esi
callq 0x1318d
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rax
notl (%rax,%r12,4)
incq %r12
movq 0x30(%rbx), %rax
movslq (%rax,%r15,4), %rax
cmpq %rax, %r12
jl 0xac18
incq %r15
movslq 0x1c(%rbx), %rax
cmpq %rax, %r15
jl 0xac0a
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop