// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/voronoicell.cc
// Function: writeVMDEnvVars(std::basic_fstream<char, std::char_traits<char>>&, ATOM_NETWORK*, VORONOI_NETWORK*)
void writeVMDEnvVars(fstream &output,  ATOM_NETWORK *atmnet, VORONOI_NETWORK *vornet){
  // Write information about the number of each component
  output << "set num_vorcells " << atmnet->numAtoms << "\n";
  output << "set num_faces " << atmnet->numAtoms << "\n";
  output << "set num_vornets 1" << "\n";
  output << "set num_nodes " << vornet->nodes.size() << "\n";
  output << "set num_atoms " << atmnet->numAtoms << "\n";
  output << "set num_unitcells 1" << "\n";
  output << "set num_channels 0" << "\n";
  
  // Write unitcell vector information
  output << "set uc_a_vector {" << atmnet->v_a.x << " " << atmnet->v_a.y 
         << " " << atmnet->v_a.z << "}" << "\n";
  output << "set uc_b_vector {" << atmnet->v_b.x << " " << atmnet->v_b.y
         << " " << atmnet->v_b.z << "}" << "\n";
  output << "set uc_c_vector {" << atmnet->v_c.x << " " << atmnet->v_c.y
         << " " << atmnet->v_c.z << "}" << "\n";
  output << "set sphere_resolution 100" << "\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
addq $0x10, %rbx
leaq 0xe84a1(%rip), %rsi     # 0x1563c4
movl $0x11, %edx
movq %rbx, %rdi
callq 0x44e0
movl 0x110(%r15), %esi
movq %rbx, %rdi
callq 0x4750
leaq 0xe75e8(%rip), %r14     # 0x15552e
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe8479(%rip), %rsi     # 0x1563d6
movl $0xe, %edx
movq %rbx, %rdi
callq 0x44e0
movl 0x110(%r15), %esi
movq %rbx, %rdi
callq 0x4750
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe8455(%rip), %rsi     # 0x1563e5
movl $0x11, %edx
movq %rbx, %rdi
callq 0x44e0
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe8443(%rip), %rsi     # 0x1563f7
movl $0xe, %edx
movq %rbx, %rdi
callq 0x44e0
movq 0x50(%r12), %rsi
subq 0x48(%r12), %rsi
sarq $0x6, %rsi
movq %rbx, %rdi
callq 0x42b0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe8418(%rip), %rsi     # 0x156406
movl $0xe, %edx
movq %rbx, %rdi
callq 0x44e0
movl 0x110(%r15), %esi
movq %rbx, %rdi
callq 0x4750
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe83f4(%rip), %rsi     # 0x156415
movl $0x13, %edx
movq %rbx, %rdi
callq 0x44e0
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe83e4(%rip), %rsi     # 0x156429
movl $0x12, %edx
movq %rbx, %rdi
callq 0x44e0
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe83d3(%rip), %rsi     # 0x15643c
movl $0x11, %edx
movq %rbx, %rdi
callq 0x44e0
movsd 0x38(%r15), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %r13
leaq 0xe93f8(%rip), %r12     # 0x157486
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movsd 0x40(%r15), %xmm0
movq %r13, %rdi
callq 0x46b0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movsd 0x48(%r15), %xmm0
movq %r13, %rdi
callq 0x46b0
movq %rax, %rbp
leaq 0xe81b7(%rip), %r13     # 0x15628e
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44e0
movl $0x1, %edx
movq %rbp, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe8350(%rip), %rsi     # 0x15644e
movl $0x11, %edx
movq %rbx, %rdi
callq 0x44e0
movsd 0x50(%r15), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movsd 0x58(%r15), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movsd 0x60(%r15), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44e0
movl $0x1, %edx
movq %rbp, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe82db(%rip), %rsi     # 0x156460
movl $0x11, %edx
movq %rbx, %rdi
callq 0x44e0
movsd 0x68(%r15), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movsd 0x70(%r15), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movsd 0x78(%r15), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44e0
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe8266(%rip), %rsi     # 0x156472
movl $0x19, %edx
movq %rbx, %rdi
callq 0x44e0
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x44e0