// File: 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
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
movq %rdi, %rax
movq 0x10(%rbp), %rdi
movq %rdi, -0x158(%rbp)
movq %rax, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x1815e8(%rip), %rsi    # 0x1f6640
callq 0x845d0
testb $0x1, %al
jne 0x75066
jmp 0x75361
movq -0x8(%rbp), %rdi
leaq 0x1815d6(%rip), %rsi    # 0x1f6647
callq 0x5540
movq %rax, %rdi
leaq 0x1845a5(%rip), %rsi    # 0x1f9625
callq 0x5540
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq %rax, -0x160(%rbp)
movq -0x18(%rbp), %rdi
callq 0x17c60
movq %rax, %rcx
movq -0x160(%rbp), %rax
cmpq %rcx, %rax
jae 0x751d5
movq -0x10(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x18(%rbp), %rdi
movl -0x34(%rbp), %eax
movl %eax, %esi
callq 0x59c60
movq -0x180(%rbp), %rsi
movq (%rax), %rcx
movq %rcx, -0x68(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x60(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x58(%rbp)
leaq -0x50(%rbp), %rdi
leaq -0x68(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x961d0
movq -0x8(%rbp), %rdi
leaq 0x18153b(%rip), %rsi    # 0x1f6655
callq 0x5540
movq %rax, -0x178(%rbp)
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
callq 0xe9d70
movq -0x178(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x187163(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0x170(%rbp)
leaq -0x50(%rbp), %rdi
movl $0x1, %esi
callq 0xe9d70
movq -0x170(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x18712f(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0x168(%rbp)
leaq -0x50(%rbp), %rdi
movl $0x2, %esi
callq 0xe9d70
movq -0x168(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x1814ac(%rip), %rsi    # 0x1f665f
callq 0x5540
movq %rax, %rdi
leaq 0x184463(%rip), %rsi    # 0x1f9625
callq 0x5540
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x7508c
movq -0x8(%rbp), %rdi
leaq 0x181482(%rip), %rsi    # 0x1f6662
callq 0x5540
movq %rax, %rdi
leaq 0x184436(%rip), %rsi    # 0x1f9625
callq 0x5540
movl $0x0, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movq %rax, -0x188(%rbp)
movq -0x28(%rbp), %rdi
callq 0x17c60
movq %rax, %rcx
movq -0x188(%rbp), %rax
cmpq %rcx, %rax
jae 0x7535c
movq -0x10(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x28(%rbp), %rdi
movl -0x6c(%rbp), %eax
movl %eax, %esi
callq 0x59c60
movq -0x1a8(%rbp), %rsi
movq (%rax), %rcx
movq %rcx, -0xa0(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x98(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x90(%rbp)
leaq -0x88(%rbp), %rdi
leaq -0xa0(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x961d0
movq -0x8(%rbp), %rdi
leaq 0x1813d6(%rip), %rsi    # 0x1f666e
callq 0x5540
movq %rax, -0x1a0(%rbp)
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
callq 0xe9d70
movq -0x1a0(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x186fe2(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0x198(%rbp)
leaq -0x88(%rbp), %rdi
movl $0x1, %esi
callq 0xe9d70
movq -0x198(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x186fab(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0x190(%rbp)
leaq -0x88(%rbp), %rdi
movl $0x2, %esi
callq 0xe9d70
movq -0x190(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x181325(%rip), %rsi    # 0x1f665f
callq 0x5540
movq %rax, %rdi
leaq 0x1842dc(%rip), %rsi    # 0x1f9625
callq 0x5540
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x751fb
jmp 0x7597f
movq -0x158(%rbp), %rdi
leaq 0x181308(%rip), %rsi    # 0x1f6677
callq 0x845d0
testb $0x1, %al
jne 0x7537d
jmp 0x756a4
movl $0x0, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
movq %rax, -0x1b0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x17c60
movq %rax, %rcx
movq -0x1b0(%rbp), %rax
cmpq %rcx, %rax
jae 0x7550e
movq -0x10(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x18(%rbp), %rdi
movl -0xa4(%rbp), %eax
movl %eax, %esi
callq 0x59c60
movq -0x1d8(%rbp), %rsi
movq (%rax), %rcx
movq %rcx, -0xd8(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0xd0(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0xc8(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0xd8(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x961d0
movq -0x8(%rbp), %rax
movq %rax, -0x1d0(%rbp)
leaq -0xc0(%rbp), %rdi
xorl %esi, %esi
callq 0xe9d70
movq -0x1d0(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x186e5c(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0x1c8(%rbp)
leaq -0xc0(%rbp), %rdi
movl $0x1, %esi
callq 0xe9d70
movq -0x1c8(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x186e25(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0x1c0(%rbp)
leaq -0xc0(%rbp), %rdi
movl $0x2, %esi
callq 0xe9d70
movq -0x1c0(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x1811bd(%rip), %rsi    # 0x1f667d
callq 0x5540
movq %rax, -0x1b8(%rbp)
movq -0x20(%rbp), %rdi
movl -0xa4(%rbp), %eax
movl %eax, %esi
callq 0x101d0
movq -0x1b8(%rbp), %rdi
movl (%rax), %esi
callq 0x58d0
movq %rax, %rdi
leaq 0x184130(%rip), %rsi    # 0x1f9625
callq 0x5540
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0x75387
movl $0x0, -0xdc(%rbp)
movl -0xdc(%rbp), %eax
movq %rax, -0x1e0(%rbp)
movq -0x28(%rbp), %rdi
callq 0x17c60
movq %rax, %rcx
movq -0x1e0(%rbp), %rax
cmpq %rcx, %rax
jae 0x7569f
movq -0x10(%rbp), %rax
movq %rax, -0x208(%rbp)
movq -0x28(%rbp), %rdi
movl -0xdc(%rbp), %eax
movl %eax, %esi
callq 0x59c60
movq -0x208(%rbp), %rsi
movq (%rax), %rcx
movq %rcx, -0x110(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x108(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x100(%rbp)
leaq -0xf8(%rbp), %rdi
leaq -0x110(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x961d0
movq -0x8(%rbp), %rax
movq %rax, -0x200(%rbp)
leaq -0xf8(%rbp), %rdi
xorl %esi, %esi
callq 0xe9d70
movq -0x200(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x186ccb(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0x1f8(%rbp)
leaq -0xf8(%rbp), %rdi
movl $0x1, %esi
callq 0xe9d70
movq -0x1f8(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x186c94(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0x1f0(%rbp)
leaq -0xf8(%rbp), %rdi
movl $0x2, %esi
callq 0xe9d70
movq -0x1f0(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x181032(%rip), %rsi    # 0x1f6683
callq 0x5540
movq %rax, -0x1e8(%rbp)
movq -0x30(%rbp), %rdi
movl -0xdc(%rbp), %eax
movl %eax, %esi
callq 0x101d0
movq -0x1e8(%rbp), %rdi
movl (%rax), %esi
callq 0x58d0
movq %rax, %rdi
leaq 0x183f9f(%rip), %rsi    # 0x1f9625
callq 0x5540
movl -0xdc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xdc(%rbp)
jmp 0x75518
jmp 0x7597d
movq -0x158(%rbp), %rdi
leaq 0x180fd7(%rip), %rsi    # 0x1f6689
callq 0x845d0
testb $0x1, %al
jne 0x756c0
jmp 0x75968
movl $0x0, -0x114(%rbp)
movl -0x114(%rbp), %eax
movq %rax, -0x210(%rbp)
movq -0x18(%rbp), %rdi
callq 0x17c60
movq %rax, %rcx
movq -0x210(%rbp), %rax
cmpq %rcx, %rax
jae 0x75813
movq -0x18(%rbp), %rdi
movl -0x114(%rbp), %eax
movl %eax, %esi
callq 0x59c60
movq (%rax), %rcx
movq %rcx, -0x130(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x128(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x120(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x230(%rbp)
leaq -0x130(%rbp), %rdi
xorl %esi, %esi
callq 0xe9d70
movq -0x230(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x186b57(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0x228(%rbp)
leaq -0x130(%rbp), %rdi
movl $0x1, %esi
callq 0xe9d70
movq -0x228(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x186b20(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0x220(%rbp)
leaq -0x130(%rbp), %rdi
movl $0x2, %esi
callq 0xe9d70
movq -0x220(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x180eb8(%rip), %rsi    # 0x1f667d
callq 0x5540
movq %rax, -0x218(%rbp)
movq -0x20(%rbp), %rdi
movl -0x114(%rbp), %eax
movl %eax, %esi
callq 0x101d0
movq -0x218(%rbp), %rdi
movl (%rax), %esi
callq 0x58d0
movq %rax, %rdi
leaq 0x183e2b(%rip), %rsi    # 0x1f9625
callq 0x5540
movl -0x114(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x114(%rbp)
jmp 0x756ca
movl $0x0, -0x134(%rbp)
movl -0x134(%rbp), %eax
movq %rax, -0x238(%rbp)
movq -0x28(%rbp), %rdi
callq 0x17c60
movq %rax, %rcx
movq -0x238(%rbp), %rax
cmpq %rcx, %rax
jae 0x75966
movq -0x28(%rbp), %rdi
movl -0x134(%rbp), %eax
movl %eax, %esi
callq 0x59c60
movq (%rax), %rcx
movq %rcx, -0x150(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x148(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x140(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x258(%rbp)
leaq -0x150(%rbp), %rdi
xorl %esi, %esi
callq 0xe9d70
movq -0x258(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x186a04(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0x250(%rbp)
leaq -0x150(%rbp), %rdi
movl $0x1, %esi
callq 0xe9d70
movq -0x250(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x1869cd(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0x248(%rbp)
leaq -0x150(%rbp), %rdi
movl $0x2, %esi
callq 0xe9d70
movq -0x248(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x180d6b(%rip), %rsi    # 0x1f6683
callq 0x5540
movq %rax, -0x240(%rbp)
movq -0x30(%rbp), %rdi
movl -0x134(%rbp), %eax
movl %eax, %esi
callq 0x101d0
movq -0x240(%rbp), %rdi
movl (%rax), %esi
callq 0x58d0
movq %rax, %rdi
leaq 0x183cd8(%rip), %rsi    # 0x1f9625
callq 0x5540
movl -0x134(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x134(%rbp)
jmp 0x7581d
jmp 0x7597b
movq 0x1fd651(%rip), %rdi    # 0x272fc0
leaq 0x180d1d(%rip), %rsi    # 0x1f6693
callq 0x5540
jmp 0x7597d
jmp 0x7597f
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
nopl (%rax,%rax)