// File: Luthaf[P]zeopp/voro++/src/cell.cc
// Function: voro::voronoicell_base::volume()
double voronoicell_base::volume() {
	const double fe=1/48.0;
	double vol=0;
	int i,j,k,l,m,n;
	double ux,uy,uz,vx,vy,vz,wx,wy,wz;
	for(i=1;i<p;i++) {
		ux=*pts-pts[i<<2];
		uy=pts[1]-pts[(i<<2)+1];
		uz=pts[2]-pts[(i<<2)+2];
		for(j=0;j<nu[i];j++) {
			k=ed[i][j];
			if(k>=0) {
				ed[i][j]=-1-k;
				l=cycle_up(ed[i][nu[i]+j],k);
				vx=pts[k<<2]-*pts;
				vy=pts[(k<<2)+1]-pts[1];
				vz=pts[(k<<2)+2]-pts[2];
				m=ed[k][l];ed[k][l]=-1-m;
				while(m!=i) {
					n=cycle_up(ed[k][nu[k]+l],m);
					wx=pts[(m<<2)]-*pts;
					wy=pts[(m<<2)+1]-pts[1];
					wz=pts[(m<<2)+2]-pts[2];
					vol+=ux*vy*wz+uy*vz*wx+uz*vx*wy-uz*vy*wx-uy*vx*wz-ux*vz*wy;
					k=m;l=n;vx=wx;vy=wy;vz=wz;
					m=ed[k][l];ed[k][l]=-1-m;
				}
			}
		}
	}
	reset_edges();
	return vol*fe;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
movsd 0x4d971(%rip), %xmm0    # 0x57620
movsd %xmm0, -0x10(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x18(%rbp)
movl $0x1, -0x1c(%rbp)
movq -0x80(%rbp), %rcx
movl -0x1c(%rbp), %eax
cmpl 0x1c(%rcx), %eax
jge 0xa05e
movq -0x80(%rbp), %rax
movq 0x40(%rax), %rcx
movsd (%rcx), %xmm0
movq 0x40(%rax), %rcx
movl -0x1c(%rbp), %edx
shll $0x2, %edx
movslq %edx, %rdx
subsd (%rcx,%rdx,8), %xmm0
movsd %xmm0, -0x38(%rbp)
movq 0x40(%rax), %rcx
movsd 0x8(%rcx), %xmm0
movq 0x40(%rax), %rcx
movl -0x1c(%rbp), %edx
shll $0x2, %edx
addl $0x1, %edx
movslq %edx, %rdx
subsd (%rcx,%rdx,8), %xmm0
movsd %xmm0, -0x40(%rbp)
movq 0x40(%rax), %rcx
movsd 0x10(%rcx), %xmm0
movq 0x40(%rax), %rax
movl -0x1c(%rbp), %ecx
shll $0x2, %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
subsd (%rax,%rcx,8), %xmm0
movsd %xmm0, -0x48(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x80(%rbp), %rcx
movl -0x20(%rbp), %eax
movq 0x30(%rcx), %rcx
movslq -0x1c(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0xa04e
movq -0x80(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x20(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
jl 0xa03e
movq -0x80(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
subl -0x24(%rbp), %edx
movq 0x28(%rdi), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x20(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq 0x28(%rdi), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x30(%rdi), %rcx
movslq -0x1c(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
addl -0x20(%rbp), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %esi
movl -0x24(%rbp), %edx
callq 0x15f00
movl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, -0x28(%rbp)
movq 0x40(%rax), %rcx
movl -0x24(%rbp), %edx
shll $0x2, %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x40(%rax), %rcx
subsd (%rcx), %xmm0
movsd %xmm0, -0x50(%rbp)
movq 0x40(%rax), %rcx
movl -0x24(%rbp), %edx
shll $0x2, %edx
addl $0x1, %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x40(%rax), %rcx
subsd 0x8(%rcx), %xmm0
movsd %xmm0, -0x58(%rbp)
movq 0x40(%rax), %rcx
movl -0x24(%rbp), %edx
shll $0x2, %edx
addl $0x2, %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x40(%rax), %rcx
subsd 0x10(%rcx), %xmm0
movsd %xmm0, -0x60(%rbp)
movq 0x28(%rax), %rcx
movslq -0x24(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x28(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x2c(%rbp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
subl -0x2c(%rbp), %edx
movq 0x28(%rax), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x28(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x2c(%rbp), %eax
cmpl -0x1c(%rbp), %eax
je 0xa03c
movq -0x80(%rbp), %rdi
movq 0x28(%rdi), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x30(%rdi), %rcx
movslq -0x24(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
addl -0x28(%rbp), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %esi
movl -0x2c(%rbp), %edx
callq 0x15f00
movl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, -0x30(%rbp)
movq 0x40(%rax), %rcx
movl -0x2c(%rbp), %edx
shll $0x2, %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x40(%rax), %rcx
subsd (%rcx), %xmm0
movsd %xmm0, -0x68(%rbp)
movq 0x40(%rax), %rcx
movl -0x2c(%rbp), %edx
shll $0x2, %edx
addl $0x1, %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x40(%rax), %rcx
subsd 0x8(%rcx), %xmm0
movsd %xmm0, -0x70(%rbp)
movq 0x40(%rax), %rcx
movl -0x2c(%rbp), %edx
shll $0x2, %edx
addl $0x2, %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x40(%rax), %rcx
subsd 0x10(%rcx), %xmm0
movsd %xmm0, -0x78(%rbp)
movsd -0x38(%rbp), %xmm0
mulsd -0x58(%rbp), %xmm0
movsd -0x78(%rbp), %xmm2
movsd -0x40(%rbp), %xmm1
mulsd -0x60(%rbp), %xmm1
mulsd -0x68(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd -0x48(%rbp), %xmm1
mulsd -0x50(%rbp), %xmm1
movsd -0x70(%rbp), %xmm2
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movsd -0x48(%rbp), %xmm0
mulsd -0x58(%rbp), %xmm0
movsd -0x68(%rbp), %xmm2
movq %xmm0, %rcx
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
xorq %rdx, %rcx
movq %rcx, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd -0x40(%rbp), %xmm1
mulsd -0x50(%rbp), %xmm1
movsd -0x78(%rbp), %xmm2
movq %xmm1, %rcx
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
xorq %rdx, %rcx
movq %rcx, %xmm1
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movsd -0x38(%rbp), %xmm0
mulsd -0x60(%rbp), %xmm0
movsd -0x70(%rbp), %xmm2
movq %xmm0, %rcx
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
xorq %rdx, %rcx
movq %rcx, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
addsd -0x18(%rbp), %xmm0
movsd %xmm0, -0x18(%rbp)
movl -0x2c(%rbp), %ecx
movl %ecx, -0x24(%rbp)
movl -0x30(%rbp), %ecx
movl %ecx, -0x28(%rbp)
movsd -0x68(%rbp), %xmm0
movsd %xmm0, -0x50(%rbp)
movsd -0x70(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x78(%rbp), %xmm0
movsd %xmm0, -0x60(%rbp)
movq 0x28(%rax), %rcx
movslq -0x24(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x28(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x2c(%rbp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
subl -0x2c(%rbp), %edx
movq 0x28(%rax), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x28(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x9e65
jmp 0xa03e
jmp 0xa040
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x9d43
jmp 0xa050
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x9cc3
movq -0x80(%rbp), %rdi
callq 0x15f40
movsd 0x4d5b1(%rip), %xmm0    # 0x57620
mulsd -0x18(%rbp), %xmm0
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)