// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %rbx
movq %r8, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, 0x18(%rsp)
leaq 0xd268c(%rip), %rsi     # 0x1005e0
movq %r9, %rdi
callq 0x36bf4
testb %al, %al
je 0x2df81
leaq 0xd26f5(%rip), %rsi     # 0x10065c
movq 0x122052(%rip), %rdi    # 0x14ffc0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4480
leaq 0xd268f(%rip), %rsi     # 0x100617
movq %rbx, %rdi
callq 0x36bf4
testb %al, %al
je 0x2e0b1
xorl %eax, %eax
leaq 0x30(%rsp), %rbp
leaq 0xd656c(%rip), %rbx     # 0x104512
movl %eax, %r14d
movq 0x8(%r15), %rax
subq (%r15), %rax
cqto
pushq $0x18
popq %rcx
idivq %rcx
cmpq %r14, %rax
jbe 0x2e1da
movq %r15, %rdi
movq %r14, %rsi
callq 0x246b4
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups (%rax), %xmm0
movups %xmm0, (%rsp)
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3e536
movq %rbp, %rdi
xorl %esi, %esi
callq 0x63c78
movsd (%rax), %xmm0
movq 0x18(%rsp), %rdi
callq 0x46c0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4480
movq %rax, %r12
movq %rbp, %rdi
pushq $0x1
popq %rsi
callq 0x63c78
movsd (%rax), %xmm0
movq %r12, %rdi
callq 0x46c0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4480
movq %rax, %r12
movq %rbp, %rdi
pushq $0x2
popq %rsi
callq 0x63c78
movsd (%rax), %xmm0
movq %r12, %rdi
callq 0x46c0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4480
movq %rax, %r12
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0xac00
movl (%rax), %esi
movq %r12, %rdi
callq 0x4760
movq %rax, %rdi
leaq 0xce457(%rip), %rsi     # 0xfc4cf
callq 0x4480
movq %rax, %r12
movq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0xaa50
movsd (%rax), %xmm0
movq %r12, %rdi
callq 0x46c0
movq %rax, %rdi
leaq 0xd44db(%rip), %rsi     # 0x10257e
callq 0x4480
leal 0x1(%r14), %eax
jmp 0x2dfa6
leaq 0xd2571(%rip), %rsi     # 0x100629
movq %rbx, %rdi
callq 0x36bf4
testb %al, %al
je 0x2e1e9
xorl %eax, %eax
leaq 0x30(%rsp), %rbx
leaq 0xd643c(%rip), %r13     # 0x104512
leaq 0xd44a1(%rip), %rbp     # 0x10257e
movl %eax, %r14d
movq 0x8(%r15), %rax
subq (%r15), %rax
cqto
pushq $0x18
popq %rcx
idivq %rcx
cmpq %r14, %rax
jbe 0x2e1da
movq %r15, %rdi
movq %r14, %rsi
callq 0x246b4
movups (%rax), %xmm0
movaps %xmm0, 0x30(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x40(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x63c78
movsd (%rax), %xmm0
movq 0x18(%rsp), %rdi
callq 0x46c0
movq %rax, %rdi
movq %r13, %rsi
callq 0x4480
movq %rax, %r12
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0x63c78
movsd (%rax), %xmm0
movq %r12, %rdi
callq 0x46c0
movq %rax, %rdi
movq %r13, %rsi
callq 0x4480
movq %rax, %r12
movq %rbx, %rdi
pushq $0x2
popq %rsi
callq 0x63c78
movsd (%rax), %xmm0
movq %r12, %rdi
callq 0x46c0
movq %rax, %rdi
movq %r13, %rsi
callq 0x4480
movq %rax, %r12
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0xac00
movl (%rax), %esi
movq %r12, %rdi
callq 0x4760
movq %rax, %rdi
leaq 0xce32a(%rip), %rsi     # 0xfc4cf
callq 0x4480
movq %rax, %r12
movq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0xaa50
movsd (%rax), %xmm0
movq %r12, %rdi
callq 0x46c0
movq %rax, %rdi
movq %rbp, %rsi
callq 0x4480
leal 0x1(%r14), %eax
jmp 0x2e0dd
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd2443(%rip), %rsi     # 0x100633
jmp 0x2df67