// File: /workspace/github_cpp_makefile_star2_O3/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, 0x10(%rsp)
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, 0x18(%rsp)
movq %rdi, %rbx
movq 0x30(%rdi), %r12
leaq 0x320ef(%rip), %rsi     # 0x4f9aa
movq %r14, %rdi
movapd %xmm3, %xmm0
movb $0x1, %al
callq 0x7550
movl 0x18(%rbx), %edx
leaq 0x320e2(%rip), %rsi     # 0x4f9b5
xorl %ebp, %ebp
movq %r14, %rdi
xorl %eax, %eax
callq 0x7550
movl 0x18(%rbx), %eax
leal -0x4(,%rax,2), %edx
leaq 0x320d7(%rip), %rsi     # 0x4f9c7
movq %r14, %rdi
xorl %eax, %eax
callq 0x7550
cmpl $0x0, 0x18(%rbx)
jle 0x1daef
leaq 0x323b1(%rip), %r15     # 0x4fcbc
movsd (%r12), %xmm0
movsd 0x31dcf(%rip), %xmm3    # 0x4f6e8
mulsd %xmm3, %xmm0
addsd 0x18(%rsp), %xmm0
movsd 0x8(%r12), %xmm1
mulsd %xmm3, %xmm1
addsd 0x8(%rsp), %xmm1
movsd 0x10(%r12), %xmm2
mulsd %xmm3, %xmm2
addsd 0x10(%rsp), %xmm2
movq %r14, %rdi
movq %r15, %rsi
movb $0x3, %al
callq 0x7550
incl %ebp
addq $0x18, %r12
movl 0x18(%rbx), %ecx
cmpl %ecx, %ebp
jl 0x1d90b
cmpl $0x2, %ecx
jl 0x1daab
movq 0x28(%rbx), %rax
movl $0x1, %r15d
xorl %r10d, %r10d
leaq 0x3205a(%rip), %rsi     # 0x4f9d6
movq %r14, 0x20(%rsp)
leaq 0x1(%r15), %rdx
cmpl $0x0, (%rax,%r15,4)
jle 0x1da9c
leaq (%rax,%r15,4), %r9
movq 0x20(%rbx), %rcx
xorl %r14d, %r14d
movq (%rcx,%r15,8), %rdi
movslq (%rdi,%r14,4), %r12
testq %r12, %r12
js 0x1da86
movl %r12d, %r8d
notl %r8d
movl %r8d, (%rdi,%r14,4)
movslq (%r9), %r9
movslq %r14d, %r8
addq %r9, %r8
movl (%rdi,%r8,4), %r8d
movl (%rax,%r12,4), %edi
decl %edi
leal 0x1(%r8), %r13d
cmpl %r8d, %edi
cmovel %r10d, %r13d
movq (%rcx,%r12,8), %r11
movslq %r13d, %r8
movl (%r11,%r8,4), %edi
movl %edi, %r9d
notl %r9d
movl %r9d, (%r11,%r8,4)
cmpq %rdi, %r15
je 0x1da86
movq %r14, 0x8(%rsp)
movl %edi, %r9d
movl %edi, 0x10(%rsp)
movslq %r12d, %rcx
movq 0x28(%rbx), %rax
movslq (%rax,%rcx,4), %r8
movslq %r13d, %rdi
addq %r8, %rdi
movl (%r11,%rdi,4), %edi
movslq %r9d, %r12
movl (%rax,%r12,4), %eax
decl %eax
leal 0x1(%rdi), %r13d
cmpl %edi, %eax
cmovel %r10d, %r13d
incl %ecx
leal 0x1(%r12), %r8d
movq 0x20(%rsp), %rdi
xorl %eax, %eax
movq %r15, %r14
movq %rdx, %r15
movq %rbx, %rbp
movq %rsi, %rbx
callq 0x7550
movq %rbx, %rsi
movq %rbp, %rbx
movq %r15, %rdx
movq %r14, %r15
xorl %r10d, %r10d
movq 0x20(%rbp), %rcx
movq (%rcx,%r12,8), %r11
movslq %r13d, %rax
movl (%r11,%rax,4), %edi
movl %edi, %r8d
notl %r8d
movl %r8d, (%r11,%rax,4)
movl 0x10(%rsp), %eax
movl %eax, %r12d
cmpq %rdi, %r14
jne 0x1d9f7
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %r14
incq %r14
leaq (%rax,%r15,4), %r9
movslq (%r9), %rdi
cmpq %rdi, %r14
jl 0x1d99b
movl 0x18(%rbx), %ecx
movslq %ecx, %rdi
movq %rdx, %r15
cmpq %rdi, %rdx
jl 0x1d981
testl %ecx, %ecx
jle 0x1daef
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rdx
xorl %esi, %esi
cmpl $0x0, (%rdx,%rsi,4)
jle 0x1dae4
movq (%rax,%rsi,8), %rcx
xorl %edi, %edi
movl (%rcx,%rdi,4), %r8d
testl %r8d, %r8d
jns 0x1dafe
notl %r8d
movl %r8d, (%rcx,%rdi,4)
incq %rdi
movslq (%rdx,%rsi,4), %r8
cmpq %r8, %rdi
jl 0x1dac5
movl 0x18(%rbx), %ecx
incq %rsi
movslq %ecx, %rdi
cmpq %rdi, %rsi
jl 0x1dab9
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7be6
nop