// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/poreinfo.cc
// Function: analyzePoreInfoFiles(ATOM_NETWORK*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void  analyzePoreInfoFiles(ATOM_NETWORK *atmnet, std::string listfilename, std::string outputfilename){

 vector< vector<POREINFO> > PoreInfoFrames;

 fstream flist;
 int nfiles = 1;

 flist.open(listfilename.c_str());
 if(flist.is_open()==false){
   cerr << "Error: A file with .poreinfo frames (" << listfilename << ") failed to open. \n" ;
   }else{
   // file with a list of frames is open. proceed.
   while(!flist.eof())
    {
    string inputfilename;

    flist >> inputfilename;
    if(flist.eof()){
      nfiles--;
      break;
      };

    nfiles++;

    loadPoreInfoFile(&PoreInfoFrames, inputfilename);

    cout << "File " << inputfilename  << " read." << "\n";

    };

   flist.close();

   }; // ends while loop over a file list

 cout << nfiles << " frames loaded.\n";


}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rsi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x4520
movq (%rbx), %rsi
leaq 0x58(%rsp), %rdi
movl $0x18, %edx
callq 0x43d0
leaq 0xd8(%rsp), %rdi
callq 0x4120
testb %al, %al
je 0x9a5e8
leaq 0x10(%rsp), %r14
movl $0x1, %ebx
leaq 0x20(%rsp), %r12
movq 0xfcaec(%rip), %rbp     # 0x196fc0
movq 0x58(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x78(%rsp,%rax)
jne 0x9a5dc
movq %r14, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x58(%rsp), %rdi
movq %rsp, %rsi
callq 0x4560
movq 0x58(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x78(%rsp,%rax), %r15d
testb $0x2, %r15b
jne 0x9a5ba
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xf32a
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x9a6d4
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x9a566
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4470
movl $0x5, %edx
movq %rbp, %rdi
leaq 0xbd2ef(%rip), %rsi     # 0x157864
callq 0x44e0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rdi
callq 0x44e0
movq %rax, %r13
movl $0x6, %edx
movq %rax, %rdi
leaq 0xbd278(%rip), %rsi     # 0x157815
callq 0x44e0
movl $0x1, %edx
movq %r13, %rdi
leaq 0xbaf7d(%rip), %rsi     # 0x15552e
callq 0x44e0
incl %ebx
jmp 0x9a5bc
decl %ebx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x9a5d2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
testb $0x2, %r15b
je 0x9a4d4
leaq 0x58(%rsp), %rdi
callq 0x4090
jmp 0x9a62c
movq 0xfca01(%rip), %rdi     # 0x196ff0
leaq 0xbdbab(%rip), %rsi     # 0x1581a1
movl $0x25, %edx
callq 0x44e0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0xfc9e2(%rip), %rdi     # 0x196ff0
callq 0x44e0
movl $0x1, %ebx
leaq 0xbd219(%rip), %rsi     # 0x157838
movl $0x13, %edx
movq %rax, %rdi
callq 0x44e0
movq 0xfc98d(%rip), %rdi     # 0x196fc0
movl %ebx, %esi
callq 0x4750
leaq 0xbd229(%rip), %rsi     # 0x15786a
movl $0x10, %edx
movq %rax, %rdi
callq 0x44e0
leaq 0x58(%rsp), %rdi
callq 0x4110
leaq 0x40(%rsp), %rdi
callq 0x9b50e
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x9a6c2
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x9a6a2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x9a6a2
movq %rax, %rbx
jmp 0x9a6b8
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x9a6b8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x58(%rsp), %rdi
callq 0x4110
leaq 0x40(%rsp), %rdi
callq 0x9b50e
movq %rbx, %rdi
callq 0x4780