// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/voronoicell.cc
// Function: BASIC_VCELL::writeToVMD(std::basic_fstream<char, std::char_traits<char>>&, int)
void BASIC_VCELL::writeToVMD(fstream &output, int n){
  output << "set nodecells(" << n <<") {" << "\n";
  
  // Iterate over all nodes in the cell
  for(unsigned int i = 0; i < nodeCoords.size(); i++){
    Point curPoint = nodeCoords[i];
    int nodeID = nodeIDs[i];
    output << "{color $nodeColors(" << nodeID << ") }" << "\n"; 
    output << "{sphere {" << curPoint[0] << " " << curPoint[1] << " " << curPoint[2]
           << "} radius $nodeRadii(" << nodeID << ") resolution $sphere_resolution}" << "\n";
  }
  output << "}" << "\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
addq $0x10, %rbx
leaq 0xe8417(%rip), %rsi     # 0x1543fa
movl $0xe, %edx
movq %rbx, %rdi
callq 0x44e0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4750
movq %rax, %r15
leaq 0xe8414(%rip), %rsi     # 0x154418
movl $0x3, %edx
movq %rax, %rdi
callq 0x44e0
leaq 0xe7606(%rip), %rsi     # 0x15361e
movl $0x1, %edx
movq %r15, %rdi
callq 0x44e0
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x6c1b8
movl $0x1, %r12d
xorl %ecx, %ecx
leaq (%rcx,%rcx,2), %rdx
movq 0x10(%rax,%rdx,8), %rsi
movq %rsi, 0x20(%rsp)
movups (%rax,%rdx,8), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x18(%r14), %rax
movl (%rax,%rcx,4), %ebp
movl %ebp, 0xc(%rsp)
movl $0x13, %edx
movq %rbx, %rdi
leaq 0xe8323(%rip), %rsi     # 0x15438e
callq 0x44e0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4750
movq %rax, %r13
movl $0x3, %edx
movq %rax, %rdi
leaq 0xe82f0(%rip), %rsi     # 0x15437c
callq 0x44e0
movl $0x1, %edx
movq %r13, %rdi
leaq 0xe757e(%rip), %rsi     # 0x15361e
callq 0x44e0
movl $0x9, %edx
movq %rbx, %rdi
leaq 0xe540f(%rip), %rsi     # 0x1514c3
callq 0x44e0
leaq 0x10(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rbp
movq %r14, %rbx
leaq 0xe94ea(%rip), %r14     # 0x1555d6
movq %r14, %rsi
callq 0x44e0
movq %r15, %rdi
movl $0x1, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x46b0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %r14
movq %rbp, %rbx
callq 0x44e0
movq %r15, %rdi
movl $0x2, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x46b0
movq %rax, %r13
movl $0x14, %edx
movq %rax, %rdi
leaq 0xe8251(%rip), %rsi     # 0x1543a2
callq 0x44e0
movq %r13, %rdi
movl 0xc(%rsp), %esi
callq 0x4750
movq %rax, %r13
movl $0x20, %edx
movq %rax, %rdi
leaq 0xe8243(%rip), %rsi     # 0x1543b7
callq 0x44e0
movl $0x1, %edx
movq %r13, %rdi
leaq 0xe7496(%rip), %rsi     # 0x15361e
callq 0x44e0
movl %r12d, %ecx
movq (%r14), %rax
movq 0x8(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
incl %r12d
cmpq %rcx, %rdx
ja 0x6c03a
leaq 0xe81bf(%rip), %rsi     # 0x15437e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
leaq 0xe744b(%rip), %rsi     # 0x15361e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq