// File: schneebergerlab[P]DrLink/sample_molecule.cpp
// Function: write_sampled_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<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>>)
bool write_sampled_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<string, int>           barcode_molecule_cnt,
                                 string outprefix)
{
    // 1. molecule base coverage
    string outMCovFile = outprefix + "_min1000bp_sampled_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 = outprefix + "_min1000bp_sampled_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 = outprefix + "_min1000bp_sampled_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 = outprefix + "_min1000bp_sampled_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();
    return true;
}

// Assembly:
subq $0xb88, %rsp            # imm = 0xB88
movq %r9, 0x158(%rsp)
movq %r8, 0x160(%rsp)
movq %rcx, 0x168(%rsp)
movq %rdx, 0x170(%rsp)
movq %rsi, %rax
movq %rax, 0x178(%rsp)
movq %rdi, 0x180(%rsp)
movq 0xb90(%rsp), %rsi
movq %rsi, 0x188(%rsp)
movq %rdi, 0xb78(%rsp)
movq %rax, 0xb70(%rsp)
movq %rdx, 0xb68(%rsp)
movq %rcx, 0xb60(%rsp)
movq %r8, 0xb58(%rsp)
movq %r9, 0xb50(%rsp)
leaq 0x26abb(%rip), %rdx     # 0x6a53c
leaq 0xb30(%rsp), %rdi
callq 0xfae0
leaq 0x930(%rsp), %rdi
callq 0x5770
jmp 0x43a9d
leaq 0xb30(%rsp), %rdi
callq 0x51d0
movq %rax, %rsi
leaq 0x930(%rsp), %rdi
movl $0x10, %edx
callq 0x5070
jmp 0x43ac1
movq 0x930(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x930(%rsp,%rax), %rdi
callq 0x5760
movb %al, 0x157(%rsp)
jmp 0x43ae3
movb 0x157(%rsp), %al
testb $0x1, %al
jne 0x43bae
jmp 0x43af4
movq 0x414cd(%rip), %rdi     # 0x84fc8
leaq 0x23016(%rip), %rsi     # 0x66b18
callq 0x5460
movq %rax, 0x148(%rsp)
jmp 0x43b11
movq 0x148(%rsp), %rdi
leaq 0xb30(%rsp), %rsi
callq 0x53e0
movq %rax, 0x140(%rsp)
jmp 0x43b30
movq 0x140(%rsp), %rdi
leaq 0x2338d(%rip), %rsi     # 0x66ecc
callq 0x5460
movq %rax, 0x138(%rsp)
jmp 0x43b4e
movq 0x138(%rsp), %rdi
movq 0x41453(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x43b64
movb $0x0, 0xb87(%rsp)
movl $0x1, 0x920(%rsp)
jmp 0x44830
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x928(%rsp)
movl %eax, 0x924(%rsp)
jmp 0x44868
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x928(%rsp)
movl %eax, 0x924(%rsp)
jmp 0x4485b
leaq 0x918(%rsp), %rdi
callq 0x10810
leaq 0x910(%rsp), %rdi
callq 0x10810
movq 0x180(%rsp), %rdi
callq 0x10830
movq 0x180(%rsp), %rdi
movq %rax, 0x908(%rsp)
movq 0x908(%rsp), %rax
movq %rax, 0x918(%rsp)
callq 0x10160
movq %rax, 0x900(%rsp)
movq 0x900(%rsp), %rax
movq %rax, 0x910(%rsp)
leaq 0x232c4(%rip), %rsi     # 0x66edd
leaq 0x930(%rsp), %rdi
callq 0x5460
movq %rax, 0x130(%rsp)
jmp 0x43c30
movq 0x130(%rsp), %rdi
movq 0x41371(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x43c46
jmp 0x43c48
leaq 0x918(%rsp), %rdi
leaq 0x910(%rsp), %rsi
callq 0x10860
testb $0x1, %al
jne 0x43c66
jmp 0x43d05
leaq 0x918(%rsp), %rdi
callq 0x10230
movq %rax, %rsi
leaq 0x930(%rsp), %rdi
callq 0x53e0
movq %rax, 0x128(%rsp)
jmp 0x43c8d
movq 0x128(%rsp), %rdi
leaq 0x26ef7(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0x120(%rsp)
jmp 0x43cab
leaq 0x918(%rsp), %rdi
callq 0x10230
movq 0x120(%rsp), %rdi
movq 0x20(%rax), %rsi
callq 0x50f0
movq %rax, 0x118(%rsp)
jmp 0x43cd3
movq 0x118(%rsp), %rdi
movq 0x412ce(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x43ce9
leaq 0x918(%rsp), %rdi
xorl %esi, %esi
callq 0x10880
movq %rax, 0x8f8(%rsp)
jmp 0x43c48
leaq 0x930(%rsp), %rdi
callq 0x5610
jmp 0x43d14
movq 0x188(%rsp), %rsi
leaq 0x2683d(%rip), %rdx     # 0x6a560
leaq 0x8d8(%rsp), %rdi
callq 0xfae0
jmp 0x43d32
leaq 0x6d8(%rsp), %rdi
callq 0x5770
jmp 0x43d41
leaq 0x8d8(%rsp), %rdi
callq 0x51d0
movq %rax, %rsi
leaq 0x6d8(%rsp), %rdi
movl $0x10, %edx
callq 0x5070
jmp 0x43d65
movq 0x6d8(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x6d8(%rsp,%rax), %rdi
callq 0x5760
movb %al, 0x117(%rsp)
jmp 0x43d87
movb 0x117(%rsp), %al
testb $0x1, %al
jne 0x43e52
jmp 0x43d98
movq 0x41229(%rip), %rdi     # 0x84fc8
leaq 0x22d72(%rip), %rsi     # 0x66b18
callq 0x5460
movq %rax, 0x108(%rsp)
jmp 0x43db5
movq 0x108(%rsp), %rdi
leaq 0x8d8(%rsp), %rsi
callq 0x53e0
movq %rax, 0x100(%rsp)
jmp 0x43dd4
movq 0x100(%rsp), %rdi
leaq 0x230e9(%rip), %rsi     # 0x66ecc
callq 0x5460
movq %rax, 0xf8(%rsp)
jmp 0x43df2
movq 0xf8(%rsp), %rdi
movq 0x411af(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x43e08
movb $0x0, 0xb87(%rsp)
movl $0x1, 0x920(%rsp)
jmp 0x447f8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x928(%rsp)
movl %eax, 0x924(%rsp)
jmp 0x44821
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x928(%rsp)
movl %eax, 0x924(%rsp)
jmp 0x44814
leaq 0x6d0(%rsp), %rdi
callq 0x106c0
leaq 0x6c8(%rsp), %rdi
callq 0x106c0
movq 0x178(%rsp), %rdi
callq 0x10710
movq 0x178(%rsp), %rdi
movq %rax, 0x6c0(%rsp)
movq 0x6c0(%rsp), %rax
movq %rax, 0x6d0(%rsp)
callq 0x102a0
movq %rax, 0x6b8(%rsp)
movq 0x6b8(%rsp), %rax
movq %rax, 0x6c8(%rsp)
leaq 0x23047(%rip), %rsi     # 0x66f04
leaq 0x6d8(%rsp), %rdi
callq 0x5460
movq %rax, 0xf0(%rsp)
jmp 0x43ed4
movq 0xf0(%rsp), %rdi
movq 0x410cd(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x43eea
jmp 0x43eec
leaq 0x6d0(%rsp), %rdi
leaq 0x6c8(%rsp), %rsi
callq 0x10740
testb $0x1, %al
jne 0x43f0a
jmp 0x4400f
leaq 0x6d0(%rsp), %rdi
callq 0x10380
movl (%rax), %esi
leaq 0x6d8(%rsp), %rdi
callq 0x5790
movq %rax, 0xe8(%rsp)
jmp 0x43f30
movq 0xe8(%rsp), %rdi
leaq 0x26c54(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0xe0(%rsp)
jmp 0x43f4e
leaq 0x6d0(%rsp), %rdi
callq 0x10380
movq 0x170(%rsp), %rdi
movq %rax, %rsi
callq 0x103a0
movq %rax, 0xd8(%rsp)
jmp 0x43f75
movq 0xe0(%rsp), %rdi
movq 0xd8(%rsp), %rax
movq (%rax), %rsi
callq 0x50f0
movq %rax, 0xd0(%rsp)
jmp 0x43f97
movq 0xd0(%rsp), %rdi
leaq 0x26bed(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0xc8(%rsp)
jmp 0x43fb5
leaq 0x6d0(%rsp), %rdi
callq 0x10380
movq 0xc8(%rsp), %rdi
movq 0x8(%rax), %rsi
callq 0x50f0
movq %rax, 0xc0(%rsp)
jmp 0x43fdd
movq 0xc0(%rsp), %rdi
movq 0x40fc4(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x43ff3
leaq 0x6d0(%rsp), %rdi
xorl %esi, %esi
callq 0x10790
movq %rax, 0x6b0(%rsp)
jmp 0x43eec
leaq 0x6d8(%rsp), %rdi
callq 0x5610
jmp 0x4401e
leaq 0x680(%rsp), %rdi
callq 0x108c0
leaq 0x678(%rsp), %rdi
callq 0x108d0
leaq 0x670(%rsp), %rdi
callq 0x10490
leaq 0x668(%rsp), %rdi
callq 0x10490
movq 0x158(%rsp), %rdi
callq 0x108f0
movq 0x158(%rsp), %rdi
movq %rax, 0x660(%rsp)
movq 0x660(%rsp), %rax
movq %rax, 0x670(%rsp)
callq 0x10500
movq %rax, 0x658(%rsp)
movq 0x658(%rsp), %rax
movq %rax, 0x668(%rsp)
leaq 0x670(%rsp), %rdi
leaq 0x668(%rsp), %rsi
callq 0x10920
testb $0x1, %al
jne 0x440ba
jmp 0x44216
leaq 0x670(%rsp), %rdi
callq 0x10940
movl 0x20(%rax), %eax
movl %eax, 0x654(%rsp)
leaq 0x680(%rsp), %rdi
leaq 0x654(%rsp), %rsi
callq 0x10960
movq %rax, 0xb8(%rsp)
jmp 0x440f0
movq 0xb8(%rsp), %rax
movq %rax, 0x648(%rsp)
movq 0x648(%rsp), %rax
movq %rax, 0x678(%rsp)
leaq 0x680(%rsp), %rdi
callq 0x109b0
movq %rax, 0x640(%rsp)
leaq 0x678(%rsp), %rdi
leaq 0x640(%rsp), %rsi
callq 0x10990
testb $0x1, %al
jne 0x44143
jmp 0x441cc
movl $0x1, 0x634(%rsp)
leaq 0x638(%rsp), %rdi
leaq 0x654(%rsp), %rsi
leaq 0x634(%rsp), %rdx
callq 0x10a30
jmp 0x4416d
leaq 0x680(%rsp), %rdi
leaq 0x638(%rsp), %rsi
callq 0x109e0
movb %dl, 0xaf(%rsp)
movq %rax, 0xb0(%rsp)
jmp 0x44193
movb 0xaf(%rsp), %al
movq 0xb0(%rsp), %rcx
movq %rcx, 0x620(%rsp)
movb %al, 0x628(%rsp)
jmp 0x441fa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x928(%rsp)
movl %eax, 0x924(%rsp)
jmp 0x447e9
leaq 0x680(%rsp), %rdi
leaq 0x654(%rsp), %rsi
callq 0x10a60
movq %rax, 0xa0(%rsp)
jmp 0x441eb
movq 0xa0(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
leaq 0x670(%rsp), %rdi
xorl %esi, %esi
callq 0x10b50
movq %rax, 0x618(%rsp)
jmp 0x4409c
movq 0x188(%rsp), %rsi
leaq 0x2635f(%rip), %rdx     # 0x6a584
leaq 0x5f8(%rsp), %rdi
callq 0xfae0
jmp 0x44234
leaq 0x3f8(%rsp), %rdi
callq 0x5770
jmp 0x44243
leaq 0x5f8(%rsp), %rdi
callq 0x51d0
movq %rax, %rsi
leaq 0x3f8(%rsp), %rdi
movl $0x10, %edx
callq 0x5070
jmp 0x44267
movq 0x3f8(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x3f8(%rsp,%rax), %rdi
callq 0x5760
movb %al, 0x9f(%rsp)
jmp 0x44289
movb 0x9f(%rsp), %al
testb $0x1, %al
jne 0x44354
jmp 0x4429a
movq 0x40d27(%rip), %rdi     # 0x84fc8
leaq 0x22870(%rip), %rsi     # 0x66b18
callq 0x5460
movq %rax, 0x90(%rsp)
jmp 0x442b7
movq 0x90(%rsp), %rdi
leaq 0x5f8(%rsp), %rsi
callq 0x53e0
movq %rax, 0x88(%rsp)
jmp 0x442d6
movq 0x88(%rsp), %rdi
leaq 0x22be7(%rip), %rsi     # 0x66ecc
callq 0x5460
movq %rax, 0x80(%rsp)
jmp 0x442f4
movq 0x80(%rsp), %rdi
movq 0x40cad(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x4430a
movb $0x0, 0xb87(%rsp)
movl $0x1, 0x920(%rsp)
jmp 0x447a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x928(%rsp)
movl %eax, 0x924(%rsp)
jmp 0x447dc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x928(%rsp)
movl %eax, 0x924(%rsp)
jmp 0x447cf
leaq 0x3f0(%rsp), %rdi
callq 0x108d0
leaq 0x680(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0x10b90
movq 0x70(%rsp), %rdi
movq %rax, 0x3e8(%rsp)
movq 0x3e8(%rsp), %rax
movq %rax, 0x678(%rsp)
callq 0x109b0
movq %rax, 0x3e0(%rsp)
movq 0x3e0(%rsp), %rax
movq %rax, 0x3f0(%rsp)
leaq 0x22ba6(%rip), %rsi     # 0x66f5a
leaq 0x3f8(%rsp), %rdi
callq 0x5460
movq %rax, 0x78(%rsp)
jmp 0x443c8
movq 0x78(%rsp), %rdi
movq 0x40bdc(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x443db
jmp 0x443dd
leaq 0x678(%rsp), %rdi
leaq 0x3f0(%rsp), %rsi
callq 0x10bc0
testb $0x1, %al
jne 0x443fb
jmp 0x44486
leaq 0x678(%rsp), %rdi
callq 0x10be0
movl (%rax), %esi
leaq 0x3f8(%rsp), %rdi
callq 0x5790
movq %rax, 0x68(%rsp)
jmp 0x4441e
movq 0x68(%rsp), %rdi
leaq 0x26769(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0x60(%rsp)
jmp 0x44436
leaq 0x678(%rsp), %rdi
callq 0x10be0
movq 0x60(%rsp), %rdi
movl 0x4(%rax), %esi
callq 0x5790
movq %rax, 0x58(%rsp)
jmp 0x44457
movq 0x58(%rsp), %rdi
movq 0x40b4d(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x4446a
leaq 0x678(%rsp), %rdi
xorl %esi, %esi
callq 0x10c00
movq %rax, 0x3d8(%rsp)
jmp 0x443dd
leaq 0x3f8(%rsp), %rdi
callq 0x5610
jmp 0x44495
movq 0x188(%rsp), %rsi
leaq 0x2610b(%rip), %rdx     # 0x6a5af
leaq 0x3b8(%rsp), %rdi
callq 0xfae0
jmp 0x444b3
leaq 0x1b8(%rsp), %rdi
callq 0x5770
jmp 0x444c2
leaq 0x3b8(%rsp), %rdi
callq 0x51d0
movq %rax, %rsi
leaq 0x1b8(%rsp), %rdi
movl $0x10, %edx
callq 0x5070
jmp 0x444e6
movq 0x1b8(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x1b8(%rsp,%rax), %rdi
callq 0x5760
movb %al, 0x57(%rsp)
jmp 0x44505
movb 0x57(%rsp), %al
testb $0x1, %al
jne 0x445c8
jmp 0x44513
movq 0x40aae(%rip), %rdi     # 0x84fc8
leaq 0x225f7(%rip), %rsi     # 0x66b18
callq 0x5460
movq %rax, 0x48(%rsp)
jmp 0x4452d
movq 0x48(%rsp), %rdi
leaq 0x3b8(%rsp), %rsi
callq 0x53e0
movq %rax, 0x40(%rsp)
jmp 0x44546
movq 0x40(%rsp), %rdi
leaq 0x2297a(%rip), %rsi     # 0x66ecc
callq 0x5460
movq %rax, 0x38(%rsp)
jmp 0x4455e
movq 0x38(%rsp), %rdi
movq 0x40a46(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x44571
movb $0x0, 0xb87(%rsp)
movl $0x1, 0x920(%rsp)
jmp 0x4477b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x928(%rsp)
movl %eax, 0x924(%rsp)
jmp 0x44797
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x928(%rsp)
movl %eax, 0x924(%rsp)
leaq 0x1b8(%rsp), %rdi
callq 0x5670
jmp 0x44797
leaq 0x1b0(%rsp), %rdi
callq 0x106c0
leaq 0x1a8(%rsp), %rdi
callq 0x106c0
movq 0x168(%rsp), %rdi
callq 0x10710
movq 0x168(%rsp), %rdi
movq %rax, 0x1a0(%rsp)
movq 0x1a0(%rsp), %rax
movq %rax, 0x1b0(%rsp)
callq 0x102a0
movq %rax, 0x198(%rsp)
movq 0x198(%rsp), %rax
movq %rax, 0x1a8(%rsp)
leaq 0x2294b(%rip), %rsi     # 0x66f7e
leaq 0x1b8(%rsp), %rdi
callq 0x5460
movq %rax, 0x30(%rsp)
jmp 0x44647
movq 0x30(%rsp), %rdi
movq 0x4095d(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x4465a
jmp 0x4465c
leaq 0x1b0(%rsp), %rdi
leaq 0x1a8(%rsp), %rsi
callq 0x10740
testb $0x1, %al
jne 0x4467a
jmp 0x44759
leaq 0x1b0(%rsp), %rdi
callq 0x10380
movl (%rax), %esi
leaq 0x1b8(%rsp), %rdi
callq 0x5790
movq %rax, 0x28(%rsp)
jmp 0x4469d
movq 0x28(%rsp), %rdi
leaq 0x264ea(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0x20(%rsp)
jmp 0x446b5
leaq 0x1b0(%rsp), %rdi
callq 0x10380
movq 0x20(%rsp), %rdi
movq 0x8(%rax), %rsi
callq 0x50f0
movq %rax, 0x18(%rsp)
jmp 0x446d7
movq 0x18(%rsp), %rdi
leaq 0x264b0(%rip), %rsi     # 0x6ab93
callq 0x5460
movq %rax, 0x10(%rsp)
jmp 0x446ef
leaq 0x1b0(%rsp), %rdi
callq 0x10380
movq 0x160(%rsp), %rdi
movq %rax, %rsi
callq 0x103a0
movq %rax, 0x8(%rsp)
jmp 0x44713
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rsi
callq 0x50f0
movq %rax, (%rsp)
jmp 0x4472b
movq (%rsp), %rdi
movq 0x4087a(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x4473d
leaq 0x1b0(%rsp), %rdi
xorl %esi, %esi
callq 0x10790
movq %rax, 0x190(%rsp)
jmp 0x4465c
leaq 0x1b8(%rsp), %rdi
callq 0x5610
jmp 0x44768
movb $0x1, 0xb87(%rsp)
movl $0x1, 0x920(%rsp)
leaq 0x1b8(%rsp), %rdi
callq 0x5670
leaq 0x3b8(%rsp), %rdi
callq 0x58b8
jmp 0x447a6
leaq 0x3b8(%rsp), %rdi
callq 0x58b8
jmp 0x447cf
leaq 0x3f8(%rsp), %rdi
callq 0x5670
leaq 0x5f8(%rsp), %rdi
callq 0x58b8
leaq 0x680(%rsp), %rdi
callq 0x10c40
jmp 0x447f8
leaq 0x3f8(%rsp), %rdi
callq 0x5670
leaq 0x5f8(%rsp), %rdi
callq 0x58b8
leaq 0x680(%rsp), %rdi
callq 0x10c40
jmp 0x44814
leaq 0x6d8(%rsp), %rdi
callq 0x5670
leaq 0x8d8(%rsp), %rdi
callq 0x58b8
jmp 0x44830
leaq 0x6d8(%rsp), %rdi
callq 0x5670
leaq 0x8d8(%rsp), %rdi
callq 0x58b8
jmp 0x4485b
leaq 0x930(%rsp), %rdi
callq 0x5670
leaq 0xb30(%rsp), %rdi
callq 0x58b8
movb 0xb87(%rsp), %al
andb $0x1, %al
addq $0xb88, %rsp            # imm = 0xB88
retq
leaq 0x930(%rsp), %rdi
callq 0x5670
leaq 0xb30(%rsp), %rdi
callq 0x58b8
movq 0x928(%rsp), %rdi
callq 0x57b0
nopw %cs:(%rax,%rax)