// File: /workspace/github_cpp_makefile_star2_O2/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
movq %rsi, %rbx
movl %edi, %r14d
leaq -0x140(%rbp), %r15
movq %r15, %rdi
callq 0x425e
movl %r14d, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2799
leaq 0x37b1(%rip), %rdx      # 0x60a2
leaq -0xec8(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x427c
leaq -0x10d0(%rbp), %rdi
leaq -0xec8(%rbp), %rsi
pushq $0x8
popq %rdx
callq 0x2270
leaq -0xec8(%rbp), %rdi
callq 0x20e0
leaq 0x3780(%rip), %rdx      # 0x60ad
leaq -0xcc0(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x427c
leaq -0xec8(%rbp), %rdi
leaq -0xcc0(%rbp), %rsi
pushq $0x8
popq %rdx
callq 0x2270
leaq -0xcc0(%rbp), %rbx
movq %rbx, %rdi
callq 0x20e0
andq $0x0, -0x250(%rbp)
andq $0x0, -0x230(%rbp)
leaq -0x2a0(%rbp), %rax
andl $0x0, (%rax)
xorpd %xmm0, %xmm0
andq $0x0, 0x8(%rax)
movapd %xmm0, -0x260(%rbp)
movapd %xmm0, -0x240(%rbp)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
movapd %xmm0, -0x120(%rbp)
andq $0x0, -0x110(%rbp)
leaq -0x190(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
andl $0x0, (%rbx)
leaq -0x278(%rbp), %rdi
pushq $0x64
popq %rsi
leaq -0xcc0(%rbp), %rdx
leaq -0xac0(%rbp), %rcx
callq 0x42b4
leaq 0x36cd(%rip), %rdx      # 0x60bc
leaq -0xac0(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x427c
leaq -0xcc0(%rbp), %rdi
leaq -0xac0(%rbp), %rsi
pushq $0x10
popq %rdx
callq 0x22e0
leaq -0xac0(%rbp), %r14
movq %r14, %rdi
callq 0x20e0
xorpd %xmm0, %xmm0
leaq -0x200(%rbp), %rax
movapd %xmm0, (%rax)
andq $0x0, 0x10(%rax)
xorl %ebx, %ebx
leaq -0x1a0(%rbp), %rsi
leaq -0x4c0(%rbp), %r12
leaq -0x8c0(%rbp), %r15
movl $0x0, -0x2c(%rbp)
leaq -0x10d0(%rbp), %rdi
callq 0x2060
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2c34
movq %r14, %rdi
leaq -0x1a0(%rbp), %r13
movq %r13, %rsi
pushq $0x18
popq %rdx
callq 0x2250
leaq -0x200(%rbp), %rdi
movq %r13, %rsi
callq 0x4314
leaq -0x4b0(%rbp), %rax
movq %rax, -0x4c0(%rbp)
andq $0x0, -0x4b8(%rbp)
movb $0x0, -0x4b0(%rbp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x21e0
leaq -0xcc0(%rbp), %rdi
leaq 0x35fa(%rip), %rsi      # 0x60cb
callq 0x21a0
movq %rax, %rdi
movl -0x2c(%rbp), %esi
callq 0x22a0
movq %rax, %rdi
leaq 0x37ab(%rip), %rsi      # 0x6296
callq 0x21a0
movq %rax, %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x2180
movq %rax, %rdi
callq 0x20f0
leaq -0x2a8(%rbp), %rdi
movq %r12, %rsi
callq 0x4350
movl -0x2c(%rbp), %ecx
movl %ecx, (%rax)
incl %ecx
movl %ecx, -0x2c(%rbp)
xorpd %xmm0, %xmm0
movapd %xmm0, -0x6c0(%rbp)
andq $0x0, -0x6b0(%rbp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x21e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2b84
movq %r12, %rdi
leaq 0x3578(%rip), %rsi      # 0x60cf
callq 0x20a0
testl %eax, %eax
je 0x2b84
movq %r12, %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0x43b9
movl %eax, -0x8c0(%rbp)
leaq -0x6c0(%rbp), %rdi
movq %r15, %rsi
callq 0x4f56
jmp 0x2b34
leaq 0x664d(%rip), %rdi      # 0x91d8
leaq -0x6c0(%rbp), %rsi
callq 0x43da
xorpd %xmm0, %xmm0
movapd %xmm0, -0x8c0(%rbp)
andq $0x0, -0x8b0(%rbp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x21e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2bd3
movq %r15, %rdi
movq %r12, %rsi
callq 0x4314
incl %ebx
jmp 0x2bab
movq -0x8b8(%rbp), %rax
subq -0x8c0(%rbp), %rax
sarq $0x5, %rax
cmpq $0x63, %rax
ja 0x2bf5
movq -0x278(%rbp), %rcx
incl (%rcx,%rax,4)
leaq -0x120(%rbp), %rdi
movq %r15, %rsi
callq 0x4416
movq %r15, %rdi
callq 0x4452
leaq -0x6c0(%rbp), %rdi
callq 0x46d8
movq %r12, %rdi
callq 0x20e0
movq %r14, %rdi
callq 0x2150
leaq -0x1a0(%rbp), %rsi
jmp 0x2a59
leaq -0xa0(%rbp), %rax
andq $0x0, 0x10(%rax)
xorpd %xmm0, %xmm0
andq $0x0, -0x170(%rbp)
movapd %xmm0, (%rax)
andq $0x0, -0x70(%rbp)
leaq -0x3c(%rbp), %rax
andl $0x0, (%rax)
movapd %xmm0, -0x180(%rbp)
movapd %xmm0, -0x80(%rbp)
xorl %r14d, %r14d
leaq -0xac0(%rbp), %r15
leaq -0x4c0(%rbp), %r13
leaq -0x2a8(%rbp), %r12
leaq -0xec8(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x2060
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2e2b
movq %r15, %rdi
leaq -0x1a0(%rbp), %rsi
pushq $0x18
popq %rdx
callq 0x2250
leaq -0x4b0(%rbp), %rax
movq %rax, -0x4c0(%rbp)
andq $0x0, -0x4b8(%rbp)
movb $0x0, -0x4b0(%rbp)
movq %r15, %rdi
movq %r13, %rsi
callq 0x21e0
movq %r15, %rdi
movq %r13, %rsi
callq 0x21e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2d0c
movq %r13, %rdi
leaq 0x33d7(%rip), %rsi      # 0x60da
callq 0x20a0
testl %eax, %eax
jne 0x2ce0
xorpd %xmm0, %xmm0
movapd %xmm0, -0x6c0(%rbp)
andq $0x0, -0x6b0(%rbp)
movapd %xmm0, -0x8c0(%rbp)
andq $0x0, -0x8b0(%rbp)
movq %r15, %rdi
movq %r13, %rsi
callq 0x21e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2dc8
movq %r12, %rdi
movq %r13, %rsi
callq 0x559e
leaq -0x2a0(%rbp), %rcx
cmpq %rcx, %rax
je 0x2d80
movq %r12, %rdi
movq %r13, %rsi
callq 0x559e
addq $0x40, %rax
leaq -0x8c0(%rbp), %rdi
movq %rax, %rsi
callq 0x41e2
jmp 0x2dc0
movq 0x6241(%rip), %rdi      # 0x8fc8
leaq 0x3357(%rip), %rsi      # 0x60e5
callq 0x21a0
movl -0x3c(%rbp), %esi
movq %rax, %rdi
callq 0x22a0
movq %rax, %rdi
leaq 0x34ee(%rip), %rsi      # 0x6296
callq 0x21a0
movq %rax, %rdi
movq %r13, %rsi
callq 0x2180
movq %rax, %rdi
callq 0x20f0
incl %r14d
jmp 0x2d30
movq -0x8b8(%rbp), %rax
cmpq -0x8c0(%rbp), %rax
jne 0x2de8
leaq -0xa0(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
callq 0x41e2
leaq 0x63c9(%rip), %rdi      # 0x91b8
leaq -0x8c0(%rbp), %rsi
callq 0x43da
incl -0x3c(%rbp)
leaq -0x8c0(%rbp), %rdi
callq 0x46d8
leaq -0x6c0(%rbp), %rdi
callq 0x4452
movq %r13, %rdi
callq 0x20e0
movq %r15, %rdi
callq 0x2150
jmp 0x2c81
movq 0x6196(%rip), %rdi      # 0x8fc8
leaq 0x32b6(%rip), %rsi      # 0x60ef
callq 0x21a0
movq %rax, %rdi
movl %r14d, %esi
callq 0x22a0
leaq 0x32b6(%rip), %rsi      # 0x6106
movq %rax, %rdi
callq 0x21a0
movq %rax, %rdi
movl %ebx, %esi
callq 0x22a0
movq %rax, %rdi
callq 0x20f0
xorpd %xmm0, %xmm0
movapd %xmm0, -0x160(%rbp)
andq $0x0, -0x150(%rbp)
leaq 0x328e(%rip), %rdx      # 0x6113
leaq -0x4c0(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x427c
leaq -0xac0(%rbp), %rdi
leaq -0x4c0(%rbp), %rsi
pushq $0x10
popq %rdx
callq 0x22e0
leaq -0x4c0(%rbp), %r14
movq %r14, %rdi
callq 0x20e0
xorl %ecx, %ecx
leaq -0x2a8(%rbp), %r15
movl $0x0, -0x2c(%rbp)
xorl %r12d, %r12d
movl %ecx, -0x6c0(%rbp)
movslq %ecx, %rsi
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rax
subq %rdi, %rax
cqto
pushq $0x18
popq %r8
idivq %r8
cmpq %rsi, %rax
jbe 0x313c
andq $0x0, -0x4b0(%rbp)
xorpd %xmm0, %xmm0
movapd %xmm0, -0x4c0(%rbp)
xorl %r13d, %r13d
xorl %ebx, %ebx
movslq %ecx, %rsi
imulq $0x18, %rsi, %rcx
movq (%rdi,%rcx), %rax
movq 0x8(%rdi,%rcx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %rbx, %rcx
jbe 0x2ff6
addq %r13, %rax
movq %r15, %rdi
movq %rax, %rsi
callq 0x559e
leaq -0x2a0(%rbp), %rcx
cmpq %rcx, %rax
je 0x2f81
movslq -0x6c0(%rbp), %rax
movq -0x120(%rbp), %rcx
imulq $0x18, %rax, %rax
movq (%rcx,%rax), %rsi
addq %r13, %rsi
movq %r15, %rdi
callq 0x559e
addq $0x40, %rax
movq %r14, %rdi
movq %rax, %rsi
callq 0x41e2
jmp 0x2fdd
movq 0x6040(%rip), %rdi      # 0x8fc8
leaq 0x3192(%rip), %rsi      # 0x6121
callq 0x21a0
movl -0x6c0(%rbp), %esi
movq %rax, %rdi
callq 0x22a0
movq %rax, %rdi
leaq 0x32ea(%rip), %rsi      # 0x6296
callq 0x21a0
movslq -0x6c0(%rbp), %rcx
movq -0x120(%rbp), %rdx
imulq $0x18, %rcx, %rcx
movq (%rdx,%rcx), %rsi
addq %r13, %rsi
movq %rax, %rdi
callq 0x2180
movq %rax, %rdi
callq 0x20f0
incl %r12d
incq %rbx
movl -0x6c0(%rbp), %ecx
movq -0x120(%rbp), %rdi
addq $0x20, %r13
jmp 0x2f15
movq -0x4b8(%rbp), %rax
subq -0x4c0(%rbp), %rax
cmpq $0x3c, %rax
jbe 0x3040
shlq $0x5, %rsi
addq -0x200(%rbp), %rsi
leaq -0xac0(%rbp), %rdi
callq 0x2180
movq %rax, %rdi
callq 0x20f0
movq -0x4c0(%rbp), %rax
cmpq %rax, -0x4b8(%rbp)
je 0x3040
movq %rax, -0x4b8(%rbp)
leaq 0x6159(%rip), %rdi      # 0x91a0
movq %r14, %rsi
callq 0x43da
movq -0x4c0(%rbp), %rax
movq -0x4b8(%rbp), %rcx
cmpq %rax, %rcx
jne 0x3083
leaq -0x180(%rbp), %rdi
leaq -0x6c0(%rbp), %rsi
callq 0x41e2
movq -0x4c0(%rbp), %rax
movq -0x4b8(%rbp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
cmpq $0x5, %rdx
jb 0x30ad
leaq -0x80(%rbp), %rdi
leaq -0x6c0(%rbp), %rsi
callq 0x41e2
movq -0x4c0(%rbp), %rax
movq -0x4b8(%rbp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
cmpq $0x4, %rdx
jne 0x30fb
movslq -0x6c0(%rbp), %rdx
movq 0x60f1(%rip), %rsi      # 0x91b8
imulq $0x18, %rdx, %rdx
movq 0x8(%rsi,%rdx), %rdi
subq (%rsi,%rdx), %rdi
cmpq $0x4, %rdi
jne 0x30fb
leaq -0x160(%rbp), %rdi
leaq -0x6c0(%rbp), %rsi
callq 0x41e2
movq -0x4c0(%rbp), %rax
movq -0x4b8(%rbp), %rcx
subq %rax, %rcx
cmpq $0x4, %rcx
jne 0x3127
movslq -0x6c0(%rbp), %rax
movq 0x60a6(%rip), %rcx      # 0x91b8
imulq $0x18, %rax, %rax
movq 0x8(%rcx,%rax), %rdx
subq (%rcx,%rax), %rdx
cmpq $0x5, %rdx
sbbl $-0x1, -0x2c(%rbp)
movq %r14, %rdi
callq 0x46d8
movl -0x6c0(%rbp), %ecx
incl %ecx
jmp 0x2ed0
movq 0x5e85(%rip), %rdi      # 0x8fc8
callq 0x20f0
movq 0x5e79(%rip), %rdi      # 0x8fc8
leaq 0x2fd8(%rip), %rsi      # 0x612e
callq 0x21a0
movq -0x98(%rbp), %rsi
subq -0xa0(%rbp), %rsi
sarq $0x2, %rsi
movq %rax, %rdi
callq 0x2120
leaq 0x2fbc(%rip), %rsi      # 0x6138
movq %rax, %rdi
callq 0x21a0
movq -0x178(%rbp), %rsi
subq -0x180(%rbp), %rsi
sarq $0x2, %rsi
movq %rax, %rdi
callq 0x2120
leaq 0x2fa0(%rip), %rsi      # 0x6145
movq %rax, %rdi
callq 0x21a0
movq -0x78(%rbp), %rsi
subq -0x80(%rbp), %rsi
sarq $0x2, %rsi
movq %rax, %rdi
callq 0x2120
leaq 0x2f8b(%rip), %rsi      # 0x6153
movq %rax, %rdi
callq 0x21a0
movq -0x158(%rbp), %rsi
subq -0x160(%rbp), %rsi
sarq $0x2, %rsi
movq %rax, %rdi
callq 0x2120
leaq 0x2f70(%rip), %rsi      # 0x6161
movq %rax, %rdi
callq 0x21a0
movq %rax, %rdi
movl -0x2c(%rbp), %esi
callq 0x22a0
movq %rax, %rdi
callq 0x20f0
testl %r12d, %r12d
jle 0x3219
pushq $0x1
popq %rbx
jmp 0x3cd7
leaq 0x2f51(%rip), %rdx      # 0x6171
leaq -0x6c0(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x427c
leaq -0x4c0(%rbp), %rdi
leaq -0x6c0(%rbp), %rsi
pushq $0x10
popq %rdx
callq 0x22e0
pushq $0x18
popq %r14
leaq -0x6c0(%rbp), %rbx
movq %rbx, %rdi
callq 0x20e0
andq $0x0, -0xf0(%rbp)
xorpd %xmm0, %xmm0
andq $0x0, -0x1b0(%rbp)
movapd %xmm0, -0x100(%rbp)
andq $0x0, -0x210(%rbp)
movapd %xmm0, -0x1c0(%rbp)
movq 0x5f19(%rip), %rax      # 0x91a8
subq 0x5f0a(%rip), %rax      # 0x91a0
movapd %xmm0, -0x220(%rbp)
cqto
idivq %r14
orq $-0x1, (%rbx)
leaq -0x2c0(%rbp), %rdi
leaq -0x6c0(%rbp), %rdx
leaq -0x8c0(%rbp), %rcx
movq %rax, %rsi
callq 0x447e
movq 0x5edd(%rip), %rax      # 0x91a8
subq 0x5ece(%rip), %rax      # 0x91a0
cqto
idivq %r14
leaq -0x6c0(%rbp), %rdx
orl $-0x1, (%rdx)
leaq 0x5f80(%rip), %rdi      # 0x9268
movq %rax, %rsi
callq 0x44de
movq 0x5ee1(%rip), %rax      # 0x91d8
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x2, %rcx
decq %rcx
shrq %rcx
movl %ecx, 0x5f72(%rip)      # 0x9280
leaq 0x2e6c(%rip), %rdx      # 0x6181
leaq -0x8c0(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x427c
leaq -0x6c0(%rbp), %rdi
leaq -0x8c0(%rbp), %rsi
pushq $0x10
popq %rdx
callq 0x22e0
leaq -0x8c0(%rbp), %rdi
callq 0x20e0
leaq 0x2e3e(%rip), %rdx      # 0x618f
leaq -0x1e8(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x427c
leaq -0x8c0(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
pushq $0x10
popq %rdx
callq 0x22e0
leaq -0x1e8(%rbp), %rdi
callq 0x20e0
movq 0x5e1b(%rip), %rax      # 0x91a8
subq 0x5e0c(%rip), %rax      # 0x91a0
cqto
idivq %r14
leaq -0x60(%rbp), %rdx
orq $-0x1, (%rdx)
leaq -0x1e8(%rbp), %rdi
leaq -0xd0(%rbp), %rcx
movq %rax, %rsi
callq 0x447e
xorl %r15d, %r15d
leaq -0x4c0(%rbp), %rbx
movl $0x0, -0x2c(%rbp)
movq -0x80(%rbp), %rax
movq -0x78(%rbp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r15, %rcx
jbe 0x3591
movslq (%rax,%r15,4), %rcx
movq 0x5e7d(%rip), %rdx      # 0x9268
movl %ecx, (%rdx,%rcx,4)
orl $-0x1, -0xd0(%rbp)
xorpd %xmm0, %xmm0
movapd %xmm0, -0x60(%rbp)
andq $0x0, -0x50(%rbp)
movl (%rax,%r15,4), %esi
movq %rbx, %rdi
callq 0x22a0
movq %rax, %rdi
callq 0x20f0
movq -0x80(%rbp), %rax
movslq (%rax,%r15,4), %rax
movq 0x5d7a(%rip), %rcx      # 0x91a0
imulq $0x18, %rax, %rax
movq (%rcx,%rax), %r12
movq 0x8(%rcx,%rax), %r14
xorl %r13d, %r13d
cmpq %r14, %r12
je 0x3506
movl (%r12), %esi
andl $0x0, 0x5e3a(%rip)      # 0x9284
andl $0x0, 0x5e37(%rip)      # 0x9288
movl %esi, -0xb8(%rbp)
movq -0x80(%rbp), %rax
movl (%rax,%r15,4), %edi
pushq $0x1
popq %rdx
pushq $0x32
popq %rcx
callq 0x2703
movq %rbx, %rdi
leaq 0x2d29(%rip), %rsi      # 0x619d
callq 0x21a0
movl -0xb8(%rbp), %esi
movq %rax, %rdi
callq 0x22a0
movq %rax, %rdi
leaq 0x2e05(%rip), %rsi      # 0x6296
callq 0x21a0
movl 0x5dec(%rip), %esi      # 0x9288
movq %rax, %rdi
callq 0x22a0
movl 0x5dde(%rip), %eax      # 0x9288
cmpl $0x32, %eax
jne 0x34e1
movq -0x60(%rbp), %rax
cmpq -0x58(%rbp), %rax
je 0x34c8
movq %rbx, %rdi
leaq 0x2cdc(%rip), %rsi      # 0x619f
callq 0x21a0
leaq -0x60(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x41e2
movl 0x5da9(%rip), %r13d     # 0x9288
jmp 0x34f5
cmpl %eax, %r13d
jge 0x34f5
movl -0xb8(%rbp), %ecx
movl %ecx, -0xd0(%rbp)
movl %eax, %r13d
movq %rbx, %rdi
callq 0x20f0
addq $0x4, %r12
jmp 0x3436
movq -0x60(%rbp), %r14
movq -0x58(%rbp), %r12
cmpq %r12, %r14
leaq -0xa0(%rbp), %r13
jne 0x3532
leaq -0x60(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x41e2
movq -0x60(%rbp), %r14
movq -0x58(%rbp), %r12
movq %r12, %rax
subq %r14, %rax
cmpq $0x4, %rax
jne 0x356e
incl -0x2c(%rbp)
movq -0x80(%rbp), %rax
movslq (%rax,%r15,4), %rax
imulq $0x18, %rax, %rdi
addq 0x5c4c(%rip), %rdi      # 0x91a0
leaq -0x60(%rbp), %rsi
callq 0x4116
leaq -0x60(%rbp), %rdi
callq 0x46d8
incq %r15
jmp 0x33c8
cmpq %r12, %r14
je 0x3541
movl (%r14), %eax
movl %eax, -0xb8(%rbp)
movq %r13, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x41e2
addq $0x4, %r14
jmp 0x356e
movq 0x5a30(%rip), %rdi      # 0x8fc8
leaq 0x2c06(%rip), %rsi      # 0x61a5
callq 0x21a0
movq -0x78(%rbp), %rsi
subq -0x80(%rbp), %rsi
sarq $0x2, %rsi
movslq -0x2c(%rbp), %rcx
subq %rcx, %rsi
movq %rax, %rdi
callq 0x2120
movq %rax, %rdi
callq 0x20f0
movq -0x98(%rbp), %rsi
subq -0xa0(%rbp), %rsi
sarq $0x2, %rsi
leaq -0xd0(%rbp), %rdx
andl $0x0, (%rdx)
leaq -0x60(%rbp), %rdi
leaq -0xb8(%rbp), %rcx
callq 0x42b4
xorl %r12d, %r12d
pushq $0x2
popq %r15
movq -0x98(%rbp), %rax
subq -0xa0(%rbp), %rax
sarq $0x2, %rax
cmpq %r12, %rax
jbe 0x37a7
movq 0x5c04(%rip), %rax      # 0x9220
cmpq %rax, 0x5c05(%rip)      # 0x9228
je 0x362c
movq %rax, 0x5bfc(%rip)      # 0x9228
movq 0x5bd5(%rip), %rax      # 0x9208
cmpq %rax, 0x5bd6(%rip)      # 0x9210
je 0x3643
movq %rax, 0x5bcd(%rip)      # 0x9210
movq 0x5bee(%rip), %rax      # 0x9238
cmpq %rax, 0x5bef(%rip)      # 0x9240
je 0x365a
movq %rax, 0x5be6(%rip)      # 0x9240
movq 0x5bef(%rip), %rax      # 0x9250
cmpq %rax, 0x5bf0(%rip)      # 0x9258
je 0x3671
movq %rax, 0x5be7(%rip)      # 0x9258
leaq (,%r12,4), %r13
xorl %r14d, %r14d
xorl %ebx, %ebx
movslq 0x5bfb(%rip), %rax      # 0x9280
decq %rax
movq -0xa0(%rbp), %rsi
addq %r13, %rsi
cmpq %rax, %rbx
jge 0x36c1
movslq (%rsi), %rax
movq 0x5b37(%rip), %rcx      # 0x91d8
imulq $0x18, %rax, %rax
movq (%rcx,%rax), %rsi
addq %r14, %rsi
leaq 0x5b6d(%rip), %rdi      # 0x9220
callq 0x41e2
incq %rbx
addq $0x4, %r14
jmp 0x367e
leaq 0x5b40(%rip), %rdi      # 0x9208
callq 0x41e2
movq -0xa0(%rbp), %rax
movslq (%rax,%r12,4), %rax
movq 0x5b89(%rip), %rcx      # 0x9268
movl %eax, (%rcx,%rax,4)
movq 0x5ab7(%rip), %rcx      # 0x91a0
imulq $0x18, %rax, %rax
movq (%rcx,%rax), %rbx
movq 0x8(%rcx,%rax), %r14
cmpq %r14, %rbx
je 0x371b
movl (%rbx), %esi
movq -0xa0(%rbp), %rax
movl (%rax,%r12,4), %edi
movl %r15d, %edx
movl $0x2710, %ecx           # imm = 0x2710
callq 0x257c
addq $0x4, %rbx
jmp 0x36f6
movq 0x5b36(%rip), %rdx      # 0x9258
movq 0x5b27(%rip), %rsi      # 0x9250
subq %rsi, %rdx
sarq $0x2, %rdx
movq -0x1e8(%rbp), %rax
xorl %ecx, %ecx
cmpq %rcx, %rdx
je 0x3779
movslq (%rsi,%rcx,4), %rdi
movslq (%rax,%rdi,8), %r8
cmpq $-0x1, %r8
jne 0x3759
movl %r12d, (%rax,%rdi,8)
movl %ecx, 0x4(%rax,%rdi,8)
incq %rcx
jmp 0x3739
cmpl %ecx, 0x4(%rax,%rdi,8)
jge 0x3771
movq -0x60(%rbp), %rdx
incl (%rdx,%r8,4)
movl %r12d, (%rax,%rdi,8)
movl %ecx, 0x4(%rax,%rdi,8)
jmp 0x3779
movq -0x60(%rbp), %rax
incl (%rax,%r12,4)
leaq -0x100(%rbp), %rdi
leaq 0x5ab1(%rip), %rsi      # 0x9238
callq 0x43da
leaq -0x1c0(%rbp), %rdi
leaq 0x5ab6(%rip), %rsi      # 0x9250
callq 0x43da
incq %r12
jmp 0x35fa
xorpd %xmm0, %xmm0
andq $0x0, -0xc0(%rbp)
movapd %xmm0, -0xd0(%rbp)
movq 0x59e6(%rip), %rax      # 0x91a8
subq 0x59d7(%rip), %rax      # 0x91a0
cqto
pushq $0x18
popq %r15
idivq %r15
leaq -0x38(%rbp), %rdx
andl $0x0, (%rdx)
leaq -0xb8(%rbp), %rdi
leaq -0x3d(%rbp), %rcx
movq %rax, %rsi
callq 0x42b4
xorl %eax, %eax
leaq -0xd0(%rbp), %rbx
leaq -0x38(%rbp), %r14
movl %eax, -0x38(%rbp)
movslq %eax, %rcx
movq 0x5a6a(%rip), %rsi      # 0x9270
movq 0x5a5b(%rip), %rdx      # 0x9268
subq %rdx, %rsi
sarq $0x2, %rsi
cmpq %rcx, %rsi
jbe 0x3831
cmpl $-0x1, (%rdx,%rcx,4)
jne 0x382d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x41e2
movl -0x38(%rbp), %eax
incl %eax
jmp 0x37f9
movq 0x5790(%rip), %rdi      # 0x8fc8
leaq 0x297e(%rip), %rsi      # 0x61bd
callq 0x21a0
movq -0xc8(%rbp), %rsi
subq -0xd0(%rbp), %rsi
sarq $0x2, %rsi
movq %rax, %rdi
callq 0x2120
movq %rax, %rdi
callq 0x20f0
movq 0x575b(%rip), %rdi      # 0x8fc8
leaq 0x295d(%rip), %rsi      # 0x61d1
callq 0x21a0
movq %rax, %rdi
movq -0xf8(%rbp), %rax
subq -0x100(%rbp), %rax
cqto
idivq %r15
movq %rax, %rsi
callq 0x2120
leaq 0x29f8(%rip), %rsi      # 0x6296
movq %rax, %rdi
callq 0x21a0
movq %rax, %rdi
callq 0x20f0
xorpd %xmm0, %xmm0
movss %xmm0, -0x34(%rbp)
xorpd %xmm0, %xmm0
movsd %xmm0, -0xd8(%rbp)
xorl %r14d, %r14d
leaq 0x29c9(%rip), %rbx      # 0x6296
movl $0x0, -0x64(%rbp)
movl $0x0, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
movq -0x100(%rbp), %rcx
movq -0xf8(%rbp), %rax
subq %rcx, %rax
cqto
idivq %r15
cmpq %r14, %rax
jbe 0x3ad0
movq -0x60(%rbp), %rax
cmpl $0x0, (%rax,%r14,4)
jg 0x3ac8
imulq $0x18, %r14, %r12
movq 0x8(%rcx,%r12), %rax
subq (%rcx,%r12), %rax
cmpq $0x78, %rax
jb 0x3ac8
leaq -0x6c0(%rbp), %rdi
leaq 0x28a6(%rip), %rsi      # 0x61db
callq 0x21a0
movq %rax, %rdi
movl %r14d, %esi
callq 0x22a0
movq %rax, %rdi
callq 0x20f0
movq %rax, %rdi
leaq 0x2846(%rip), %rsi      # 0x619d
callq 0x21a0
movq -0x100(%rbp), %rcx
movq 0x8(%rcx,%r12), %rsi
subq (%rcx,%r12), %rsi
sarq $0x2, %rsi
movq %rax, %rdi
callq 0x2120
movq %rax, %rdi
leaq 0x2861(%rip), %rsi      # 0x61e3
callq 0x21a0
leaq -0x8c0(%rbp), %rdi
leaq 0x2846(%rip), %rsi      # 0x61db
callq 0x21a0
movq %rax, %rdi
movl %r14d, %esi
callq 0x22a0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x21a0
movq %r14, -0x1c8(%rbp)
incl -0x30(%rbp)
movq -0x1c0(%rbp), %rax
movq (%rax,%r12), %r14
movq 0x8(%rax,%r12), %r13
cmpq %r13, %r14
je 0x39fd
movslq (%r14), %r15
leaq -0x8c0(%rbp), %rdi
movq %rbx, %rsi
callq 0x21a0
movq %rax, %rdi
movl %r15d, %esi
callq 0x22a0
movq -0xb8(%rbp), %rax
incl (%rax,%r15,4)
addq $0x4, %r14
jmp 0x39ca
leaq -0x8c0(%rbp), %rdi
callq 0x20f0
movq -0x100(%rbp), %rax
movq (%rax,%r12), %r14
movq 0x8(%rax,%r12), %r13
movq %r13, %rax
subq %r14, %rax
sarq $0x2, %rax
movl -0x2c(%rbp), %edx
movslq %edx, %rcx
cmpq %rcx, %rax
cmoval %eax, %edx
movl %edx, -0x2c(%rbp)
addl %eax, -0x64(%rbp)
xorl %r15d, %r15d
cmpq %r13, %r14
je 0x3a6d
movl (%r14), %r12d
cvtsi2ss %r12d, %xmm0
divss 0x25c3(%rip), %xmm0     # 0x6010
leaq -0x6c0(%rbp), %rdi
callq 0x2140
movq %rax, %rdi
movq %rbx, %rsi
callq 0x21a0
addl %r12d, %r15d
addq $0x4, %r14
jmp 0x3a38
leaq -0x6c0(%rbp), %rdi
callq 0x20f0
cvtsi2ss %r15d, %xmm0
divss 0x258e(%rip), %xmm0     # 0x6014
movss %xmm0, -0xdc(%rbp)
movq %rax, %rdi
callq 0x20f0
movss -0x34(%rbp), %xmm0
addss -0xdc(%rbp), %xmm0
movss %xmm0, -0x34(%rbp)
cvtsi2sd %r15d, %xmm0
maxsd -0xd8(%rbp), %xmm0
movsd %xmm0, -0xd8(%rbp)
pushq $0x18
popq %r15
movq -0x1c8(%rbp), %r14
incq %r14
jmp 0x38e2
movq -0xb8(%rbp), %rax
movq -0xb0(%rbp), %rcx
xorl %ebx, %ebx
cmpq %rcx, %rax
je 0x3af1
cmpl $0x1, (%rax)
adcl $0x0, %ebx
addq $0x4, %rax
jmp 0x3ae0
movq 0x54d0(%rip), %rdi      # 0x8fc8
leaq 0x26ed(%rip), %rsi      # 0x61ec
callq 0x21a0
pushq $0x1e
popq %rsi
movq %rax, %rdi
callq 0x22a0
leaq 0x26ea(%rip), %rsi      # 0x6200
movq %rax, %rdi
callq 0x21a0
movq %rax, %rdi
callq 0x20f0
movq 0x549b(%rip), %rdi      # 0x8fc8
leaq 0x26d7(%rip), %rsi      # 0x620b
callq 0x21a0
movq %rax, %rdi
movl -0x30(%rbp), %esi
callq 0x22a0
movq %rax, %rdi
callq 0x20f0
movq 0x5475(%rip), %rdi      # 0x8fc8
leaq 0x26c5(%rip), %rsi      # 0x621f
callq 0x21a0
movq %rax, %rdi
movl -0x2c(%rbp), %esi
callq 0x22a0
movq %rax, %rdi
callq 0x20f0
movq 0x544f(%rip), %rdi      # 0x8fc8
leaq 0x26b5(%rip), %rsi      # 0x6235
callq 0x21a0
movq %rax, %rdi
movl -0x64(%rbp), %eax
cltd
idivl -0x30(%rbp)
movl %eax, %esi
callq 0x22a0
movq %rax, %rdi
callq 0x20f0
movq 0x5423(%rip), %rdi      # 0x8fc8
leaq 0x269c(%rip), %rsi      # 0x6248
callq 0x21a0
movsd -0xd8(%rbp), %xmm0
divsd 0x2447(%rip), %xmm0     # 0x6008
movq %rax, %rdi
callq 0x2260
movq %rax, %rdi
callq 0x20f0
movq 0x53f0(%rip), %rdi      # 0x8fc8
leaq 0x2688(%rip), %rsi      # 0x6267
callq 0x21a0
cvtsi2ssl -0x30(%rbp), %xmm1
movss -0x34(%rbp), %xmm0
divss %xmm1, %xmm0
movq %rax, %rdi
callq 0x2140
movq %rax, %rdi
callq 0x20f0
movq 0x53bf(%rip), %rdi      # 0x8fc8
leaq 0x2673(%rip), %rsi      # 0x6283
callq 0x21a0
movq %rax, %rdi
movl %ebx, %esi
callq 0x22a0
leaq 0x2672(%rip), %rsi      # 0x6298
movq %rax, %rdi
callq 0x21a0
movq %rax, %rdi
movq 0x5570(%rip), %rax      # 0x91a8
subq 0x5561(%rip), %rax      # 0x91a0
cqto
idivq %r15
movq %rax, %rsi
callq 0x2120
movq %rax, %rdi
callq 0x20f0
leaq -0xb8(%rbp), %rdi
callq 0x46d8
leaq -0xd0(%rbp), %rdi
callq 0x46d8
leaq -0x60(%rbp), %rdi
callq 0x46d8
leaq -0x1e8(%rbp), %rdi
callq 0x5620
leaq -0x8c0(%rbp), %rdi
callq 0x2230
leaq -0x6c0(%rbp), %rdi
callq 0x2230
leaq -0x2c0(%rbp), %rdi
callq 0x5620
leaq -0x220(%rbp), %rdi
callq 0x40e0
leaq -0x1c0(%rbp), %rdi
callq 0x40e0
leaq -0x100(%rbp), %rdi
callq 0x40e0
leaq -0x4c0(%rbp), %rdi
callq 0x2230
xorl %ebx, %ebx
leaq -0xac0(%rbp), %rdi
callq 0x2230
leaq -0x160(%rbp), %rdi
callq 0x46d8
leaq -0x80(%rbp), %rdi
callq 0x46d8
leaq -0x180(%rbp), %rdi
callq 0x46d8
leaq -0xa0(%rbp), %rdi
callq 0x46d8
leaq -0x200(%rbp), %rdi
callq 0x4452
leaq -0xcc0(%rbp), %rdi
callq 0x2230
leaq -0x278(%rbp), %rdi
callq 0x46d8
leaq -0x1a0(%rbp), %rdi
callq 0x20e0
leaq -0x120(%rbp), %rdi
callq 0x4518
leaq -0x2a8(%rbp), %rdi
callq 0x4626
leaq -0x240(%rbp), %rdi
callq 0x40e0
leaq -0x260(%rbp), %rdi
callq 0x40e0
leaq -0xec8(%rbp), %rdi
callq 0x2080
leaq -0x10d0(%rbp), %rdi
callq 0x2080
leaq -0x140(%rbp), %rdi
callq 0x20e0
movl %ebx, %eax
addq $0x10a8, %rsp           # imm = 0x10A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3ef7
jmp 0x3e94
movq %rax, %rbx
jmp 0x3f91
movq %rax, %rbx
leaq -0x1e8(%rbp), %rdi
callq 0x20e0
jmp 0x3f9d
movq %rax, %rbx
jmp 0x3f9d
movq %rax, %rbx
leaq -0x8c0(%rbp), %rdi
callq 0x20e0
jmp 0x3fa9
jmp 0x3def
movq %rax, %rbx
jmp 0x3fa9
movq %rax, %rbx
jmp 0x3fb5
movq %rax, %rbx
leaq -0x6c0(%rbp), %rdi
callq 0x20e0
jmp 0x3fe5
jmp 0x3ea6
movq %rax, %rbx
leaq -0x4c0(%rbp), %rdi
callq 0x20e0
jmp 0x3ff1
movq %rax, %rbx
jmp 0x3ff1
movq %rax, %rbx
leaq -0xac0(%rbp), %rdi
callq 0x20e0
jmp 0x406b
movq %rax, %rbx
jmp 0x406b
movq %rax, %rbx
jmp 0x4077
movq %rax, %rbx
leaq -0xcc0(%rbp), %rdi
callq 0x20e0
jmp 0x40bf
movq %rax, %rbx
jmp 0x40bf
movq %rax, %rbx
leaq -0xec8(%rbp), %rdi
callq 0x20e0
jmp 0x40cb
jmp 0x3e8a
movq %rax, %rbx
jmp 0x40cb
jmp 0x3ee8
movq %rax, %rbx
jmp 0x3f85
jmp 0x3ee8
jmp 0x3ee8
jmp 0x3ee8
jmp 0x3ec5
jmp 0x3ee8
movq %rax, %rbx
jmp 0x3fe5
jmp 0x3ee8
jmp 0x3f10
jmp 0x3ec5
jmp 0x3f41
jmp 0x3f1a
movq %rax, %rbx
jmp 0x3f68
jmp 0x3ecd
movq %rax, %rbx
jmp 0x4032
movq %rax, %rbx
jmp 0x4053
jmp 0x3f79
jmp 0x3f79
jmp 0x3fff
jmp 0x3f2d
jmp 0x3ee8
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x46d8
leaq -0xd0(%rbp), %rdi
callq 0x46d8
jmp 0x3f7c
jmp 0x3f79
movq %rax, %rbx
jmp 0x3f5c
jmp 0x3f79
jmp 0x3f79
movq %rax, %rbx
jmp 0x401a
jmp 0x3f1a
movq %rax, %rbx
jmp 0x3f50
jmp 0x3f2d
jmp 0x3fff
jmp 0x3f2d
jmp 0x3fff
movq %rax, %rbx
leaq -0x4c0(%rbp), %rdi
callq 0x46d8
jmp 0x3fe5
movq %rax, %rbx
leaq -0x8c0(%rbp), %rdi
callq 0x4452
leaq -0x6c0(%rbp), %rdi
callq 0x46d8
leaq -0x4c0(%rbp), %rdi
callq 0x20e0
leaq -0xac0(%rbp), %rdi
callq 0x2150
jmp 0x4053
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x46d8
leaq -0x1e8(%rbp), %rdi
callq 0x5620
leaq -0x8c0(%rbp), %rdi
callq 0x2230
leaq -0x6c0(%rbp), %rdi
callq 0x2230
leaq -0x2c0(%rbp), %rdi
callq 0x5620
leaq -0x220(%rbp), %rdi
callq 0x40e0
leaq -0x1c0(%rbp), %rdi
callq 0x40e0
leaq -0x100(%rbp), %rdi
callq 0x40e0
leaq -0x4c0(%rbp), %rdi
callq 0x2230
leaq -0xac0(%rbp), %rdi
callq 0x2230
leaq -0x160(%rbp), %rdi
callq 0x46d8
jmp 0x4032
movq %rax, %rbx
leaq -0x8c0(%rbp), %rdi
callq 0x46d8
leaq -0x6c0(%rbp), %rdi
callq 0x4452
leaq -0x4c0(%rbp), %rdi
callq 0x20e0
leaq -0xac0(%rbp), %rdi
callq 0x2150
leaq -0x80(%rbp), %rdi
callq 0x46d8
leaq -0x180(%rbp), %rdi
callq 0x46d8
leaq -0xa0(%rbp), %rdi
callq 0x46d8
leaq -0x200(%rbp), %rdi
callq 0x4452
leaq -0xcc0(%rbp), %rdi
callq 0x2230
leaq -0x278(%rbp), %rdi
callq 0x46d8
leaq -0x1a0(%rbp), %rdi
callq 0x20e0
leaq -0x120(%rbp), %rdi
callq 0x4518
leaq -0x2a8(%rbp), %rdi
callq 0x4626
leaq -0x240(%rbp), %rdi
callq 0x40e0
leaq -0x260(%rbp), %rdi
callq 0x40e0
leaq -0xec8(%rbp), %rdi
callq 0x2080
leaq -0x10d0(%rbp), %rdi
callq 0x2080
leaq -0x140(%rbp), %rdi
callq 0x20e0
movq %rbx, %rdi
callq 0x22b0
nop