// File: /workspace/github_cpp_makefile_star2_O1/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 0xe9767(%rip), %rsi     # 0x15630a
movl $0xe, %edx
movq %rbx, %rdi
callq 0x44e0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4750
movq %rax, %r15
leaq 0xe9764(%rip), %rsi     # 0x156328
movl $0x3, %edx
movq %rax, %rdi
callq 0x44e0
leaq 0xe8956(%rip), %rsi     # 0x15552e
movl $0x1, %edx
movq %r15, %rdi
callq 0x44e0
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x6cd78
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 0xe9673(%rip), %rsi     # 0x15629e
callq 0x44e0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4750
movq %rax, %r13
movl $0x3, %edx
movq %rax, %rdi
leaq 0xe9640(%rip), %rsi     # 0x15628c
callq 0x44e0
movl $0x1, %edx
movq %r13, %rdi
leaq 0xe88ce(%rip), %rsi     # 0x15552e
callq 0x44e0
movl $0x9, %edx
movq %rbx, %rdi
leaq 0xe67bf(%rip), %rsi     # 0x153433
callq 0x44e0
leaq 0x10(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rbp
movq %r14, %rbx
leaq 0xea7da(%rip), %r14     # 0x157486
movq %r14, %rsi
callq 0x44e0
movq %r15, %rdi
movl $0x1, %esi
callq 0x85478
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 0x85478
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x46b0
movq %rax, %r13
movl $0x14, %edx
movq %rax, %rdi
leaq 0xe95a1(%rip), %rsi     # 0x1562b2
callq 0x44e0
movq %r13, %rdi
movl 0xc(%rsp), %esi
callq 0x4750
movq %rax, %r13
movl $0x20, %edx
movq %rax, %rdi
leaq 0xe9593(%rip), %rsi     # 0x1562c7
callq 0x44e0
movl $0x1, %edx
movq %r13, %rdi
leaq 0xe87e6(%rip), %rsi     # 0x15552e
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 0x6cbfa
leaq 0xe950f(%rip), %rsi     # 0x15628e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
leaq 0xe879b(%rip), %rsi     # 0x15552e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq