// File: 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
movq %rsp, %rbp
subq $0x300, %rsp            # imm = 0x300
movq %rsi, -0x2a0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x106a00
leaq -0x240(%rbp), %rdi
callq 0x5660
jmp 0x105945
movq -0x2a0(%rbp), %rdi
movl $0x1, -0x250(%rbp)
callq 0x5200
movq %rax, -0x2b0(%rbp)
movl $0x8, %edi
movl $0x10, %esi
callq 0x47640
movl %eax, -0x2a4(%rbp)
jmp 0x105979
movl -0x2a4(%rbp), %edx
movq -0x2b0(%rbp), %rsi
leaq -0x240(%rbp), %rdi
callq 0x54b0
jmp 0x105994
leaq -0x240(%rbp), %rdi
callq 0x58b0
movb %al, -0x2b1(%rbp)
jmp 0x1059a8
movb -0x2b1(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x105a3c
movq 0x16d62d(%rip), %rdi    # 0x272ff0
leaq 0xf7580(%rip), %rsi     # 0x1fcf4a
callq 0x5540
movq %rax, -0x2c0(%rbp)
jmp 0x1059d8
movq -0x2a0(%rbp), %rsi
movq -0x2c0(%rbp), %rdi
callq 0x5480
movq %rax, -0x2c8(%rbp)
jmp 0x1059f4
movq -0x2c8(%rbp), %rdi
leaq 0xf6c2f(%rip), %rsi     # 0x1fc631
callq 0x5540
jmp 0x105a09
jmp 0x105c07
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x105c61
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x105c55
jmp 0x105a3e
movq -0x240(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x240(%rbp,%rax), %rdi
callq 0x5960
movb %al, -0x2c9(%rbp)
jmp 0x105a5e
movb -0x2c9(%rbp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x105a6f
jmp 0x105bf7
leaq -0x270(%rbp), %rdi
movq %rdi, -0x2d8(%rbp)
callq 0x5720
movq -0x2d8(%rbp), %rsi
leaq -0x240(%rbp), %rdi
callq 0x56a0
jmp 0x105a97
movq -0x240(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x240(%rbp,%rax), %rdi
callq 0x5960
movb %al, -0x2d9(%rbp)
jmp 0x105ab7
movb -0x2d9(%rbp), %al
testb $0x1, %al
jne 0x105ac3
jmp 0x105af8
movl -0x250(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x250(%rbp)
movl $0x3, -0x274(%rbp)
jmp 0x105bac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x105be9
movl -0x250(%rbp), %eax
incl %eax
movl %eax, -0x250(%rbp)
leaq -0x298(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x5220
jmp 0x105b1b
leaq -0x30(%rbp), %rdi
leaq -0x298(%rbp), %rsi
callq 0x105c80
jmp 0x105b2d
leaq -0x298(%rbp), %rdi
callq 0x5300
movq 0x16d480(%rip), %rdi    # 0x272fc0
leaq 0xf6b16(%rip), %rsi     # 0x1fc65d
callq 0x5540
movq %rax, -0x2e8(%rbp)
jmp 0x105b55
movq -0x2e8(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x5480
movq %rax, -0x2f0(%rbp)
jmp 0x105b71
movq -0x2f0(%rbp), %rdi
leaq 0xf6a8f(%rip), %rsi     # 0x1fc60e
callq 0x5540
movq %rax, -0x2f8(%rbp)
jmp 0x105b8d
movq -0x2f8(%rbp), %rdi
leaq 0xf3a8a(%rip), %rsi     # 0x1f9625
callq 0x5540
jmp 0x105ba2
movl $0x0, -0x274(%rbp)
leaq -0x270(%rbp), %rdi
callq 0x5300
movl -0x274(%rbp), %eax
testl %eax, %eax
je 0x105bc6
jmp 0x105bc4
jmp 0x105bf7
jmp 0x105a3e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
leaq -0x298(%rbp), %rdi
callq 0x5300
leaq -0x270(%rbp), %rdi
callq 0x5300
jmp 0x105c55
leaq -0x240(%rbp), %rdi
callq 0x50a0
jmp 0x105c05
jmp 0x105c07
movl -0x250(%rbp), %esi
movq 0x16d3ac(%rip), %rdi    # 0x272fc0
callq 0x58d0
movq %rax, -0x300(%rbp)
jmp 0x105c22
movq -0x300(%rbp), %rdi
leaq 0xf6a33(%rip), %rsi     # 0x1fc663
callq 0x5540
jmp 0x105c37
leaq -0x240(%rbp), %rdi
callq 0x5150
leaq -0x30(%rbp), %rdi
callq 0x106a20
addq $0x300, %rsp            # imm = 0x300
popq %rbp
retq
leaq -0x240(%rbp), %rdi
callq 0x5150
leaq -0x30(%rbp), %rdi
callq 0x106a20
movq -0x248(%rbp), %rdi
callq 0x58f0
nopw %cs:(%rax,%rax)