// File: icemiliang[P]vot/src/vot/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[3*i],y+0.5*pts[3*i+1],z+0.5*pts[3*i+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[3*k],y+0.5*pts[3*k+1],z+0.5*pts[3*k+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 0x18(%rcx), %eax
jge 0x45369
movl $0x0, -0x30(%rbp)
movq -0x48(%rbp), %rcx
movl -0x30(%rbp), %eax
movq 0x28(%rcx), %rcx
movslq -0x2c(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x45359
movq -0x48(%rbp), %rax
movq 0x20(%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 0x45349
movq -0x48(%rbp), %rax
movq -0x28(%rbp), %rdi
movsd -0x10(%rbp), %xmm1
movq 0x30(%rax), %rcx
imull $0x3, -0x2c(%rbp), %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm0
movsd 0x4ef1a(%rip), %xmm2    # 0x940e0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd -0x18(%rbp), %xmm2
movq 0x30(%rax), %rcx
imull $0x3, -0x2c(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm1
movsd 0x4eef2(%rip), %xmm3    # 0x940e0
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
movsd -0x20(%rbp), %xmm3
movq 0x30(%rax), %rax
imull $0x3, -0x2c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
movsd 0x4eeca(%rip), %xmm4    # 0x940e0
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
leaq 0x4f57d(%rip), %rsi     # 0x947a2
movb $0x3, %al
callq 0xa760
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 0x20(%rax), %rcx
movslq -0x34(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movq 0x20(%rax), %rdx
movslq -0x38(%rbp), %rdi
movq (%rdx,%rdi,8), %rdx
movq 0x28(%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 0x20(%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 0x30(%rax), %rcx
imull $0x3, -0x34(%rbp), %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm0
movsd 0x4ee29(%rip), %xmm2    # 0x940e0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd -0x18(%rbp), %xmm2
movq 0x30(%rax), %rcx
imull $0x3, -0x34(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm1
movsd 0x4ee01(%rip), %xmm3    # 0x940e0
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
movsd -0x20(%rbp), %xmm3
movq 0x30(%rax), %rax
imull $0x3, -0x34(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
movsd 0x4edd9(%rip), %xmm4    # 0x940e0
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
leaq 0x4f48c(%rip), %rsi     # 0x947a2
movb $0x3, %al
callq 0xa760
movq -0x48(%rbp), %rdi
movl -0x38(%rbp), %esi
leaq -0x3c(%rbp), %rdx
leaq -0x34(%rbp), %rcx
callq 0x50330
testb $0x1, %al
jne 0x45238
movq -0x28(%rbp), %rsi
leaq 0x537ff(%rip), %rdi     # 0x98b43
callq 0xa570
jmp 0x4534b
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x45165
jmp 0x4535b
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x4514e
movq -0x48(%rbp), %rdi
callq 0x50210
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)