// File: schneebergerlab[P]DrLink/analyze_molecule.cpp
// Function: write_molecule_stat(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long, 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, unsigned long>>>, std::map<int, unsigned long, std::less<int>, std::allocator<std::pair<int const, unsigned long>>>, std::map<int, unsigned long, std::less<int>, std::allocator<std::pair<int const, unsigned long>>>, std::map<int, unsigned long, std::less<int>, std::allocator<std::pair<int const, unsigned long>>>, std::map<int, unsigned long, std::less<int>, std::allocator<std::pair<int const, unsigned long>>>, std::map<int, unsigned long, std::less<int>, std::allocator<std::pair<int const, unsigned long>>>, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, 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, int>>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
bool write_molecule_stat(map<string, unsigned long> molecule_cov, 
                         map<int,    unsigned long> molecule_len, 
                         map<int,    unsigned long> molecule_len_sum, 
                         map<int,    unsigned long> molecule_read_num,
                         map<int,    unsigned long> molecule_read_num_sum,
                         map<int,    unsigned long> molecule_read_interval,
                         map<string, int>           barcode_molecule_cnt,
                         string out_prefix,
                         int minMoleSize)
{
    // 1. molecule base coverage
    std::stringstream minMsize;
    minMsize.str("");
    minMsize << minMoleSize;
    string outMCovFile = out_prefix + "_min" + minMsize.str() + "bp_moleCov_stat.txt";
    ofstream ofp;
    ofp.open(outMCovFile.c_str(), ios::out);
    if(!ofp.good())
    {
        cout << "   Error: cannot open " << outMCovFile << " to write data. " << endl;
        return false;
    }
    map<string, unsigned long>::iterator mcitr;
    map<string, unsigned long>::iterator mcitr_end;
    mcitr     = molecule_cov.begin();
    mcitr_end = molecule_cov.end();
    ofp << "#molecule_base_cov\tmolecule_num_in_bin" << endl;
    while(mcitr != mcitr_end)
    {
        ofp << (*mcitr).first << "\t" << (*mcitr).second << endl;
        mcitr ++;
    }
    ofp.close();
    
    // 2. molecule length: total legnth and number of molecules in bin
    string outMLenFile = out_prefix + "_min" + minMsize.str() + "bp_moleLen_stat.txt";    
    ofstream ofp2;
    ofp2.open(outMLenFile.c_str(), ios::out);
    if(!ofp2.good())
    {
        cout << "   Error: cannot open " << outMLenFile << " to write data. " << endl;
        return false;
    }
    map<int, unsigned long>::iterator mlitr;
    map<int, unsigned long>::iterator mlitr_end;
    mlitr     = molecule_len.begin();
    mlitr_end = molecule_len.end();
    ofp2 << "#molecule_len_kb\tmolecule_total_len_bp\tmolecule_num_in_bin" << endl;
    while(mlitr != mlitr_end)
    {
        ofp2 << (*mlitr).first  << "\t" 
             << molecule_len_sum[(*mlitr).first] << "\t" 
             << (*mlitr).second << endl;
        mlitr ++;
    }
    ofp2.close();    
    // 3. molecules per barcode/partition: find hist + output
    // find hist: 'val' (number) partitions have 'key' (number) molecules
    map<int, int> mbhist;
    map<int, int>::iterator hitr;
    map<string, int>::iterator mbcitr;
    map<string, int>::iterator mbcitr_end;
    mbcitr     = barcode_molecule_cnt.begin();
    mbcitr_end = barcode_molecule_cnt.end();
    while(mbcitr != mbcitr_end)
    {
        int cntkey = (*mbcitr).second;
        hitr = mbhist.find(cntkey);
        if(hitr == mbhist.end())
        {
            mbhist.insert(std::pair<int, int>(cntkey, 1));
        }
        else
        {
            mbhist[cntkey] += 1;
        }
        mbcitr ++;
    }  
    // output
    string outMpBHistFile = out_prefix + "_min" + minMsize.str() + "bp_moleNumPerBarc_stat.txt";        
    ofstream ofp3;
    ofp3.open(outMpBHistFile.c_str(), ios::out);
    if(!ofp3.good())
    {
        cout << "   Error: cannot open " << outMpBHistFile << " to write data. " << endl;
        return false;
    }   
    map<int, int>::iterator hitr_end;
    hitr     = mbhist.begin();
    hitr_end = mbhist.end();
    ofp3 << "#molecule_cnt\tpartition/barcode_num" << endl;
    while(hitr != hitr_end)
    {
        ofp3 << (*hitr).first  << "\t" << (*hitr).second << endl;
        hitr ++;
    }
    ofp3.close(); 
    // 4. number of reads per molecule
    string outReadNumFile = out_prefix + "_min" + minMsize.str() + "bp_readNum_stat.txt";    
    ofstream ofp4;
    ofp4.open(outReadNumFile.c_str(), ios::out);
    if(!ofp4.good())
    {
        cout << "   Error: cannot open " << outReadNumFile << " to write data. " << endl;
        return false;
    }    
    map<int,    unsigned long>::iterator readitr;
    map<int,    unsigned long>::iterator readitr_end;
    readitr     = molecule_read_num.begin();
    readitr_end = molecule_read_num.end();
    ofp4 << "#read_number\tmolecule_number_with_that_read_number\ttotal_covered_len" << endl;
    while(readitr != readitr_end)
    {
        ofp4 << (*readitr).first   << "\t" 
             << (*readitr).second  << "\t"
             << molecule_read_num_sum[(*readitr).first] << endl;
        readitr ++;
    }
    ofp4.close();
    // 5. distance between reads along chr#barcode.
    string outReadDistFile = out_prefix + "_min" + minMsize.str() + "bp_readDist_stat.txt";    
    ofstream ofp5;
    ofp5.open(outReadDistFile.c_str(), ios::out);
    if(!ofp5.good())
    {
        cout << "   Error: cannot open " << outReadDistFile << " to write data. " << endl;
        return false;
    }     
    map<int,    unsigned long>::iterator disitr;
    map<int,    unsigned long>::iterator disitr_end; 
    disitr     = molecule_read_interval.begin();
    disitr_end = molecule_read_interval.end();
    ofp5 << "#read_distance\tnumber_of_cases_with_that_read_number" << endl;
    while(disitr != disitr_end)
    {
        ofp5 << (*disitr).first << "\t" << (*disitr).second << endl;
        disitr ++;
    }
    ofp5.close();
    return true;
}

