// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movsd %xmm2, 0x18(%rsp)
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, 0x10(%rsp)
movq %rdi, %rbx
movq 0x30(%rdi), %r12
leaq 0x322eb(%rip), %rsi     # 0x4fb42
movq %r14, %rdi
movapd %xmm3, %xmm0
movb $0x1, %al
callq 0x7540
movl 0x18(%rbx), %edx
leaq 0x322de(%rip), %rsi     # 0x4fb4d
xorl %ebp, %ebp
movq %r14, %rdi
xorl %eax, %eax
callq 0x7540
movl 0x18(%rbx), %eax
leal -0x4(,%rax,2), %edx
leaq 0x322d3(%rip), %rsi     # 0x4fb5f
movq %r14, %rdi
xorl %eax, %eax
callq 0x7540
cmpl $0x0, 0x18(%rbx)
jle 0x1d8f5
leaq 0x3259b(%rip), %r15     # 0x4fe3e
movsd (%r12), %xmm0
movsd 0x31cc7(%rip), %xmm3    # 0x4f578
mulsd %xmm3, %xmm0
addsd 0x10(%rsp), %xmm0
movsd 0x8(%r12), %xmm1
mulsd %xmm3, %xmm1
addsd 0x8(%rsp), %xmm1
movsd 0x10(%r12), %xmm2
mulsd %xmm3, %xmm2
addsd 0x18(%rsp), %xmm2
movq %r14, %rdi
movq %r15, %rsi
movb $0x3, %al
callq 0x7540
incl %ebp
addq $0x18, %r12
cmpl 0x18(%rbx), %ebp
jl 0x1d8a3
movl 0x18(%rbx), %eax
cmpl $0x2, %eax
movq %rbx, %r12
jl 0x1da5d
movq %r14, 0x10(%rsp)
movl $0x1, %r11d
xorl %r9d, %r9d
leaq 0x32255(%rip), %rsi     # 0x4fb6e
movq %r12, 0x20(%rsp)
movq 0x28(%r12), %rcx
cmpl $0x0, (%rcx,%r11,4)
jle 0x1da4c
leaq (%rcx,%r11,4), %r14
leal 0x1(%r11), %edx
xorl %r8d, %r8d
movq 0x20(%r12), %r10
movq (%r10,%r11,8), %r13
movq %r8, 0x8(%rsp)
movslq (%r13,%r8,4), %rax
testq %rax, %rax
movq 0x10(%rsp), %rdi
js 0x1da2f
movl %eax, %r8d
notl %r8d
movq 0x8(%rsp), %r15
movl %r8d, (%r13,%r15,4)
movslq (%r14), %rbx
movslq %r15d, %r8
addq %rbx, %r8
movl (%r13,%r8,4), %r8d
movl (%rcx,%rax,4), %ecx
decl %ecx
leal 0x1(%r8), %r13d
cmpl %r8d, %ecx
cmovel %r9d, %r13d
movq (%r10,%rax,8), %r10
movslq %r13d, %r8
movl (%r10,%r8,4), %ecx
movl %ecx, %ebx
notl %ebx
movl %ebx, (%r10,%r8,4)
cmpq %rcx, %r11
je 0x1da2f
movl %ecx, %ebp
movl %ecx, 0x18(%rsp)
movslq %eax, %rcx
movq 0x20(%r12), %rax
movq 0x28(%r12), %r10
movq (%rax,%rcx,8), %rax
movslq (%r10,%rcx,4), %r8
movslq %r13d, %rbx
addq %r8, %rbx
movl (%rax,%rbx,4), %eax
movslq %ebp, %r15
movl (%r10,%r15,4), %r8d
decl %r8d
leal 0x1(%rax), %r13d
cmpl %eax, %r8d
cmovel %r9d, %r13d
incl %ecx
leal 0x1(%r15), %r8d
xorl %eax, %eax
movq %rsi, %r12
movl %edx, %ebx
movq %rdi, %r14
movq %r11, %rbp
callq 0x7540
movq %rbp, %r11
movq %r14, %rdi
movl %ebx, %edx
movq %r12, %rsi
movq 0x20(%rsp), %r12
xorl %r9d, %r9d
movq 0x20(%r12), %rax
movq (%rax,%r15,8), %rax
movslq %r13d, %r8
movl (%rax,%r8,4), %ecx
movl %ecx, %r10d
notl %r10d
movl %r10d, (%rax,%r8,4)
movl 0x18(%rsp), %eax
cmpq %rcx, %rbp
jne 0x1d9a4
movq 0x8(%rsp), %r8
incq %r8
movq 0x28(%r12), %rcx
leaq (%rcx,%r11,4), %r14
movslq (%r14), %rax
cmpq %rax, %r8
jl 0x1d939
incq %r11
movslq 0x18(%r12), %rax
cmpq %rax, %r11
jl 0x1d91e
testl %eax, %eax
jle 0x1daa2
movq 0x20(%r12), %rax
movq 0x28(%r12), %rcx
xorl %edx, %edx
cmpl $0x0, (%rcx,%rdx,4)
jle 0x1da95
movq (%rax,%rdx,8), %rsi
xorl %edi, %edi
movl (%rsi,%rdi,4), %r8d
testl %r8d, %r8d
jns 0x1dab1
notl %r8d
movl %r8d, (%rsi,%rdi,4)
incq %rdi
movslq (%rcx,%rdx,4), %r8
cmpq %r8, %rdi
jl 0x1da79
incq %rdx
movslq 0x18(%r12), %rsi
cmpq %rsi, %rdx
jl 0x1da6d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7bd8