// File: /workspace/github_cpp_makefile_star2_O2/schneebergerlab[P]DrLink/separate_kb_molecule.cpp
// Function: separate_kb_molecule(int, char**)
bool separate_kb_molecule(int argc, char* argv[])
{
    std::stringstream usage;
    usage.str("");
    if(argc < 5)
    {
        usage << endl;
        usage << "   Given sets of molecule info (from DrLink molecule), "                         
              << endl;
        usage << "   this function samples molecules according to intersection of molecule sizes and base coverage"           
              << endl;
        const char *buildString = __DATE__", " __TIME__;
        usage << "   (compiled on " << buildString << ")"                                                   
              << endl << endl;
        usage << "   Usage: DrLink separate_kb mole1.gz,mole2.gz[,...] label1,label2[,...] outprefix" 
              << endl << endl;
        usage << "\twhere "                                                         << endl;
        usage << "\tmole*.gz  :   molecule meta info corresponding to molecule size of pools from DrLink molecule"  
              << endl;
        usage << "\tlabel*    :   sample-specific label of output files"            << endl;
        usage << "\toutprefix :   general label of output files"                    << endl;
        cout  << usage.str() << endl;
        return false;
    }
    double startT   = clock(); 
    // get inputs
    vector<string> mfileinfo  = split_string((string)argv[2], ',');
    vector<string> mlabelinfo = split_string((string)argv[3], ',');
    if(mfileinfo.size() != mlabelinfo.size())
    {
        cout << "   Error: number of molecule files does not match number of labels. Exited." << endl;
        return false;
    }
    string outprefix = (string)argv[4];
    if(outprefix.size()==0)
    {
        outprefix = "Enjo";
    }
    //
    vector<string>::iterator mfitr;
    vector<string>::iterator mfitr_end;
    mfitr     = mfileinfo.begin();
    mfitr_end = mfileinfo.end();
    int i = -1;
    string molheader = "#chr#barcode\tfirst_aligned\tlast_aligned\tmolecule_len\tmolecule_cov\tread_num\tUni_flag\tlast_aligned_end\treads_region\tR1R2\treads_id";
    map<int, map<string,  unsigned long> > molecule_cov; // map<kb, map<0.01x,0.02x,..., number of molecules> >
    while(mfitr != mfitr_end)
    {
        i ++;
        string molfile  = *mfitr;        
        string mollabel = mlabelinfo[i];
        cout << "   Info: building statistics for " << mollabel << ":" << molfile << endl;
        unsigned long raw_mole_num      = 0;
        unsigned long selected_mole_num = 0;
        // create an intermediate folder for collecting details about a CO-molecule
        string molfolder = outprefix+"_"+mollabel;
        DIR* dir = opendir(molfolder.c_str());
        if (dir)
        {
            /* Directory exists. */
            closedir(dir);
        }
        else if (ENOENT == errno)
        {
            /* Directory does not exist. */
            const int dir_err = mkdir(molfolder.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
            if (dir_err == -1)
            {
                cout << "   Error: cannot create directory " << molfolder << endl;
                return false;
            }        
        }
        else ;
        // read raw molecule meta info file
        igzstream molfp;
        molfp.open(molfile.c_str());
        if(!molfp.good())
        {
            cout << "   Error: cannot open file of raw molecule: " << molfile << endl;
            return false;
        }
        while(molfp.good())
        {
            string line("");
            getline(molfp, line);
            if(line.size()==0 || line[0]=='#') continue;            
            vector<string> lineinfo = split_string(line, '\t');
            raw_mole_num ++;
            // molecule size
            int mlen = atoi(lineinfo[3].c_str());
            if(mlen < 1000) continue;
            int mlkey = (int)round((double)mlen/1000);
            map<int, map<string, unsigned long> >::iterator mlitr;
            mlitr = molecule_cov.find(mlkey); // to check if key exists
            if(mlitr == molecule_cov.end())
            {
                map<string, unsigned long> tmpcovmap;
                molecule_cov.insert(std::pair<int, map<string, unsigned long> >(mlkey, tmpcovmap) );
            }
            mlitr = molecule_cov.find(mlkey); // to update key: value
            // molecule cov
            string mckey = lineinfo[4];
            map<string, unsigned long>::iterator mcitr = ((*mlitr).second).find(mckey);
            if(mcitr == (*mlitr).second.end())
            {
                ((*mlitr).second).insert(std::pair<string, unsigned long>(mckey, 1));
            }
            else
            {
                (*mcitr).second += 1;
            }
            // output x.kb molecule to x.kb file
            std::stringstream kbmfile;
            kbmfile.str(""); 
            kbmfile << "./" << molfolder << "/" << mollabel << "_" << mlkey << "kb.txt";
            ofstream outkbfp;
            outkbfp.open(kbmfile.str().c_str(), ios::out | ios::app);
            if(!outkbfp.good())
            {
                cout   << "   Error: cannot open file " << kbmfile.str() << endl;
                return false;
            }
            else
            {
                outkbfp << line << endl;
                outkbfp.close();
                selected_mole_num ++;
            }
            //
            if(raw_mole_num%1000000 == 0)
            {
                cout << "   Info: " 
                     << raw_mole_num 
                     << " raw molecules, where " 
                     << selected_mole_num 
                     << " selected. " 
                     << endl;
            }
        }
        // output sample kb molecule base coverage
        map<int, map<string, unsigned long> >::iterator kbitr;
        map<int, map<string, unsigned long> >::iterator kbitr_end;
        kbitr     = molecule_cov.begin();
        kbitr_end = molecule_cov.end();
        while(kbitr != kbitr_end)
        {
            if(!write_molecule_kbcov((*kbitr).second, molfolder, mollabel, (*kbitr).first))
            {
                cout << "   Error: cannot write molecule cov for " << (*kbitr).first << " kb." << endl;
                return false;
            }
            kbitr ++;
        }
        // next sample
        mfitr ++;
    }
    //
    double finishT= clock();
    cout << "   Time consumed: " << (finishT-startT)/1000000 << " seconds" << endl << endl;    
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x9c8, %rsp            # imm = 0x9C8
movq %rsi, %r14
movl %edi, %ebp
leaq 0x840(%rsp), %rdi
callq 0x4250
leaq 0x9748(%rip), %rsi      # 0x2db1a
leaq 0x3a0(%rsp), %rdi
leaq 0x640(%rsp), %rdx
callq 0x4d3e
leaq 0x858(%rsp), %rbx
leaq 0x3a0(%rsp), %rsi
movq %rbx, %rdi
callq 0x4490
leaq 0x3a0(%rsp), %rdi
callq 0x4638
cmpl $0x4, %ebp
jg 0x2454b
leaq 0x850(%rsp), %r14
movq %r14, %rdi
callq 0x41c0
leaq 0x9766(%rip), %rsi      # 0x2db92
movq %r14, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x41c0
leaq 0x9787(%rip), %rsi      # 0x2dbca
movq %r14, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x41c0
leaq 0x8869(%rip), %rsi      # 0x2ccc3
movq %r14, %rdi
callq 0x4330
leaq 0x97c2(%rip), %rsi      # 0x2dc2b
movq %rax, %rdi
callq 0x4330
leaq 0x8ec0(%rip), %rsi      # 0x2d338
movq %rax, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x41c0
movq %rax, %rdi
callq 0x41c0
leaq 0x97aa(%rip), %rsi      # 0x2dc41
movq %r14, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x41c0
movq %rax, %rdi
callq 0x41c0
leaq 0x886f(%rip), %rsi      # 0x2cd25
movq %r14, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x41c0
leaq 0x8c4d(%rip), %rsi      # 0x2d11a
movq %r14, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x41c0
leaq 0x97b0(%rip), %rsi      # 0x2dc94
movq %r14, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x41c0
leaq 0x8cea(%rip), %rsi      # 0x2d1e5
movq %r14, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x41c0
leaq 0x3a0(%rsp), %rdi
movq %rbx, %rsi
callq 0x44e0
movq 0x18aa6(%rip), %rdi     # 0x3cfc8
leaq 0x3a0(%rsp), %rsi
callq 0x42e0
movq %rax, %rdi
callq 0x41c0
leaq 0x3a0(%rsp), %rdi
callq 0x4638
xorl %ebx, %ebx
jmp 0x24e29
callq 0x4220
movq %rax, %rbx
movq 0x10(%r14), %rsi
leaq 0x3a0(%rsp), %rdi
leaq 0x640(%rsp), %rdx
callq 0x4d3e
leaq 0x218(%rsp), %rdx
movb $0x2c, (%rdx)
leaq 0x20(%rsp), %rdi
leaq 0x3a0(%rsp), %rsi
callq 0x26120
leaq 0x3a0(%rsp), %rdi
callq 0x4638
movq 0x18(%r14), %rsi
leaq 0x3a0(%rsp), %rdi
leaq 0x640(%rsp), %rdx
callq 0x4d3e
leaq 0x218(%rsp), %rdx
movb $0x2c, (%rdx)
leaq 0xe0(%rsp), %rdi
leaq 0x3a0(%rsp), %rsi
callq 0x26120
leaq 0x3a0(%rsp), %rdi
callq 0x4638
movq 0x28(%rsp), %rax
subq 0x20(%rsp), %rax
movq 0xe8(%rsp), %rcx
subq 0xe0(%rsp), %rcx
cmpq %rcx, %rax
jne 0x24d70
movq 0x20(%r14), %rsi
leaq 0x168(%rsp), %rdi
leaq 0x3a0(%rsp), %rdx
callq 0x4d3e
cmpq $0x0, 0x170(%rsp)
jne 0x24637
leaq 0x96eb(%rip), %rsi      # 0x2dd15
leaq 0x168(%rsp), %rdi
callq 0x45e0
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x60(%rsp)
leaq 0x552f(%rip), %rsi      # 0x29b81
leaq 0x1a8(%rsp), %rdi
leaq 0x3a0(%rsp), %rdx
callq 0x4d3e
leaq 0x140(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
cvtsi2sd %rbx, %xmm0
movsd %xmm0, 0x58(%rsp)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
pushq $-0x1
popq %rax
movq %rax, 0x18(%rsp)
leaq 0xa0(%rsp), %r13
leaq 0x640(%rsp), %rbx
leaq 0x118(%rsp), %r15
movq 0x10(%rsp), %rsi
cmpq 0x60(%rsp), %rsi
sete %r14b
movl %r14d, 0x4(%rsp)
je 0x24d92
leaq 0xf8(%rsp), %rdi
callq 0x4400
movq 0x18(%rsp), %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
shlq $0x5, %rsi
addq 0xe0(%rsp), %rsi
leaq 0xc0(%rsp), %rdi
callq 0x4400
movq 0x188c6(%rip), %rdi     # 0x3cfc8
leaq 0x9611(%rip), %rsi      # 0x2dd1a
callq 0x4330
movq %rax, %rdi
leaq 0xc0(%rsp), %rsi
callq 0x42e0
movq %rax, %rdi
leaq 0x4ed3(%rip), %rsi      # 0x295fb
callq 0x4330
movq %rax, %rdi
leaq 0xf8(%rsp), %rsi
callq 0x42e0
movq %rax, %rdi
callq 0x41c0
leaq 0x3a0(%rsp), %r12
movq %r12, %rdi
leaq 0x168(%rsp), %rsi
leaq 0x6358(%rip), %rdx      # 0x2aab7
callq 0x95e2
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
leaq 0xc0(%rsp), %rdx
callq 0x961a
movq %r12, %rdi
callq 0x4638
movq 0x38(%rsp), %rdi
callq 0x44a0
testq %rax, %rax
je 0x2479a
movq %rax, %rdi
callq 0x4500
jmp 0x247bc
callq 0x4040
cmpl $0x2, (%rax)
jne 0x247bc
movq 0x38(%rsp), %rdi
movl $0x1fd, %esi            # imm = 0x1FD
callq 0x41b0
cmpl $-0x1, %eax
je 0x24e4a
leaq 0x3a0(%rsp), %r12
movq %r12, %rdi
callq 0x94d2
movq 0xf8(%rsp), %rsi
movq %r12, %rdi
pushq $0x8
popq %rdx
callq 0x27e38
movq 0x3a0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x3c0(%rsp,%rax)
je 0x24862
movq 0x187cc(%rip), %rdi     # 0x3cfc8
leaq 0x9539(%rip), %rsi      # 0x2dd3c
callq 0x4330
movq %rax, %rdi
leaq 0xf8(%rsp), %rsi
callq 0x42e0
movq %rax, %rdi
callq 0x41c0
xorl %r14d, %r14d
leaq 0x3a0(%rsp), %rdi
callq 0x96aa
leaq 0x38(%rsp), %rdi
callq 0x4638
leaq 0xc0(%rsp), %rdi
callq 0x4638
leaq 0xf8(%rsp), %rdi
callq 0x4638
testb %r14b, %r14b
jne 0x246af
jmp 0x24de7
xorl %eax, %eax
movq $0x0, 0x8(%rsp)
xorl %ebp, %ebp
testl %eax, %eax
jne 0x24c63
movq %r13, %rdi
leaq 0x9299(%rip), %rsi      # 0x2db1a
movq %rbx, %rdx
callq 0x4d3e
leaq 0x528(%rsp), %rdi
movq %r13, %rsi
callq 0x4090
cmpq $0x0, 0xa8(%rsp)
je 0x248f4
movq 0xa0(%rsp), %rax
cmpb $0x23, (%rax)
je 0x248f4
movb $0x9, 0x640(%rsp)
leaq 0x88(%rsp), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x26120
incq %rbp
movq 0x88(%rsp), %rax
movq 0x60(%rax), %rdi
callq 0x44c0
cmpl $0x3e7, %eax            # imm = 0x3E7
jg 0x24914
leaq 0x88(%rsp), %rdi
callq 0x5d02
movq %r13, %rdi
callq 0x4638
movq 0x3a0(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x3c0(%rsp,%rax), %eax
jmp 0x2486f
cvtsi2sd %eax, %xmm0
divsd 0x4fb0(%rip), %xmm0     # 0x298d0
callq 0x4180
cvttsd2si %xmm0, %eax
movl %eax, (%rsp)
leaq 0x138(%rsp), %rdi
movq %rsp, %rsi
callq 0x25320
leaq 0x140(%rsp), %rcx
cmpq %rcx, %rax
jne 0x249c4
andl $0x0, 0x220(%rsp)
andq $0x0, 0x228(%rsp)
leaq 0x220(%rsp), %rax
movq %rax, 0x230(%rsp)
movq %rax, 0x238(%rsp)
andq $0x0, 0x240(%rsp)
movl (%rsp), %eax
movl %eax, 0x640(%rsp)
leaq 0x648(%rsp), %rdi
leaq 0x218(%rsp), %rsi
callq 0x9888
leaq 0x138(%rsp), %rdi
movq %rbx, %rsi
callq 0x22c6c
leaq 0x648(%rsp), %rdi
callq 0xa02c
leaq 0x218(%rsp), %rdi
callq 0xa02c
movq %rbx, %r14
leaq 0x138(%rsp), %rdi
movq %rsp, %rsi
callq 0x25320
movq %rax, %r12
movq 0x88(%rsp), %rsi
subq $-0x80, %rsi
leaq 0x188(%rsp), %rbx
movq %rbx, %rdi
callq 0x4400
leaq 0x28(%r12), %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0xa47a
addq $0x30, %r12
cmpq %r12, %rax
movq %r14, %rbx
je 0x24a18
incq 0x40(%rax)
jmp 0x24a47
movq %rbx, %rdi
leaq 0x188(%rsp), %rsi
callq 0x4400
movq $0x1, 0x660(%rsp)
movq %r13, %rdi
movq %rbx, %rsi
callq 0xa4f0
movq %rbx, %rdi
callq 0x4638
leaq 0x218(%rsp), %rdi
callq 0x4250
movq %rbx, %rdi
leaq 0x90bc(%rip), %rsi      # 0x2db1a
leaq 0x68(%rsp), %rdx
callq 0x4d3e
leaq 0x230(%rsp), %rdi
movq %rbx, %rsi
callq 0x4490
movq %rbx, %rdi
callq 0x4638
leaq 0x228(%rsp), %rdi
leaq 0x92da(%rip), %rsi      # 0x2dd69
callq 0x4330
movq %rax, %rdi
leaq 0x38(%rsp), %rsi
callq 0x42e0
movq %rax, %rdi
leaq 0x92bf(%rip), %rsi      # 0x2dd6a
callq 0x4330
movq %rax, %rdi
leaq 0xc0(%rsp), %rsi
callq 0x42e0
movq %rax, %rdi
leaq 0x5fed(%rip), %rsi      # 0x2aab7
callq 0x4330
movl (%rsp), %esi
movq %rax, %rdi
callq 0x4580
movq %rax, %rdi
leaq 0x9042(%rip), %rsi      # 0x2db26
callq 0x4330
movq %rbx, %rdi
callq 0x4570
leaq 0x68(%rsp), %rdi
leaq 0x230(%rsp), %rsi
callq 0x44e0
movq 0x68(%rsp), %rsi
movq %rbx, %rdi
pushq $0x11
popq %rdx
callq 0x4050
leaq 0x68(%rsp), %rdi
callq 0x4638
movq 0x640(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x660(%rsp,%rax), %r13d
testl %r13d, %r13d
je 0x24b83
movq 0x1848b(%rip), %rdi     # 0x3cfc8
leaq 0x5012(%rip), %rsi      # 0x29b56
callq 0x4330
movq %rax, %r12
leaq 0x68(%rsp), %r14
movq %r14, %rdi
leaq 0x230(%rsp), %rsi
callq 0x44e0
movq %r12, %rdi
movq %r14, %rsi
callq 0x42e0
movq %rax, %rdi
callq 0x41c0
leaq 0x68(%rsp), %rdi
callq 0x4638
jmp 0x24c0b
movq %rbx, %rdi
leaq 0xa0(%rsp), %rsi
callq 0x42e0
movq %rax, %rdi
callq 0x41c0
movq %rbx, %rdi
callq 0x4430
incq 0x8(%rsp)
movq %rbp, %rax
xorl %edx, %edx
movl $0xf4240, %ecx          # imm = 0xF4240
divq %rcx
testq %rdx, %rdx
jne 0x24c0b
movq 0x18407(%rip), %rdi     # 0x3cfc8
leaq 0x52de(%rip), %rsi      # 0x29ea6
callq 0x4330
movq %rax, %rdi
movq %rbp, %rsi
callq 0x4230
movq %rax, %rdi
leaq 0x918a(%rip), %rsi      # 0x2dd6c
callq 0x4330
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0x4230
movq %rax, %rdi
leaq 0x9185(%rip), %rsi      # 0x2dd83
callq 0x4330
movq %rax, %rdi
callq 0x41c0
movq %rbx, %rdi
callq 0x4480
leaq 0x218(%rsp), %rdi
callq 0x4280
leaq 0x188(%rsp), %rdi
callq 0x4638
leaq 0x88(%rsp), %rdi
callq 0x5d02
leaq 0xa0(%rsp), %r14
movq %r14, %rdi
callq 0x4638
testl %r13d, %r13d
movq %r14, %r13
leaq 0x118(%rsp), %r15
je 0x248fc
jmp 0x24820
movq 0x150(%rsp), %r14
leaq 0x140(%rsp), %rax
cmpq %rax, %r14
je 0x24d14
leaq 0x28(%r14), %rsi
leaq 0x1e8(%rsp), %rdi
callq 0x9888
movq %r15, %rdi
leaq 0x38(%rsp), %rsi
callq 0x4400
leaq 0x1c8(%rsp), %rbp
movq %rbp, %rdi
leaq 0xc0(%rsp), %rsi
callq 0x4400
movl 0x20(%r14), %ecx
leaq 0x1e8(%rsp), %r13
movq %r13, %rdi
leaq 0x118(%rsp), %r15
movq %r15, %rsi
movq %rbp, %rdx
callq 0x250d7
movl %eax, %r12d
movq %rbp, %rdi
callq 0x4638
movq %r15, %rdi
callq 0x4638
movq %r13, %rdi
callq 0xa02c
testb %r12b, %r12b
je 0x24d22
movq %r14, %rdi
callq 0x4240
movq %rax, %r14
leaq 0x118(%rsp), %r15
leaq 0xa0(%rsp), %r13
jmp 0x24c6b
addq $0x20, 0x10(%rsp)
movb $0x1, %r14b
jmp 0x24823
movq 0x1829f(%rip), %rdi     # 0x3cfc8
leaq 0x905f(%rip), %rsi      # 0x2dd8f
callq 0x4330
leaq 0xa0(%rsp), %r13
movl 0x20(%r14), %esi
movq %rax, %rdi
callq 0x4580
movq %rax, %rdi
leaq 0x9065(%rip), %rsi      # 0x2ddb8
callq 0x4330
movq %rax, %rdi
callq 0x41c0
xorl %r14d, %r14d
leaq 0x118(%rsp), %r15
jmp 0x24823
movq 0x18251(%rip), %rdi     # 0x3cfc8
leaq 0x8f4b(%rip), %rsi      # 0x2dcc9
callq 0x4330
movq %rax, %rdi
callq 0x41c0
xorl %ebx, %ebx
jmp 0x24e12
callq 0x4220
movq %rax, %rbx
movq 0x18227(%rip), %rdi     # 0x3cfc8
leaq 0x459d(%rip), %rsi      # 0x29345
callq 0x4330
cvtsi2sd %rbx, %xmm0
subsd 0x58(%rsp), %xmm0
divsd 0x4248(%rip), %xmm0     # 0x29008
movq %rax, %rdi
callq 0x4510
leaq 0x4589(%rip), %rsi      # 0x29358
movq %rax, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x41c0
movq %rax, %rdi
callq 0x41c0
leaq 0x138(%rsp), %rdi
callq 0x22260
leaq 0x1a8(%rsp), %rdi
callq 0x4638
leaq 0x168(%rsp), %rdi
callq 0x4638
movl 0x4(%rsp), %ebx
leaq 0xe0(%rsp), %rdi
callq 0x5d02
leaq 0x20(%rsp), %rdi
callq 0x5d02
leaq 0x840(%rsp), %rdi
callq 0x4280
movl %ebx, %eax
addq $0x9c8, %rsp            # imm = 0x9C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18177(%rip), %rdi     # 0x3cfc8
leaq 0x5d93(%rip), %rsi      # 0x2abeb
callq 0x4330
leaq 0x38(%rsp), %rsi
movq %rax, %rdi
callq 0x42e0
movq %rax, %rdi
callq 0x41c0
leaq 0x38(%rsp), %rdi
callq 0x4638
leaq 0xc0(%rsp), %rdi
callq 0x4638
leaq 0xf8(%rsp), %rdi
callq 0x4638
jmp 0x24de7
jmp 0x24f45
jmp 0x24ea2
movq %rax, %rbx
jmp 0x2509e
jmp 0x24eb1
jmp 0x24fb4
movq %rax, %rbx
jmp 0x250ab
movq %rax, %rbx
leaq 0x3a0(%rsp), %rdi
callq 0x4638
jmp 0x250b8
movq %rax, %rbx
jmp 0x250b8
jmp 0x24ee1
jmp 0x24fb4
jmp 0x24f4d
jmp 0x24ee1
movq %rax, %rbx
leaq 0x3a0(%rsp), %rdi
callq 0x4638
jmp 0x250c2
jmp 0x24fb4
jmp 0x24f9d
movq %rax, %rbx
leaq 0x648(%rsp), %rdi
callq 0xa02c
jmp 0x24f15
movq %rax, %rbx
leaq 0x218(%rsp), %rdi
callq 0xa02c
jmp 0x25039
movq %rax, %rbx
leaq 0x640(%rsp), %rdi
callq 0x4638
jmp 0x2502c
jmp 0x25012
jmp 0x24fb4
jmp 0x24fc0
movq %rax, %rbx
jmp 0x25060
movq %rax, %rbx
jmp 0x25084
jmp 0x24fd2
movq %rax, %rbx
jmp 0x25077
movq %rax, %rbx
leaq 0x3a0(%rsp), %rdi
jmp 0x25065
jmp 0x24f75
jmp 0x24f9d
jmp 0x24f75
movq %rax, %rbx
jmp 0x25039
jmp 0x24fa5
jmp 0x24fc0
jmp 0x2501c
movq %rax, %rbx
leaq 0x640(%rsp), %rdi
callq 0x4638
jmp 0x2501f
jmp 0x2501c
movq %rax, %rbx
jmp 0x2502c
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x4638
jmp 0x24fc3
movq %rax, %rbx
jmp 0x250c2
jmp 0x25012
jmp 0x25017
movq %rax, %rbx
leaq 0x640(%rsp), %rdi
callq 0x4480
jmp 0x2501f
movq %rax, %rbx
jmp 0x2506a
movq %rax, %rbx
leaq 0x1c8(%rsp), %rdi
callq 0x4638
jmp 0x24ff4
movq %rax, %rbx
jmp 0x25001
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
callq 0x4638
leaq 0x1e8(%rsp), %rdi
callq 0xa02c
jmp 0x25053
jmp 0x25012
movq %rax, %rbx
jmp 0x25053
movq %rax, %rbx
jmp 0x25046
movq %rax, %rbx
leaq 0x218(%rsp), %rdi
callq 0x4280
leaq 0x188(%rsp), %rdi
callq 0x4638
leaq 0x88(%rsp), %rdi
callq 0x5d02
leaq 0xa0(%rsp), %rdi
callq 0x4638
leaq 0x3a0(%rsp), %rdi
callq 0x96aa
leaq 0x38(%rsp), %rdi
callq 0x4638
leaq 0xc0(%rsp), %rdi
callq 0x4638
leaq 0xf8(%rsp), %rdi
callq 0x4638
leaq 0x138(%rsp), %rdi
callq 0x22260
leaq 0x1a8(%rsp), %rdi
callq 0x4638
leaq 0x168(%rsp), %rdi
callq 0x4638
leaq 0xe0(%rsp), %rdi
callq 0x5d02
leaq 0x20(%rsp), %rdi
callq 0x5d02
leaq 0x840(%rsp), %rdi
callq 0x4280
movq %rbx, %rdi
callq 0x45a0