// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
addq $0x10, %rbx
leaq 0xb2a3d(%rip), %rsi     # 0x103414
movq %rbx, %rdi
callq 0x4480
movl 0x110(%r15), %esi
movq %rax, %rdi
callq 0x4760
leaq 0xb1b89(%rip), %r14     # 0x10257e
movq %rax, %rdi
movq %r14, %rsi
callq 0x4480
leaq 0xb2a1f(%rip), %rsi     # 0x103426
movq %rbx, %rdi
callq 0x4480
movl 0x110(%r15), %esi
movq %rax, %rdi
callq 0x4760
movq %rax, %rdi
movq %r14, %rsi
callq 0x4480
leaq 0xb2a05(%rip), %rsi     # 0x103435
movq %rbx, %rdi
callq 0x4480
movq %rax, %rdi
movq %r14, %rsi
callq 0x4480
leaq 0xb29fd(%rip), %rsi     # 0x103447
movq %rbx, %rdi
callq 0x4480
movq 0x50(%r12), %rsi
subq 0x48(%r12), %rsi
sarq $0x6, %rsi
movq %rax, %rdi
callq 0x42e0
movq %rax, %rdi
movq %r14, %rsi
callq 0x4480
leaq 0xb29dc(%rip), %rsi     # 0x103456
movq %rbx, %rdi
callq 0x4480
movl 0x110(%r15), %esi
movq %rax, %rdi
callq 0x4760
movq %rax, %rdi
movq %r14, %rsi
callq 0x4480
leaq 0xb29c2(%rip), %rsi     # 0x103465
movq %rbx, %rdi
callq 0x4480
movq %rax, %rdi
movq %r14, %rsi
callq 0x4480
leaq 0xb29bc(%rip), %rsi     # 0x103479
movq %rbx, %rdi
callq 0x4480
movq %rax, %rdi
movq %r14, %rsi
callq 0x4480
leaq 0xb29b5(%rip), %rsi     # 0x10348c
movq %rbx, %rdi
callq 0x4480
movsd 0x38(%r15), %xmm0
movq %rax, %rdi
callq 0x46c0
leaq 0xb3a1e(%rip), %r12     # 0x104512
movq %rax, %rdi
movq %r12, %rsi
callq 0x4480
movsd 0x40(%r15), %xmm0
movq %rax, %rdi
callq 0x46c0
movq %rax, %rdi
movq %r12, %rsi
callq 0x4480
movsd 0x48(%r15), %xmm0
movq %rax, %rdi
callq 0x46c0
leaq 0xb27b1(%rip), %r13     # 0x1032de
movq %rax, %rdi
movq %r13, %rsi
callq 0x4480
movq %rax, %rdi
movq %r14, %rsi
callq 0x4480
leaq 0xb2954(%rip), %rsi     # 0x10349e
movq %rbx, %rdi
callq 0x4480
movsd 0x50(%r15), %xmm0
movq %rax, %rdi
callq 0x46c0
movq %rax, %rdi
movq %r12, %rsi
callq 0x4480
movsd 0x58(%r15), %xmm0
movq %rax, %rdi
callq 0x46c0
movq %rax, %rdi
movq %r12, %rsi
callq 0x4480
movsd 0x60(%r15), %xmm0
movq %rax, %rdi
callq 0x46c0
movq %rax, %rdi
movq %r13, %rsi
callq 0x4480
movq %rax, %rdi
movq %r14, %rsi
callq 0x4480
leaq 0xb2901(%rip), %rsi     # 0x1034b0
movq %rbx, %rdi
callq 0x4480
movsd 0x68(%r15), %xmm0
movq %rax, %rdi
callq 0x46c0
movq %rax, %rdi
movq %r12, %rsi
callq 0x4480
movsd 0x70(%r15), %xmm0
movq %rax, %rdi
callq 0x46c0
movq %rax, %rdi
movq %r12, %rsi
callq 0x4480
movsd 0x78(%r15), %xmm0
movq %rax, %rdi
callq 0x46c0
movq %rax, %rdi
movq %r13, %rsi
callq 0x4480
movq %rax, %rdi
movq %r14, %rsi
callq 0x4480
leaq 0xb28ae(%rip), %rsi     # 0x1034c2
movq %rbx, %rdi
callq 0x4480
movq %rax, %rdi
movq %r14, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x4480