// File: /workspace/github_cpp_makefile_star2_O2/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, %rbx
movsd %xmm2, 0x8(%rsp)
movsd %xmm1, 0x20(%rsp)
movsd %xmm0, 0x18(%rsp)
movq %rdi, %r14
movq 0x30(%rdi), %r12
leaq 0x2c399(%rip), %rsi     # 0x44aa2
movq %rbx, %rdi
movapd %xmm3, %xmm0
movb $0x1, %al
callq 0x7540
movl 0x18(%r14), %edx
leaq 0x2c38b(%rip), %rsi     # 0x44aad
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0x7540
movl 0x18(%r14), %eax
leal -0x4(,%rax,2), %edx
leaq 0x2c37f(%rip), %rsi     # 0x44abf
movq %rbx, 0x10(%rsp)
movq %rbx, %rdi
xorl %eax, %eax
callq 0x7540
leaq 0x2c648(%rip), %r15     # 0x44d9e
movl 0x18(%r14), %eax
cmpl %eax, %ebp
jge 0x187af
movsd (%r12), %xmm0
movsd 0x2bd4c(%rip), %xmm3    # 0x444b8
mulsd %xmm3, %xmm0
addsd 0x18(%rsp), %xmm0
movsd 0x8(%r12), %xmm1
mulsd %xmm3, %xmm1
addsd 0x20(%rsp), %xmm1
movsd 0x10(%r12), %xmm2
mulsd %xmm3, %xmm2
addsd 0x8(%rsp), %xmm2
movq 0x10(%rsp), %rdi
movq %r15, %rsi
movb $0x3, %al
callq 0x7540
incl %ebp
addq $0x18, %r12
jmp 0x18756
pushq $0x1
popq %rbp
cltq
cmpq %rax, %rbp
jge 0x188a6
leaq 0x1(%rbp), %r12
xorl %ecx, %ecx
movq 0x28(%r14), %rdx
movslq (%rdx,%rbp,4), %rax
cmpq %rax, %rcx
jge 0x1889a
movq 0x20(%r14), %rax
movq (%rax,%rbp,8), %rsi
movq %rcx, 0x8(%rsp)
movslq (%rsi,%rcx,4), %rcx
testq %rcx, %rcx
js 0x1888d
movl %ecx, %edi
notl %edi
movq 0x8(%rsp), %r8
movl %edi, (%rsi,%r8,4)
movslq (%rdx,%rbp,4), %rdi
movslq %r8d, %r8
addq %rdi, %r8
movl (%rsi,%r8,4), %esi
movl (%rdx,%rcx,4), %edx
decl %edx
leal 0x1(%rsi), %r13d
cmpl %esi, %edx
movl $0x0, %edx
cmovel %edx, %r13d
leaq (%rax,%rcx,8), %rdx
movq (%rdx), %rsi
movslq %r13d, %rdx
movl (%rsi,%rdx,4), %r15d
movl %r15d, %edi
notl %edi
movl %edi, (%rsi,%rdx,4)
cmpq %r15, %rbp
je 0x1888d
movslq %r15d, %rbx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq 0x28(%r14), %rsi
movslq (%rsi,%rcx,4), %rdi
addq %rdx, %rdi
movl (%rax,%rdi,4), %eax
movl (%rsi,%rbx,4), %edx
decl %edx
leal 0x1(%rax), %r13d
cmpl %eax, %edx
movl $0x0, %eax
cmovel %eax, %r13d
incl %ecx
leal 0x1(%r15), %r8d
movq 0x10(%rsp), %rdi
leaq 0x2c258(%rip), %rsi     # 0x44ace
movl %r12d, %edx
xorl %eax, %eax
callq 0x7540
movq 0x20(%r14), %rax
leaq (%rax,%rbx,8), %rdx
movl %r15d, %ecx
jmp 0x18821
movq 0x8(%rsp), %rcx
incq %rcx
jmp 0x187c3
movl 0x18(%r14), %eax
movq %r12, %rbp
jmp 0x187b2
movq %r14, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1ea08