// Assembly:
subq $0x11b8, %rsp           # imm = 0x11B8
movq %r9, 0x198(%rsp)
movq %r8, 0x1a0(%rsp)
movq %rcx, 0x1a8(%rsp)
movq %rdx, 0x1b0(%rsp)
movq %rsi, 0x1b8(%rsp)
movq %rdi, 0x1c0(%rsp)
movl 0x11d0(%rsp), %eax
movq 0x11c8(%rsp), %rax
movq %rax, 0x1c8(%rsp)
movq 0x11c0(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq %rdi, 0x11a8(%rsp)
movq %rsi, 0x11a0(%rsp)
movq %rdx, 0x1198(%rsp)
movq %rcx, 0x1190(%rsp)
movq %r8, 0x1188(%rsp)
movq %r9, 0x1180(%rsp)
leaq 0xff8(%rsp), %rdi
callq 0x5320
leaq 0xfd7(%rsp), %rdi
movq %rdi, 0x1d8(%rsp)
callq 0x57c0
movq 0x1d8(%rsp), %rdx
leaq 0x5c935(%rip), %rsi     # 0x6ab94
leaq 0xfd8(%rsp), %rdi
callq 0x6880
jmp 0xe26e
leaq 0xff8(%rsp), %rdi
leaq 0xfd8(%rsp), %rsi
callq 0x5510
jmp 0xe285
leaq 0xfd8(%rsp), %rdi
callq 0x58b8
leaq 0xfd7(%rsp), %rdi
callq 0x54d0
leaq 0x1008(%rsp), %rdi
movl 0x11d0(%rsp), %esi
callq 0x5790
jmp 0xe2b5
movq 0x1c8(%rsp), %rsi
leaq 0x5886b(%rip), %rdx     # 0x66b2f
leaq 0xf60(%rsp), %rdi
callq 0xfae0
jmp 0xe2d3
leaq 0xf40(%rsp), %rdi
leaq 0xff8(%rsp), %rsi
callq 0x5440
jmp 0xe2ea
leaq 0xf80(%rsp), %rdi
leaq 0xf60(%rsp), %rsi
leaq 0xf40(%rsp), %rdx
callq 0xf9f0
jmp 0xe309
leaq 0x58948(%rip), %rdx     # 0x66c58
leaq 0xfa0(%rsp), %rdi
leaq 0xf80(%rsp), %rsi
callq 0x8760
jmp 0xe327
leaq 0xf80(%rsp), %rdi
callq 0x58b8
leaq 0xf40(%rsp), %rdi
callq 0x58b8
leaq 0xf60(%rsp), %rdi
callq 0x58b8
leaq 0xd40(%rsp), %rdi
callq 0x5770
jmp 0xe35d
leaq 0xfa0(%rsp), %rdi
callq 0x51d0
movq %rax, %rsi
leaq 0xd40(%rsp), %rdi
movl $0x10, %edx
callq 0x5070
jmp 0xe381
movq 0xd40(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0xd40(%rsp,%rax), %rdi
callq 0x5760
movb %al, 0x197(%rsp)
jmp 0xe3a3
movb 0x197(%rsp), %al
testb $0x1, %al
jne 0xe53c
jmp 0xe3b4
movq 0x76c0d(%rip), %rdi     # 0x84fc8
leaq 0x58756(%rip), %rsi     # 0x66b18
callq 0x5460
movq %rax, 0x188(%rsp)
jmp 0xe3d1
movq 0x188(%rsp), %rdi
leaq 0xfa0(%rsp), %rsi
callq 0x53e0
movq %rax, 0x180(%rsp)
jmp 0xe3f0
movq 0x180(%rsp), %rdi
leaq 0x58acd(%rip), %rsi     # 0x66ecc
callq 0x5460
movq %rax, 0x178(%rsp)
jmp 0xe40e
movq 0x178(%rsp), %rdi
movq 0x76b93(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xe424
movb $0x0, 0x11b7(%rsp)
movl $0x1, 0xd3c(%rsp)
jmp 0xf835
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xe473
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
leaq 0xfd8(%rsp), %rdi
callq 0x58b8
leaq 0xfd7(%rsp), %rdi
callq 0x54d0
jmp 0xf887
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf887
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xe4f8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xe4eb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
leaq 0xf80(%rsp), %rdi
callq 0x58b8
leaq 0xf40(%rsp), %rdi
callq 0x58b8
leaq 0xf60(%rsp), %rdi
callq 0x58b8
jmp 0xf887
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf87a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf86d
leaq 0xd30(%rsp), %rdi
callq 0x10810
leaq 0xd28(%rsp), %rdi
callq 0x10810
movq 0x1c0(%rsp), %rdi
callq 0x10830
movq 0x1c0(%rsp), %rdi
movq %rax, 0xd20(%rsp)
movq 0xd20(%rsp), %rax
movq %rax, 0xd30(%rsp)
callq 0x10160
movq %rax, 0xd18(%rsp)
movq 0xd18(%rsp), %rax
movq %rax, 0xd28(%rsp)
leaq 0x58936(%rip), %rsi     # 0x66edd
leaq 0xd40(%rsp), %rdi
callq 0x5460
movq %rax, 0x170(%rsp)
jmp 0xe5be
movq 0x170(%rsp), %rdi
movq 0x769e3(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xe5d4
jmp 0xe5d6
leaq 0xd30(%rsp), %rdi
leaq 0xd28(%rsp), %rsi
callq 0x10860
testb $0x1, %al
jne 0xe5f4
jmp 0xe693
leaq 0xd30(%rsp), %rdi
callq 0x10230
movq %rax, %rsi
leaq 0xd40(%rsp), %rdi
callq 0x53e0
movq %rax, 0x168(%rsp)
jmp 0xe61b
movq 0x168(%rsp), %rdi
leaq 0x5c569(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0x160(%rsp)
jmp 0xe639
leaq 0xd30(%rsp), %rdi
callq 0x10230
movq 0x160(%rsp), %rdi
movq 0x20(%rax), %rsi
callq 0x50f0
movq %rax, 0x158(%rsp)
jmp 0xe661
movq 0x158(%rsp), %rdi
movq 0x76940(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xe677
leaq 0xd30(%rsp), %rdi
xorl %esi, %esi
callq 0x10880
movq %rax, 0xd10(%rsp)
jmp 0xe5d6
leaq 0xd40(%rsp), %rdi
callq 0x5610
jmp 0xe6a2
movq 0x1c8(%rsp), %rsi
leaq 0x5847e(%rip), %rdx     # 0x66b2f
leaq 0xcb0(%rsp), %rdi
callq 0xfae0
jmp 0xe6c0
leaq 0xc90(%rsp), %rdi
leaq 0xff8(%rsp), %rsi
callq 0x5440
jmp 0xe6d7
leaq 0xcd0(%rsp), %rdi
leaq 0xcb0(%rsp), %rsi
leaq 0xc90(%rsp), %rdx
callq 0xf9f0
jmp 0xe6f6
leaq 0x5859a(%rip), %rdx     # 0x66c97
leaq 0xcf0(%rsp), %rdi
leaq 0xcd0(%rsp), %rsi
callq 0x8760
jmp 0xe714
leaq 0xcd0(%rsp), %rdi
callq 0x58b8
leaq 0xc90(%rsp), %rdi
callq 0x58b8
leaq 0xcb0(%rsp), %rdi
callq 0x58b8
leaq 0xa90(%rsp), %rdi
callq 0x5770
jmp 0xe74a
leaq 0xcf0(%rsp), %rdi
callq 0x51d0
movq %rax, %rsi
leaq 0xa90(%rsp), %rdi
movl $0x10, %edx
callq 0x5070
jmp 0xe76e
movq 0xa90(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0xa90(%rsp,%rax), %rdi
callq 0x5760
movb %al, 0x157(%rsp)
jmp 0xe790
movb 0x157(%rsp), %al
testb $0x1, %al
jne 0xe8c7
jmp 0xe7a1
movq 0x76820(%rip), %rdi     # 0x84fc8
leaq 0x58369(%rip), %rsi     # 0x66b18
callq 0x5460
movq %rax, 0x148(%rsp)
jmp 0xe7be
movq 0x148(%rsp), %rdi
leaq 0xcf0(%rsp), %rsi
callq 0x53e0
movq %rax, 0x140(%rsp)
jmp 0xe7dd
movq 0x140(%rsp), %rdi
leaq 0x586e0(%rip), %rsi     # 0x66ecc
callq 0x5460
movq %rax, 0x138(%rsp)
jmp 0xe7fb
movq 0x138(%rsp), %rdi
movq 0x767a6(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xe811
movb $0x0, 0x11b7(%rsp)
movl $0x1, 0xd3c(%rsp)
jmp 0xf7fd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xe883
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xe876
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
leaq 0xcd0(%rsp), %rdi
callq 0x58b8
leaq 0xc90(%rsp), %rdi
callq 0x58b8
leaq 0xcb0(%rsp), %rdi
callq 0x58b8
jmp 0xf86d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf826
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf819
leaq 0xa88(%rsp), %rdi
callq 0x106c0
leaq 0xa80(%rsp), %rdi
callq 0x106c0
movq 0x1b8(%rsp), %rdi
callq 0x10710
movq 0x1b8(%rsp), %rdi
movq %rax, 0xa78(%rsp)
movq 0xa78(%rsp), %rax
movq %rax, 0xa88(%rsp)
callq 0x102a0
movq %rax, 0xa70(%rsp)
movq 0xa70(%rsp), %rax
movq %rax, 0xa80(%rsp)
leaq 0x585d2(%rip), %rsi     # 0x66f04
leaq 0xa90(%rsp), %rdi
callq 0x5460
movq %rax, 0x130(%rsp)
jmp 0xe949
movq 0x130(%rsp), %rdi
movq 0x76658(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xe95f
jmp 0xe961
leaq 0xa88(%rsp), %rdi
leaq 0xa80(%rsp), %rsi
callq 0x10740
testb $0x1, %al
jne 0xe97f
jmp 0xea84
leaq 0xa88(%rsp), %rdi
callq 0x10380
movl (%rax), %esi
leaq 0xa90(%rsp), %rdi
callq 0x5790
movq %rax, 0x128(%rsp)
jmp 0xe9a5
movq 0x128(%rsp), %rdi
leaq 0x5c1df(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0x120(%rsp)
jmp 0xe9c3
leaq 0xa88(%rsp), %rdi
callq 0x10380
movq 0x1b0(%rsp), %rdi
movq %rax, %rsi
callq 0x103a0
movq %rax, 0x118(%rsp)
jmp 0xe9ea
movq 0x120(%rsp), %rdi
movq 0x118(%rsp), %rax
movq (%rax), %rsi
callq 0x50f0
movq %rax, 0x110(%rsp)
jmp 0xea0c
movq 0x110(%rsp), %rdi
leaq 0x5c178(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0x108(%rsp)
jmp 0xea2a
leaq 0xa88(%rsp), %rdi
callq 0x10380
movq 0x108(%rsp), %rdi
movq 0x8(%rax), %rsi
callq 0x50f0
movq %rax, 0x100(%rsp)
jmp 0xea52
movq 0x100(%rsp), %rdi
movq 0x7654f(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xea68
leaq 0xa88(%rsp), %rdi
xorl %esi, %esi
callq 0x10790
movq %rax, 0xa68(%rsp)
jmp 0xe961
leaq 0xa90(%rsp), %rdi
callq 0x5610
jmp 0xea93
leaq 0xa38(%rsp), %rdi
callq 0x108c0
leaq 0xa30(%rsp), %rdi
callq 0x108d0
leaq 0xa28(%rsp), %rdi
callq 0x10490
leaq 0xa20(%rsp), %rdi
callq 0x10490
movq 0x1d0(%rsp), %rdi
callq 0x108f0
movq 0x1d0(%rsp), %rdi
movq %rax, 0xa18(%rsp)
movq 0xa18(%rsp), %rax
movq %rax, 0xa28(%rsp)
callq 0x10500
movq %rax, 0xa10(%rsp)
movq 0xa10(%rsp), %rax
movq %rax, 0xa20(%rsp)
leaq 0xa28(%rsp), %rdi
leaq 0xa20(%rsp), %rsi
callq 0x10920
testb $0x1, %al
jne 0xeb2f
jmp 0xec8b
leaq 0xa28(%rsp), %rdi
callq 0x10940
movl 0x20(%rax), %eax
movl %eax, 0xa0c(%rsp)
leaq 0xa38(%rsp), %rdi
leaq 0xa0c(%rsp), %rsi
callq 0x10960
movq %rax, 0xf8(%rsp)
jmp 0xeb65
movq 0xf8(%rsp), %rax
movq %rax, 0xa00(%rsp)
movq 0xa00(%rsp), %rax
movq %rax, 0xa30(%rsp)
leaq 0xa38(%rsp), %rdi
callq 0x109b0
movq %rax, 0x9f8(%rsp)
leaq 0xa30(%rsp), %rdi
leaq 0x9f8(%rsp), %rsi
callq 0x10990
testb $0x1, %al
jne 0xebb8
jmp 0xec41
movl $0x1, 0x9ec(%rsp)
leaq 0x9f0(%rsp), %rdi
leaq 0xa0c(%rsp), %rsi
leaq 0x9ec(%rsp), %rdx
callq 0x10a30
jmp 0xebe2
leaq 0xa38(%rsp), %rdi
leaq 0x9f0(%rsp), %rsi
callq 0x109e0
movb %dl, 0xef(%rsp)
movq %rax, 0xf0(%rsp)
jmp 0xec08
movb 0xef(%rsp), %al
movq 0xf0(%rsp), %rcx
movq %rcx, 0x9d8(%rsp)
movb %al, 0x9e0(%rsp)
jmp 0xec6f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf7ee
leaq 0xa38(%rsp), %rdi
leaq 0xa0c(%rsp), %rsi
callq 0x10a60
movq %rax, 0xe0(%rsp)
jmp 0xec60
movq 0xe0(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
leaq 0xa28(%rsp), %rdi
xorl %esi, %esi
callq 0x10b50
movq %rax, 0x9d0(%rsp)
jmp 0xeb11
movq 0x1c8(%rsp), %rsi
leaq 0x57e95(%rip), %rdx     # 0x66b2f
leaq 0x970(%rsp), %rdi
callq 0xfae0
jmp 0xeca9
leaq 0x950(%rsp), %rdi
leaq 0xff8(%rsp), %rsi
callq 0x5440
jmp 0xecc0
leaq 0x990(%rsp), %rdi
leaq 0x970(%rsp), %rsi
leaq 0x950(%rsp), %rdx
callq 0xf9f0
jmp 0xecdf
leaq 0x58259(%rip), %rdx     # 0x66f3f
leaq 0x9b0(%rsp), %rdi
leaq 0x990(%rsp), %rsi
callq 0x8760
jmp 0xecfd
leaq 0x990(%rsp), %rdi
callq 0x58b8
leaq 0x950(%rsp), %rdi
callq 0x58b8
leaq 0x970(%rsp), %rdi
callq 0x58b8
leaq 0x750(%rsp), %rdi
callq 0x5770
jmp 0xed33
leaq 0x9b0(%rsp), %rdi
callq 0x51d0
movq %rax, %rsi
leaq 0x750(%rsp), %rdi
movl $0x10, %edx
callq 0x5070
jmp 0xed57
movq 0x750(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x750(%rsp,%rax), %rdi
callq 0x5760
movb %al, 0xdf(%rsp)
jmp 0xed79
movb 0xdf(%rsp), %al
testb $0x1, %al
jne 0xeeb0
jmp 0xed8a
movq 0x76237(%rip), %rdi     # 0x84fc8
leaq 0x57d80(%rip), %rsi     # 0x66b18
callq 0x5460
movq %rax, 0xd0(%rsp)
jmp 0xeda7
movq 0xd0(%rsp), %rdi
leaq 0x9b0(%rsp), %rsi
callq 0x53e0
movq %rax, 0xc8(%rsp)
jmp 0xedc6
movq 0xc8(%rsp), %rdi
leaq 0x580f7(%rip), %rsi     # 0x66ecc
callq 0x5460
movq %rax, 0xc0(%rsp)
jmp 0xede4
movq 0xc0(%rsp), %rdi
movq 0x761bd(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xedfa
movb $0x0, 0x11b7(%rsp)
movl $0x1, 0xd3c(%rsp)
jmp 0xf7ab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xee6c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xee5f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
leaq 0x990(%rsp), %rdi
callq 0x58b8
leaq 0x950(%rsp), %rdi
callq 0x58b8
leaq 0x970(%rsp), %rdi
callq 0x58b8
jmp 0xf7ee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf7e1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf7d4
leaq 0x748(%rsp), %rdi
callq 0x108d0
leaq 0xa38(%rsp), %rdi
movq %rdi, 0xb0(%rsp)
callq 0x10b90
movq 0xb0(%rsp), %rdi
movq %rax, 0x740(%rsp)
movq 0x740(%rsp), %rax
movq %rax, 0xa30(%rsp)
callq 0x109b0
movq %rax, 0x738(%rsp)
movq 0x738(%rsp), %rax
movq %rax, 0x748(%rsp)
leaq 0x58044(%rip), %rsi     # 0x66f5a
leaq 0x750(%rsp), %rdi
callq 0x5460
movq %rax, 0xb8(%rsp)
jmp 0xef2d
movq 0xb8(%rsp), %rdi
movq 0x76074(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xef43
jmp 0xef45
leaq 0xa30(%rsp), %rdi
leaq 0x748(%rsp), %rsi
callq 0x10bc0
testb $0x1, %al
jne 0xef63
jmp 0xf000
leaq 0xa30(%rsp), %rdi
callq 0x10be0
movl (%rax), %esi
leaq 0x750(%rsp), %rdi
callq 0x5790
movq %rax, 0xa8(%rsp)
jmp 0xef89
movq 0xa8(%rsp), %rdi
leaq 0x5bbfb(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0xa0(%rsp)
jmp 0xefa7
leaq 0xa30(%rsp), %rdi
callq 0x10be0
movq 0xa0(%rsp), %rdi
movl 0x4(%rax), %esi
callq 0x5790
movq %rax, 0x98(%rsp)
jmp 0xefce
movq 0x98(%rsp), %rdi
movq 0x75fd3(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xefe4
leaq 0xa30(%rsp), %rdi
xorl %esi, %esi
callq 0x10c00
movq %rax, 0x730(%rsp)
jmp 0xef45
leaq 0x750(%rsp), %rdi
callq 0x5610
jmp 0xf00f
movq 0x1c8(%rsp), %rsi
leaq 0x57b11(%rip), %rdx     # 0x66b2f
leaq 0x6d0(%rsp), %rdi
callq 0xfae0
jmp 0xf02d
leaq 0x6b0(%rsp), %rdi
leaq 0xff8(%rsp), %rsi
callq 0x5440
jmp 0xf044
leaq 0x6f0(%rsp), %rdi
leaq 0x6d0(%rsp), %rsi
leaq 0x6b0(%rsp), %rdx
callq 0xf9f0
jmp 0xf063
leaq 0x57c6c(%rip), %rdx     # 0x66cd6
leaq 0x710(%rsp), %rdi
leaq 0x6f0(%rsp), %rsi
callq 0x8760
jmp 0xf081
leaq 0x6f0(%rsp), %rdi
callq 0x58b8
leaq 0x6b0(%rsp), %rdi
callq 0x58b8
leaq 0x6d0(%rsp), %rdi
callq 0x58b8
leaq 0x4b0(%rsp), %rdi
callq 0x5770
jmp 0xf0b7
leaq 0x710(%rsp), %rdi
callq 0x51d0
movq %rax, %rsi
leaq 0x4b0(%rsp), %rdi
movl $0x10, %edx
callq 0x5070
jmp 0xf0db
movq 0x4b0(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x4b0(%rsp,%rax), %rdi
callq 0x5760
movb %al, 0x97(%rsp)
jmp 0xf0fd
movb 0x97(%rsp), %al
testb $0x1, %al
jne 0xf22e
jmp 0xf10e
movq 0x75eb3(%rip), %rdi     # 0x84fc8
leaq 0x579fc(%rip), %rsi     # 0x66b18
callq 0x5460
movq %rax, 0x88(%rsp)
jmp 0xf12b
movq 0x88(%rsp), %rdi
leaq 0x710(%rsp), %rsi
callq 0x53e0
movq %rax, 0x80(%rsp)
jmp 0xf14a
movq 0x80(%rsp), %rdi
leaq 0x57d73(%rip), %rsi     # 0x66ecc
callq 0x5460
movq %rax, 0x78(%rsp)
jmp 0xf165
movq 0x78(%rsp), %rdi
movq 0x75e3f(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xf178
movb $0x0, 0x11b7(%rsp)
movl $0x1, 0xd3c(%rsp)
jmp 0xf773
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf1ea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf1dd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
leaq 0x6f0(%rsp), %rdi
callq 0x58b8
leaq 0x6b0(%rsp), %rdi
callq 0x58b8
leaq 0x6d0(%rsp), %rdi
callq 0x58b8
jmp 0xf7d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf79c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf78f
leaq 0x4a8(%rsp), %rdi
callq 0x106c0
leaq 0x4a0(%rsp), %rdi
callq 0x106c0
movq 0x1a8(%rsp), %rdi
callq 0x10710
movq 0x1a8(%rsp), %rdi
movq %rax, 0x498(%rsp)
movq 0x498(%rsp), %rax
movq %rax, 0x4a8(%rsp)
callq 0x102a0
movq %rax, 0x490(%rsp)
movq 0x490(%rsp), %rax
movq %rax, 0x4a0(%rsp)
leaq 0x57ce5(%rip), %rsi     # 0x66f7e
leaq 0x4b0(%rsp), %rdi
callq 0x5460
movq %rax, 0x70(%rsp)
jmp 0xf2ad
movq 0x70(%rsp), %rdi
movq 0x75cf7(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xf2c0
jmp 0xf2c2
leaq 0x4a8(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0x10740
testb $0x1, %al
jne 0xf2e0
jmp 0xf3c1
leaq 0x4a8(%rsp), %rdi
callq 0x10380
movl (%rax), %esi
leaq 0x4b0(%rsp), %rdi
callq 0x5790
movq %rax, 0x68(%rsp)
jmp 0xf303
movq 0x68(%rsp), %rdi
leaq 0x5b884(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0x60(%rsp)
jmp 0xf31b
leaq 0x4a8(%rsp), %rdi
callq 0x10380
movq 0x60(%rsp), %rdi
movq 0x8(%rax), %rsi
callq 0x50f0
movq %rax, 0x58(%rsp)
jmp 0xf33d
movq 0x58(%rsp), %rdi
leaq 0x5b84a(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0x50(%rsp)
jmp 0xf355
leaq 0x4a8(%rsp), %rdi
callq 0x10380
movq 0x1a0(%rsp), %rdi
movq %rax, %rsi
callq 0x103a0
movq %rax, 0x48(%rsp)
jmp 0xf379
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rax
movq (%rax), %rsi
callq 0x50f0
movq %rax, 0x40(%rsp)
jmp 0xf392
movq 0x40(%rsp), %rdi
movq 0x75c12(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xf3a5
leaq 0x4a8(%rsp), %rdi
xorl %esi, %esi
callq 0x10790
movq %rax, 0x488(%rsp)
jmp 0xf2c2
leaq 0x4b0(%rsp), %rdi
callq 0x5610
jmp 0xf3d0
movq 0x1c8(%rsp), %rsi
leaq 0x57750(%rip), %rdx     # 0x66b2f
leaq 0x428(%rsp), %rdi
callq 0xfae0
jmp 0xf3ee
leaq 0x408(%rsp), %rdi
leaq 0xff8(%rsp), %rsi
callq 0x5440
jmp 0xf405
leaq 0x448(%rsp), %rdi
leaq 0x428(%rsp), %rsi
leaq 0x408(%rsp), %rdx
callq 0xf9f0
jmp 0xf424
leaq 0x578eb(%rip), %rdx     # 0x66d16
leaq 0x468(%rsp), %rdi
leaq 0x448(%rsp), %rsi
callq 0x8760
jmp 0xf442
leaq 0x448(%rsp), %rdi
callq 0x58b8
leaq 0x408(%rsp), %rdi
callq 0x58b8
leaq 0x428(%rsp), %rdi
callq 0x58b8
leaq 0x208(%rsp), %rdi
callq 0x5770
jmp 0xf478
leaq 0x468(%rsp), %rdi
callq 0x51d0
movq %rax, %rsi
leaq 0x208(%rsp), %rdi
movl $0x10, %edx
callq 0x5070
jmp 0xf49c
movq 0x208(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x208(%rsp,%rax), %rdi
callq 0x5760
movb %al, 0x3f(%rsp)
jmp 0xf4bb
movb 0x3f(%rsp), %al
testb $0x1, %al
jne 0xf5ea
jmp 0xf4c9
movq 0x75af8(%rip), %rdi     # 0x84fc8
leaq 0x57641(%rip), %rsi     # 0x66b18
callq 0x5460
movq %rax, 0x30(%rsp)
jmp 0xf4e3
movq 0x30(%rsp), %rdi
leaq 0x468(%rsp), %rsi
callq 0x53e0
movq %rax, 0x28(%rsp)
jmp 0xf4fc
movq 0x28(%rsp), %rdi
leaq 0x579c4(%rip), %rsi     # 0x66ecc
callq 0x5460
movq %rax, 0x20(%rsp)
jmp 0xf514
movq 0x20(%rsp), %rdi
movq 0x75a90(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xf527
movb $0x0, 0x11b7(%rsp)
movl $0x1, 0xd3c(%rsp)
jmp 0xf748
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf599
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf58c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
leaq 0x448(%rsp), %rdi
callq 0x58b8
leaq 0x408(%rsp), %rdi
callq 0x58b8
leaq 0x428(%rsp), %rdi
callq 0x58b8
jmp 0xf78f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
jmp 0xf764
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xfc8(%rsp)
movl %eax, 0xfc4(%rsp)
leaq 0x208(%rsp), %rdi
callq 0x5670
jmp 0xf764
leaq 0x200(%rsp), %rdi
callq 0x106c0
leaq 0x1f8(%rsp), %rdi
callq 0x106c0
movq 0x198(%rsp), %rdi
callq 0x10710
movq 0x198(%rsp), %rdi
movq %rax, 0x1f0(%rsp)
movq 0x1f0(%rsp), %rax
movq %rax, 0x200(%rsp)
callq 0x102a0
movq %rax, 0x1e8(%rsp)
movq 0x1e8(%rsp), %rax
movq %rax, 0x1f8(%rsp)
leaq 0x5796e(%rip), %rsi     # 0x66fc3
leaq 0x208(%rsp), %rdi
callq 0x5460
movq %rax, 0x18(%rsp)
jmp 0xf669
movq 0x18(%rsp), %rdi
movq 0x7593b(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xf67c
jmp 0xf67e
leaq 0x200(%rsp), %rdi
leaq 0x1f8(%rsp), %rsi
callq 0x10740
testb $0x1, %al
jne 0xf69c
jmp 0xf726
leaq 0x200(%rsp), %rdi
callq 0x10380
movl (%rax), %esi
leaq 0x208(%rsp), %rdi
callq 0x5790
movq %rax, 0x10(%rsp)
jmp 0xf6bf
movq 0x10(%rsp), %rdi
leaq 0x5b4c8(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0x8(%rsp)
jmp 0xf6d7
leaq 0x200(%rsp), %rdi
callq 0x10380
movq 0x8(%rsp), %rdi
movq 0x8(%rax), %rsi
callq 0x50f0
movq %rax, (%rsp)
jmp 0xf6f8
movq (%rsp), %rdi
movq 0x758ad(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0xf70a
leaq 0x200(%rsp), %rdi
xorl %esi, %esi
callq 0x10790
movq %rax, 0x1e0(%rsp)
jmp 0xf67e
leaq 0x208(%rsp), %rdi
callq 0x5610
jmp 0xf735
movb $0x1, 0x11b7(%rsp)
movl $0x1, 0xd3c(%rsp)
leaq 0x208(%rsp), %rdi
callq 0x5670
leaq 0x468(%rsp), %rdi
callq 0x58b8
jmp 0xf773
leaq 0x468(%rsp), %rdi
callq 0x58b8
jmp 0xf78f
leaq 0x4b0(%rsp), %rdi
callq 0x5670
leaq 0x710(%rsp), %rdi
callq 0x58b8
jmp 0xf7ab
leaq 0x4b0(%rsp), %rdi
callq 0x5670
leaq 0x710(%rsp), %rdi
callq 0x58b8
jmp 0xf7d4
leaq 0x750(%rsp), %rdi
callq 0x5670
leaq 0x9b0(%rsp), %rdi
callq 0x58b8
leaq 0xa38(%rsp), %rdi
callq 0x10c40
jmp 0xf7fd
leaq 0x750(%rsp), %rdi
callq 0x5670
leaq 0x9b0(%rsp), %rdi
callq 0x58b8
leaq 0xa38(%rsp), %rdi
callq 0x10c40
jmp 0xf819
leaq 0xa90(%rsp), %rdi
callq 0x5670
leaq 0xcf0(%rsp), %rdi
callq 0x58b8
jmp 0xf835
leaq 0xa90(%rsp), %rdi
callq 0x5670
leaq 0xcf0(%rsp), %rdi
callq 0x58b8
jmp 0xf86d
leaq 0xd40(%rsp), %rdi
callq 0x5670
leaq 0xfa0(%rsp), %rdi
callq 0x58b8
leaq 0xff8(%rsp), %rdi
callq 0x5350
movb 0x11b7(%rsp), %al
andb $0x1, %al
addq $0x11b8, %rsp           # imm = 0x11B8
retq
leaq 0xd40(%rsp), %rdi
callq 0x5670
leaq 0xfa0(%rsp), %rdi
callq 0x58b8
leaq 0xff8(%rsp), %rdi
callq 0x5350
movq 0xfc8(%rsp), %rdi
callq 0x57b0
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)