// File: /workspace/github_cpp_makefile_star2_O3/kingufl[P]Rmapper/graph_traverse.cpp
// Function: main
int main(int argc, char *argv[]){


    Args args;
    parseArgs(argc, argv, args);


    ifstream infile1(args.dirname + "/graph.txt");
    ifstream infile2(args.dirname + "/graph_rev.txt");

    vector<vector<int> > fwd,rev;
    map<string,int> nodemap;
    int lastnode=0;


    vector< vector <string> > stringfwd;

    int dist=10000;

    string str;

    int totalin=0,totalout=0;


    vector<int> fwd_deeg(100,0);

    ofstream notenodes(args.dirname + "/nodenotes.txt");

    vector<string> storeallstr;

    while(getline(infile1,str)){

        stringstream sss(str);
        storeallstr.push_back(str);

        string instr;

        sss>>instr;

        notenodes<<"nn_"<<lastnode<<" "<<str<<endl;

        nodemap[instr]=lastnode++;

        vector<int> temvec;

        while(sss>>instr){

            if(instr.compare("fwd_conns:")==0)
                break;
            temvec.push_back(stoi(instr));
        }

        nodefrag.push_back(temvec);

        vector<string> vecstr;

        while(sss>>instr){
            vecstr.push_back(instr);
            totalout++;
        }

        if(vecstr.size()<100){
            fwd_deeg[vecstr.size()]++;
        }

        stringfwd.push_back(vecstr);

    }

    vector<int> sources,terminals,multiedges;

    int nodecnt=0;

    int problem=0;

    while(getline(infile2,str)){

        stringstream sss(str);

        string instr;

        sss>>instr;

        while(sss>>instr){

            if(instr.compare("rev_conns:")==0)
                break;
        }


        vector<string> vecstr;
        vector<int> temvec;

        while(sss>>instr){


            if(nodemap.find(instr)==nodemap.end()){
                cout<<"inproblem"<<nodecnt<<" "<<instr<<endl;
                problem++;
            }
            else{
                temvec.push_back(nodemap.find(instr)->second);
            }

            totalin++;
        }

        if(temvec.size()==0)
            sources.push_back(nodecnt);

        graphr.push_back(temvec);
        nodecnt++;

    }

    cout<<"Graph read. Total in: "<<totalin<<" Total out: "<<totalout<<endl;

//    cout<<"Inproblem: "<<problem;

    problem=0;

    int countextra=0,oneoutmorein=0;
    vector<int> singleton;

    ofstream graphcut(args.dirname + "/graphcut.txt");


    for(int i=0;i<stringfwd.size();i++){

        vector<int> temvec;
        for(int ii=0;ii<stringfwd[i].size();ii++){
            if(nodemap.find(stringfwd[i][ii])==nodemap.end()){
                cout<<"outprobelm: "<<i<<" "<<stringfwd[i][ii]<<endl;
                problem++;
            }
            else{
                temvec.push_back(nodemap.find(stringfwd[i][ii])->second);
            }

        }
        if(temvec.size()>15){
            graphcut<<storeallstr[i]<<endl;
            temvec.clear();
        }


        graphf.push_back(temvec);

        if(temvec.size()==0)
            terminals.push_back(i);

        if(temvec.size()>1)
            multiedges.push_back(i);


        if(temvec.size()==1 && graphr[i].size()==1)
            singleton.push_back(i);

        if(temvec.size()==1 && graphr[i].size()>1)
            oneoutmorein++;
    }
    cout<<endl;

//    cout<<"extra: "<<countextra<<endl;
    cout<<"Sources: "<<sources.size()<<" Terminals: "<<terminals.size()<< " Multiedges: "<<multiedges.size()<<" Singletons: "<< singleton.size()<<" Oneoutmorein: "<<oneoutmorein<<endl;
//    cout<<"Outprobelm: "<<problem<<endl;

//    for(int i=0;i<fwd_deeg.size();i++){
//
//        cout<<"deegree_"<<i<<" "<<fwd_deeg[i]<<endl;
//    }

    if(problem>0)
        return 1;


    int maxlevel=dist;

    ofstream maxreached(args.dirname + "/maxreached.txt");

    int resolved=0;

    int goodlength=0;

    vector< vector<int> > all_contigs;
    vector< vector<int> > contignodes;

    vector< vector <int> > source_contigs;

    vector< pair<int,int> > node_to_con(graphf.size(),make_pair(-1,-1));

    nodestatus.resize(graphf.size(),-1);

    kmersize = (nodefrag[0].size()-1)/2;

    ofstream finalcons(args.dirname + "/assembly.txt");
    ofstream outnodes(args.dirname + "/connodes.txt");


    int longestcon=0,totlen=0;

    vector< pair<int,int> > nodereachedat(graphf.size(),make_pair(-1,-1));

    int resol=0;

    for(int i=0;i<multiedges.size();i++){

        nodestatus[multiedges[i]]=multiedges[i];

        int maxlvlreached=0,maxedge=-1;


        vector<int> updatededges;
        maxreached<<multiedges[i]<<endl;



        for(int outedge: graphf[multiedges[i]]){

            nothit=0;
            maxlvl=0;
            DFS_trim(multiedges[i],outedge,1,50);
            maxreached<<"\t"<<outedge<<" "<<maxlvl;

            if(maxlvl==50){
                if(!updatededges.empty()){
                    maxreached<<" Keep";
                }
                updatededges.push_back(outedge);
                maxlvlreached=maxlvl;

            }
            else{
                if(maxlvlreached<maxlvl){
                    maxlvlreached=maxlvl;
                    maxedge=outedge;
                }

            }

            maxreached<<endl;

        }

        if(updatededges.empty()){
            updatededges.push_back(maxedge);
        }

        if(updatededges.size()==1)
            resol++;
        else{
            for(int keepedge: updatededges)
                sources.push_back(keepedge);
        }

        graphf[multiedges[i]]=updatededges;
    }

    cout<<"Multiedges unresolved: "<<multiedges.size()-resol<<endl;

//    return 1;

    vector<int> skipped (sources.size(),0);

    for(int i=0;i<sources.size();i++){

        thiscontig.clear();
        thispath.clear();

        longestcontig.clear();
        longestpath.clear();

//        tobeincluded=0;

        for(int ii=0;ii<kmersize-1;ii++){

            thiscontig.push_back(nodefrag[sources[i]][ii]);
        }
        thispath.push_back(sources[i]);

        nodestatus[sources[i]]=sources[i];

        for(int nextnode : graphf[sources[i]]){

            DFS(sources[i],nextnode,2,10000);

        }



        for(int ii=0;ii<longestpath.size();ii++){

            int nodethis=longestpath[ii];

            if(nodereachedat[nodethis].first==-1){
                nodereachedat[nodethis]=make_pair(i,ii);
            }
            else{

                if(nodereachedat[nodethis].second<ii){
                    skipped[nodereachedat[nodethis].first]++;
                    nodereachedat[nodethis]=make_pair(i,ii);
                }
                else{
                    skipped[i]++;
                }

                break;


            }

        }



        all_contigs.push_back(longestcontig);
        contignodes.push_back(longestpath);


    }


    vector<int> nodesnotvisited;

    vector<int> nodesincluded(graphf.size(),0);


    for(int ii=0;ii<nodestatus.size();ii++){

        if(nodestatus[ii]==-1)
            nodesnotvisited.push_back(ii);
    }

    cout<<"Nodes not visited: "<<nodesnotvisited.size()<<endl;

    int countedcontigs=0;
    double longestgenome=0;
    float totgenome=0;
    int filsize=30;

    cout<<"numcons: "<<all_contigs.size()<<" "<<endl;


//    for(int i=0;i<all_contigs.size();i++){
//        cout<<i<<" "<<all_contigs[i].size()<<endl;
//    }

//    return 1;



    for(int i=0;i<all_contigs.size();i++){

        if(skipped[i]>0 || all_contigs[i].size()<filsize)
            continue;

        countedcontigs++;

        finalcons<<"contig_"<<i<<endl<<"\t"<<all_contigs[i].size()<<" enzyme ";
        outnodes<<"contig_"<<i<<" ";

        for(int ii:contignodes[i]){
            outnodes<<" "<<ii;
            nodesincluded[ii]++;
        }


        outnodes<<endl;


        if(all_contigs[i].size()>longestcon)
            longestcon=all_contigs[i].size();

        totlen+=all_contigs[i].size();

        int thisgenlen=0;

        for(int ii:all_contigs[i]){

            finalcons<<(float)ii/1000<<" ";
            thisgenlen+=ii;
        }

        if(thisgenlen>longestgenome)
            longestgenome=thisgenlen;


        totgenome+=((float)thisgenlen/1000000);

        finalcons<<endl<<endl;

    }

    int notinc=0;
    for(int ii:nodesincluded){
        if(ii==0)
            notinc++;
    }


    cout<<"Contigs below size "<< filsize<<" filtered."<<endl;
    cout<<"Number of contigs: "<<countedcontigs<<endl;
    cout<<"Longest contig size: "<<longestcon<<endl;
    cout<<"Mean contig size: "<<totlen/countedcontigs<<endl;
    cout<<"Longest contig length in Mbp: "<<longestgenome/1000000<<endl;
    cout<<"Mean contig length in Mbp: "<<totgenome/(countedcontigs)<<endl;
    cout<<"Nodes not included: "<<notinc<< " Num nodes:"<<graphf.size()<<endl;


}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10a8, %rsp           # imm = 0x10A8
leaq -0xe0(%rbp), %rax
movq %rax, -0x10(%rax)
movw $0x2e, (%rax)
movq $0x1, -0x8(%rax)
leaq -0xf0(%rbp), %rdx
callq 0x2901
leaq -0xeb8(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
addq %rsi, %rdx
leaq -0xec8(%rbp), %rdi
callq 0x547a
leaq 0x44f2(%rip), %rsi      # 0x70a2
leaq -0xec8(%rbp), %rdi
callq 0x2330
leaq -0x10d0(%rbp), %rdi
leaq -0xec8(%rbp), %rsi
movl $0x8, %edx
callq 0x22c0
movq -0xec8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2be5
callq 0x21c0
leaq -0xcb0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
addq %rsi, %rdx
leaq -0xcc0(%rbp), %rdi
callq 0x547a
leaq 0x4499(%rip), %rsi      # 0x70ad
leaq -0xcc0(%rbp), %rdi
callq 0x2330
leaq -0xec8(%rbp), %rdi
leaq -0xcc0(%rbp), %rsi
movl $0x8, %edx
callq 0x22c0
movq -0xcc0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2c49
callq 0x21c0
xorl %eax, %eax
movq %rax, -0x290(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x2a0(%rbp)
movq %rax, -0x270(%rbp)
movaps %xmm0, -0x280(%rbp)
leaq -0x238(%rbp), %rcx
movl $0x0, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
movq %rax, -0x130(%rbp)
movaps %xmm0, -0x140(%rbp)
leaq -0x1c0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
movl $0x190, %edi            # imm = 0x190
callq 0x21e0
movl $0x190, %edx            # imm = 0x190
movq %rax, -0x150(%rbp)
movq %rax, %rdi
xorl %esi, %esi
callq 0x2100
leaq -0xab0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
addq %rsi, %rdx
leaq -0xac0(%rbp), %rdi
callq 0x547a
leaq 0x43c6(%rip), %rsi      # 0x70bc
leaq -0xac0(%rbp), %rdi
callq 0x2330
leaq -0xcc0(%rbp), %rdi
leaq -0xac0(%rbp), %rsi
movl $0x10, %edx
callq 0x2340
movq -0xac0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2d2b
callq 0x21c0
xorps %xmm0, %xmm0
leaq -0x210(%rbp), %rax
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
xorl %r15d, %r15d
leaq -0xac0(%rbp), %r14
leaq -0x4a0(%rbp), %r13
movl $0x0, -0x38(%rbp)
movq -0x10d0(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x10d0(%rbp), %rbx
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %edx
movq %rbx, %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x2320
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
leaq -0x1d0(%rbp), %rbx
jne 0x3041
movq %r14, %rdi
movq %rbx, %rsi
movl $0x18, %edx
callq 0x22a0
leaq -0x210(%rbp), %rdi
movq %rbx, %rsi
callq 0x5126
leaq -0x490(%rbp), %rax
movq %rax, -0x4a0(%rbp)
movq $0x0, -0x498(%rbp)
movb $0x0, -0x490(%rbp)
movq %r14, %rdi
movq %r13, %rsi
callq 0x2230
movl $0x3, %edx
leaq -0xcc0(%rbp), %rdi
leaq 0x42cc(%rip), %rsi      # 0x70cb
callq 0x2210
leaq -0xcc0(%rbp), %rdi
movl -0x38(%rbp), %esi
callq 0x22f0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x4471(%rip), %rsi      # 0x7296
callq 0x2210
movq -0x1d0(%rbp), %rsi
movq -0x1c8(%rbp), %rdx
movq %rbx, %rdi
callq 0x2210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
leaq -0x240(%rbp), %rdi
movq %r13, %rsi
callq 0x5172
movl -0x38(%rbp), %ecx
movl %ecx, (%rax)
incl %ecx
movl %ecx, -0x38(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x6c0(%rbp)
movq $0x0, -0x6b0(%rbp)
movq %r14, %rdi
movq %r13, %rsi
callq 0x2230
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2f67
movq %r13, %rdi
leaq 0x4210(%rip), %rsi      # 0x70cf
callq 0x2090
testl %eax, %eax
je 0x2f67
movq -0x4a0(%rbp), %r12
callq 0x2050
movq %rax, %rbx
movl (%rax), %eax
movl %eax, -0x30(%rbp)
movl $0x0, (%rbx)
movq %r12, %rdi
leaq -0x8c0(%rbp), %rsi
movl $0xa, %edx
callq 0x2240
cmpq %r12, -0x8c0(%rbp)
je 0x4af6
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x4b02
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x4b02
testl %ecx, %ecx
jne 0x2f27
movl -0x30(%rbp), %ecx
movl %ecx, (%rbx)
movl %eax, -0x1b0(%rbp)
movq -0x6b8(%rbp), %rsi
cmpq -0x6b0(%rbp), %rsi
je 0x2f4f
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x6b8(%rbp)
jmp 0x2e98
leaq -0x6c0(%rbp), %rdi
leaq -0x1b0(%rbp), %rdx
callq 0x5bd6
jmp 0x2e98
leaq 0x729a(%rip), %rdi      # 0xa208
leaq -0x6c0(%rbp), %rsi
callq 0x51f2
xorps %xmm0, %xmm0
movaps %xmm0, -0x8c0(%rbp)
movq $0x0, -0x8b0(%rbp)
leaq -0x8c0(%rbp), %rbx
movq %r14, %rdi
movq %r13, %rsi
callq 0x2230
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2fbf
movq %rbx, %rdi
movq %r13, %rsi
callq 0x5126
incl %r15d
jmp 0x2f96
movq -0x8b8(%rbp), %rax
subq -0x8c0(%rbp), %rax
sarq $0x5, %rax
cmpq $0x63, %rax
ja 0x2fe1
movq -0x150(%rbp), %rcx
incl (%rcx,%rax,4)
leaq -0x140(%rbp), %rdi
movq %rbx, %rsi
callq 0x522e
movq %rbx, %rdi
callq 0x526a
movq -0x6c0(%rbp), %rdi
testq %rdi, %rdi
je 0x3009
callq 0x21c0
movq -0x4a0(%rbp), %rdi
leaq -0x490(%rbp), %rax
cmpq %rax, %rdi
je 0x3021
callq 0x21c0
movq %r14, %rdi
movq 0x6f85(%rip), %rsi      # 0x9fb0
callq 0x2160
leaq -0xa40(%rbp), %rdi
callq 0x20a0
jmp 0x2d58
xorps %xmm0, %xmm0
leaq -0x80(%rbp), %rax
movaps %xmm0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x10(%rax)
movq %rcx, -0x180(%rbp)
movaps %xmm0, -0x190(%rbp)
movq %rcx, -0xa0(%rbp)
movaps %xmm0, -0xb0(%rbp)
leaq -0x44(%rbp), %rax
movl $0x0, (%rax)
leaq -0xac0(%rbp), %r14
leaq -0x4a0(%rbp), %rbx
xorl %r12d, %r12d
movq -0xec8(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0xec8(%rbp), %r13
addq %r13, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %edx
movq %r13, %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x2320
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3302
movq %r14, %rdi
leaq -0x1d0(%rbp), %rsi
movl $0x18, %edx
callq 0x22a0
leaq -0x490(%rbp), %rax
movq %rax, -0x4a0(%rbp)
movq $0x0, -0x498(%rbp)
movb $0x0, -0x490(%rbp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2230
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2230
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3136
movq %rbx, %rdi
leaq 0x3fad(%rip), %rsi      # 0x70da
callq 0x2090
testl %eax, %eax
jne 0x310a
xorps %xmm0, %xmm0
movaps %xmm0, -0x6c0(%rbp)
xorl %eax, %eax
movq %rax, -0x6b0(%rbp)
movq %rax, -0x8b0(%rbp)
movaps %xmm0, -0x8c0(%rbp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2230
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3261
leaq -0x240(%rbp), %rdi
movq %rbx, %rsi
callq 0x625a
leaq -0x238(%rbp), %rcx
cmpq %rcx, %rax
je 0x31ca
leaq -0x240(%rbp), %rdi
movq %rbx, %rsi
callq 0x625a
addq $0x40, %rax
movq -0x8b8(%rbp), %rsi
cmpq -0x8b0(%rbp), %rsi
je 0x324a
movl (%rax), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x8b8(%rbp)
jmp 0x3259
movl $0x9, %edx
movq 0x6dfa(%rip), %rdi      # 0x9fd0
leaq 0x3f08(%rip), %rsi      # 0x70e5
callq 0x2210
movl -0x44(%rbp), %esi
movq 0x6de4(%rip), %rdi      # 0x9fd0
callq 0x22f0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x4093(%rip), %rsi      # 0x7296
callq 0x2210
movq -0x4a0(%rbp), %rsi
movq -0x498(%rbp), %rdx
movq %r13, %rdi
callq 0x2210
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
jmp 0x3259
leaq -0x8c0(%rbp), %rdi
movq %rax, %rdx
callq 0x5536
incl %r12d
jmp 0x3157
movq -0x8b8(%rbp), %rax
cmpq -0x8c0(%rbp), %rax
jne 0x3297
movq -0x78(%rbp), %rsi
cmpq -0x70(%rbp), %rsi
je 0x328a
movl -0x44(%rbp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x78(%rbp)
jmp 0x3297
leaq -0x80(%rbp), %rdi
leaq -0x44(%rbp), %rdx
callq 0x5536
leaq 0x6f4a(%rip), %rdi      # 0xa1e8
leaq -0x8c0(%rbp), %rsi
callq 0x51f2
incl -0x44(%rbp)
movq -0x8c0(%rbp), %rdi
testq %rdi, %rdi
je 0x32be
callq 0x21c0
leaq -0x6c0(%rbp), %rdi
callq 0x526a
movq -0x4a0(%rbp), %rdi
leaq -0x490(%rbp), %rax
cmpq %rax, %rdi
je 0x32e2
callq 0x21c0
movq %r14, %rdi
movq 0x6cc4(%rip), %rsi      # 0x9fb0
callq 0x2160
leaq -0xa40(%rbp), %rdi
callq 0x20a0
jmp 0x3088
movq 0x6cc7(%rip), %rdi      # 0x9fd0
leaq 0x3ddf(%rip), %rsi      # 0x70ef
movl $0x16, %edx
callq 0x2210
movq 0x6caf(%rip), %rdi      # 0x9fd0
movl %r12d, %esi
callq 0x22f0
movq %rax, %rbx
leaq 0x3dd3(%rip), %rsi      # 0x7106
movl $0xc, %edx
movq %rax, %rdi
callq 0x2210
movq %rbx, %rdi
movl %r15d, %esi
callq 0x22f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
xorps %xmm0, %xmm0
movaps %xmm0, -0x170(%rbp)
movq $0x0, -0x160(%rbp)
leaq -0x4a0(%rbp), %rdi
leaq -0x490(%rbp), %rax
movq %rax, (%rdi)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
addq %rsi, %rdx
callq 0x547a
leaq 0x3d5b(%rip), %rsi      # 0x7113
leaq -0x4a0(%rbp), %rdi
callq 0x2330
leaq -0xac0(%rbp), %rdi
leaq -0x4a0(%rbp), %rsi
movl $0x10, %edx
callq 0x2340
movq -0x4a0(%rbp), %rdi
leaq -0x490(%rbp), %rax
cmpq %rax, %rdi
je 0x33f4
callq 0x21c0
movl $0x0, -0x6c0(%rbp)
movq -0x140(%rbp), %rax
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
cmpq %rax, -0x138(%rbp)
je 0x37c4
xorl %ecx, %ecx
leaq -0x240(%rbp), %r13
xorl %r15d, %r15d
movl $0x0, -0x30(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x4a0(%rbp)
movq $0x0, -0x490(%rbp)
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %rsi
cmpq %rsi, 0x8(%rax,%rcx,8)
je 0x3610
xorl %ebx, %ebx
xorl %r14d, %r14d
addq %rbx, %rsi
movq %r13, %rdi
callq 0x625a
leaq -0x238(%rbp), %rcx
cmpq %rcx, %rax
je 0x34c3
movslq -0x6c0(%rbp), %rax
movq -0x140(%rbp), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rsi
addq %rbx, %rsi
movq %r13, %rdi
callq 0x625a
addq $0x40, %rax
movq -0x498(%rbp), %rsi
cmpq -0x490(%rbp), %rsi
je 0x355a
movl (%rax), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x498(%rbp)
jmp 0x3569
movl $0xc, %edx
movq 0x6b01(%rip), %rdi      # 0x9fd0
leaq 0x3c4b(%rip), %rsi      # 0x7121
callq 0x2210
movl -0x6c0(%rbp), %esi
movq 0x6ae8(%rip), %rdi      # 0x9fd0
callq 0x22f0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0x3d97(%rip), %rsi      # 0x7296
callq 0x2210
movslq -0x6c0(%rbp), %rax
movq -0x140(%rbp), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rax
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
movq %r12, %rdi
callq 0x2210
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
incl %r15d
jmp 0x3569
leaq -0x4a0(%rbp), %rdi
movq %rax, %rdx
callq 0x5536
incq %r14
movslq -0x6c0(%rbp), %rax
movq -0x140(%rbp), %rcx
leaq (%rax,%rax,2), %rdx
movq (%rcx,%rdx,8), %rsi
movq 0x8(%rcx,%rdx,8), %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
addq $0x20, %rbx
cmpq %r14, %rcx
ja 0x345f
movq -0x498(%rbp), %rcx
subq -0x4a0(%rbp), %rcx
cmpq $0x3c, %rcx
jbe 0x3610
movq -0x210(%rbp), %rcx
shlq $0x5, %rax
movq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rdx
leaq -0xac0(%rbp), %rdi
callq 0x2210
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq -0x4a0(%rbp), %rax
cmpq %rax, -0x498(%rbp)
je 0x3610
movq %rax, -0x498(%rbp)
leaq 0x6bb9(%rip), %rdi      # 0xa1d0
leaq -0x4a0(%rbp), %rsi
callq 0x51f2
movq -0x4a0(%rbp), %rdi
movq -0x498(%rbp), %rax
cmpq %rdi, %rax
jne 0x367c
movq -0x188(%rbp), %rsi
cmpq -0x180(%rbp), %rsi
je 0x365b
movl -0x6c0(%rbp), %ecx
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x188(%rbp)
jmp 0x367c
leaq -0x190(%rbp), %rdi
leaq -0x6c0(%rbp), %rdx
callq 0x5536
movq -0x4a0(%rbp), %rdi
movq -0x498(%rbp), %rax
movq %rax, %rcx
subq %rdi, %rcx
cmpq $0x5, %rcx
jb 0x36ce
movq -0xa8(%rbp), %rsi
cmpq -0xa0(%rbp), %rsi
je 0x36ad
movl -0x6c0(%rbp), %ecx
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, -0xa8(%rbp)
jmp 0x36ce
leaq -0xb0(%rbp), %rdi
leaq -0x6c0(%rbp), %rdx
callq 0x5536
movq -0x4a0(%rbp), %rdi
movq -0x498(%rbp), %rax
movq %rax, %rcx
subq %rdi, %rcx
cmpq $0x4, %rcx
jne 0x373b
movslq -0x6c0(%rbp), %rcx
movq 0x6b00(%rip), %rdx      # 0xa1e8
leaq (%rcx,%rcx,2), %rsi
movq 0x8(%rdx,%rsi,8), %r8
subq (%rdx,%rsi,8), %r8
cmpq $0x4, %r8
jne 0x373b
movq -0x168(%rbp), %rsi
cmpq -0x160(%rbp), %rsi
je 0x371a
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x168(%rbp)
jmp 0x373b
leaq -0x170(%rbp), %rdi
leaq -0x6c0(%rbp), %rdx
callq 0x5536
movq -0x4a0(%rbp), %rdi
movq -0x498(%rbp), %rax
subq %rdi, %rax
cmpq $0x4, %rax
jne 0x3767
movslq -0x6c0(%rbp), %rax
movq 0x6a96(%rip), %rcx      # 0xa1e8
leaq (%rax,%rax,2), %rax
movq 0x8(%rcx,%rax,8), %rdx
subq (%rcx,%rax,8), %rdx
cmpq $0x5, %rdx
sbbl $-0x1, -0x30(%rbp)
testq %rdi, %rdi
je 0x3771
callq 0x21c0
movslq -0x6c0(%rbp), %rcx
incq %rcx
movl %ecx, -0x6c0(%rbp)
movq -0x140(%rbp), %rax
movq -0x138(%rbp), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
cmpq %rcx, %rdx
ja 0x342f
testl %r15d, %r15d
setg %r14b
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
movl -0x30(%rbp), %r15d
jmp 0x37ca
xorl %r15d, %r15d
xorl %r14d, %r14d
movq 0x67ff(%rip), %rdi      # 0x9fd0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq 0x67e4(%rip), %rdi      # 0x9fd0
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq 0x67d0(%rip), %rdi      # 0x9fd0
leaq 0x3927(%rip), %rsi      # 0x712e
movl $0x9, %edx
callq 0x2210
movq -0x78(%rbp), %rsi
subq -0x80(%rbp), %rsi
sarq $0x2, %rsi
movq 0x67ac(%rip), %rdi      # 0x9fd0
callq 0x2120
movq %rax, %rbx
leaq 0x3905(%rip), %rsi      # 0x7138
movl $0xc, %edx
movq %rax, %rdi
callq 0x2210
movq -0x188(%rbp), %rsi
subq -0x190(%rbp), %rsi
sarq $0x2, %rsi
movq %rbx, %rdi
callq 0x2120
movq %rax, %rbx
leaq 0x38e1(%rip), %rsi      # 0x7145
movl $0xd, %edx
movq %rax, %rdi
callq 0x2210
movq -0xa8(%rbp), %rsi
subq -0xb0(%rbp), %rsi
sarq $0x2, %rsi
movq %rbx, %rdi
callq 0x2120
movq %rax, %rbx
leaq 0x38be(%rip), %rsi      # 0x7153
movl $0xd, %edx
movq %rax, %rdi
callq 0x2210
movq -0x168(%rbp), %rsi
subq -0x170(%rbp), %rsi
sarq $0x2, %rsi
movq %rbx, %rdi
callq 0x2120
movq %rax, %rbx
leaq 0x389b(%rip), %rsi      # 0x7161
movl $0xf, %edx
movq %rax, %rdi
callq 0x2210
movq %rbx, %rdi
movl %r15d, %esi
callq 0x22f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
testb %r14b, %r14b
je 0x3925
movq 0x66b4(%rip), %rax      # 0x9fc8
movq (%rax), %r14
movq 0x18(%rax), %r15
movl $0x1, %ebx
jmp 0x49c1
leaq -0x6b0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x6c0(%rbp), %rdi
callq 0x547a
leaq 0x381d(%rip), %rsi      # 0x7171
leaq -0x6c0(%rbp), %rdi
callq 0x2330
leaq -0x4a0(%rbp), %rdi
leaq -0x6c0(%rbp), %rsi
movl $0x10, %edx
callq 0x2340
movq -0x6c0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x3989
callq 0x21c0
xorl %eax, %eax
movq %rax, -0x110(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x120(%rbp)
movq %rax, -0x1e0(%rbp)
movaps %xmm0, -0x1f0(%rbp)
movq %rax, -0x250(%rbp)
movaps %xmm0, -0x260(%rbp)
movq 0x6819(%rip), %rsi      # 0xa1d8
subq 0x680a(%rip), %rsi      # 0xa1d0
sarq $0x3, %rsi
imulq %r13, %rsi
leaq -0x6c0(%rbp), %rdx
movq $-0x1, (%rdx)
leaq -0x4b8(%rbp), %rdi
leaq -0x8c0(%rbp), %rcx
callq 0x52c2
movq 0x67e2(%rip), %rsi      # 0xa1d8
subq 0x67d3(%rip), %rsi      # 0xa1d0
sarq $0x3, %rsi
imulq %r13, %rsi
leaq -0x6c0(%rbp), %rdx
movl $0xffffffff, (%rdx)     # imm = 0xFFFFFFFF
leaq 0x687f(%rip), %rdi      # 0xa298
callq 0x534e
movq 0x67e3(%rip), %rax      # 0xa208
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x2, %rcx
decq %rcx
shrq %rcx
movl %ecx, 0x6874(%rip)      # 0xa2b0
leaq -0x8b0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x8c0(%rbp), %rdi
callq 0x547a
leaq 0x3716(%rip), %rsi      # 0x7181
leaq -0x8c0(%rbp), %rdi
callq 0x2330
leaq -0x6c0(%rbp), %rdi
leaq -0x8c0(%rbp), %rsi
movl $0x10, %edx
callq 0x2340
movq -0x8c0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x3aa0
callq 0x21c0
leaq -0x1a0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1b0(%rbp), %rdi
callq 0x547a
leaq 0x36c0(%rip), %rsi      # 0x718f
leaq -0x1b0(%rbp), %rdi
callq 0x2330
leaq -0x8c0(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
movl $0x10, %edx
callq 0x2340
movq -0x1b0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x3b04
callq 0x21c0
movq 0x66cd(%rip), %rsi      # 0xa1d8
subq 0x66be(%rip), %rsi      # 0xa1d0
sarq $0x3, %rsi
imulq %r13, %rsi
leaq -0x60(%rbp), %rdx
movq $-0x1, (%rdx)
leaq -0x1b0(%rbp), %rdi
leaq -0xd0(%rbp), %rcx
callq 0x52c2
movq -0xb0(%rbp), %rax
xorl %r14d, %r14d
cmpq %rax, -0xa8(%rbp)
je 0x3e27
xorl %ebx, %ebx
movl $0x0, -0x38(%rbp)
movslq (%rax,%rbx,4), %rcx
movq 0x6735(%rip), %rdx      # 0xa298
movl %ecx, (%rdx,%rcx,4)
movl $0xffffffff, -0xd0(%rbp) # imm = 0xFFFFFFFF
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
movq $0x0, -0x50(%rbp)
movl (%rax,%rbx,4), %esi
leaq -0x4a0(%rbp), %rdi
callq 0x22f0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq -0xb0(%rbp), %rax
movq %rbx, -0x30(%rbp)
movslq (%rax,%rbx,4), %rax
movq 0x6602(%rip), %rcx      # 0xa1d0
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %r13
movq 0x8(%rcx,%rax,8), %rbx
cmpq %rbx, %r13
je 0x3d24
xorl %r15d, %r15d
movl (%r13), %esi
movl %esi, -0x108(%rbp)
movl %r14d, 0x66bc(%rip)     # 0xa2b4
movl %r14d, 0x66b9(%rip)     # 0xa2b8
movq -0xb0(%rbp), %rax
movq -0x30(%rbp), %rcx
movl (%rax,%rcx,4), %edi
movl $0x1, %edx
movl $0x32, %ecx
callq 0x2864
movl $0x1, %edx
leaq -0x4a0(%rbp), %rdi
leaq 0x356e(%rip), %rsi      # 0x719d
callq 0x2210
movl -0x108(%rbp), %esi
leaq -0x4a0(%rbp), %rdi
callq 0x22f0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0x363e(%rip), %rsi      # 0x7296
callq 0x2210
movl 0x6655(%rip), %esi      # 0xa2b8
movq %r12, %rdi
callq 0x22f0
movl 0x6647(%rip), %eax      # 0xa2b8
cmpl $0x32, %eax
jne 0x3cb4
movq -0x58(%rbp), %rsi
cmpq %rsi, -0x60(%rbp)
je 0x3c9c
movl $0x5, %edx
leaq -0x4a0(%rbp), %rdi
leaq 0x350c(%rip), %rsi      # 0x719f
callq 0x2210
movq -0x58(%rbp), %rsi
cmpq -0x50(%rbp), %rsi
je 0x3cca
movl -0x108(%rbp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x58(%rbp)
jmp 0x3cda
cmpl %eax, %r15d
jge 0x3ce1
movl -0x108(%rbp), %ecx
movl %ecx, -0xd0(%rbp)
movl %eax, %r15d
jmp 0x3ce1
leaq -0x60(%rbp), %rdi
leaq -0x108(%rbp), %rdx
callq 0x5536
movl 0x65d7(%rip), %r15d     # 0xa2b8
movq -0x4a0(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x4a0(%rbp), %rax
addq %rax, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
leaq -0x4a0(%rbp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
addq $0x4, %r13
cmpq %rbx, %r13
jne 0x3be7
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %r12
cmpq %r12, %rax
je 0x3d41
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
leaq -0x80(%rbp), %r15
jmp 0x3d80
cmpq -0x50(%rbp), %rax
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
leaq -0x80(%rbp), %r15
je 0x3d69
movl -0xd0(%rbp), %eax
movl %eax, (%r12)
addq $0x4, %r12
movq %r12, -0x58(%rbp)
jmp 0x3d80
leaq -0x60(%rbp), %rdi
movq %r12, %rsi
leaq -0xd0(%rbp), %rdx
callq 0x5536
movq -0x58(%rbp), %r12
movq -0x60(%rbp), %rbx
movq %r12, %rax
subq %rbx, %rax
cmpq $0x4, %rax
jne 0x3deb
incl -0x38(%rbp)
movq -0xb0(%rbp), %rax
movq -0x30(%rbp), %rbx
movslq (%rax,%rbx,4), %rax
leaq (%rax,%rax,2), %rdi
shlq $0x3, %rdi
addq 0x641f(%rip), %rdi      # 0xa1d0
leaq -0x60(%rbp), %rsi
callq 0x4fb8
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x3dc8
callq 0x21c0
incq %rbx
movq -0xb0(%rbp), %rax
movq -0xa8(%rbp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rbx, %rcx
ja 0x3b58
jmp 0x3e23
cmpq %r12, %rbx
je 0x3d93
movl (%rbx), %eax
movl %eax, -0x108(%rbp)
movq -0x78(%rbp), %rsi
cmpq -0x70(%rbp), %rsi
je 0x3e0e
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x78(%rbp)
jmp 0x3e1d
movq %r15, %rdi
leaq -0x108(%rbp), %rdx
callq 0x5536
addq $0x4, %rbx
jmp 0x3deb
movslq -0x38(%rbp), %r14
movq 0x61a2(%rip), %rdi      # 0x9fd0
leaq 0x3370(%rip), %rsi      # 0x71a5
movl $0x17, %edx
callq 0x2210
movq -0xa8(%rbp), %rsi
subq -0xb0(%rbp), %rsi
sarq $0x2, %rsi
subq %r14, %rsi
movq 0x6175(%rip), %rdi      # 0x9fd0
callq 0x2120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq -0x78(%rbp), %rsi
subq -0x80(%rbp), %rsi
sarq $0x2, %rsi
leaq -0xd0(%rbp), %rdx
movl $0x0, (%rdx)
leaq -0x60(%rbp), %rdi
leaq -0x108(%rbp), %rcx
callq 0x509e
movq -0x80(%rbp), %rax
cmpq %rax, -0x78(%rbp)
je 0x40d3
xorl %r15d, %r15d
leaq 0x6385(%rip), %rbx      # 0xa250
leaq -0x1f0(%rbp), %r14
movq 0x6377(%rip), %rcx      # 0xa250
cmpq %rcx, 0x6378(%rip)      # 0xa258
je 0x3ee9
movq %rcx, 0x636f(%rip)      # 0xa258
movq 0x6348(%rip), %rcx      # 0xa238
movq 0x6349(%rip), %rsi      # 0xa240
cmpq %rcx, %rsi
je 0x3f06
movq %rcx, 0x633d(%rip)      # 0xa240
movq %rcx, %rsi
movq 0x635b(%rip), %rcx      # 0xa268
cmpq %rcx, 0x635c(%rip)      # 0xa270
je 0x3f1d
movq %rcx, 0x6353(%rip)      # 0xa270
movq 0x635c(%rip), %rcx      # 0xa280
cmpq %rcx, 0x635d(%rip)      # 0xa288
je 0x3f34
movq %rcx, 0x6354(%rip)      # 0xa288
cmpl $0x2, 0x6375(%rip)      # 0xa2b0
jl 0x3fa7
xorl %r12d, %r12d
xorl %r13d, %r13d
movq -0x80(%rbp), %rax
movslq (%rax,%r15,4), %rax
movq 0x62b6(%rip), %rcx      # 0xa208
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rdx
addq %r12, %rdx
movq 0x62f4(%rip), %rsi      # 0xa258
cmpq 0x62f5(%rip), %rsi      # 0xa260
je 0x3f7e
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x62dc(%rip)      # 0xa258
jmp 0x3f86
movq %rbx, %rdi
callq 0x5536
incq %r13
movslq 0x6320(%rip), %rax      # 0xa2b0
decq %rax
addq $0x4, %r12
cmpq %rax, %r13
jl 0x3f43
movq -0x80(%rbp), %rax
movq 0x6299(%rip), %rsi      # 0xa240
leaq (%rax,%r15,4), %rdx
cmpq 0x6296(%rip), %rsi      # 0xa248
je 0x3fc5
movl (%rdx), %ecx
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x627d(%rip)      # 0xa240
jmp 0x3fd9
leaq 0x626c(%rip), %rdi      # 0xa238
callq 0x5536
movq -0x80(%rbp), %rax
movl (%rax,%r15,4), %ecx
movslq %ecx, %rcx
movq 0x62b5(%rip), %rdx      # 0xa298
movl %ecx, (%rdx,%rcx,4)
movslq (%rax,%r15,4), %rax
movq 0x61df(%rip), %rcx      # 0xa1d0
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %r12
movq 0x8(%rcx,%rax,8), %r13
cmpq %r13, %r12
je 0x4024
movl (%r12), %esi
movq -0x80(%rbp), %rax
movl (%rax,%r15,4), %edi
movl $0x2, %edx
movl $0x2710, %ecx           # imm = 0x2710
callq 0x264c
addq $0x4, %r12
jmp 0x3ffe
movq 0x625d(%rip), %rcx      # 0xa288
movq 0x624e(%rip), %rdx      # 0xa280
subq %rdx, %rcx
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
je 0x4096
sarq $0x2, %rcx
movq -0x1b0(%rbp), %rax
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
movslq (%rdx,%rsi,4), %rdi
movslq (%rax,%rdi,8), %r8
cmpq $-0x1, %r8
jne 0x4076
movl %r15d, (%rax,%rdi,8)
movl %esi, 0x4(%rax,%rdi,8)
incq %rsi
cmpq %rsi, %rcx
jne 0x4056
jmp 0x4096
cmpl %esi, 0x4(%rax,%rdi,8)
jge 0x408e
movq -0x60(%rbp), %rcx
incl (%rcx,%r8,4)
movl %r15d, (%rax,%rdi,8)
movl %esi, 0x4(%rax,%rdi,8)
jmp 0x4096
movq -0x60(%rbp), %rax
incl (%rax,%r15,4)
leaq -0x120(%rbp), %rdi
leaq 0x61c4(%rip), %rsi      # 0xa268
callq 0x51f2
movq %r14, %rdi
leaq 0x61cd(%rip), %rsi      # 0xa280
callq 0x51f2
incq %r15
movq -0x80(%rbp), %rax
movq -0x78(%rbp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r15, %rcx
ja 0x3ed2
xorps %xmm0, %xmm0
movaps %xmm0, -0xd0(%rbp)
movq $0x0, -0xc0(%rbp)
movq 0x60e9(%rip), %rsi      # 0xa1d8
subq 0x60da(%rip), %rsi      # 0xa1d0
sarq $0x3, %rsi
imulq %r13, %rsi
leaq -0x40(%rbp), %rdx
movl $0x0, (%rdx)
leaq -0x108(%rbp), %rdi
leaq -0x89(%rbp), %rcx
callq 0x509e
movl $0x0, -0x40(%rbp)
movq 0x6177(%rip), %rax      # 0xa2a0
movq 0x6168(%rip), %rcx      # 0xa298
cmpq %rcx, %rax
je 0x4199
xorl %edx, %edx
leaq -0xd0(%rbp), %rbx
leaq -0x40(%rbp), %r14
cmpl $-0x1, (%rcx,%rdx,4)
jne 0x4180
movq -0xc8(%rbp), %rsi
cmpq -0xc0(%rbp), %rsi
je 0x4167
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, -0xc8(%rbp)
jmp 0x4180
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5536
movq 0x6127(%rip), %rax      # 0xa2a0
movq 0x6118(%rip), %rcx      # 0xa298
movslq -0x40(%rbp), %rdx
incq %rdx
movl %edx, -0x40(%rbp)
movq %rax, %rsi
subq %rcx, %rsi
sarq $0x2, %rsi
cmpq %rdx, %rsi
ja 0x4142
movq 0x5e30(%rip), %rdi      # 0x9fd0
leaq 0x3016(%rip), %rsi      # 0x71bd
movl $0x13, %edx
callq 0x2210
movq -0xc8(%rbp), %rsi
subq -0xd0(%rbp), %rsi
sarq $0x2, %rsi
movq 0x5e06(%rip), %rdi      # 0x9fd0
callq 0x2120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq 0x5dd0(%rip), %rdi      # 0x9fd0
leaq 0x2fca(%rip), %rsi      # 0x71d1
movl $0x9, %edx
callq 0x2210
movq -0x118(%rbp), %rsi
subq -0x120(%rbp), %rsi
sarq $0x3, %rsi
imulq %r13, %rsi
movq 0x5da2(%rip), %rdi      # 0x9fd0
callq 0x2120
movq %rax, %rbx
leaq 0x3059(%rip), %rsi      # 0x7296
movl $0x1, %edx
movq %rax, %rdi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq -0x120(%rbp), %rax
movq -0x118(%rbp), %rcx
cmpq %rax, %rcx
je 0x45a4
xorl %r13d, %r13d
xorps %xmm0, %xmm0
movsd %xmm0, -0x38(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x3c(%rbp)
movl $0x0, -0x88(%rbp)
movq $0x0, -0x30(%rbp)
movl $0x0, -0x84(%rbp)
movq -0x60(%rbp), %rdx
cmpl $0x0, (%rdx,%r13,4)
jg 0x457e
leaq (,%r13,2), %r15
addq %r13, %r15
movq 0x8(%rax,%r15,8), %rdx
subq (%rax,%r15,8), %rdx
cmpq $0x78, %rdx
jb 0x457e
movl $0x7, %edx
leaq -0x6c0(%rbp), %rdi
leaq 0x2ee4(%rip), %rsi      # 0x71db
callq 0x2210
leaq -0x6c0(%rbp), %rdi
movl %r13d, %esi
callq 0x22f0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x2e56(%rip), %rsi      # 0x719d
callq 0x2210
movq -0x120(%rbp), %rax
movq 0x8(%rax,%r15,8), %rsi
subq (%rax,%r15,8), %rsi
sarq $0x2, %rsi
movq %r14, %rdi
callq 0x2120
movl $0x8, %edx
movq %rax, %rdi
leaq 0x2e6c(%rip), %rsi      # 0x71e3
callq 0x2210
movl $0x7, %edx
leaq -0x8c0(%rbp), %rdi
leaq 0x2e4c(%rip), %rsi      # 0x71db
callq 0x2210
leaq -0x8c0(%rbp), %rdi
movl %r13d, %esi
callq 0x22f0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x2ee4(%rip), %rsi      # 0x7296
callq 0x2210
movq -0x1f0(%rbp), %rax
movq (%rax,%r15,8), %rbx
movq %r15, -0x148(%rbp)
movq 0x8(%rax,%r15,8), %r12
cmpq %r12, %rbx
leaq -0x8c0(%rbp), %r15
je 0x4410
movslq (%rbx), %r14
movl $0x1, %edx
movq %r15, %rdi
leaq 0x2eaa(%rip), %rsi      # 0x7296
callq 0x2210
movq %r15, %rdi
movl %r14d, %esi
callq 0x22f0
movq -0x108(%rbp), %rax
incl (%rax,%r14,4)
addq $0x4, %rbx
cmpq %r12, %rbx
jne 0x43da
movq -0x8c0(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21d0
movq -0x148(%rbp), %rbx
movsbl %al, %esi
leaq -0x8c0(%rbp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq -0x120(%rbp), %rax
movq (%rax,%rbx,8), %r14
movq 0x8(%rax,%rbx,8), %r15
movq %r15, %rcx
subq %r14, %rcx
sarq $0x2, %rcx
movq -0x30(%rbp), %rax
cltq
cmpq %rax, %rcx
movq %rcx, -0x148(%rbp)
cmoval %ecx, %eax
movq %rax, -0x30(%rbp)
xorl %r12d, %r12d
cmpq %r14, %r15
je 0x44c1
movl (%r14), %ebx
xorps %xmm0, %xmm0
cvtsi2ss %ebx, %xmm0
divss 0x2b73(%rip), %xmm0     # 0x7004
cvtss2sd %xmm0, %xmm0
leaq -0x6c0(%rbp), %rdi
callq 0x22b0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x2de6(%rip), %rsi      # 0x7296
callq 0x2210
addl %ebx, %r12d
addq $0x4, %r14
cmpq %r15, %r14
jne 0x447f
xorps %xmm0, %xmm0
cvtsi2ss %r12d, %xmm0
divss 0x2b37(%rip), %xmm0     # 0x7008
movss %xmm0, -0x154(%rbp)
movq -0x6c0(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x6c0(%rbp), %rax
addq %rax, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
leaq -0x6c0(%rbp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
incl -0x88(%rbp)
movq -0x148(%rbp), %rax
addl %eax, -0x84(%rbp)
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
maxsd -0x38(%rbp), %xmm0
movss -0x3c(%rbp), %xmm1
addss -0x154(%rbp), %xmm1
movss %xmm1, -0x3c(%rbp)
movq -0x120(%rbp), %rax
movq -0x118(%rbp), %rcx
movsd %xmm0, -0x38(%rbp)
incq %r13
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
cmpq %r13, %rdx
ja 0x42b7
jmp 0x45d0
xorps %xmm0, %xmm0
movss %xmm0, -0x3c(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x38(%rbp)
movl $0x0, -0x84(%rbp)
movq $0x0, -0x30(%rbp)
movl $0x0, -0x88(%rbp)
movq -0x108(%rbp), %rax
movq -0x100(%rbp), %rcx
cmpq %rcx, %rax
movl $0x0, %r15d
je 0x45fc
xorl %r15d, %r15d
cmpl $0x1, (%rax)
adcl $0x0, %r15d
addq $0x4, %rax
cmpq %rcx, %rax
jne 0x45ec
movq 0x59cd(%rip), %rdi      # 0x9fd0
leaq 0x2be2(%rip), %rsi      # 0x71ec
movl $0x13, %edx
callq 0x2210
movabsq $-0x5555555555555555, %r14 # imm = 0xAAAAAAAAAAAAAAAB
movl -0x88(%rbp), %r12d
movq 0x59a4(%rip), %rdi      # 0x9fd0
movl $0x1e, %esi
callq 0x22f0
movq %rax, %rbx
leaq 0x2bc0(%rip), %rsi      # 0x7200
movl $0xa, %edx
movq %rax, %rdi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq 0x5955(%rip), %rdi      # 0x9fd0
leaq 0x2b89(%rip), %rsi      # 0x720b
movl $0x13, %edx
callq 0x2210
movq 0x593d(%rip), %rdi      # 0x9fd0
movl %r12d, %esi
callq 0x22f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq 0x5904(%rip), %rdi      # 0x9fd0
leaq 0x2b4c(%rip), %rsi      # 0x721f
movl $0x15, %edx
callq 0x2210
movq 0x58ec(%rip), %rdi      # 0x9fd0
movq -0x30(%rbp), %rsi
callq 0x22f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq 0x58b2(%rip), %rdi      # 0x9fd0
leaq 0x2b10(%rip), %rsi      # 0x7235
movl $0x12, %edx
callq 0x2210
movl -0x84(%rbp), %eax
cltd
idivl %r12d
movq 0x5890(%rip), %rdi      # 0x9fd0
movl %eax, %esi
callq 0x22f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq 0x5858(%rip), %rdi      # 0x9fd0
leaq 0x2ac9(%rip), %rsi      # 0x7248
movl $0x1e, %edx
callq 0x2210
movsd -0x38(%rbp), %xmm0
divsd 0x287a(%rip), %xmm0     # 0x7010
movq 0x5833(%rip), %rdi      # 0x9fd0
callq 0x22b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq 0x57fd(%rip), %rdi      # 0x9fd0
leaq 0x2a8d(%rip), %rsi      # 0x7267
movl $0x1b, %edx
callq 0x2210
xorps %xmm0, %xmm0
cvtsi2ss %r12d, %xmm0
movss -0x3c(%rbp), %xmm1
divss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
movq 0x57cd(%rip), %rdi      # 0x9fd0
callq 0x22b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq 0x5797(%rip), %rdi      # 0x9fd0
leaq 0x2a43(%rip), %rsi      # 0x7283
movl $0x14, %edx
callq 0x2210
movq 0x577f(%rip), %rdi      # 0x9fd0
movl %r15d, %esi
callq 0x22f0
movq %rax, %rbx
leaq 0x2a35(%rip), %rsi      # 0x7298
movl $0xb, %edx
movq %rax, %rdi
callq 0x2210
movq 0x5961(%rip), %rsi      # 0xa1d8
subq 0x5952(%rip), %rsi      # 0xa1d0
sarq $0x3, %rsi
imulq %r14, %rsi
movq %rbx, %rdi
callq 0x2120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq -0x108(%rbp), %rdi
testq %rdi, %rdi
je 0x48c9
callq 0x21c0
movq -0xd0(%rbp), %rdi
testq %rdi, %rdi
je 0x48da
callq 0x21c0
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x48e8
callq 0x21c0
movq -0x1b0(%rbp), %rdi
testq %rdi, %rdi
je 0x48f9
callq 0x21c0
movq 0x56c8(%rip), %rax      # 0x9fc8
movq (%rax), %r14
movq 0x18(%rax), %r15
leaq -0x8b8(%rbp), %rdi
movq %r14, -0x8(%rdi)
movq -0x18(%r14), %rax
movq %r15, -0x8c0(%rbp,%rax)
callq 0x2190
movl $0xf8, %ebx
leaq -0x8c0(%rbp), %rdi
addq %rbx, %rdi
callq 0x20a0
leaq -0x6b8(%rbp), %rdi
movq %r14, -0x8(%rdi)
movq -0x18(%r14), %rax
movq %r15, -0x6c0(%rbp,%rax)
callq 0x2190
leaq -0x6c0(%rbp), %rdi
addq %rbx, %rdi
callq 0x20a0
movq -0x4b8(%rbp), %rdi
testq %rdi, %rdi
je 0x4973
callq 0x21c0
leaq -0x260(%rbp), %rdi
callq 0x4f50
leaq -0x1f0(%rbp), %rdi
callq 0x4f50
leaq -0x120(%rbp), %rdi
callq 0x4f50
leaq -0x498(%rbp), %rdi
movq %r14, -0x8(%rdi)
movq -0x18(%r14), %rax
movq %r15, -0x4a0(%rbp,%rax)
callq 0x2190
leaq -0x3a8(%rbp), %rdi
callq 0x20a0
xorl %ebx, %ebx
leaq -0xab8(%rbp), %rdi
movq %r14, -0x8(%rdi)
movq -0x18(%r14), %rax
movq %r15, -0xac0(%rbp,%rax)
callq 0x2190
leaq -0x9c8(%rbp), %rdi
callq 0x20a0
movq -0x170(%rbp), %rdi
testq %rdi, %rdi
je 0x49fa
callq 0x21c0
movq -0xb0(%rbp), %rdi
testq %rdi, %rdi
je 0x4a0b
callq 0x21c0
movq -0x190(%rbp), %rdi
testq %rdi, %rdi
je 0x4a1c
callq 0x21c0
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x4a2a
callq 0x21c0
leaq -0x210(%rbp), %rdi
callq 0x526a
leaq -0xcb8(%rbp), %rdi
movq %r14, -0x8(%rdi)
movq -0x18(%r14), %rax
movq %r15, -0xcc0(%rbp,%rax)
callq 0x2190
leaq -0xbc8(%rbp), %rdi
callq 0x20a0
movq -0x150(%rbp), %rdi
callq 0x21c0
movq -0x1d0(%rbp), %rdi
leaq -0x1c0(%rbp), %rax
cmpq %rax, %rdi
je 0x4a82
callq 0x21c0
leaq -0x140(%rbp), %rdi
callq 0x5388
leaq -0x240(%rbp), %rdi
callq 0x53e6
leaq -0x280(%rbp), %rdi
callq 0x4f50
leaq -0x2a0(%rbp), %rdi
callq 0x4f50
leaq -0xec8(%rbp), %rdi
callq 0x2070
leaq -0x10d0(%rbp), %rdi
callq 0x2070
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x4ae2
callq 0x21c0
movl %ebx, %eax
addq $0x10a8, %rsp           # imm = 0x10A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x27a7(%rip), %rdi      # 0x72a4
callq 0x2110
leaq 0x279b(%rip), %rdi      # 0x72a4
callq 0x2250
movq %rax, %r14
jmp 0x4cbb
jmp 0x4c4b
movq %rax, %r14
jmp 0x4d4a
jmp 0x4b25
movq %rax, %r14
movq -0x1b0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4d56
callq 0x21c0
jmp 0x4d56
movq %rax, %r14
jmp 0x4d56
jmp 0x4b4c
movq %rax, %r14
movq -0x8c0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4d62
callq 0x21c0
jmp 0x4d62
jmp 0x4b6b
movq %rax, %r14
jmp 0x4d62
movq %rax, %r14
jmp 0x4d73
jmp 0x4b7d
movq %rax, %r14
movq -0x6c0(%rbp), %rdi
cmpq %rbx, %rdi
jne 0x4d21
jmp 0x4da3
jmp 0x4c59
jmp 0x4b9c
movq %rax, %r14
movq -0x4a0(%rbp), %rdi
leaq -0x490(%rbp), %rax
cmpq %rax, %rdi
je 0x4daf
callq 0x21c0
jmp 0x4daf
movq %rax, %r14
jmp 0x4daf
jmp 0x4bca
movq %rax, %r14
movq -0xac0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4ec4
callq 0x21c0
jmp 0x4ec4
movq %rax, %r14
jmp 0x4ec4
movq %rax, %r14
jmp 0x4ed0
jmp 0x4bf9
movq %rax, %r14
movq -0xcc0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4f24
callq 0x21c0
jmp 0x4f24
movq %rax, %r14
jmp 0x4f24
jmp 0x4c20
movq %rax, %r14
movq -0xec8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4f30
callq 0x21c0
jmp 0x4f30
jmp 0x4c3f
movq %rax, %r14
jmp 0x4f30
jmp 0x4ca7
jmp 0x4ca7
movq %rax, %r14
jmp 0x4d39
jmp 0x4ca7
jmp 0x4c95
jmp 0x4ca7
movq %rax, %r14
jmp 0x4da3
jmp 0x4ca7
jmp 0x4d28
jmp 0x4ca7
jmp 0x4cde
jmp 0x4c95
jmp 0x4dc9
jmp 0x4ce6
movq %rax, %r14
jmp 0x4e01
jmp 0x4c9d
jmp 0x4e25
jmp 0x4d28
jmp 0x4d28
jmp 0x4d0e
jmp 0x4d28
movq %rax, %r14
jmp 0x4e7c
movq %rax, %r14
jmp 0x4eac
jmp 0x4ca7
movq %rax, %r14
movq -0x108(%rbp), %rdi
testq %rdi, %rdi
je 0x4cbb
callq 0x21c0
movq -0xd0(%rbp), %rdi
testq %rdi, %rdi
je 0x4d2b
callq 0x21c0
jmp 0x4d2b
jmp 0x4ce6
jmp 0x4d28
movq %rax, %r14
jmp 0x4de9
jmp 0x4d0e
jmp 0x4d0e
movq %rax, %r14
jmp 0x4e45
movq %rax, %r14
jmp 0x4dd8
jmp 0x4e25
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x4dd8
movl -0x30(%rbp), %eax
movl %eax, (%rbx)
jmp 0x4dd8
jmp 0x4e25
movq %rax, %r14
movq -0x4a0(%rbp), %rdi
testq %rdi, %rdi
je 0x4da3
callq 0x21c0
jmp 0x4da3
movq %rax, %r14
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x4d39
callq 0x21c0
movq -0x1b0(%rbp), %rdi
testq %rdi, %rdi
je 0x4d4a
callq 0x21c0
leaq -0x8c0(%rbp), %rdi
callq 0x2270
leaq -0x6c0(%rbp), %rdi
callq 0x2270
movq -0x4b8(%rbp), %rdi
testq %rdi, %rdi
je 0x4d73
callq 0x21c0
leaq -0x260(%rbp), %rdi
callq 0x4f50
leaq -0x1f0(%rbp), %rdi
callq 0x4f50
leaq -0x120(%rbp), %rdi
callq 0x4f50
leaq -0x4a0(%rbp), %rdi
callq 0x2270
leaq -0xac0(%rbp), %rdi
callq 0x2270
movq -0x170(%rbp), %rdi
testq %rdi, %rdi
je 0x4e7c
callq 0x21c0
jmp 0x4e7c
movq %rax, %r14
leaq -0x8c0(%rbp), %rdi
callq 0x526a
movq -0x6c0(%rbp), %rdi
testq %rdi, %rdi
je 0x4de9
callq 0x21c0
movq -0x4a0(%rbp), %rdi
leaq -0x490(%rbp), %rax
cmpq %rax, %rdi
je 0x4e01
callq 0x21c0
movq 0x51a8(%rip), %rsi      # 0x9fb0
leaq -0xac0(%rbp), %rdi
callq 0x2160
leaq -0xa40(%rbp), %rdi
callq 0x20a0
jmp 0x4eac
movq %rax, %r14
movq -0x8c0(%rbp), %rdi
testq %rdi, %rdi
je 0x4e39
callq 0x21c0
leaq -0x6c0(%rbp), %rdi
callq 0x526a
movq -0x4a0(%rbp), %rdi
leaq -0x490(%rbp), %rax
cmpq %rax, %rdi
je 0x4e5d
callq 0x21c0
movq 0x514c(%rip), %rsi      # 0x9fb0
leaq -0xac0(%rbp), %rdi
callq 0x2160
leaq -0xa40(%rbp), %rdi
callq 0x20a0
movq -0xb0(%rbp), %rdi
testq %rdi, %rdi
je 0x4e8d
callq 0x21c0
movq -0x190(%rbp), %rdi
testq %rdi, %rdi
je 0x4e9e
callq 0x21c0
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x4eac
callq 0x21c0
leaq -0x210(%rbp), %rdi
callq 0x526a
leaq -0xcc0(%rbp), %rdi
callq 0x2270
movq -0x150(%rbp), %rdi
callq 0x21c0
movq -0x1d0(%rbp), %rdi
leaq -0x1c0(%rbp), %rax
cmpq %rax, %rdi
je 0x4ee8
callq 0x21c0
leaq -0x140(%rbp), %rdi
callq 0x5388
leaq -0x240(%rbp), %rdi
callq 0x53e6
leaq -0x280(%rbp), %rdi
callq 0x4f50
leaq -0x2a0(%rbp), %rdi
callq 0x4f50
leaq -0xec8(%rbp), %rdi
callq 0x2070
leaq -0x10d0(%rbp), %rdi
callq 0x2070
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x4f48
callq 0x21c0
movq %r14, %rdi
callq 0x2300