// File: Luthaf[P]zeopp/voro++/src/cell.cc
// Function: voro::voronoicell_base::draw_pov_mesh(double, double, double, _IO_FILE*)
void voronoicell_base::draw_pov_mesh(double x,double y,double z,FILE *fp) {
	int i,j,k,l,m,n;
	double *ptsp=pts;
	fprintf(fp,"mesh2 {\nvertex_vectors {\n%d\n",p);
	for(i=0;i<p;i++,ptsp+=4) fprintf(fp,",<%g,%g,%g>\n",x+*ptsp*0.5,y+ptsp[1]*0.5,z+ptsp[2]*0.5);
	fprintf(fp,"}\nface_indices {\n%d\n",(p-2)<<1);
	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);
				fprintf(fp,",<%d,%d,%d>\n",i,k,m);
				k=m;l=n;
				m=ed[k][l];ed[k][l]=-1-m;
			}
		}
	}
	fputs("}\ninside_vector <0,0,1>\n}\n",fp);
	reset_edges();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
movsd %xmm1, -0x18(%rbp)
movsd %xmm2, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq 0x40(%rax), %rcx
movq %rcx, -0x48(%rbp)
movq -0x28(%rbp), %rdi
movl 0x1c(%rax), %edx
leaq 0x4b970(%rip), %rsi     # 0x57aad
movb $0x0, %al
callq 0x21a0
movl $0x0, -0x2c(%rbp)
movq -0x50(%rbp), %rcx
movl -0x2c(%rbp), %eax
cmpl 0x1c(%rcx), %eax
jge 0xc1e0
movq -0x28(%rbp), %rdi
movsd -0x10(%rbp), %xmm1
movq -0x48(%rbp), %rax
movsd (%rax), %xmm0
movsd 0x49ebc(%rip), %xmm2    # 0x56030
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd -0x18(%rbp), %xmm2
movq -0x48(%rbp), %rax
movsd 0x8(%rax), %xmm1
movsd 0x49e9e(%rip), %xmm3    # 0x56030
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
movsd -0x20(%rbp), %xmm3
movq -0x48(%rbp), %rax
movsd 0x10(%rax), %xmm2
movsd 0x49e80(%rip), %xmm4    # 0x56030
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
leaq 0x4b90b(%rip), %rsi     # 0x57aca
movb $0x3, %al
callq 0x21a0
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movq -0x48(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x48(%rbp)
jmp 0xc14b
movq -0x50(%rbp), %rax
movq -0x28(%rbp), %rdi
movl 0x1c(%rax), %edx
subl $0x2, %edx
shll %edx
leaq 0x4b8e0(%rip), %rsi     # 0x57ad7
movb $0x0, %al
callq 0x21a0
movl $0x1, -0x2c(%rbp)
movq -0x50(%rbp), %rcx
movl -0x2c(%rbp), %eax
cmpl 0x1c(%rcx), %eax
jge 0xc398
movl $0x0, -0x30(%rbp)
movq -0x50(%rbp), %rcx
movl -0x30(%rbp), %eax
movq 0x30(%rcx), %rcx
movslq -0x2c(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0xc388
movq -0x50(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x30(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
jl 0xc378
movq -0x50(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
subl -0x34(%rbp), %edx
movq 0x28(%rdi), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x30(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
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
movl %eax, %ecx
movq -0x50(%rbp), %rax
movl %ecx, -0x38(%rbp)
movq 0x28(%rax), %rcx
movslq -0x34(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x38(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x3c(%rbp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
subl -0x3c(%rbp), %edx
movq 0x28(%rax), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x38(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x3c(%rbp), %eax
cmpl -0x2c(%rbp), %eax
je 0xc376
movq -0x50(%rbp), %rdi
movq 0x28(%rdi), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x30(%rdi), %rcx
movslq -0x34(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
addl -0x38(%rbp), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %esi
movl -0x3c(%rbp), %edx
callq 0x15f00
movl %eax, -0x40(%rbp)
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %edx
movl -0x34(%rbp), %ecx
movl -0x3c(%rbp), %r8d
leaq 0x4b7c3(%rip), %rsi     # 0x57aec
movb $0x0, %al
callq 0x21a0
movq -0x50(%rbp), %rax
movl -0x3c(%rbp), %ecx
movl %ecx, -0x34(%rbp)
movl -0x40(%rbp), %ecx
movl %ecx, -0x38(%rbp)
movq 0x28(%rax), %rcx
movslq -0x34(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x38(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x3c(%rbp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
subl -0x3c(%rbp), %edx
movq 0x28(%rax), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x38(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0xc2d9
jmp 0xc378
jmp 0xc37a
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xc21c
jmp 0xc38a
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xc205
movq -0x28(%rbp), %rsi
leaq 0x4b756(%rip), %rdi     # 0x57af9
callq 0x2140
movq -0x50(%rbp), %rdi
callq 0x15f40
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)