// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/area_and_volume.cc
// Function: NEWreportPoints(std::ostream&, ATOM_NETWORK*, std::vector<Point, std::allocator<Point>>*, std::vector<int, std::allocator<int>>*, std::vector<Point, std::allocator<Point>>*, std::vector<int, std::allocator<int>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void NEWreportPoints(ostream &output, ATOM_NETWORK *atmnet, vector<Point> *axsPoints, vector<int> *axsPChIDs, 
                                                         vector<Point> *inaxsPoints, vector<int> *inaxsPPIDs,
                                                         string type)
{ 
 if(type=="ZEOVIS")
   {
   output << "{color green}" << "\n";
   for(unsigned int i = 0; i < axsPoints->size(); i++){
     Point coords = atmnet->abc_to_xyz(axsPoints->at(i));
     output << "{point { " << coords[0] << " " << coords[1] << " " << coords[2] << "}}" << "\n";
     };

   output << "{color red}" << "\n";
   for(unsigned int i = 0; i < inaxsPoints->size(); i++){
     Point coords = atmnet->abc_to_xyz(inaxsPoints->at(i));
     output << "{point {" <<  coords[0] << " " << coords[1] << " " << coords[2] << "}}" << "\n";
     };
   } 
 else if(type=="VISIT")
  {
  for(unsigned int i = 0; i < axsPoints->size(); i++){
    Point coords = atmnet->abc_to_xyz(axsPoints->at(i));
    output << coords[0] << " " << coords[1] << " " << coords[2] << " 1 a " << axsPChIDs->at(i) << "\n";
    }
  for(unsigned int i = 0; i < inaxsPoints->size(); i++){
    Point coords = atmnet->abc_to_xyz(inaxsPoints->at(i));
    output <<  coords[0] << " " << coords[1] << " " << coords[2] << " 0 n " << inaxsPPIDs->at(i) << "\n";
    }

  }
 else if(type=="LIVERPOOL")
  {
  for(unsigned int i = 0; i < axsPoints->size(); i++){
    Point coords = axsPoints->at(i);
    output << coords[0] << " " << coords[1] << " " << coords[2] << " 1 a " << axsPChIDs->at(i) << "\n";
    }
  for(unsigned int i = 0; i < inaxsPoints->size(); i++){
    Point coords = inaxsPoints->at(i);
    output <<  coords[0] << " " << coords[1] << " " << coords[2] << " 0 n " << inaxsPPIDs->at(i) << "\n";
    }
  }
 else
  {
  cout << "Output format unknown. Points not saved\n";
  };


}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r9, 0x50(%rsp)
movq %r8, 0x20(%rsp)
movq %rcx, 0x58(%rsp)
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, 0x18(%rsp)
movq 0xa0(%rsp), %rbx
leaq 0x116b73(%rip), %rsi    # 0x1535c0
movq %rbx, %rdi
callq 0x4170
testl %eax, %eax
movq %r15, 0x28(%rsp)
je 0x3cab2
leaq 0x116b92(%rip), %rsi    # 0x1535f7
movq %rbx, %rdi
callq 0x4170
testl %eax, %eax
je 0x3cd65
leaq 0x116b8d(%rip), %rsi    # 0x153609
movq %rbx, %rdi
callq 0x4170
testl %eax, %eax
je 0x3cfe2
movq 0x15a52d(%rip), %rdi    # 0x196fc0
leaq 0x116b79(%rip), %rsi    # 0x153613
movl $0x28, %edx
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x44e0
leaq 0x116b0e(%rip), %rsi    # 0x1535c7
movl $0xd, %edx
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x44e0
leaq 0x118a5c(%rip), %rsi    # 0x15552e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
movq (%r13), %rax
cmpq %rax, 0x8(%r13)
je 0x3cc05
movl $0x1, %r12d
xorl %ecx, %ecx
leaq 0x30(%rsp), %rbx
leaq 0x11a985(%rip), %rbp    # 0x157486
movq 0x18(%rsp), %r14
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%rax,%rcx,8), %rdx
movq %rdx, 0x10(%rsp)
movups (%rax,%rcx,8), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x52144
movl $0x9, %edx
movq %r14, %rdi
leaq 0x116a9f(%rip), %rsi    # 0x1535d5
callq 0x44e0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r14, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x44e0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x44e0
movq %rbx, %rdi
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
leaq 0x116a24(%rip), %rsi    # 0x1535df
callq 0x44e0
movl $0x1, %edx
movq %r15, %rdi
movq 0x28(%rsp), %r15
leaq 0x11895a(%rip), %rsi    # 0x15552e
callq 0x44e0
movl %r12d, %ecx
movq (%r13), %rax
movq 0x8(%r13), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
incl %r12d
cmpq %rcx, %rdx
ja 0x3cb06
leaq 0x1169d6(%rip), %rsi    # 0x1535e2
movl $0xb, %edx
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x44e0
leaq 0x118909(%rip), %rsi    # 0x15552e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
movq 0x20(%rsp), %rcx
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
je 0x3d23e
movl $0x1, %ebp
xorl %ecx, %ecx
leaq 0x30(%rsp), %rbx
leaq 0x11a82f(%rip), %r13    # 0x157486
leaq 0x1188d0(%rip), %r12    # 0x15552e
movq 0x18(%rsp), %r14
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%rax,%rcx,8), %rdx
movq %rdx, 0x10(%rsp)
movups (%rax,%rcx,8), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x52144
movl $0x8, %edx
movq %r14, %rdi
leaq 0x11695b(%rip), %rsi    # 0x1535ee
callq 0x44e0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r14, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44e0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44e0
movq %rbx, %rdi
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
leaq 0x1168c7(%rip), %rsi    # 0x1535df
callq 0x44e0
movl $0x1, %edx
movq %r15, %rdi
movq 0x28(%rsp), %r15
movq %r12, %rsi
callq 0x44e0
movq 0x20(%rsp), %rdx
movl %ebp, %ecx
movq (%rdx), %rax
movq 0x8(%rdx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x3cc63
jmp 0x3d23e
movq (%r13), %rax
cmpq %rax, 0x8(%r13)
je 0x3cea2
movl $0x1, %ebp
xorl %ebx, %ebx
movq %r13, 0x60(%rsp)
leaq (%rbx,%rbx,2), %rcx
movq 0x10(%rax,%rcx,8), %rdx
movq %rdx, 0x10(%rsp)
movups (%rax,%rcx,8), %xmm0
movups %xmm0, (%rsp)
leaq 0x30(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x52144
movq %r13, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq 0x18(%rsp), %rdi
callq 0x46b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
leaq 0x11a6b7(%rip), %r14    # 0x157486
movq %r14, %rsi
callq 0x44e0
movq %r13, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
movq %r13, %rdi
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x5, %edx
movq %rax, %rdi
leaq 0x1167cf(%rip), %rsi    # 0x1535fd
callq 0x44e0
movq 0x58(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %rbx, %rdx
jbe 0x3d24d
movl (%rax,%rbx,4), %esi
movq %r15, %rdi
callq 0x4750
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1186c5(%rip), %rsi    # 0x15552e
callq 0x44e0
movl %ebp, %ebx
movq 0x60(%rsp), %r13
movq (%r13), %rax
movq 0x8(%r13), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
incl %ebp
cmpq %rbx, %rcx
movq 0x28(%rsp), %r15
ja 0x3cd7f
movq 0x20(%rsp), %rcx
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
je 0x3d23e
movl $0x1, %ebp
xorl %ebx, %ebx
leaq 0x30(%rsp), %r12
leaq 0x11a5bf(%rip), %r13    # 0x157486
leaq (%rbx,%rbx,2), %rcx
movq 0x10(%rax,%rcx,8), %rdx
movq %rdx, 0x10(%rsp)
movups (%rax,%rcx,8), %xmm0
movups %xmm0, (%rsp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x52144
movq %r12, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq 0x18(%rsp), %rdi
callq 0x46b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44e0
movq %r12, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44e0
movq %r12, %rdi
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x5, %edx
movq %rax, %rdi
leaq 0x116699(%rip), %rsi    # 0x153603
callq 0x44e0
movq 0x50(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %rbx, %rdx
jbe 0x3d24d
movl (%rax,%rbx,4), %esi
movq %r15, %rdi
callq 0x4750
movl $0x1, %edx
movq %rax, %rdi
leaq 0x118589(%rip), %rsi    # 0x15552e
callq 0x44e0
movl %ebp, %ebx
movq 0x20(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
incl %ebp
cmpq %rbx, %rcx
movq 0x28(%rsp), %r15
ja 0x3cec7
jmp 0x3d23e
movq (%r13), %rax
cmpq %rax, 0x8(%r13)
je 0x3d109
movl $0x1, %ebp
xorl %r12d, %r12d
leaq (%r12,%r12,2), %rcx
movq 0x10(%rax,%rcx,8), %rdx
movq %rdx, 0x40(%rsp)
movups (%rax,%rcx,8), %xmm0
movaps %xmm0, 0x30(%rsp)
leaq 0x30(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq 0x18(%rsp), %rdi
callq 0x46b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
leaq 0x11a448(%rip), %rbx    # 0x157486
movq %rbx, %rsi
callq 0x44e0
movq %r14, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x44e0
movq %r14, %rdi
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x5, %edx
movq %rax, %rdi
leaq 0x116560(%rip), %rsi    # 0x1535fd
callq 0x44e0
movq 0x58(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %r12, %rdx
jbe 0x3d259
movl (%rax,%r12,4), %esi
movq %r15, %rdi
callq 0x4750
movl $0x1, %edx
movq %rax, %rdi
leaq 0x118455(%rip), %rsi    # 0x15552e
callq 0x44e0
movl %ebp, %r12d
movq (%r13), %rax
movq 0x8(%r13), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
incl %ebp
cmpq %r12, %rcx
ja 0x3cff8
movq 0x20(%rsp), %rcx
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
je 0x3d23e
movl $0x1, %r13d
xorl %ebp, %ebp
leaq 0x30(%rsp), %rbx
leaq 0x11a357(%rip), %r15    # 0x157486
leaq 0x1164cd(%rip), %r14    # 0x153603
leaq (,%rbp,2), %rcx
addq %rbp, %rcx
movq 0x10(%rax,%rcx,8), %rdx
movq %rdx, 0x40(%rsp)
movups (%rax,%rcx,8), %xmm0
movaps %xmm0, 0x30(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq 0x18(%rsp), %rdi
callq 0x46b0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x44e0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r12, %rdi
callq 0x46b0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x44e0
movq %rbx, %rdi
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r12, %rdi
callq 0x46b0
movq %rax, %r12
movl $0x5, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
movq 0x50(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %rbp, %rdx
jbe 0x3d265
movl (%rax,%rbp,4), %esi
movq %r12, %rdi
callq 0x4750
movl $0x1, %edx
movq %rax, %rdi
leaq 0x118325(%rip), %rsi    # 0x15552e
callq 0x44e0
movl %r13d, %ebp
movq 0x20(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
incl %r13d
cmpq %rbp, %rcx
ja 0x3d136
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x112451(%rip), %rdi    # 0x14f6a5
movq %rbx, %rsi
jmp 0x3d26f
leaq 0x112445(%rip), %rdi    # 0x14f6a5
movq %r12, %rsi
jmp 0x3d26f
leaq 0x112439(%rip), %rdi    # 0x14f6a5
movq %rbp, %rsi
xorl %eax, %eax
callq 0x4630