// File: icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::output_pov_mesh(double, double, double, double**, int**)
void voronoicell_base::output_pov_mesh(double x, double y, double z, double** v, int** f) {
    int i, j, k, l, m, n;
    double *ptsp = pts;
    for (i = 0; i < p; i++, ptsp += 3){
        v[i][0] = x + *ptsp*0.5; v[i][1] = y + ptsp[1] * 0.5; v[i][2] = z + ptsp[2] * 0.5;
    }
    int numf = 0;
    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);
                f[numf][0] = i; f[numf][1] = k; f[numf++][2] = m;
                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)
movq %rsi, -0x28(%rbp)
movq %rdx, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq 0x30(%rax), %rax
movq %rax, -0x50(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x60(%rbp), %rcx
movl -0x34(%rbp), %eax
cmpl 0x18(%rcx), %eax
jge 0x45a0f
movsd -0x10(%rbp), %xmm1
movq -0x50(%rbp), %rax
movsd (%rax), %xmm0
movsd 0x4e761(%rip), %xmm2    # 0x940e0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsd %xmm0, (%rax)
movsd -0x18(%rbp), %xmm1
movq -0x50(%rbp), %rax
movsd 0x8(%rax), %xmm0
movsd 0x4e733(%rip), %xmm2    # 0x940e0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsd %xmm0, 0x8(%rax)
movsd -0x20(%rbp), %xmm1
movq -0x50(%rbp), %rax
movsd 0x10(%rax), %xmm0
movsd 0x4e704(%rip), %xmm2    # 0x940e0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsd %xmm0, 0x10(%rax)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x50(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x50(%rbp)
jmp 0x4595a
movl $0x0, -0x54(%rbp)
movl $0x1, -0x34(%rbp)
movq -0x60(%rbp), %rcx
movl -0x34(%rbp), %eax
cmpl 0x18(%rcx), %eax
jge 0x45bd5
movl $0x0, -0x38(%rbp)
movq -0x60(%rbp), %rcx
movl -0x38(%rbp), %eax
movq 0x28(%rcx), %rcx
movslq -0x34(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x45bc5
movq -0x60(%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 0x45bb5
movq -0x60(%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 -0x60(%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 0x45bb3
movq -0x60(%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, %ecx
movq -0x60(%rbp), %rax
movl %ecx, -0x48(%rbp)
movl -0x34(%rbp), %edx
movq -0x30(%rbp), %rcx
movslq -0x54(%rbp), %rsi
movq (%rcx,%rsi,8), %rcx
movl %edx, (%rcx)
movl -0x3c(%rbp), %edx
movq -0x30(%rbp), %rcx
movslq -0x54(%rbp), %rsi
movq (%rcx,%rsi,8), %rcx
movl %edx, 0x4(%rcx)
movl -0x44(%rbp), %edx
movq -0x30(%rbp), %rcx
movl -0x54(%rbp), %esi
movl %esi, %edi
addl $0x1, %edi
movl %edi, -0x54(%rbp)
movslq %esi, %rsi
movq (%rcx,%rsi,8), %rcx
movl %edx, 0x8(%rcx)
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 0x45af1
jmp 0x45bb5
jmp 0x45bb7
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x45a34
jmp 0x45bc7
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x45a1d
movq -0x60(%rbp), %rdi
callq 0x50210
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)