// File: Luthaf[P]zeopp/area_and_volume.cc
// Function: NEWreportPointsValue(std::ostream&, ATOM_NETWORK*, std::vector<Point, std::allocator<Point>>*, std::vector<int, std::allocator<int>>*, std::vector<double, std::allocator<double>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void NEWreportPointsValue(ostream &output, ATOM_NETWORK *atmnet, vector<Point> *axsPoints, vector<int> *axsPChIDs, 
                                                         vector<double> *value, string type)
{ 
 if(type=="ZEOVIS")
   {
   cout << "ZEOVIS not supported. Not saving anything.\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] << " " << axsPChIDs->at(i) << "  " << value->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] << " " << axsPChIDs->at(i) << "  " << value->at(i) << "\n";
    }
  }
 else
  {
  cout << "Output format unknown. Points not saved\n";
  };


}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %r9, -0x98(%rbp)
movq %rdi, %rax
movq -0x98(%rbp), %rdi
movq %rdi, -0x90(%rbp)
movq %rax, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %rdi, -0x30(%rbp)
leaq 0x180c6e(%rip), %rsi    # 0x1f6640
callq 0x845d0
testb $0x1, %al
jne 0x759dd
jmp 0x759f5
movq 0x1fd5dc(%rip), %rdi    # 0x272fc0
leaq 0x180cd1(%rip), %rsi    # 0x1f66bc
callq 0x5540
jmp 0x75d55
movq -0x90(%rbp), %rdi
leaq 0x180c74(%rip), %rsi    # 0x1f6677
callq 0x845d0
testb $0x1, %al
jne 0x75a11
jmp 0x75bb1
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x17c60
movq %rax, %rcx
movq -0xa0(%rbp), %rax
cmpq %rcx, %rax
jae 0x75bac
movq -0x10(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x18(%rbp), %rdi
movl -0x34(%rbp), %eax
movl %eax, %esi
callq 0x59c60
movq -0xd0(%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), %rax
movq %rax, -0xc8(%rbp)
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
callq 0xe9d70
movq -0xc8(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x1867e3(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0xc0(%rbp)
leaq -0x50(%rbp), %rdi
movl $0x1, %esi
callq 0xe9d70
movq -0xc0(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x1867af(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0xb8(%rbp)
leaq -0x50(%rbp), %rdi
movl $0x2, %esi
callq 0xe9d70
movq -0xb8(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x18677b(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0xb0(%rbp)
movq -0x20(%rbp), %rdi
movl -0x34(%rbp), %eax
movl %eax, %esi
callq 0x101d0
movq -0xb0(%rbp), %rdi
movl (%rax), %esi
callq 0x58d0
movq %rax, %rdi
leaq 0x17c923(%rip), %rsi    # 0x1f2488
callq 0x5540
movq %rax, -0xa8(%rbp)
movq -0x28(%rbp), %rdi
movl -0x34(%rbp), %eax
movl %eax, %esi
callq 0xfc80
movq -0xa8(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x183a8c(%rip), %rsi    # 0x1f9625
callq 0x5540
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x75a18
jmp 0x75d53
movq -0x90(%rbp), %rdi
leaq 0x180aca(%rip), %rsi    # 0x1f6689
callq 0x845d0
testb $0x1, %al
jne 0x75bcd
jmp 0x75d3e
movl $0x0, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movq %rax, -0xd8(%rbp)
movq -0x18(%rbp), %rdi
callq 0x17c60
movq %rax, %rcx
movq -0xd8(%rbp), %rax
cmpq %rcx, %rax
jae 0x75d3c
movq -0x18(%rbp), %rdi
movl -0x6c(%rbp), %eax
movl %eax, %esi
callq 0x59c60
movq (%rax), %rcx
movq %rcx, -0x88(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x80(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
callq 0xe9d70
movq -0x100(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x186659(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0xf8(%rbp)
leaq -0x88(%rbp), %rdi
movl $0x1, %esi
callq 0xe9d70
movq -0xf8(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x186622(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0xf0(%rbp)
leaq -0x88(%rbp), %rdi
movl $0x2, %esi
callq 0xe9d70
movq -0xf0(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x1865eb(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, -0xe8(%rbp)
movq -0x20(%rbp), %rdi
movl -0x6c(%rbp), %eax
movl %eax, %esi
callq 0x101d0
movq -0xe8(%rbp), %rdi
movl (%rax), %esi
callq 0x58d0
movq %rax, %rdi
leaq 0x17c793(%rip), %rsi    # 0x1f2488
callq 0x5540
movq %rax, -0xe0(%rbp)
movq -0x28(%rbp), %rdi
movl -0x6c(%rbp), %eax
movl %eax, %esi
callq 0xfc80
movq -0xe0(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x1838fc(%rip), %rsi    # 0x1f9625
callq 0x5540
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x75bd4
jmp 0x75d51
movq 0x1fd27b(%rip), %rdi    # 0x272fc0
leaq 0x180947(%rip), %rsi    # 0x1f6693
callq 0x5540
jmp 0x75d53
jmp 0x75d55
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nop