// File: /workspace/github_cpp_makefile_star2_O1/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, 0x78(%rsp)
movq %rdi, %rbx
movq 0x164ca(%rip), %r14     # 0x20fd8
leaq 0xf6c8(%rip), %rsi      # 0x1a1dd
movl $0x22, %edx
movq %r14, %rdi
callq 0x32f0
testq %rbx, %rbx
je 0xab43
movq %rbx, %rdi
callq 0x3110
movq 0x164a2(%rip), %rdi     # 0x20fd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x32f0
jmp 0xab5b
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 %ebx, %ebx
cmpl $0x0, 0x3f0(%rsp,%rax)
jne 0xb686
movl $0x0, 0xc(%rsp)
movq 0x3d0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x3f0(%rsp,%rax)
movl $0x0, %ebp
movl $0x0, 0x14(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
jne 0xb494
movq 0x78(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x1f0(%rsp)
xorl %r15d, %r15d
leaq 0x1d0(%rsp), %r12
leaq 0x148(%rsp), %r13
movl $0x0, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0x14(%rsp)
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
movq $0x0, 0xa0(%rsp)
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0x80(%rsp), %rdi
leaq 0xf25b(%rip), %rdx      # 0x19ec9
movq %rdx, %rsi
callq 0x16622
movq 0x3d0(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x3d0(%rsp), %rbx
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
movq %rbx, %rdi
leaq 0x80(%rsp), %rsi
callq 0x3480
cmpq $0x0, 0x88(%rsp)
je 0xb455
movq 0x80(%rsp), %rax
cmpb $0x23, (%rax)
je 0xb455
movb $0x9, 0x248(%rsp)
leaq 0xb0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0x248(%rsp), %rdx
callq 0x189c0
movq 0xb0(%rsp), %rax
movq 0x68(%rax), %rcx
cmpq 0x88(%rax), %rcx
jne 0xb448
cmpq $0x2, %rcx
jb 0xad18
testb $0x1, 0xa0(%rsp)
je 0xad26
xorl %eax, %eax
cmpq $0x2, %rcx
setae %al
jmp 0xaddd
movl $0x2a, %edx
movq 0x162a6(%rip), %rdi     # 0x20fd8
leaq 0xf4c7(%rip), %rsi      # 0x1a200
callq 0x32f0
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x16283(%rip), %rdi     # 0x20fd8
callq 0x32f0
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
movl $0x42, %edx
movq 0x16248(%rip), %rdi     # 0x20fd8
leaq 0xf494(%rip), %rsi      # 0x1a22b
callq 0x32f0
movq 0x16235(%rip), %rcx     # 0x20fd8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq 0x16217(%rip), %rdi     # 0x20fd8
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movb $0x1, %al
movq %rax, 0xa0(%rsp)
movl $0x1, %eax
incl 0x10(%rsp)
addl %eax, 0xc(%rsp)
movq 0xb0(%rsp), %rsi
cmpq $0x0, 0x68(%rsi)
je 0xb448
xorl %ebx, %ebx
movl %ebp, %r14d
addq $0x60, %rsi
movl $0x1, %ecx
movq %r12, %rdi
movq %rbx, %rdx
callq 0x32b0
movq %r12, %rbp
movq 0xb0(%rsp), %rsi
subq $-0x80, %rsi
movl $0x1, %ecx
leaq 0x1b0(%rsp), %rdi
movq %rbx, %rdx
callq 0x32b0
movq 0xb0(%rsp), %rax
movq 0x40(%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x30d0
movq %rax, %r12
leaq 0x248(%rsp), %rdi
callq 0x31d0
leaq 0x158(%rsp), %rax
movq %rax, 0x148(%rsp)
movq %r13, %rdi
leaq 0xf055(%rip), %rdx      # 0x19ec9
movq %rdx, %rsi
callq 0x16622
leaq 0x260(%rsp), %rdi
movq %r13, %rsi
callq 0x3370
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0xaeb1
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3290
addq %rbx, %r12
leaq 0x258(%rsp), %rdi
movq %r12, %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 0x16592
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 0x16592
leaq 0xf8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0x16592
leaq 0xd8(%rsp), %rax
movq %rax, 0xc8(%rsp)
leaq 0xc8(%rsp), %rdi
leaq 0xe66f(%rip), %rsi      # 0x19610
leaq 0xe669(%rip), %rdx      # 0x19611
callq 0x16622
movq 0x78(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x16d1c
movq %rax, %r12
cmpq 0x1f0(%rsp), %rax
je 0xb0e4
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movb %r15b, 0x28(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %r15, 0x40(%rsp)
movb %r15b, 0x48(%rsp)
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movq %r15, 0x60(%rsp)
movb %r15b, 0x68(%rsp)
leaq 0x18(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x3160
leaq 0x38(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x3160
leaq 0x58(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x3160
movq %r13, %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq 0x14c7a
addq $0x40, %r12
movq %r12, %rdi
movq %r13, %rsi
callq 0x183aa
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
movq %rbp, %r12
je 0xb08e
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
movl %r14d, %ebp
je 0xb0b6
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0xb287
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0xb287
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movb %r15b, 0x28(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %r15, 0x40(%rsp)
movb %r15b, 0x48(%rsp)
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movq %r15, 0x60(%rsp)
movb %r15b, 0x68(%rsp)
leaq 0x18(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x3160
leaq 0x38(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x3160
leaq 0x58(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x3160
movl $0x0, 0x220(%rsp)
movq %r15, 0x228(%rsp)
leaq 0x220(%rsp), %rax
movq %rax, 0x230(%rsp)
movq %rax, 0x238(%rsp)
movq %r15, 0x240(%rsp)
movq %r13, %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq 0x14c7a
movq %rbp, %r12
leaq 0x218(%rsp), %rdi
movq %r13, %rsi
callq 0x183aa
movl %r14d, %ebp
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0xb1d9
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0xb1fe
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0xb223
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x3290
movq %r13, %rdi
leaq 0x128(%rsp), %rsi
leaq 0x218(%rsp), %rdx
callq 0x14d88
movq 0x78(%rsp), %rdi
movq %r13, %rsi
callq 0x185e0
leaq 0x168(%rsp), %rdi
callq 0x15788
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0xb27a
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x218(%rsp), %rdi
callq 0x15788
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0xb2a3
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xb2bf
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0xb2db
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x1b0(%rsp), %rdi
leaq 0xe961(%rip), %r14      # 0x19c4b
movq %r14, %rsi
callq 0x30b0
cmpl $0x1, %eax
adcl $0x0, 0x14(%rsp)
movq %r12, %rdi
movq %r14, %rsi
callq 0x30b0
cmpl $0x1, %eax
adcl $0x0, %ebp
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0xb330
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0xb355
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0xb37a
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0xb39f
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0xb3c4
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x248(%rsp), %rdi
movq 0x15be5(%rip), %rsi     # 0x20fb8
callq 0x31f0
leaq 0x2c8(%rsp), %rdi
callq 0x30e0
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0xb40a
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0xb42f
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x3290
incq %rbx
movq 0xb0(%rsp), %rsi
cmpq %rbx, 0x68(%rsi)
ja 0xadfa
addl %ebx, 0x8(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0x147aa
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xb47a
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x3d0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x3f0(%rsp,%rax)
je 0xac4f
leaq 0x3d0(%rsp), %rdi
callq 0x3080
movl 0x8(%rsp), %r15d
movq 0x15b2b(%rip), %rdi     # 0x20fd8
leaq 0xedba(%rip), %rsi      # 0x1a26e
movl $0x13, %edx
callq 0x32f0
movq 0x15b13(%rip), %rdi     # 0x20fd8
movl %r15d, %esi
callq 0x3430
movq %rax, %rbx
leaq 0xedab(%rip), %rsi      # 0x1a282
movl $0x5, %edx
movq %rax, %rdi
callq 0x32f0
movq %rbx, %rdi
movl 0x10(%rsp), %esi
callq 0x3430
movq %rax, %rbx
leaq 0xeb63(%rip), %rsi      # 0x1a05d
movl $0x1, %edx
movq %rax, %rdi
callq 0x32f0
leaq 0xed7a(%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 0x15a8f(%rip), %rdi     # 0x20fd8
leaq 0xed4c(%rip), %rsi      # 0x1a29c
movl $0x2d, %edx
callq 0x32f0
movq 0x15a77(%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 0x15a3d(%rip), %rdi     # 0x20fd8
leaq 0xed28(%rip), %rsi      # 0x1a2ca
movl $0x26, %edx
callq 0x32f0
movq 0x15a25(%rip), %rdi     # 0x20fd8
movl 0x14(%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 0x159eb(%rip), %rdi     # 0x20fd8
leaq 0xecfd(%rip), %rsi      # 0x1a2f1
movl $0x26, %edx
callq 0x32f0
movq 0x159d3(%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
testl %r15d, %r15d
setne %bl
jne 0xb686
movq 0x15993(%rip), %rbx     # 0x20fd8
leaq 0xeccc(%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 0x15961(%rip), %rdi     # 0x20fd8
callq 0x3030
movq %rax, %rdi
callq 0x31b0
xorl %ebx, %ebx
leaq 0x3d0(%rsp), %rdi
callq 0x3090
movl %ebx, %eax
addq $0x5d8, %rsp            # imm = 0x5D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb70f
jmp 0xb707
jmp 0xb748
jmp 0xb70f
jmp 0xb6d8
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
callq 0x14ddc
jmp 0xb6db
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
callq 0x14d38
jmp 0xb6db
movq %rax, %rbx
leaq 0x218(%rsp), %rdi
callq 0x15788
jmp 0xb78e
jmp 0xb78b
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
callq 0x14d38
jmp 0xb78e
movq %rax, %rbx
jmp 0xb8c9
movq %rax, %rbx
jmp 0xb8ee
movq %rax, %rbx
jmp 0xb807
movq %rax, %rbx
jmp 0xb7bd
movq %rax, %rbx
jmp 0xb897
jmp 0xb781
jmp 0xb781
movq %rax, %rbx
jmp 0xb82c
movq %rax, %rbx
jmp 0xb7e2
movq %rax, %rbx
jmp 0xb798
movq %rax, %rbx
jmp 0xb8bc
movq %rax, %rbx
jmp 0xb872
movq %rax, %rbx
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0xb851
movq 0x158(%rsp), %rsi
jmp 0xb849
movq %rax, %rbx
jmp 0xb851
jmp 0xb78b
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x14e04
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0xb7bd
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0xb7e2
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0xb807
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0xb82c
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0xb851
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x15760(%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 0xb897
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0xb8bc
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xb0(%rsp), %rdi
callq 0x147aa
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xb8ee
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x3d0(%rsp), %rdi
callq 0x3090
movq %rbx, %rdi
callq 0x3460