// File: /workspace/github_cpp_makefile_star2_O3/schneebergerlab[P]GameteBinning/asPollinator_1.0.cpp
// Function: collect_marker_info(char const*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::map<unsigned long, ALLELE, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, ALLELE>>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::map<unsigned long, ALLELE, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, ALLELE>>>>>>*)
bool collect_marker_info(const char* file, 
                         map<string, map<unsigned long, ALLELE> >* mkr)
{
    // type of markers: snps(, 1-bp deletion and 1-bp insertion)
    cout << "   Info: reading marker info from " << file << endl;
    ifstream ifp;
    ifp.open(file);
    if(!ifp.good())
    {
        return false;
    }
    int num = 0;
    int raw = 0;
    int del = 0;
    int ins = 0;
    bool adjsnp = false; // SNPs directly next to each other
    int    nadj = 0;
    while(ifp.good())
    {
        string line("");
        getline(ifp, line);
        if(line.size()==0 || line[0]=='#') continue;
        
        /* e.g.,
	        ks	1	164393	C	G  -- snp
		ks	1	164413	AC	TA -- twp snps
		ks	1	460940  -	A  -- insertion
		ks	1	468923  T	-  -- deletion
        */
        vector<string> lineinfo = split_string(line, '\t');
        if(lineinfo[3].size() != lineinfo[4].size()) continue; // non-snps
        raw ++;
        
        if(lineinfo[3].size() > 1 && !adjsnp)
        {
            cout << "   Info: snp line will be separated, e.g, " << line << endl;
            cout << "       You will get a total number after reading all marker info. " << endl;
            adjsnp = true;
            nadj ++;
        }
        else
        if(lineinfo[3].size()>1)
        {
            nadj ++;
        }        
        //  split "double/triple/..." snps
        for(int snpi = 0; snpi < lineinfo[3].size(); snpi ++)
        {
            string ref = lineinfo[3].substr(snpi, 1);
            string alt = lineinfo[4].substr(snpi, 1);
            //
            unsigned long pos = strtoul(lineinfo[2].c_str(), NULL, 0);
            pos += snpi;
            std::stringstream sspos;
            sspos.str("");
            sspos << pos;
            //
            string        chrkey     = lineinfo[1];
            string        poskey_str = sspos.str();
            unsigned long poskey     = strtoul(poskey_str.c_str(), NULL, 0);
            string refb              = ref;
            string altb              = alt; // "GA", "G-" or "-A"
            string pollenb           = "N"; // unknown
            //
            map<string, map<unsigned long, ALLELE> >::iterator itr;
            map<string, map<unsigned long, ALLELE> >::iterator itr_end;
            itr     = (*mkr).find(chrkey);
            itr_end = (*mkr).end();
            
            if(itr == itr_end) 
            {
                ALLELE tmpallele;
                tmpallele.refb    = refb;
                tmpallele.altb    = altb;
                tmpallele.pollenb = pollenb;
                map<unsigned long, ALLELE> indMarker;
                indMarker.insert(std::pair<unsigned long, ALLELE>(poskey, tmpallele));
                // new contig
                (*mkr).insert(std::pair<string, map<unsigned long, ALLELE> >(chrkey, indMarker));
                num ++;
            } 
            else
            {
                ALLELE tmpallele;
                tmpallele.refb = refb;
                tmpallele.altb = altb;
                tmpallele.pollenb = pollenb;                
                // contig collected already with new marker position
                (*itr).second.insert(std::pair<unsigned long, ALLELE>(poskey, tmpallele));    
                num ++;                       
            }
            //
            if(alt=="-") del ++;
            if(ref=="-") ins ++;           
        }
    }
    ifp.close();
    cout << "   Info: recording " << num << " (of " << raw << ")" << " markers info done " << endl;  
    cout << "   Info: total number of \"neighboring\" snps: "     << nadj << endl;  
    cout << "   Info: total number of del markers: "              << del  << endl;
    cout << "   Info: total number of ins markers: "              << ins  << endl;
    if(num==0)
    {
        cout << "   Error: no markers found in marker file. " << endl;
        return false;
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5d8, %rsp            # imm = 0x5D8
movq %rsi, 0x98(%rsp)
movq %rdi, %rbx
movq 0x16541(%rip), %r14     # 0x20fd8
leaq 0xf73f(%rip), %rsi      # 0x1a1dd
movl $0x22, %edx
movq %r14, %rdi
callq 0x32f0
testq %rbx, %rbx
je 0xaacc
movq %rbx, %rdi
callq 0x3110
movq 0x16519(%rip), %rdi     # 0x20fd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x32f0
jmp 0xaae4
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x3410
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
leaq 0x3d0(%rsp), %r14
movq %r14, %rdi
callq 0x32e0
movq %r14, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x3170
movq 0x3d0(%rsp), %rax
movq -0x18(%rax), %rax
xorl %r13d, %r13d
cmpl $0x0, 0x3f0(%rsp,%rax)
jne 0xb5b7
leaq 0x20(%rsp), %r12
movq 0x98(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x1f0(%rsp)
leaq 0x148(%rsp), %rbx
movl $0x0, 0x30(%rsp)
movl $0x0, 0x34(%rsp)
xorl %r15d, %r15d
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
movq $0x0, 0xa0(%rsp)
movq %r12, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0xf326(%rip), %rdx      # 0x19ec9
movq %rdx, %rsi
callq 0x16550
movq 0x3d0(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x3d0(%rsp), %r14
addq %r14, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
callq 0x3480
cmpq $0x0, 0x18(%rsp)
movq 0x10(%rsp), %rdi
je 0xb399
cmpb $0x23, (%rdi)
je 0xb399
movb $0x9, 0x248(%rsp)
leaq 0xb0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x248(%rsp), %rdx
callq 0x188a8
movq 0xb0(%rsp), %rsi
movq 0x68(%rsi), %rax
cmpq 0x88(%rsi), %rax
jne 0xb387
cmpq $0x2, %rax
setb %cl
orb 0xa0(%rsp), %cl
testb $0x1, %cl
je 0xac52
cmpq $0x2, %rax
sbbl $-0x1, 0xc(%rsp)
jmp 0xad0e
movl $0x2a, %edx
movq 0x1637a(%rip), %rdi     # 0x20fd8
leaq 0xf59b(%rip), %rsi      # 0x1a200
callq 0x32f0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x1635d(%rip), %rdi     # 0x20fd8
callq 0x32f0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movl $0x42, %edx
movq 0x16322(%rip), %rdi     # 0x20fd8
leaq 0xf56e(%rip), %rsi      # 0x1a22b
callq 0x32f0
movq 0x1630f(%rip), %rcx     # 0x20fd8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq 0x162f1(%rip), %rdi     # 0x20fd8
callq 0x3030
movq %rax, %rdi
callq 0x31b0
incl 0xc(%rsp)
movq 0xb0(%rsp), %rsi
movq 0x68(%rsi), %rax
movb $0x1, %cl
movq %rcx, 0xa0(%rsp)
incl 0x34(%rsp)
testq %rax, %rax
je 0xb387
xorl %r12d, %r12d
addq $0x60, %rsi
movl $0x1, %ecx
leaq 0x1d0(%rsp), %rdi
movq %r12, %rdx
callq 0x32b0
movq 0xb0(%rsp), %rsi
subq $-0x80, %rsi
movl $0x1, %ecx
leaq 0x1b0(%rsp), %rdi
movq %r12, %rdx
callq 0x32b0
movq 0xb0(%rsp), %rax
movq 0x40(%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x30d0
movq %rax, %r14
leaq 0x248(%rsp), %rdi
callq 0x31d0
leaq 0x158(%rsp), %rax
movq %rax, 0x148(%rsp)
movq %rbx, %rdi
leaq 0xf132(%rip), %rdx      # 0x19ec9
movq %rdx, %rsi
callq 0x16550
leaq 0x260(%rsp), %rdi
movq %rbx, %rsi
callq 0x3370
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0xadd4
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3290
addq %r12, %r14
leaq 0x258(%rsp), %rdi
movq %r14, %rsi
callq 0x31a0
movq 0xb0(%rsp), %rax
leaq 0x138(%rsp), %rcx
movq %rcx, 0x128(%rsp)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x128(%rsp), %rdi
callq 0x164ba
leaq 0x1f8(%rsp), %rdi
leaq 0x260(%rsp), %rsi
callq 0x33c0
movq 0x1f8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x30d0
movq %rax, 0xa8(%rsp)
leaq 0x118(%rsp), %rax
movq %rax, 0x108(%rsp)
movq 0x1d0(%rsp), %rsi
movq 0x1d8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %rdi
callq 0x164ba
leaq 0xf8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0x164ba
leaq 0xd8(%rsp), %rax
movq %rax, 0xc8(%rsp)
leaq 0xc8(%rsp), %rdi
leaq 0xe74c(%rip), %rsi      # 0x19610
leaq 0xe746(%rip), %rdx      # 0x19611
callq 0x16550
movq 0x98(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x16c48
movq %rax, %r14
cmpq 0x1f0(%rsp), %rax
je 0xb00d
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %r13, 0x40(%rsp)
movb %r13b, 0x48(%rsp)
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movq %r13, 0x60(%rsp)
movb %r13b, 0x68(%rsp)
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq %r13, 0x80(%rsp)
movb %r13b, 0x88(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x3160
leaq 0x58(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x3160
leaq 0x78(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x3160
movq %rbx, %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x38(%rsp), %rdx
callq 0x14ba6
addq $0x40, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x182c8
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0xafba
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0xafdf
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0xb1b6
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0xb1b6
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %r13, 0x40(%rsp)
movb %r13b, 0x48(%rsp)
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movq %r13, 0x60(%rsp)
movb %r13b, 0x68(%rsp)
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq %r13, 0x80(%rsp)
movb %r13b, 0x88(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x3160
leaq 0x58(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x3160
leaq 0x78(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x3160
movl $0x0, 0x220(%rsp)
movq %r13, 0x228(%rsp)
leaq 0x220(%rsp), %rax
movq %rax, 0x230(%rsp)
movq %rax, 0x238(%rsp)
movq %r13, 0x240(%rsp)
movq %rbx, %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x38(%rsp), %rdx
callq 0x14ba6
leaq 0x218(%rsp), %rdi
movq %rbx, %rsi
callq 0x182c8
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0xb105
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0xb12a
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0xb14f
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbx, %rdi
leaq 0x128(%rsp), %rsi
leaq 0x218(%rsp), %rdx
callq 0x14cb4
movq 0x98(%rsp), %rdi
movq %rbx, %rsi
callq 0x184fe
leaq 0x168(%rsp), %rdi
callq 0x156b2
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0xb1a9
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x218(%rsp), %rdi
callq 0x156b2
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xb1d8
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0xb1f4
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xb210
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x1b0(%rsp), %rdi
leaq 0xea2c(%rip), %r14      # 0x19c4b
movq %r14, %rsi
callq 0x30b0
cmpl $0x1, %eax
adcl $0x0, %r15d
leaq 0x1d0(%rsp), %rdi
movq %r14, %rsi
callq 0x30b0
cmpl $0x1, %eax
adcl $0x0, %ebp
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0xb269
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0xb28e
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0xb2b3
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0xb2d8
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0xb2fd
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x248(%rsp), %rdi
movq 0x15cac(%rip), %rsi     # 0x20fb8
callq 0x31f0
leaq 0x2c8(%rsp), %rdi
callq 0x30e0
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0xb343
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0xb368
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x3290
incq %r12
movq 0xb0(%rsp), %rsi
cmpq %r12, 0x68(%rsi)
ja 0xad1e
addl %r12d, 0x30(%rsp)
leaq 0x20(%rsp), %r12
leaq 0xb0(%rsp), %rdi
callq 0x146d2
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0xb3ab
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x3d0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x3f0(%rsp,%rax)
je 0xab92
leaq 0x3d0(%rsp), %rdi
callq 0x3080
movl 0x30(%rsp), %r14d
movq 0x15bfa(%rip), %rdi     # 0x20fd8
leaq 0xee89(%rip), %rsi      # 0x1a26e
movl $0x13, %edx
callq 0x32f0
movq 0x15be2(%rip), %rdi     # 0x20fd8
movl %r14d, %esi
callq 0x3430
movq %rax, %rbx
leaq 0xee7a(%rip), %rsi      # 0x1a282
movl $0x5, %edx
movq %rax, %rdi
callq 0x32f0
movq %rbx, %rdi
movl 0x34(%rsp), %esi
callq 0x3430
movq %rax, %rbx
leaq 0xec32(%rip), %rsi      # 0x1a05d
movl $0x1, %edx
movq %rax, %rdi
callq 0x32f0
leaq 0xee49(%rip), %rsi      # 0x1a288
movl $0x13, %edx
movq %rbx, %rdi
callq 0x32f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movq 0x15b5e(%rip), %rdi     # 0x20fd8
leaq 0xee1b(%rip), %rsi      # 0x1a29c
movl $0x2d, %edx
callq 0x32f0
movq 0x15b46(%rip), %rdi     # 0x20fd8
movl 0xc(%rsp), %esi
callq 0x3430
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movq 0x15b0c(%rip), %rdi     # 0x20fd8
leaq 0xedf7(%rip), %rsi      # 0x1a2ca
movl $0x26, %edx
callq 0x32f0
movq 0x15af4(%rip), %rdi     # 0x20fd8
movl %r15d, %esi
callq 0x3430
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movq 0x15abb(%rip), %rdi     # 0x20fd8
leaq 0xedcd(%rip), %rsi      # 0x1a2f1
movl $0x26, %edx
callq 0x32f0
movq 0x15aa3(%rip), %rdi     # 0x20fd8
movl %ebp, %esi
callq 0x3430
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movb $0x1, %r13b
testl %r14d, %r14d
jne 0xb5b7
movq 0x15a63(%rip), %rbx     # 0x20fd8
leaq 0xed9c(%rip), %rsi      # 0x1a318
movl $0x2b, %edx
movq %rbx, %rdi
callq 0x32f0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq 0x15a31(%rip), %rdi     # 0x20fd8
callq 0x3030
movq %rax, %rdi
callq 0x31b0
xorl %r13d, %r13d
leaq 0x3d0(%rsp), %rdi
callq 0x3090
movl %r13d, %eax
addq $0x5d8, %rsp            # imm = 0x5D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb5e7
jmp 0xb644
movq %rax, %rbx
jmp 0xb81f
jmp 0xb5e7
movq %rax, %rbx
jmp 0xb843
jmp 0xb615
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
callq 0x14d08
jmp 0xb618
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
callq 0x14c64
jmp 0xb618
movq %rax, %rbx
leaq 0x218(%rsp), %rdi
callq 0x156b2
jmp 0xb6ec
jmp 0xb6e9
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
callq 0x14c64
jmp 0xb6ec
movq %rax, %rbx
jmp 0xb82c
movq %rax, %rbx
leaq 0x20(%rsp), %r12
jmp 0xb720
movq %rax, %rbx
leaq 0x20(%rsp), %r12
jmp 0xb7fa
jmp 0xb6cd
jmp 0xb6cd
movq %rax, %rbx
leaq 0x20(%rsp), %r12
jmp 0xb78f
movq %rax, %rbx
leaq 0x20(%rsp), %r12
jmp 0xb745
movq %rax, %rbx
jmp 0xb6f6
movq %rax, %rbx
leaq 0x20(%rsp), %r12
jmp 0xb81f
movq %rax, %rbx
leaq 0x20(%rsp), %r12
jmp 0xb7d5
movq %rax, %rbx
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0xb6d0
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0xb6d0
movq %rax, %rbx
leaq 0x20(%rsp), %r12
jmp 0xb7b4
movq %rax, %rbx
leaq 0x20(%rsp), %r12
jmp 0xb76a
jmp 0xb6e9
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x14d30
leaq 0x20(%rsp), %r12
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0xb720
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0xb745
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0xb76a
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0xb78f
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0xb7b4
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x157fd(%rip), %rsi     # 0x20fb8
leaq 0x248(%rsp), %rdi
callq 0x31f0
leaq 0x2c8(%rsp), %rdi
callq 0x30e0
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0xb7fa
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0xb81f
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xb0(%rsp), %rdi
callq 0x146d2
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0xb843
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x3d0(%rsp), %rdi
callq 0x3090
movq %rbx, %rdi
callq 0x3460