// File: /workspace/github_cpp_makefile_star2_O3/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 0x984b4
leaq 0x10(%rsp), %r14
movl $0x1, %ebx
leaq 0x20(%rsp), %r12
movq 0xfcc20(%rip), %rbp     # 0x194fc0
movq 0x58(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x78(%rsp,%rax)
jne 0x984a8
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 0x98486
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xf3ce
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x985a0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x98432
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4470
movl $0x5, %edx
movq %rbp, %rdi
leaq 0xbd583(%rip), %rsi     # 0x1559c4
callq 0x44e0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rdi
callq 0x44e0
movq %rax, %r13
movl $0x6, %edx
movq %rax, %rdi
leaq 0xbd50c(%rip), %rsi     # 0x155975
callq 0x44e0
movl $0x1, %edx
movq %r13, %rdi
leaq 0xbb1a1(%rip), %rsi     # 0x15361e
callq 0x44e0
incl %ebx
jmp 0x98488
decl %ebx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x9849e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
testb $0x2, %r15b
je 0x983a0
leaq 0x58(%rsp), %rdi
callq 0x4090
jmp 0x984f8
movq 0xfcb35(%rip), %rdi     # 0x194ff0
leaq 0xbde3f(%rip), %rsi     # 0x156301
movl $0x25, %edx
callq 0x44e0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0xfcb16(%rip), %rdi     # 0x194ff0
callq 0x44e0
movl $0x1, %ebx
leaq 0xbd4ad(%rip), %rsi     # 0x155998
movl $0x13, %edx
movq %rax, %rdi
callq 0x44e0
movq 0xfcac1(%rip), %rdi     # 0x194fc0
movl %ebx, %esi
callq 0x4750
leaq 0xbd4bd(%rip), %rsi     # 0x1559ca
movl $0x10, %edx
movq %rax, %rdi
callq 0x44e0
leaq 0x58(%rsp), %rdi
callq 0x4110
leaq 0x40(%rsp), %rdi
callq 0x993ea
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x9858e
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x9856e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x9856e
movq %rax, %rbx
jmp 0x98584
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x98584
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x58(%rsp), %rdi
callq 0x4110
leaq 0x40(%rsp), %rdi
callq 0x993ea
movq %rbx, %rdi
callq 0x4780