// File: Luthaf[P]zeopp/voro++/src/cell.cc
// Function: voro::voronoicell_base::draw_gnuplot(double, double, double, _IO_FILE*)
void voronoicell_base::draw_gnuplot(double x,double y,double z,FILE *fp) {
	int i,j,k,l,m;
	for(i=1;i<p;i++) for(j=0;j<nu[i];j++) {
		k=ed[i][j];
		if(k>=0) {
			fprintf(fp,"%g %g %g\n",x+0.5*pts[i<<2],y+0.5*pts[(i<<2)+1],z+0.5*pts[(i<<2)+2]);
			l=i;m=j;
			do {
				ed[k][ed[l][nu[l]+m]]=-1-l;
				ed[l][m]=-1-k;
				l=k;
				fprintf(fp,"%g %g %g\n",x+0.5*pts[k<<2],y+0.5*pts[(k<<2)+1],z+0.5*pts[(k<<2)+2]);
			} while (search_edge(l,m,k));
			fputs("\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, -0x48(%rbp)
movl $0x1, -0x2c(%rbp)
movq -0x48(%rbp), %rcx
movl -0x2c(%rbp), %eax
cmpl 0x1c(%rcx), %eax
jge 0xc0e5
movl $0x0, -0x30(%rbp)
movq -0x48(%rbp), %rcx
movl -0x30(%rbp), %eax
movq 0x30(%rcx), %rcx
movslq -0x2c(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0xc0d5
movq -0x48(%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 0xc0c5
movq -0x48(%rbp), %rax
movq -0x28(%rbp), %rdi
movsd -0x10(%rbp), %xmm1
movq 0x40(%rax), %rcx
movl -0x2c(%rbp), %edx
shll $0x2, %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm0
movsd 0x4a0f8(%rip), %xmm2    # 0x56030
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd -0x18(%rbp), %xmm2
movq 0x40(%rax), %rcx
movl -0x2c(%rbp), %edx
shll $0x2, %edx
addl $0x1, %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm1
movsd 0x4a0ce(%rip), %xmm3    # 0x56030
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
movsd -0x20(%rbp), %xmm3
movq 0x40(%rax), %rax
movl -0x2c(%rbp), %ecx
shll $0x2, %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
movsd 0x4a0a4(%rip), %xmm4    # 0x56030
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
leaq 0x4bf58(%rip), %rsi     # 0x57ef3
movb $0x3, %al
callq 0x21a0
movl -0x2c(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x48(%rbp), %rax
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
subl -0x38(%rbp), %esi
movq 0x28(%rax), %rcx
movslq -0x34(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movq 0x28(%rax), %rdx
movslq -0x38(%rbp), %rdi
movq (%rdx,%rdi,8), %rdx
movq 0x30(%rax), %rdi
movslq -0x38(%rbp), %r8
movl (%rdi,%r8,4), %edi
addl -0x3c(%rbp), %edi
movslq %edi, %rdi
movslq (%rdx,%rdi,4), %rdx
movl %esi, (%rcx,%rdx,4)
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
subl -0x34(%rbp), %esi
movq 0x28(%rax), %rcx
movslq -0x38(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x3c(%rbp), %rdx
movl %esi, (%rcx,%rdx,4)
movl -0x34(%rbp), %ecx
movl %ecx, -0x38(%rbp)
movq -0x28(%rbp), %rdi
movsd -0x10(%rbp), %xmm1
movq 0x40(%rax), %rcx
movl -0x34(%rbp), %edx
shll $0x2, %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm0
movsd 0x4a001(%rip), %xmm2    # 0x56030
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd -0x18(%rbp), %xmm2
movq 0x40(%rax), %rcx
movl -0x34(%rbp), %edx
shll $0x2, %edx
addl $0x1, %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm1
movsd 0x49fd7(%rip), %xmm3    # 0x56030
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
movsd -0x20(%rbp), %xmm3
movq 0x40(%rax), %rax
movl -0x34(%rbp), %ecx
shll $0x2, %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
movsd 0x49fad(%rip), %xmm4    # 0x56030
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
leaq 0x4be61(%rip), %rsi     # 0x57ef3
movb $0x3, %al
callq 0x21a0
movq -0x48(%rbp), %rdi
movl -0x38(%rbp), %esi
leaq -0x3c(%rbp), %rdx
leaq -0x34(%rbp), %rcx
callq 0x168b0
testb $0x1, %al
jne 0xbfae
movq -0x28(%rbp), %rsi
leaq 0x502d3(%rip), %rdi     # 0x5c393
callq 0x2140
jmp 0xc0c7
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xbed5
jmp 0xc0d7
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xbebe
movq -0x48(%rbp), %rdi
callq 0x15f40
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)