// File: /workspace/github_cpp_makefile_star2_O3/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 0xe717d(%rip), %rsi     # 0x1544b4
movl $0x11, %edx
movq %rbx, %rdi
callq 0x44e0
movl 0x110(%r15), %esi
movq %rbx, %rdi
callq 0x4750
leaq 0xe62c4(%rip), %r14     # 0x15361e
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe7155(%rip), %rsi     # 0x1544c6
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 0xe7131(%rip), %rsi     # 0x1544d5
movl $0x11, %edx
movq %rbx, %rdi
callq 0x44e0
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe711f(%rip), %rsi     # 0x1544e7
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 0xe70f4(%rip), %rsi     # 0x1544f6
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 0xe70d0(%rip), %rsi     # 0x154505
movl $0x13, %edx
movq %rbx, %rdi
callq 0x44e0
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe70c0(%rip), %rsi     # 0x154519
movl $0x12, %edx
movq %rbx, %rdi
callq 0x44e0
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe70af(%rip), %rsi     # 0x15452c
movl $0x11, %edx
movq %rbx, %rdi
callq 0x44e0
movsd 0x38(%r15), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %r13
leaq 0xe8134(%rip), %r12     # 0x1555d6
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 0xe6e93(%rip), %r13     # 0x15437e
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44e0
movl $0x1, %edx
movq %rbp, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe702c(%rip), %rsi     # 0x15453e
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 0xe6fb7(%rip), %rsi     # 0x154550
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 0xe6f42(%rip), %rsi     # 0x154562
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