// File: Luthaf[P]zeopp/voro++/src/cell.cc
// Function: voro::voronoicell_base::minkowski(double, double&, double&)
void voronoicell_base::minkowski(double r,double &ar,double &vo) {
	int i,j,k,l,m,n;
	ar=vo=0;r*=2;
	for(i=1;i<p;i++) 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);
			m=ed[k][l];ed[k][l]=-1-m;
			while(m!=i) {
				n=cycle_up(ed[k][nu[k]+l],m);
				minkowski_contrib(i,k,m,r,ar,vo);
				k=m;l=n;
				m=ed[k][l];ed[k][l]=-1-m;
			}
		}
	}
	vo*=0.125;
	ar*=0.25;
	reset_edges();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -0x18(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movsd 0x4d549(%rip), %xmm0    # 0x57608
mulsd -0x10(%rbp), %xmm0
movsd %xmm0, -0x10(%rbp)
movl $0x1, -0x24(%rbp)
movq -0x40(%rbp), %rcx
movl -0x24(%rbp), %eax
cmpl 0x1c(%rcx), %eax
jge 0xa266
movl $0x0, -0x28(%rbp)
movq -0x40(%rbp), %rcx
movl -0x28(%rbp), %eax
movq 0x30(%rcx), %rcx
movslq -0x24(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0xa256
movq -0x40(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x28(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jl 0xa246
movq -0x40(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
subl -0x2c(%rbp), %edx
movq 0x28(%rdi), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x28(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
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 -0x40(%rbp), %rax
movl %ecx, -0x30(%rbp)
movq 0x28(%rax), %rcx
movslq -0x2c(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x30(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x34(%rbp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
subl -0x34(%rbp), %edx
movq 0x28(%rax), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x30(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x34(%rbp), %eax
cmpl -0x24(%rbp), %eax
je 0xa244
movq -0x40(%rbp), %rdi
movq 0x28(%rdi), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x30(%rdi), %rcx
movslq -0x2c(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
addl -0x30(%rbp), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %esi
movl -0x34(%rbp), %edx
callq 0x15f00
movq -0x40(%rbp), %rdi
movl %eax, -0x38(%rbp)
movl -0x24(%rbp), %esi
movl -0x2c(%rbp), %edx
movl -0x34(%rbp), %ecx
movsd -0x10(%rbp), %xmm0
movq -0x18(%rbp), %r8
movq -0x20(%rbp), %r9
callq 0x16010
movq -0x40(%rbp), %rax
movl -0x34(%rbp), %ecx
movl %ecx, -0x2c(%rbp)
movl -0x38(%rbp), %ecx
movl %ecx, -0x30(%rbp)
movq 0x28(%rax), %rcx
movslq -0x2c(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x30(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x34(%rbp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
subl -0x34(%rbp), %edx
movq 0x28(%rax), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x30(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0xa1a4
jmp 0xa246
jmp 0xa248
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xa0e7
jmp 0xa258
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xa0d0
movq -0x40(%rbp), %rdi
movq -0x20(%rbp), %rax
movsd 0x4d3ba(%rip), %xmm0    # 0x57630
mulsd (%rax), %xmm0
movsd %xmm0, (%rax)
movq -0x18(%rbp), %rax
movsd 0x4d39e(%rip), %xmm0    # 0x57628
mulsd (%rax), %xmm0
movsd %xmm0, (%rax)
callq 0x15f40
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)