// File: Luthaf[P]zeopp/voro++/src/cell.cc
// Function: voro::voronoicell_base::draw_pov(double, double, double, _IO_FILE*)
void voronoicell_base::draw_pov(double x,double y,double z,FILE* fp) {
	int i,j,k;double *ptsp=pts,*pt2;
	char posbuf1[128],posbuf2[128];
	for(i=0;i<p;i++,ptsp+=4) {
		sprintf(posbuf1,"%g,%g,%g",x+*ptsp*0.5,y+ptsp[1]*0.5,z+ptsp[2]*0.5);
		fprintf(fp,"sphere{<%s>,r}\n",posbuf1);
		for(j=0;j<nu[i];j++) {
			k=ed[i][j];
			if(k<i) {
				pt2=pts+(k<<2);
				sprintf(posbuf2,"%g,%g,%g",x+*pt2*0.5,y+0.5*pt2[1],z+0.5*pt2[2]);
				if(strcmp(posbuf1,posbuf2)!=0) fprintf(fp,"cylinder{<%s>,<%s>,r}\n",posbuf1,posbuf2);
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
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, -0x158(%rbp)
movq 0x40(%rax), %rax
movq %rax, -0x40(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x158(%rbp), %rcx
movl -0x2c(%rbp), %eax
cmpl 0x1c(%rcx), %eax
jge 0xbe84
leaq -0xd0(%rbp), %rdi
movsd -0x10(%rbp), %xmm1
movq -0x40(%rbp), %rax
movsd (%rax), %xmm0
movsd 0x4a355(%rip), %xmm2    # 0x56030
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd -0x18(%rbp), %xmm2
movq -0x40(%rbp), %rax
movsd 0x8(%rax), %xmm1
movsd 0x4a337(%rip), %xmm3    # 0x56030
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
movsd -0x20(%rbp), %xmm3
movq -0x40(%rbp), %rax
movsd 0x10(%rax), %xmm2
movsd 0x4a319(%rip), %xmm4    # 0x56030
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
leaq 0x4bd57(%rip), %rsi     # 0x57a7d
movb $0x3, %al
callq 0x2050
movq -0x28(%rbp), %rdi
leaq -0xd0(%rbp), %rdx
leaq 0x4bd47(%rip), %rsi     # 0x57a86
movb $0x0, %al
callq 0x21a0
movl $0x0, -0x30(%rbp)
movq -0x158(%rbp), %rcx
movl -0x30(%rbp), %eax
movq 0x30(%rcx), %rcx
movslq -0x2c(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0xbe68
movq -0x158(%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)
movl -0x34(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jge 0xbe58
movq -0x158(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x34(%rbp), %ecx
shll $0x2, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
leaq -0x150(%rbp), %rdi
movsd -0x10(%rbp), %xmm1
movq -0x48(%rbp), %rax
movsd (%rax), %xmm0
movsd 0x4a264(%rip), %xmm2    # 0x56030
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd -0x18(%rbp), %xmm2
movq -0x48(%rbp), %rax
movsd 0x8(%rax), %xmm1
movsd 0x4a246(%rip), %xmm3    # 0x56030
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
movsd -0x20(%rbp), %xmm3
movq -0x48(%rbp), %rax
movsd 0x10(%rax), %xmm2
movsd 0x4a228(%rip), %xmm4    # 0x56030
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
leaq 0x4bc66(%rip), %rsi     # 0x57a7d
movb $0x3, %al
callq 0x2050
leaq -0xd0(%rbp), %rdi
leaq -0x150(%rbp), %rsi
callq 0x2190
cmpl $0x0, %eax
je 0xbe56
movq -0x28(%rbp), %rdi
leaq -0xd0(%rbp), %rdx
leaq -0x150(%rbp), %rcx
leaq 0x4bc47(%rip), %rsi     # 0x57a96
movb $0x0, %al
callq 0x21a0
jmp 0xbe58
jmp 0xbe5a
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xbd4d
jmp 0xbe6a
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movq -0x40(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x40(%rbp)
jmp 0xbcac
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
nopl (%rax)