// File: icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::draw_pov_mesh_simple(double, double, double, double, _IO_FILE*)
void voronoicell_base::draw_pov_mesh_simple(double x, double y, double z, double r, FILE *fp) {
    int i, j, k, l, m, n;
    double *ptsp = pts;
    fprintf(fp, "radius %g\n", r);
    fprintf(fp, "# of vertices %d\n", p);
    fprintf(fp, "# of faces %d\n", (p - 2) << 1);
    for (i = 0; i<p; i++, ptsp += 3) 
        fprintf(fp, "%g %g %g\n", x + *ptsp*0.5, y + ptsp[1] * 0.5, z + ptsp[2] * 0.5);
    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+1, k+1, m+1);
                k = m; l = n;
                m = ed[k][l]; ed[k][l] = -1 - m;
            }
        }
    }
    reset_edges();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
movsd %xmm1, -0x18(%rbp)
movsd %xmm2, -0x20(%rbp)
movsd %xmm3, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq 0x30(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rdi
movsd -0x28(%rbp), %xmm0
leaq 0x4ee22(%rip), %rsi     # 0x944a6
movb $0x1, %al
callq 0xa760
movq -0x58(%rbp), %rax
movq -0x30(%rbp), %rdi
movl 0x18(%rax), %edx
leaq 0x4ee14(%rip), %rsi     # 0x944b1
movb $0x0, %al
callq 0xa760
movq -0x58(%rbp), %rax
movq -0x30(%rbp), %rdi
movl 0x18(%rax), %edx
subl $0x2, %edx
shll %edx
leaq 0x4ee08(%rip), %rsi     # 0x944c3
movb $0x0, %al
callq 0xa760
movl $0x0, -0x34(%rbp)
movq -0x58(%rbp), %rcx
movl -0x34(%rbp), %eax
cmpl 0x18(%rcx), %eax
jge 0x4575e
movq -0x30(%rbp), %rdi
movsd -0x10(%rbp), %xmm1
movq -0x50(%rbp), %rax
movsd (%rax), %xmm0
movsd 0x4e9ee(%rip), %xmm2    # 0x940e0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd -0x18(%rbp), %xmm2
movq -0x50(%rbp), %rax
movsd 0x8(%rax), %xmm1
movsd 0x4e9d0(%rip), %xmm3    # 0x940e0
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
movsd -0x20(%rbp), %xmm3
movq -0x50(%rbp), %rax
movsd 0x10(%rax), %xmm2
movsd 0x4e9b2(%rip), %xmm4    # 0x940e0
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
leaq 0x4f065(%rip), %rsi     # 0x947a2
movb $0x3, %al
callq 0xa760
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x50(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x50(%rbp)
jmp 0x456c9
movl $0x1, -0x34(%rbp)
movq -0x58(%rbp), %rcx
movl -0x34(%rbp), %eax
cmpl 0x18(%rcx), %eax
jge 0x45902
movl $0x0, -0x38(%rbp)
movq -0x58(%rbp), %rcx
movl -0x38(%rbp), %eax
movq 0x28(%rcx), %rcx
movslq -0x34(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x458f2
movq -0x58(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x38(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
jl 0x458e2
movq -0x58(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
subl -0x3c(%rbp), %edx
movq 0x20(%rdi), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x38(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq 0x20(%rdi), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x28(%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 0x4bf70
movl %eax, %ecx
movq -0x58(%rbp), %rax
movl %ecx, -0x40(%rbp)
movq 0x20(%rax), %rcx
movslq -0x3c(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x40(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x44(%rbp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
subl -0x44(%rbp), %edx
movq 0x20(%rax), %rax
movslq -0x3c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x40(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x44(%rbp), %eax
cmpl -0x34(%rbp), %eax
je 0x458e0
movq -0x58(%rbp), %rdi
movq 0x20(%rdi), %rax
movslq -0x3c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x28(%rdi), %rcx
movslq -0x3c(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
addl -0x40(%rbp), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %esi
movl -0x44(%rbp), %edx
callq 0x4bf70
movl %eax, -0x48(%rbp)
movq -0x30(%rbp), %rdi
movl -0x34(%rbp), %edx
addl $0x1, %edx
movl -0x3c(%rbp), %ecx
addl $0x1, %ecx
movl -0x44(%rbp), %r8d
addl $0x1, %r8d
leaq 0x4ec3f(%rip), %rsi     # 0x944d2
movb $0x0, %al
callq 0xa760
movq -0x58(%rbp), %rax
movl -0x44(%rbp), %ecx
movl %ecx, -0x3c(%rbp)
movl -0x48(%rbp), %ecx
movl %ecx, -0x40(%rbp)
movq 0x20(%rax), %rcx
movslq -0x3c(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x40(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x44(%rbp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
subl -0x44(%rbp), %edx
movq 0x20(%rax), %rax
movslq -0x3c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x40(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x45839
jmp 0x458e2
jmp 0x458e4
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x4577c
jmp 0x458f4
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x45765
movq -0x58(%rbp), %rdi
callq 0x50210
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)