// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/voronoicell.cc
// Function: VOR_CELL::writeVMDOutlined(std::basic_fstream<char, std::char_traits<char>>&, int)
void VOR_CELL::writeVMDOutlined(fstream &output, int n){
  output << "set vorcells(" << n <<") {" << "\n";
  
  // Iterate over all nodes in VOR_CELL
  for(int i = 0; i < numVertices; i++){
    Point curPoint = vertexCoords.find(i)->second;
    int nodeID = idMappings.find(i)->second;
    output << "{color $nodeColors(" << nodeID << ") }" << "\n"; 
    output << "{sphere {" << curPoint[0] << " " << curPoint[1] << " " << curPoint[2] << "} radius $nodeRadii(" << nodeID << ") resolution $sphere_resolution}" << "\n";
  }
  
  // Iterate over all edges in VOR_CELL
  output << "{color $vorcellColors(" << n << ") }" << "\n";
  for(int i = 0; i < numVertices; i++){
    Point p1 = vertexCoords[i];
    set<int>::iterator vertexIter = edgeConnections[i].begin();
    while(vertexIter != edgeConnections[i].end()){
      Point p2 = vertexCoords[*vertexIter];
	output << "{line {" 
	       << p1[0] << " " << p1[1] << " " << p1[2] << "} {" 
	       << p2[0] << " " << p2[1] << " " << p2[2] << "} width 1}" << "\n";
	vertexIter++;
    }
  }
  output << "}" << "\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r15
addq $0x10, %rbx
leaq 0xe8e35(%rip), %rsi     # 0x154380
movl $0xd, %edx
movq %rbx, %rdi
callq 0x44e0
movq %rbx, 0x10(%rsp)
movq %rbx, %rdi
movl %ebp, 0x1c(%rsp)
movl %ebp, %esi
callq 0x4750
movq %rax, %r14
leaq 0xe8ea3(%rip), %rsi     # 0x154418
movl $0x3, %edx
movq %rax, %rdi
callq 0x44e0
leaq 0xe8095(%rip), %rsi     # 0x15361e
movl $0x1, %edx
movq %r14, %rdi
callq 0x44e0
cmpl $0x0, 0x18(%r15)
movq %r15, 0x8(%rsp)
jle 0x6b785
leaq 0xb8(%r15), %rsi
leaq 0x58(%r15), %r13
xorl %r12d, %r12d
movq %rsi, 0x38(%rsp)
movq 0xc0(%r15), %rcx
movq %rsi, %rdx
testq %rcx, %rcx
je 0x6b5f5
movq %rsi, %rax
xorl %edx, %edx
cmpl %r12d, 0x20(%rcx)
setl %dl
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rdx,8), %rcx
testq %rcx, %rcx
jne 0x6b5cb
movq %rsi, %rdx
cmpq %rsi, %rax
je 0x6b5f5
cmpl 0x20(%rax), %r12d
cmovlq %rsi, %rax
movq %rax, %rdx
movq 0x38(%rdx), %rax
movq %rax, 0x30(%rsp)
movups 0x28(%rdx), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x60(%r15), %rcx
movq %r13, %rdx
testq %rcx, %rcx
je 0x6b640
movq %r13, %rax
xorl %edx, %edx
cmpl %r12d, 0x20(%rcx)
setl %dl
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rdx,8), %rcx
testq %rcx, %rcx
jne 0x6b616
movq %r13, %rdx
cmpq %r13, %rax
je 0x6b640
cmpl 0x20(%rax), %r12d
cmovlq %r13, %rax
movq %rax, %rdx
movl 0x24(%rdx), %r14d
movl $0x13, %edx
movq 0x10(%rsp), %r15
movq %r15, %rdi
leaq 0xe8d36(%rip), %rsi     # 0x15438e
callq 0x44e0
movq %r15, %rdi
movl %r14d, %esi
callq 0x4750
movq %rax, %rbp
movl $0x3, %edx
movq %rax, %rdi
leaq 0xe8d02(%rip), %rsi     # 0x15437c
callq 0x44e0
movl $0x1, %edx
movq %rbp, %rdi
leaq 0xe7f90(%rip), %rsi     # 0x15361e
callq 0x44e0
movl $0x9, %edx
movq %r15, %rdi
leaq 0xe5e21(%rip), %rsi     # 0x1514c3
callq 0x44e0
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0xe9f02(%rip), %r15     # 0x1555d6
movq %r15, %rsi
callq 0x44e0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x44e0
movq %rbx, %rdi
movl $0x2, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x14, %edx
movq %rax, %rdi
leaq 0xe8c6f(%rip), %rsi     # 0x1543a2
callq 0x44e0
movq %rbp, %rdi
movl %r14d, %esi
callq 0x4750
movq %rax, %r14
movl $0x20, %edx
movq %rax, %rdi
leaq 0xe8c62(%rip), %rsi     # 0x1543b7
callq 0x44e0
movl $0x1, %edx
movq %r14, %rdi
leaq 0xe7eb5(%rip), %rsi     # 0x15361e
callq 0x44e0
incl %r12d
movq 0x8(%rsp), %r15
cmpl 0x18(%r15), %r12d
movq 0x38(%rsp), %rsi
jl 0x6b5b9
leaq 0xe8c4c(%rip), %rsi     # 0x1543d8
movl $0x16, %edx
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x44e0
movq %rbx, %rdi
movl 0x1c(%rsp), %esi
callq 0x4750
movq %rax, %r14
leaq 0xe8bc8(%rip), %rsi     # 0x15437c
movl $0x3, %edx
movq %rax, %rdi
callq 0x44e0
leaq 0xe7e56(%rip), %rsi     # 0x15361e
movl $0x1, %edx
movq %r14, %rdi
callq 0x44e0
movq 0x8(%rsp), %rax
movl $0x0, 0x4(%rsp)
cmpl $0x0, 0x18(%rax)
jle 0x6b9e2
leaq 0xb0(%rax), %r15
leaq 0x20(%rsp), %rbp
leaq 0xe9dd7(%rip), %r12     # 0x1555d6
leaq 0x40(%rsp), %r13
movq %r15, %rdi
leaq 0x4(%rsp), %rsi
callq 0x6dc6e
movq 0x8(%rsp), %rsi
movq 0x10(%rax), %rcx
movq %rcx, 0x30(%rsp)
movups (%rax), %xmm0
movaps %xmm0, 0x20(%rsp)
movslq 0x4(%rsp), %rax
movq 0xe0(%rsi), %rcx
leaq (%rax,%rax,2), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
addq $0x8, %rcx
movq 0x10(%rcx), %r14
cmpq %rcx, %r14
je 0x6b9d3
leaq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0x6dc6e
movups (%rax), %xmm0
movaps %xmm0, 0x40(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x50(%rsp)
movl $0x7, %edx
movq %rbx, %rdi
leaq 0xe5d25(%rip), %rsi     # 0x1515a0
callq 0x44e0
movq %rbp, %rdi
xorl %esi, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movq %rbp, %rdi
movl $0x1, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movq %rbp, %rdi
movl $0x2, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbx
movl $0x3, %edx
movq %rax, %rdi
leaq 0xe6b2b(%rip), %rsi     # 0x15242b
callq 0x44e0
movq %r13, %rdi
xorl %esi, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movq %r13, %rdi
movl $0x1, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movq %r13, %rdi
movl $0x2, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0xe8a6a(%rip), %rsi     # 0x1543ef
callq 0x44e0
movl $0x1, %edx
movq %rbx, %rdi
movq 0x10(%rsp), %rbx
leaq 0xe7c80(%rip), %rsi     # 0x15361e
callq 0x44e0
movq %r14, %rdi
callq 0x44f0
movq 0x8(%rsp), %rsi
movq %rax, %r14
movslq 0x4(%rsp), %rax
movq 0xe0(%rsi), %rcx
leaq (%rax,%rax,2), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
addq $0x8, %rcx
jmp 0x6b846
incl %eax
movl %eax, 0x4(%rsp)
cmpl 0x18(%rsi), %eax
jl 0x6b804
leaq 0xe8995(%rip), %rsi     # 0x15437e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
leaq 0xe7c21(%rip), %rsi     # 0x15361e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop