// File: /workspace/github_cpp_makefile_star2_O1/simonrharris[P]SKA/src/sk_type.cpp
// Function: typeKmerFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
int typeKmerFile(const std::string & queryfile, const std::string & profileFile, const std::vector < std::string > & subjectfiles)
{
	
	// Create the kmer map
	std::unordered_map < std::string, std::string > kmerMap;
	
	std::ifstream fileStream;

	if (openFileStream(queryfile, fileStream, false)){return 1;};

	int querykmersize;
	std::vector < std::string > querySampleNames;
	
	readKmerHeader(fileStream, querykmersize, querySampleNames);
	
	char base;
	char kmerbuffer[querykmersize*2/3];
	char asciibuffer[int(std::ceil(float(querySampleNames.size())/6))];
	std::vector < std::unordered_map < std::string, std::vector < int > > > profileMap (querySampleNames.size());
	std::vector < std::set < std::string > > novel ( querySampleNames.size());
	std::vector < std::set < std::string > > hasNs ( querySampleNames.size());
	std::vector < std::set < std::string > > hasgaps ( querySampleNames.size());
	std::vector < bool > uncertain ( querySampleNames.size(), false);

	while (fileStream.read(asciibuffer, sizeof(asciibuffer))){//read the ascii representation of the taxa
		std::string asciibits (asciibuffer, sizeof(asciibuffer));
		std::vector < bool > mybits;
		vectorbool_from_ascii(asciibits, mybits);//read the ascii representation of the taxa to a verctor of bools
		while (fileStream.peek()!='\n' && fileStream.get(base)){
			//base=std::toupper(base);
			fileStream.read(kmerbuffer, sizeof(kmerbuffer));
			std::string kmer (kmerbuffer, querykmersize*2/3);

			addKmerToStringMap(kmerMap, kmer, base, mybits, querySampleNames.size());

    	}
    	fileStream.ignore(256,'\n');//skip the end ofline character
    }
	fileStream.close();

	std::string header;
	
	int substringlength=(querykmersize*2)+1;

	for (int s = 0; s < subjectfiles.size(); ++s){

		std::vector < std::string > alleleNames;
		std::vector < float > bestsimilarity (querySampleNames.size(), 0);
		std::vector < float > bestid (querySampleNames.size(), 0);
		std::vector < int > Ncount (querySampleNames.size(), 0);
		std::vector < int > gapcount (querySampleNames.size(), 0);
		std::vector < std::vector < int > > bestMatches (querySampleNames.size());
		std::vector < std::string > bestSequences (querySampleNames.size());

		igzstream gzfileStream;

		int alleleNumber=0;

		if(openGzFileStream(subjectfiles[s], gzfileStream)){return 1;}

		while (gzfileStream.peek()!=EOF){

			std::string alleleName;
			std::string sequence;
			sequence.reserve(10000);

			if(readNextFastaSequence(gzfileStream, subjectfiles[s], alleleName, sequence)){return 1;}

			std::string::size_type found=alleleName.find_last_of("_");
			try {
			    stoi(alleleName.substr(found+1));
			}
			catch (...) {
				std::cout << "Error in " << subjectfiles[s] << std::endl;
			    std::cout << "Malformed alleles fasta file!" << std::endl << "Expecting an allele integer after the last underscore in the name. Got " << alleleName << std::endl;
			    return 1;
			}

			alleleNames.push_back(alleleName);

			std::vector < std::string > alleleSequence ( querySampleNames.size() , std::string ( sequence.length() , '-' ) );
			std::vector < std::vector < bool > > alleleCoverage ( querySampleNames.size() , std::vector < bool > ( sequence.length() , false ) );
				
			if (sequence.length()<substringlength){
				continue;
			}
			
			int i=0;

			for (std::string::iterator iti = sequence.begin(), end = sequence.end()-(substringlength-1); iti != end; ++iti, ++i){

				std::string kmer=sequence.substr(i,substringlength);
				
				bool isrev=reverseComplementIfMin(kmer);
				extractMiddleBase(kmer, base);
				if(ascii_codons(kmer)){return 1;}
				
				std::unordered_map < std::string, std::string >::iterator it = kmerMap.find(kmer);//check if the kmer is in the hash
				
				if ( it != kmerMap.end() ){//if the kmer is in the hash
					for (int k=0; k<querySampleNames.size(); ++k){
						if (it->second[k]!='-'){
							char querybase;
							if (isrev){
								querybase=complement(it->second[k]);
							}
							else {
								querybase=it->second[k];
							}
							for (int j=i; j<i+substringlength; ++j){
								alleleCoverage[k][j]=true;

								if (j==(i+querykmersize)){
									
									if (alleleSequence[k][j]=='-' or islower(alleleSequence[k][j])){
										alleleSequence[k][j]=querybase;
									}
									else if (querybase==base){
										//cout << "HERE" << std::endl;
										alleleSequence[k][j]=base;
									}
									else if (alleleSequence[k][j]!=base){
										//cout << querybase << " " << alleleSequence[k][j] << " " << base << std::endl;
										alleleSequence[k][j]='N';
									}
								}
								//else if ((j<=querykmersize || j>=(sequence.length()-querykmersize) || ( querybase!=sequence[i+querykmersize] && base_score[querybase]<4) ) && alleleSequence[k][j]=='-'){
								else if (alleleSequence[k][j]=='-'){
									alleleSequence[k][j]=tolower(sequence[j]);
								}
							}
						}
					}
				}
		
    		}

    		for (std::vector < std::string >::size_type k=0; k<querySampleNames.size(); ++k){

    			float matches=0.0;
    			float covered=0.0;
    			float Ns=0.0;
    			float gaps=0.0;
    			char base;
    			for (int i=0; i<sequence.length(); ++i){
    				//std::cout << i << " " << alleleSequence[k][i] << " " << sequence[i] << std::endl;
    				base=std::toupper(alleleSequence[k][i]);
    				if (alleleSequence[k][i]==sequence[i]){
    					matches++;
    				}
    				if (base==sequence[i]){
    					covered++;
    				}
    				else if (base=='N'){
    					Ns++;
    				}
    				else if (base=='-'){
    					gaps++;
    				}
    			}
    			float sampleid=(matches)/sequence.length();
    			float similarity=(Ns+covered)/sequence.length();
    			//std::cout  << alleleNumber << " " << sequence.length() << " " << matches << " " << covered << " " << sampleid << " " << Ns << " " << gaps << " " << bestid[k] << std::endl;

				if (sampleid>bestid[k] || (sampleid==bestid[k] && similarity>bestsimilarity[k])){
					bestMatches[k].clear();
					bestid[k]=sampleid;
					bestsimilarity[k]=similarity;
					Ncount[k]=Ns;
					gapcount[k]=gaps;
				}
				if (sampleid>0 && sampleid==bestid[k] && similarity==bestsimilarity[k]){
					bestMatches[k].push_back(alleleNumber);
					bestSequences[k]=alleleSequence[k];
				}
			}
			
    		alleleNumber++;
		}
 		gzfileStream.close();


 		for (int k=0; k<querySampleNames.size(); ++k){

 			int allele;
			std::string locus;
			//cout << querySampleNames[k];
	 		for (std::vector < int >::iterator it=bestMatches[k].begin(); it!=bestMatches[k].end(); ++it){
	 			//cout << "\t" << alleleNames[*it];
				std::string::size_type found=alleleNames[*it].find_last_of("_");
				if (found!=std::string::npos){
					locus=alleleNames[*it].substr(0,found);
					allele=stoi(alleleNames[*it].substr(found+1));
				}
				std::unordered_map < std::string, std::vector < int > >::iterator it2 = profileMap[k].find(locus);//check if the kmer is in the hash
				if ( it2 != profileMap[k].end() ){//if the kmer is not in the hash
					it2->second.push_back(allele);
					uncertain[k]=true;
				}
				else{
					std::vector < int > newLocus;
					newLocus.push_back(allele);
					profileMap[k].insert(std::make_pair(locus, newLocus));
				}
			}

			if ((bestsimilarity[k]!=1.0 || Ncount[k]>0) && bestid[k]>0){//if the allele sequence of the sample has Ns or isn't a perfect match to an allele in the file, print the allele sequence to a file
				if (bestsimilarity[k]!=1.0){
					novel[k].insert(locus);
				}
				if (Ncount[k]>0){
					hasNs[k].insert(locus);
				}
				if (gapcount[k]>0){
					hasgaps[k].insert(locus);
				}
				std::ofstream alignfile(querySampleNames[k]+"_"+locus+".fa");
				alignfile << ">" << querySampleNames[k] << "_" << locus << std::endl;
				alignfile << bestSequences[k] << std::endl;
				alignfile.close();
			}
			/*cout << ">" << querySampleNames[k] << "_" << locus << std::endl;
			cout << bestSequences[k] << std::endl;*/
			//cout << "\t" << bestid[k] << "\t" << Ncount[k] << "\t" << gapcount[k] << std::endl;
		}
	}


	if (profileFile!=""){

		std::vector < int > certainFiles;
		for (int k=0; k<querySampleNames.size(); ++k){
			if (novel[k].size()==0 && not uncertain[k]){
				certainFiles.push_back(k);
			}
		}

		if(openFileStream(profileFile, fileStream, false)){return 1;}

		std::string header;
		std::getline(fileStream, header);

		std::stringstream headerstream;
		headerstream << header;//convert the header to a stringstream
		std::string word;
		int i=0;
		int ST=-1;
		int cc=-1;
		std::map < std::string, int > alleles;
		int maxallelecolumn=0;

		while (std::getline(headerstream, word, '\t')){
			if (word=="ST"){
				ST=i;
				maxallelecolumn=i;
			}
			else if (word=="clonal_complex"){
				cc=i;
			}
			else {
				alleles[word]=i;
				maxallelecolumn=i;
			}
			++i;
		}

		if (ST==-1){
			std::cerr << "Error: Found no ST column in your profile file" << std::endl << std::endl;
			return 1;
		}

		if (alleles.size()!=profileMap[0].size()){
			std::cerr << "Error: Found " << alleles.size() << " alleles in your allele file and " << profileMap[0].size() << " alleles in your profile file" << std::endl << std::endl;
			return 1;
		}

		for (std::map < std::string, int >::iterator it=alleles.begin(); it!=alleles.end(); ++it){
			std::unordered_map < std::string, std::vector < int > >::iterator it2 = profileMap[0].find(it->first);//check if the kmer is in the hash
			if ( it2 == profileMap[0].end() ){//if the kmer is not in the hash
				std::cerr << "Error: Cannot find " << it->first << " in your profiles file" << std::endl << std::endl;
				return 1;
			}
		}

		std::cout << "Sample" << "\t";
		std::cout << "ST";
		for (std::map < std::string, int >::iterator it=alleles.begin(); it!=alleles.end(); ++it){
			std::cout << "\t" << it->first;
		}
		std::cout << std::endl;

		std::string line;
		int linenumber=0;
		int matches=0;
		while (std::getline(fileStream, line)){
			linenumber++;
			std::stringstream linestream;
			linestream << line;//convert the header to a stringstream
			std::vector < std::string > words;

			while (std::getline(linestream, word, '\t')){
				words.push_back(word);
			}

			if (words.size()<maxallelecolumn){
				std::cerr << "Malformed profile file on line " << linenumber << ". Expecting at least " << maxallelecolumn << " columns and found " << words.size() << std::endl << std::endl;
				return 1;
			}

			for (std::vector < int >::iterator k=certainFiles.begin(); k!=certainFiles.end(); ++k){
				bool perfectmatch=true;
				for (std::map < std::string, int >::iterator it=alleles.begin(); it!=alleles.end(); ++it){
					std::unordered_map < std::string, std::vector < int > >::iterator it2 = profileMap[*k].find(it->first);//check if the kmer is in the hash
					if ( it2 == profileMap[*k].end() ){//if the kmer is not in the hash
						perfectmatch=false;
						std::cerr << "Shouldn't be here";
					}
					else{
						if (std::stoi(words[it->second])!=it2->second[0]){
							perfectmatch=false;
							continue;
						}
					}
				}
				if (perfectmatch){
					std::vector < int > STs;
					STs.push_back(std::stoi(words[ST].substr(words[ST].find_last_of("_")+1)));
					profileMap[*k]["ST"]=STs;
				}
			}
			if (matches==certainFiles.size()){
				break;
			}
		}

		fileStream.close();
		

		for (int k=0; k<querySampleNames.size(); ++k){
			std::cout << querySampleNames[k] << "\t";
			if (profileMap[k]["ST"].size()==1){
				std::cout << profileMap[k]["ST"][0];
			}
			else {
				std::cout << "-";
			}
			for (std::map < std::string, int >::iterator it=alleles.begin(); it!=alleles.end(); ++it){
				std::string suffix="";
				std::set < std::string >::iterator it2 = novel[k].find(it->first);
				if ( it2 != novel[k].end() ){
					suffix="*";
				}
				it2 = hasNs[k].find(it->first);
				if ( it2 != hasNs[k].end() ){
					suffix+="N";
				}
				it2 = hasgaps[k].find(it->first);
				if ( it2 != hasgaps[k].end() ){
					suffix+="-";
				}

				if (profileMap[k][it->first].size()==0){
					std::cout << "\t" << "-";
				}
				else if (profileMap[k][it->first].size()==1){
					std::cout << "\t" << profileMap[k][it->first][0] << suffix;
				}
				else {
					std::cout << "\t";
					for (int i=0; i<profileMap[k][it->first].size()-1; ++i){
						std::cout << profileMap[k][it->first][i] << "/";
					}
					std::cout << profileMap[k][it->first][profileMap[k][it->first].size()-1] << suffix;
				}
			}
			std::cout << std::endl;
		}

	}
	else{
		std::set < std::string > allLoci;
		for (int k=0; k<querySampleNames.size(); ++k){
			for (std::unordered_map < std::string, std::vector < int > >::iterator it=profileMap[k].begin(); it!=profileMap[k].end(); ++it){
				allLoci.insert(it->first);
				//cout << it->first << std::endl;
			}
		}
		std::cout << "Sample";
		for (std::set < std::string >::iterator it=allLoci.begin(); it!=allLoci.end(); ++it){
			std::cout << "\t" << *it;
		}
		std::cout << std::endl;
		for (int k=0; k<querySampleNames.size(); ++k){
			std::cout << querySampleNames[k] << "\t";
			for (std::set < std::string >::iterator it=allLoci.begin(); it!=allLoci.end(); ++it){
				std::string suffix="";
				std::set < std::string >::iterator it2 = novel[k].find(*it);//check if the kmer is in the set
				if ( it2 != novel[k].end() ){
					suffix="*";
				}
				it2 = hasNs[k].find(*it);//check if the kmer is in the set
				if ( it2 != hasNs[k].end() ){
					suffix+="N";
				}
				it2 = hasgaps[k].find(*it);//check if the kmer is in the set
				if ( it2 != hasgaps[k].end() ){
					suffix+="-";
				}

				if (profileMap[k][*it].size()==0){
					std::cout << "-" << "\t";
				}
				else if (profileMap[k][*it].size()==1){
					std::cout << profileMap[k][*it][0] << suffix << "\t";
				}
				else {
					for (int i=0; i<profileMap[k][*it].size()-1; ++i){
						std::cout << profileMap[k][*it][i] << "/";
					}
					std::cout << profileMap[k][*it][profileMap[k][*it].size()-1] << suffix << "\t";
				}
			}
			std::cout << std::endl;
		}
	}

	return 0;
	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x9b8, %rsp            # imm = 0x9B8
movq %rdx, -0x1b8(%rbp)
movq %rsi, -0x200(%rbp)
movq %rdi, %rbx
leaq -0x7a8(%rbp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
leaq -0x9e0(%rbp), %rdi
callq 0x5410
leaq -0x9e0(%rbp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x7f73
movl $0x1, %ebx
testl %eax, %eax
jne 0x2108a
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
leaq -0x9e0(%rbp), %rdi
leaq -0xcc(%rbp), %rsi
callq 0x96e2
movq %rsp, %rcx
movl -0xcc(%rbp), %eax
addl %eax, %eax
cltq
imulq $0x55555556, %rax, %rdx # imm = 0x55555556
movq %rdx, %rax
shrq $0x3f, %rax
shrq $0x20, %rdx
addl %eax, %edx
movq %rdx, -0x60(%rbp)
leaq 0xf(%rdx), %rax
andq $-0x10, %rax
movq %rsp, %r14
subq %rax, %r14
movq %r14, %rsp
movq -0x48(%rbp), %r15
subq -0x50(%rbp), %r15
sarq $0x5, %r15
movq %rcx, -0x2a0(%rbp)
js 0x1f2e8
xorps %xmm0, %xmm0
cvtsi2ss %r15, %xmm0
jmp 0x1f303
movq %r15, %rax
shrq %rax
movl %r15d, %ecx
andl $0x1, %ecx
orq %rax, %rcx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
divss 0x14375(%rip), %xmm0    # 0x33680
callq 0x51e0
cvttss2si %xmm0, %ecx
movq %rcx, -0x38(%rbp)
leaq 0xf(%rcx), %rax
andq $-0x10, %rax
movq %rsp, %rcx
subq %rax, %rcx
movq %rcx, -0x58(%rbp)
movq %rcx, %rsp
leaq -0x108(%rbp), %rdi
leaq -0x7a0(%rbp), %rdx
movq %r15, %rsi
callq 0x22378
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x268(%rbp), %rdi
leaq -0x7a0(%rbp), %rdx
callq 0x22422
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x298(%rbp), %rdi
leaq -0x7a0(%rbp), %rdx
callq 0x22422
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x280(%rbp), %rdi
leaq -0x7a0(%rbp), %rdx
callq 0x22422
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x7a0(%rbp), %rdx
movb $0x0, (%rdx)
leaq -0x1f8(%rbp), %rdi
leaq -0x4c8(%rbp), %rcx
callq 0xac4a
movq -0x38(%rbp), %rax
movq -0x58(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x90(%rbp)
leaq -0x9e0(%rbp), %r15
leaq -0x7a0(%rbp), %r13
movq %r15, %rdi
movq -0x58(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x5480
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1f5b4
movq %r13, %rbx
leaq -0x4b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
leaq -0x4c8(%rbp), %r13
movq %r13, %rdi
movq -0x58(%rbp), %rsi
movq -0x90(%rbp), %rdx
callq 0x862a
xorl %eax, %eax
movq %rax, -0x7a0(%rbp)
movl %eax, -0x798(%rbp)
movq %rax, -0x790(%rbp)
movl %eax, -0x788(%rbp)
movq %rax, -0x780(%rbp)
movq %r13, %rdi
movq %rbx, %r13
movq %rbx, %rsi
callq 0x89ef
leaq -0x29(%rbp), %r12
movq %r15, %rdi
callq 0x5140
cmpl $0xa, %eax
je 0x1f539
movq %r15, %rdi
movq %r12, %rsi
callq 0x5500
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1f539
movq %r15, %rdi
movq %r14, %rsi
movq -0x60(%rbp), %rdx
callq 0x5480
movl -0xcc(%rbp), %eax
addl %eax, %eax
cltq
imulq $0x55555556, %rax, %rax # imm = 0x55555556
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x20, %rax
addl %ecx, %eax
movslq %eax, %rdx
leaq -0xb0(%rbp), %rax
movq %rax, -0xc0(%rbp)
addq %r14, %rdx
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x862a
movsbl -0x29(%rbp), %edx
movq -0x48(%rbp), %r8
subq -0x50(%rbp), %r8
shrq $0x5, %r8
leaq -0x7d8(%rbp), %rdi
movq %rbx, %rsi
movq %r13, %rcx
callq 0x1f06c
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x1f46b
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x1f46b
movl $0x100, %esi            # imm = 0x100
movq %r15, %rdi
movl $0xa, %edx
callq 0x5220
movq -0x7a0(%rbp), %rdi
testq %rdi, %rdi
je 0x1f589
movq -0x780(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
xorl %eax, %eax
movq %rax, -0x7a0(%rbp)
movl %eax, -0x798(%rbp)
movq %rax, -0x790(%rbp)
movl %eax, -0x788(%rbp)
movq %rax, -0x780(%rbp)
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1f3e9
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x1f3e9
leaq -0x9e0(%rbp), %rdi
callq 0x50b0
leaq -0x4d8(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq -0x1b8(%rbp), %rcx
movq 0x8(%rcx), %rax
cmpq (%rcx), %rax
setne %cl
je 0x207ec
movslq -0xcc(%rbp), %rax
leaq 0x1(,%rax,2), %rdx
movq %rax, -0x1d0(%rbp)
addq %rax, %rax
leaq -0x70(%rbp), %r12
cltq
negq %rax
movq %rax, -0x2a8(%rbp)
movq 0x21993(%rip), %rax     # 0x40fb0
movq (%rax), %rsi
movq %rsi, -0x2b8(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x2b0(%rbp)
movq %rdx, -0x210(%rbp)
movslq %edx, %rax
movq %rax, -0x2c0(%rbp)
leaq -0x7a0(%rbp), %rdx
leaq -0x4c8(%rbp), %r15
leaq -0x80(%rbp), %r13
movq $0x0, -0x1c8(%rbp)
movb %cl, -0x81(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x190(%rbp)
movq $0x0, -0x180(%rbp)
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x7a0(%rbp)
leaq -0xf0(%rbp), %rdi
movq %r15, %rcx
movq %rdx, %rbx
callq 0x224be
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x7a0(%rbp)
leaq -0x1b0(%rbp), %rdi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x224be
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x7a0(%rbp)
leaq -0x170(%rbp), %rdi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x100da
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x7a0(%rbp)
leaq -0x250(%rbp), %rdi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x100da
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x238(%rbp), %rdi
movq %rbx, %rdx
callq 0x22540
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x500(%rbp), %rdi
movq %rbx, %rdx
callq 0x225c8
movq %rbx, %rdi
callq 0x7742
movl $0x0, -0x12c(%rbp)
movq -0x1c8(%rbp), %rcx
shlq $0x5, %rcx
movq -0x1b8(%rbp), %rax
movq (%rax), %rdi
movq %rcx, -0x208(%rbp)
addq %rcx, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x80aa
testl %eax, %eax
je 0x1f9d8
movl $0x0, -0xc8(%rbp)
leaq 0x21450(%rip), %rax     # 0x40bf8
movq %rax, -0x618(%rbp)
leaq 0x2146a(%rip), %rax     # 0x40c20
movq %rax, -0x608(%rbp)
movq $0x0, -0x610(%rbp)
leaq -0x7a0(%rbp), %rdi
leaq 0x21362(%rip), %rsi     # 0x40b38
callq 0x7954
leaq -0x608(%rbp), %rdi
callq 0x5120
leaq -0x500(%rbp), %rdi
callq 0xabee
leaq -0x238(%rbp), %rdi
callq 0x12b8c
movq -0x250(%rbp), %rdi
testq %rdi, %rdi
je 0x1f81a
movq -0x240(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x170(%rbp), %rdi
testq %rdi, %rdi
je 0x1f835
movq -0x160(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x1b0(%rbp), %rdi
testq %rdi, %rdi
je 0x1f850
movq -0x1a0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x1f86b
movq -0xe0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x190(%rbp), %rdi
callq 0xabee
cmpb $0x0, -0xc8(%rbp)
je 0x207da
movq -0x1c8(%rbp), %rdx
incq %rdx
movq -0x1b8(%rbp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
sarq $0x5, %rax
movq %rdx, -0x1c8(%rbp)
cmpq %rdx, %rax
seta %cl
leaq -0x7a0(%rbp), %rdx
ja 0x1f660
jmp 0x207ec
leaq 0x14a0f(%rip), %rdi     # 0x342d5
callq 0x51f0
jmp 0x21c6e
leaq 0x149fe(%rip), %rdi     # 0x342d5
callq 0x5550
jmp 0x21c6e
movq %rax, %r14
jmp 0x1f913
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x1f8f1
movl %r15d, (%rbx)
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1f913
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq %r14, %rdi
callq 0x5160
movl $0x9, %edx
movq 0x21699(%rip), %rdi     # 0x40fc0
leaq 0x14bb4(%rip), %rsi     # 0x344e2
callq 0x5420
movq -0x1b8(%rbp), %rax
movq (%rax), %rax
movq -0x208(%rbp), %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq 0x2166c(%rip), %rdi     # 0x40fc0
callq 0x5420
movq %rax, %rdi
callq 0x5190
movl $0x1d, %edx
movq 0x21653(%rip), %rdi     # 0x40fc0
leaq 0x14b78(%rip), %rsi     # 0x344ec
callq 0x5420
movq 0x21640(%rip), %rdi     # 0x40fc0
callq 0x5190
movq %rax, %rbx
movl $0x47, %edx
movq %rax, %rdi
leaq 0x14b73(%rip), %rsi     # 0x3450a
callq 0x5420
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
movq %rbx, %rdi
callq 0x5420
movq %rax, %rdi
callq 0x5190
leaq -0x70(%rbp), %r12
callq 0x5630
leaq -0x4c8(%rbp), %r15
leaq -0x80(%rbp), %r13
movl $0x1, %ebx
jmp 0x2011f
leaq -0x618(%rbp), %rdi
callq 0x5140
cmpl $-0x1, %eax
je 0x2016c
leaq -0xb0(%rbp), %rax
movq %rax, -0xc0(%rbp)
xorl %eax, %eax
movq %rax, -0xb8(%rbp)
movb %al, -0xb0(%rbp)
movq %r12, -0x80(%rbp)
movq %rax, -0x78(%rbp)
movb %al, -0x70(%rbp)
movl $0x2710, %esi           # imm = 0x2710
movq %r13, %rdi
callq 0x55f0
movq -0x1b8(%rbp), %rax
movq (%rax), %rsi
addq -0x208(%rbp), %rsi
leaq -0x7a0(%rbp), %rdi
leaq -0xc0(%rbp), %rdx
movq %r13, %rcx
callq 0x6ca1
movl $0x1, %ebx
testl %eax, %eax
jne 0x2011f
movl $0x1, %ecx
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
leaq 0x14a74(%rip), %rsi     # 0x344e0
movq $-0x1, %rdx
callq 0x5740
leaq 0x1(%rax), %rdx
movq %r15, %rdi
movq %rbx, %rsi
movq $-0x1, %rcx
callq 0x53e0
movq -0x4c8(%rbp), %r14
callq 0x5050
movq %rax, %rbx
movl (%rax), %r15d
movl $0x0, (%rax)
movq %r14, %rdi
leaq -0x128(%rbp), %rsi
movl $0xa, %edx
callq 0x5510
cmpq %r14, -0x128(%rbp)
je 0x1f8bf
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x1f8d0
movl (%rbx), %eax
cmpl $0x22, %eax
je 0x1f8d0
testl %eax, %eax
jne 0x1faf2
movl %r15d, (%rbx)
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1fb14
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0x190(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x855c
leaq -0x4c8(%rbp), %r15
movq -0x50(%rbp), %r14
movq -0x48(%rbp), %rbx
movq -0x78(%rbp), %rsi
leaq -0x4b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
movq %r15, %rdi
movl $0x2d, %edx
callq 0x5440
subq %r14, %rbx
sarq $0x5, %rbx
leaq -0x128(%rbp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
leaq -0x150(%rbp), %rcx
callq 0x1d9cc
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1fb97
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x50(%rbp), %r14
movq -0x48(%rbp), %rbx
movq -0x78(%rbp), %rsi
movb $0x0, -0x88(%rbp)
movq %r15, %rdi
leaq -0x88(%rbp), %rdx
leaq -0x12e(%rbp), %rcx
callq 0xac4a
subq %r14, %rbx
sarq $0x5, %rbx
leaq -0x150(%rbp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
leaq -0x12d(%rbp), %rcx
callq 0x22652
movq -0x4c8(%rbp), %rdi
testq %rdi, %rdi
je 0x1fc1e
movq -0x4a8(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
xorl %eax, %eax
movq %rax, -0x4c8(%rbp)
movl %eax, -0x4c0(%rbp)
movq %rax, -0x4b8(%rbp)
movl %eax, -0x4b0(%rbp)
movq %rax, -0x4a8(%rbp)
movq -0x78(%rbp), %r14
movl $0x9, %ebx
cmpq -0x210(%rbp), %r14
jb 0x20107
movq -0x80(%rbp), %rax
addq %rax, %r14
addq -0x2a8(%rbp), %r14
movl $0xb, -0x1bc(%rbp)
movq %rax, -0x218(%rbp)
cmpq %r14, %rax
sete %bl
je 0x1fea5
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, -0x220(%rbp)
xorl %edx, %edx
movq %r14, -0x2c8(%rbp)
movq %r15, %rdi
movq %r13, %rsi
movq %rdx, -0x60(%rbp)
movq -0x210(%rbp), %rcx
callq 0x53e0
movq %r15, %rdi
callq 0x6905
movb %al, -0xc8(%rbp)
movq %r15, %rdi
leaq -0x29(%rbp), %rsi
callq 0x8ae7
movq %r15, %rdi
callq 0x6ab2
testl %eax, %eax
jne 0x1fe79
leaq -0x7d8(%rbp), %rdi
movq %r15, %rsi
callq 0xb71e
movq %rax, %rcx
testq %rax, %rax
movq -0x60(%rbp), %r12
je 0x1fe0b
movq -0x48(%rbp), %rax
cmpq -0x50(%rbp), %rax
je 0x1fe0b
movq -0x2c0(%rbp), %rax
addq %r12, %rax
movq %rax, -0x58(%rbp)
xorl %ebx, %ebx
movq %rcx, -0x90(%rbp)
movq 0x28(%rcx), %rdi
movb (%rdi,%rbx), %al
movb %al, -0x38(%rbp)
cmpb $0x2d, %al
je 0x1fdec
cmpb $0x0, -0xc8(%rbp)
je 0x1fd23
addq %rbx, %rdi
callq 0x686c
movb %al, -0x38(%rbp)
cmpl $0x0, -0x1d0(%rbp)
js 0x1fdec
movq -0x220(%rbp), %r14
movq %r12, %r15
movq -0x150(%rbp), %rax
leaq (%rbx,%rbx,4), %rcx
movq (%rax,%rcx,8), %rax
movq %r15, %rdx
movl $0x1, %esi
movl %r15d, %ecx
shlq %cl, %rsi
shrq $0x6, %rdx
orq %rsi, (%rax,%rdx,8)
movl -0xcc(%rbp), %eax
addl %r12d, %eax
movq %rbx, %rcx
shlq $0x5, %rcx
movq -0x128(%rbp), %rdx
movq (%rdx,%rcx), %r12
movsbl (%r12,%r15), %r13d
cmpq %rax, %r15
jne 0x1fdaf
movb -0x38(%rbp), %al
cmpb $0x2d, %r13b
je 0x1fdc3
movl %r13d, %edi
callq 0x54a0
movl %eax, %ecx
movb -0x38(%rbp), %al
testl %ecx, %ecx
jne 0x1fdc3
movb -0x29(%rbp), %al
cmpb %al, -0x38(%rbp)
je 0x1fdc3
cmpb %al, %r13b
movb $0x4e, %al
jne 0x1fdc3
jmp 0x1fdc7
cmpb $0x2d, %r13b
jne 0x1fdc7
movq -0x80(%rbp), %rax
movsbl (%rax,%r15), %edi
callq 0x5560
movb %al, (%r12,%r15)
incq %r15
movq %r14, %rax
sarq $0x20, %rax
movabsq $0x100000000, %rcx      # imm = 0x100000000
addq %rcx, %r14
cmpq -0x58(%rbp), %rax
movq -0x60(%rbp), %r12
jl 0x1fd3a
incq %rbx
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
sarq $0x5, %rax
cmpq %rbx, %rax
movq -0x90(%rbp), %rcx
ja 0x1fcfd
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1fe2d
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x218(%rbp), %rcx
incq %rcx
incq %r12
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, -0x220(%rbp)
movq -0x2c8(%rbp), %r14
movq %rcx, -0x218(%rbp)
cmpq %r14, %rcx
sete %bl
movq %r12, %rdx
leaq -0x70(%rbp), %r12
leaq -0x4c8(%rbp), %r15
leaq -0x80(%rbp), %r13
jne 0x1fc79
jmp 0x1fea5
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1fe9b
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movl $0x1, -0x1bc(%rbp)
testb $0x1, %bl
movl -0x1bc(%rbp), %ebx
je 0x20107
movq -0x48(%rbp), %rax
cmpq -0x50(%rbp), %rax
je 0x200f8
xorl %ebx, %ebx
movq -0x78(%rbp), %r15
testq %r15, %r15
je 0x1ffb7
movq -0x128(%rbp), %rax
movq %rbx, -0xc8(%rbp)
movq %rbx, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %r12
xorps %xmm2, %xmm2
movq -0x80(%rbp), %r13
xorl %r14d, %r14d
xorps %xmm0, %xmm0
movss %xmm0, -0x58(%rbp)
movss %xmm0, -0x38(%rbp)
movss %xmm0, -0x90(%rbp)
movss %xmm2, -0x60(%rbp)
movsbl (%r12,%r14), %ebx
movl %ebx, %edi
callq 0x56d0
movss -0x60(%rbp), %xmm1
movsbl (%r13,%r14), %ecx
movaps %xmm1, %xmm0
addss 0x130d4(%rip), %xmm0    # 0x33004
cmpb %cl, %bl
je 0x1ff37
movaps %xmm1, %xmm0
movaps %xmm0, %xmm2
movsbl %al, %edx
cmpl %ecx, %edx
jne 0x1ff55
movss -0x58(%rbp), %xmm0
addss 0x130b6(%rip), %xmm0    # 0x33004
movss %xmm0, -0x58(%rbp)
jmp 0x1ff92
shll $0x18, %eax
cmpl $0x2d000000, %eax       # imm = 0x2D000000
je 0x1ff7a
cmpl $0x4e000000, %eax       # imm = 0x4E000000
jne 0x1ff92
movss -0x38(%rbp), %xmm0
addss 0x13091(%rip), %xmm0    # 0x33004
movss %xmm0, -0x38(%rbp)
jmp 0x1ff92
movss -0x90(%rbp), %xmm0
addss 0x1307a(%rip), %xmm0    # 0x33004
movss %xmm0, -0x90(%rbp)
incq %r14
cmpq %r14, %r15
jne 0x1ff09
cvttss2si -0x90(%rbp), %eax
leaq -0x70(%rbp), %r12
leaq -0x80(%rbp), %r13
movq -0xc8(%rbp), %rbx
jmp 0x1ffc9
xorps %xmm0, %xmm0
movss %xmm0, -0x38(%rbp)
xorl %eax, %eax
movss %xmm0, -0x58(%rbp)
xorps %xmm2, %xmm2
testq %r15, %r15
js 0x1ffd8
xorps %xmm0, %xmm0
cvtsi2ss %r15, %xmm0
jmp 0x1fff1
movq %r15, %rcx
shrq %rcx
andl $0x1, %r15d
orq %rcx, %r15
xorps %xmm0, %xmm0
cvtsi2ss %r15, %xmm0
addss %xmm0, %xmm0
divss %xmm0, %xmm2
movss -0x58(%rbp), %xmm1
addss -0x38(%rbp), %xmm1
divss %xmm0, %xmm1
movaps %xmm1, %xmm0
movq -0x1b0(%rbp), %rcx
ucomiss (%rcx,%rbx,4), %xmm2
ja 0x20024
jne 0x2006c
jp 0x2006c
movq -0xf0(%rbp), %rdx
ucomiss (%rdx,%rbx,4), %xmm0
jbe 0x2006c
movq -0x238(%rbp), %rdx
leaq (%rbx,%rbx,2), %rdi
movq (%rdx,%rdi,8), %rsi
cmpq %rsi, 0x8(%rdx,%rdi,8)
je 0x20042
leaq (%rdx,%rdi,8), %rdx
movq %rsi, 0x8(%rdx)
movss %xmm2, (%rcx,%rbx,4)
movq -0xf0(%rbp), %rdx
movss %xmm0, (%rdx,%rbx,4)
cvttss2si -0x38(%rbp), %edx
movq -0x170(%rbp), %rsi
movl %edx, (%rsi,%rbx,4)
movq -0x250(%rbp), %rdx
movl %eax, (%rdx,%rbx,4)
ucomiss 0x138c5(%rip), %xmm2    # 0x33938
jbe 0x200e0
ucomiss (%rcx,%rbx,4), %xmm2
jne 0x200e0
jp 0x200e0
movq -0xf0(%rbp), %rax
ucomiss (%rax,%rbx,4), %xmm0
jne 0x200e0
jp 0x200e0
movq -0x238(%rbp), %rax
leaq (%rbx,%rbx,2), %rcx
leaq (%rax,%rcx,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x200b7
movl -0x12c(%rbp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x200c3
leaq -0x12c(%rbp), %rdx
callq 0xe01e
movq %rbx, %rdi
shlq $0x5, %rdi
movq -0x128(%rbp), %rsi
addq %rdi, %rsi
addq -0x500(%rbp), %rdi
callq 0x51c0
incq %rbx
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
sarq $0x5, %rax
cmpq %rax, %rbx
jb 0x1fec4
incl -0x12c(%rbp)
xorl %ebx, %ebx
leaq -0x4c8(%rbp), %r15
leaq -0x150(%rbp), %rdi
callq 0x226ea
leaq -0x128(%rbp), %rdi
callq 0xabee
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x20134
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x20156
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x53c0
testl %ebx, %ebx
je 0x1f9d8
cmpl $0x9, %ebx
je 0x1f9d8
jmp 0x1f797
leaq -0x7a0(%rbp), %rdi
callq 0x782c
movq -0x48(%rbp), %rax
movb $0x1, %cl
movl %ecx, -0xc8(%rbp)
cmpq -0x50(%rbp), %rax
je 0x1f7a1
xorl %r12d, %r12d
leaq -0xb0(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq $0x0, -0xb8(%rbp)
movb $0x0, -0xb0(%rbp)
movq -0x238(%rbp), %rax
movq %r12, -0x60(%rbp)
leaq (%r12,%r12,2), %rcx
movq (%rax,%rcx,8), %r12
movq %rcx, -0x58(%rbp)
cmpq 0x8(%rax,%rcx,8), %r12
je 0x20462
movq -0x60(%rbp), %rcx
movq %rcx, %rax
shrq $0x6, %rax
movq %rax, -0x38(%rbp)
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x90(%rbp)
movslq (%r12), %rdi
shlq $0x5, %rdi
addq -0x190(%rbp), %rdi
movl $0x1, %ecx
leaq 0x142d4(%rip), %rsi     # 0x344e0
movq $-0x1, %rdx
callq 0x5740
cmpq $-0x1, %rax
je 0x20324
movq %rax, %rbx
movslq (%r12), %rsi
shlq $0x5, %rsi
addq -0x190(%rbp), %rsi
movq %r15, %rdi
xorl %edx, %edx
movq %rax, %rcx
callq 0x53e0
leaq -0xc0(%rbp), %rdi
movq %r15, %rsi
callq 0x5470
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x20272
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movslq (%r12), %rsi
shlq $0x5, %rsi
addq -0x190(%rbp), %rsi
incq %rbx
movq %r15, %rdi
movq %rbx, %rdx
movq $-0x1, %rcx
callq 0x53e0
movq -0x4c8(%rbp), %r14
callq 0x5050
movq %rax, %rbx
movl (%rax), %r15d
movl $0x0, (%rax)
movq %r14, %rdi
leaq -0x80(%rbp), %rsi
movl $0xa, %edx
callq 0x5510
cmpq %r14, -0x80(%rbp)
je 0x21c26
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x21c32
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x21c32
testl %ecx, %ecx
jne 0x202f5
movl %r15d, (%rbx)
movl %eax, -0x88(%rbp)
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x2031d
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0x4c8(%rbp), %r15
imulq $0x38, -0x60(%rbp), %r14
movq -0x108(%rbp), %rdi
addq %r14, %rdi
leaq -0xc0(%rbp), %rsi
callq 0x18ee8
testq %rax, %rax
je 0x20360
movq 0x30(%rax), %rsi
cmpq 0x38(%rax), %rsi
je 0x2038e
movl -0x88(%rbp), %ecx
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x30(%rax)
jmp 0x203a1
xorps %xmm0, %xmm0
movaps %xmm0, -0x80(%rbp)
movq $0x0, -0x70(%rbp)
movq -0x78(%rbp), %rsi
testq %rsi, %rsi
je 0x203bc
movl -0x88(%rbp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x78(%rbp)
leaq -0x80(%rbp), %r13
jmp 0x203cf
addq $0x28, %rax
movq %rax, %rdi
leaq -0x88(%rbp), %rdx
callq 0xe01e
movq -0x1f8(%rbp), %rax
movq -0x38(%rbp), %rcx
movq -0x90(%rbp), %rdx
orq %rdx, (%rax,%rcx,8)
jmp 0x20448
leaq -0x80(%rbp), %r13
movq %r13, %rdi
leaq -0x88(%rbp), %rdx
callq 0xe01e
movq -0x108(%rbp), %rbx
movq %r15, %rdi
leaq -0xc0(%rbp), %rsi
movq %r13, %rdx
callq 0x2281a
addq %r14, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x18fe4
movq -0x4a8(%rbp), %rdi
testq %rdi, %rdi
je 0x20411
movq -0x498(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x20433
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x20448
movq -0x70(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
addq $0x4, %r12
movq -0x238(%rbp), %rax
movq -0x58(%rbp), %rcx
cmpq 0x8(%rax,%rcx,8), %r12
jne 0x201f1
movq -0xf0(%rbp), %rax
movq -0x60(%rbp), %r12
movss (%rax,%r12,4), %xmm0
ucomiss 0x12b8a(%rip), %xmm0    # 0x33004
jne 0x20490
jp 0x20490
movq -0x170(%rbp), %rax
cmpl $0x0, (%rax,%r12,4)
jle 0x20793
movq -0x1b0(%rbp), %rax
movss (%rax,%r12,4), %xmm1
ucomiss 0x13494(%rip), %xmm1    # 0x33938
jbe 0x20793
ucomiss 0x12b53(%rip), %xmm0    # 0x33004
jne 0x204b5
jnp 0x204d0
movq -0x58(%rbp), %rdi
shlq $0x4, %rdi
addq -0x268(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0xb4ec
movq -0x170(%rbp), %rax
cmpl $0x0, (%rax,%r12,4)
jle 0x204f9
movq -0x58(%rbp), %rdi
shlq $0x4, %rdi
addq -0x298(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0xb4ec
movq -0x250(%rbp), %rax
cmpl $0x0, (%rax,%r12,4)
jle 0x20522
movq -0x58(%rbp), %rdi
shlq $0x4, %rdi
addq -0x280(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0xb4ec
movq -0x50(%rbp), %rax
movq %r12, %r14
shlq $0x5, %r14
leaq -0x140(%rbp), %rcx
movq %rcx, -0x150(%rbp)
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
addq %rsi, %rdx
leaq -0x150(%rbp), %r12
movq %r12, %rdi
callq 0x859a
movq %r12, %rdi
leaq 0x13f80(%rip), %rsi     # 0x344e0
callq 0x5710
leaq -0x70(%rbp), %rbx
leaq -0x80(%rbp), %r13
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
movq %r12, %rdi
callq 0x5110
leaq -0x118(%rbp), %rsi
movq %rsi, -0x128(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq -0x60(%rbp), %r12
je 0x205b7
movq %rdx, -0x128(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x118(%rbp)
jmp 0x205bd
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x120(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x128(%rbp), %rdi
leaq 0x13f6d(%rip), %rsi     # 0x34552
callq 0x5710
movq %rbx, -0x80(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2060a
movq %rdx, -0x80(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x70(%rbp)
jmp 0x20610
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x78(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rdi
movq %r13, %rsi
movl $0x10, %edx
callq 0x5720
movq -0x80(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2064c
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x2066e
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0x20690
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x53c0
movl $0x1, %edx
movq %r15, %rdi
leaq 0x139e8(%rip), %rsi     # 0x34087
callq 0x5420
movq -0x50(%rbp), %rax
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
movq %r15, %rdi
callq 0x5420
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x13e15(%rip), %rsi     # 0x344e0
callq 0x5420
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
movq %rbx, %rdi
callq 0x5420
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5250
movq -0x500(%rbp), %rax
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
movq %r15, %rdi
callq 0x5420
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5250
movq %r15, %rdi
callq 0x5530
movq -0x2b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
movq -0x18(%rax), %rax
movq -0x2b0(%rbp), %rcx
movq %rcx, -0x4c8(%rbp,%rax)
leaq -0x4c0(%rbp), %rdi
callq 0x5330
leaq -0x3d0(%rbp), %rdi
callq 0x5120
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x207b5
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x53c0
incq %r12
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
sarq $0x5, %rax
cmpq %r12, %rax
ja 0x20191
leaq -0x70(%rbp), %r12
leaq -0x80(%rbp), %r13
jmp 0x1f7a1
movl $0x1, %ebx
testb $0x1, -0x81(%rbp)
jne 0x20fea
leaq 0x13abf(%rip), %rsi     # 0x342b2
movq -0x200(%rbp), %rdi
callq 0x50f0
testl %eax, %eax
je 0x20a33
xorps %xmm0, %xmm0
movaps %xmm0, -0xf0(%rbp)
movq $0x0, -0xe0(%rbp)
movl $0x0, -0x7a0(%rbp)
movq -0x48(%rbp), %rax
cmpq -0x50(%rbp), %rax
je 0x208ec
xorl %eax, %eax
movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000
leaq 0x3f(%r15), %r12
leaq -0xf0(%rbp), %rbx
leaq -0x7a0(%rbp), %r14
movq -0x268(%rbp), %rcx
leaq (%rax,%rax,2), %rdx
shlq $0x4, %rdx
cmpq $0x0, 0x28(%rcx,%rdx)
jne 0x208c7
leaq 0x3f(%rax), %rcx
testq %rax, %rax
cmovnsq %rax, %rcx
sarq $0x6, %rcx
shlq $0x3, %rcx
addq -0x1f8(%rbp), %rcx
movq %rax, %rdx
andq %r12, %rdx
xorl %esi, %esi
cmpq %r15, %rdx
setbe %sil
movq -0x8(%rcx,%rsi,8), %rcx
btq %rax, %rcx
jb 0x208c7
movq -0xe8(%rbp), %rsi
cmpq -0xe0(%rbp), %rsi
je 0x208bc
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0xe8(%rbp)
jmp 0x208c7
movq %rbx, %rdi
movq %r14, %rdx
callq 0xe01e
movslq -0x7a0(%rbp), %rax
incq %rax
movl %eax, -0x7a0(%rbp)
movq -0x48(%rbp), %rcx
subq -0x50(%rbp), %rcx
sarq $0x5, %rcx
cmpq %rax, %rcx
ja 0x20852
leaq -0x9e0(%rbp), %rbx
movq -0x200(%rbp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x7f73
testl %eax, %eax
jne 0x20fca
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq -0x9e0(%rbp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %edx
leaq -0x9e0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x56c0
leaq -0x7a0(%rbp), %rdi
callq 0x5280
leaq -0x790(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
callq 0x5420
leaq -0x118(%rbp), %rax
movq %rax, -0x10(%rax)
xorl %r12d, %r12d
movq %r12, -0x8(%rax)
movb $0x0, (%rax)
leaq -0xb8(%rbp), %rax
movl $0x0, (%rax)
movq %r12, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %r12, 0x20(%rax)
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
leaq -0x7a0(%rbp), %rbx
leaq -0x128(%rbp), %r14
leaq 0x13b9f(%rip), %r15     # 0x34556
movl $0x0, -0x38(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
movl $0x9, %edx
callq 0x56c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x20e74
movq %r14, %rdi
movq %r15, %rsi
callq 0x50f0
movl %r12d, %ecx
movl %r12d, %edx
testl %eax, %eax
je 0x20a28
movq %r14, %rdi
leaq 0x13b5a(%rip), %rsi     # 0x34559
callq 0x50f0
testl %eax, %eax
je 0x20a22
leaq -0xc0(%rbp), %rdi
movq %r14, %rsi
callq 0x2271a
movl %r12d, (%rax)
movl %r13d, %ecx
movl %r12d, %edx
jmp 0x20a28
movl %r13d, %ecx
movl -0x38(%rbp), %edx
incl %r12d
movl %ecx, %r13d
movl %edx, -0x38(%rbp)
jmp 0x209be
leaq -0x798(%rbp), %rcx
movl $0x0, (%rcx)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
movq -0x48(%rbp), %rax
cmpq -0x50(%rbp), %rax
je 0x20aa3
xorl %r14d, %r14d
leaq -0x7a0(%rbp), %rbx
movq -0x108(%rbp), %rax
imulq $0x38, %r14, %rcx
leaq (%rax,%rcx), %r15
addq $0x10, %r15
movq (%r15), %r15
testq %r15, %r15
je 0x20a8f
leaq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0xb4ec
jmp 0x20a79
incq %r14
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
sarq $0x5, %rax
cmpq %r14, %rax
ja 0x20a66
movq 0x20516(%rip), %rbx     # 0x40fc0
leaq 0x13b5f(%rip), %rsi     # 0x34610
movl $0x6, %edx
movq %rbx, %rdi
callq 0x5420
movq -0x788(%rbp), %r14
leaq -0x798(%rbp), %rax
cmpq %rax, %r14
je 0x20b16
movq 0x204e8(%rip), %r15     # 0x40fc0
leaq 0x137d2(%rip), %r12     # 0x342b1
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x5420
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
movq %r15, %rdi
callq 0x5420
movq %r14, %rdi
callq 0x5430
movq %rax, %r14
leaq -0x798(%rbp), %rax
cmpq %rax, %r14
jne 0x20adf
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq 0x2048c(%rip), %rdi     # 0x40fc0
callq 0x5030
movq %rax, %rdi
callq 0x5250
movq -0x50(%rbp), %rax
cmpq %rax, -0x48(%rbp)
je 0x20e61
xorl %r15d, %r15d
movq %r15, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq 0x20457(%rip), %rdi     # 0x40fc0
callq 0x5420
movl $0x1, %edx
movq %rax, %rdi
leaq 0x13734(%rip), %rsi     # 0x342b1
callq 0x5420
movq -0x788(%rbp), %r14
leaq -0x798(%rbp), %rax
cmpq %rax, %r14
je 0x20e14
leaq -0x4b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
leaq -0x4c8(%rbp), %rdi
leaq 0x136fd(%rip), %rdx     # 0x342b2
movq %rdx, %rsi
callq 0x862a
movq %r15, %rbx
leaq (%r15,%r15,2), %r12
shlq $0x4, %r12
movq -0x268(%rbp), %rdi
addq %r12, %rdi
leaq 0x20(%r14), %r15
movq %r15, %rsi
callq 0xb694
movq -0x268(%rbp), %rcx
addq %r12, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x20c13
movq -0x4c0(%rbp), %rdx
movl $0x1, %r8d
leaq -0x4c8(%rbp), %rdi
xorl %esi, %esi
leaq 0x13a67(%rip), %rcx     # 0x34675
callq 0x55e0
movq -0x298(%rbp), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0xb694
movq -0x298(%rbp), %rcx
addq %r12, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x20c4b
leaq -0x4c8(%rbp), %rdi
leaq 0x12801(%rip), %rsi     # 0x33447
callq 0x5710
movq -0x280(%rbp), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0xb694
movq -0x280(%rbp), %rcx
addq %r12, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x20c83
leaq -0x4c8(%rbp), %rdi
leaq 0x139f5(%rip), %rsi     # 0x34673
callq 0x5710
imulq $0x38, %rbx, %r12
movq -0x108(%rbp), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0x22f6e
movq 0x8(%rax), %rcx
cmpq (%rax), %rcx
je 0x20ce9
movq -0x108(%rbp), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0x22f6e
movq 0x8(%rax), %rcx
subq (%rax), %rcx
cmpq $0x4, %rcx
jne 0x20d0c
addq -0x108(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x22f6e
movq (%rax), %rax
movl (%rax), %esi
movq 0x202e1(%rip), %rdi     # 0x40fc0
callq 0x5690
jmp 0x20daa
movl $0x1, %edx
movq 0x202cb(%rip), %r15     # 0x40fc0
movq %r15, %rdi
leaq 0x13974(%rip), %rsi     # 0x34673
callq 0x5420
movq %r15, %rax
jmp 0x20dc0
xorl %r13d, %r13d
movq -0x108(%rbp), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0x22f6e
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
decq %rcx
movq -0x108(%rbp), %rdi
addq %r12, %rdi
cmpq %r13, %rcx
jbe 0x20d72
movq %r15, %rsi
callq 0x22f6e
movq (%rax), %rax
movl (%rax,%r13,4), %esi
movq 0x2026c(%rip), %rdi     # 0x40fc0
callq 0x5690
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1390f(%rip), %rsi     # 0x34677
callq 0x5420
incq %r13
jmp 0x20d0f
movq %r15, %rsi
callq 0x22f6e
movq %rax, %r13
addq -0x108(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x22f6e
movq 0x8(%rax), %rcx
subq (%rax), %rcx
movq (%r13), %rax
movl -0x4(%rax,%rcx), %esi
movq 0x2021b(%rip), %rdi     # 0x40fc0
callq 0x5690
movq -0x4c8(%rbp), %rsi
movq -0x4c0(%rbp), %rdx
movq %rax, %rdi
callq 0x5420
movl $0x1, %edx
movq %rax, %rdi
leaq 0x134e2(%rip), %rsi     # 0x342b1
callq 0x5420
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x20df6
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq %r14, %rdi
callq 0x5430
movq %rax, %r14
leaq -0x798(%rbp), %rax
cmpq %rax, %r14
movq %rbx, %r15
jne 0x20b99
movq 0x201a5(%rip), %rcx     # 0x40fc0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq 0x20187(%rip), %rdi     # 0x40fc0
callq 0x5030
movq %rax, %rdi
callq 0x5250
incq %r15
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %r15, %rcx
ja 0x20b52
leaq -0x7a0(%rbp), %rdi
callq 0xacb2
xorl %ebx, %ebx
jmp 0x20fea
cmpl $-0x1, %r13d
je 0x20ecb
movq -0x98(%rbp), %rax
movq -0x108(%rbp), %rcx
cmpq 0x18(%rcx), %rax
jne 0x20ee8
movq -0xa8(%rbp), %rbx
leaq -0xb8(%rbp), %rax
cmpq %rax, %rbx
je 0x210b3
movq -0x108(%rbp), %rdi
leaq 0x20(%rbx), %rsi
callq 0x18ee8
testq %rax, %rax
je 0x21ad4
movq %rbx, %rdi
callq 0x5270
movq %rax, %rbx
jmp 0x20e95
movq 0x2011e(%rip), %rbx     # 0x40ff0
leaq 0x1368f(%rip), %rsi     # 0x34568
movl $0x2e, %edx
movq %rbx, %rdi
callq 0x5420
jmp 0x20f54
movq 0x20101(%rip), %rdi     # 0x40ff0
leaq 0x136a1(%rip), %rsi     # 0x34597
movl $0xd, %edx
callq 0x5420
movq -0x98(%rbp), %rsi
movq 0x200e2(%rip), %rdi     # 0x40ff0
callq 0x5240
movq %rax, %rbx
leaq 0x13688(%rip), %rsi     # 0x345a5
movl $0x21, %edx
movq %rax, %rdi
callq 0x5420
movq -0x108(%rbp), %rax
movq 0x18(%rax), %rsi
movq %rbx, %rdi
callq 0x5240
movq %rax, %rbx
leaq 0x13680(%rip), %rsi     # 0x345c7
movl $0x1d, %edx
movq %rax, %rdi
callq 0x5420
movq %rbx, %rdi
callq 0x5190
movq %rax, %rdi
callq 0x5190
leaq -0xc0(%rbp), %rdi
callq 0x2286e
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x20f92
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x53c0
movq 0x1ffef(%rip), %rsi     # 0x40f88
leaq -0x7a0(%rbp), %rdi
callq 0x52c0
leaq -0x720(%rbp), %rdi
callq 0x5120
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x20fca
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x20fe5
movq -0xe0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movl $0x1, %ebx
movq -0x4e8(%rbp), %rdi
leaq -0x4d8(%rbp), %rax
cmpq %rax, %rdi
je 0x2100c
movq -0x4d8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x1f8(%rbp), %rdi
testq %rdi, %rdi
je 0x2104a
movq -0x1d8(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
xorl %eax, %eax
movq %rax, -0x1f8(%rbp)
movl %eax, -0x1f0(%rbp)
movq %rax, -0x1e8(%rbp)
movl %eax, -0x1e0(%rbp)
movq %rax, -0x1d8(%rbp)
leaq -0x280(%rbp), %rdi
callq 0x22796
leaq -0x298(%rbp), %rdi
callq 0x22796
leaq -0x268(%rbp), %rdi
callq 0x22796
leaq -0x108(%rbp), %rdi
callq 0x227d8
movq -0x2a0(%rbp), %rsp
leaq -0x50(%rbp), %rdi
callq 0xabee
leaq -0x9e0(%rbp), %rdi
callq 0x50d0
leaq -0x7d8(%rbp), %rdi
callq 0xdf64
movl %ebx, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1ff06(%rip), %rdi     # 0x40fc0
leaq 0x1354f(%rip), %rsi     # 0x34610
movl $0x6, %edx
callq 0x5420
movq 0x1feee(%rip), %rdi     # 0x40fc0
leaq 0x131d8(%rip), %rsi     # 0x342b1
movl $0x1, %edx
callq 0x5420
movq 0x1fed6(%rip), %rdi     # 0x40fc0
leaq 0x13465(%rip), %rsi     # 0x34556
movl $0x2, %edx
callq 0x5420
movq -0xa8(%rbp), %rbx
leaq -0xb8(%rbp), %rax
cmpq %rax, %rbx
je 0x21153
movq 0x1feab(%rip), %r14     # 0x40fc0
leaq 0x13195(%rip), %r15     # 0x342b1
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x5420
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq %r14, %rdi
callq 0x5420
movq %rbx, %rdi
callq 0x5270
movq %rax, %rbx
leaq -0xb8(%rbp), %rax
cmpq %rax, %rbx
jne 0x2111c
movq 0x1fe66(%rip), %rdi     # 0x40fc0
callq 0x5190
leaq -0x140(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movslq -0x38(%rbp), %rax
movq %rax, -0xc8(%rbp)
movslq %r13d, %rax
xorl %r12d, %r12d
leaq -0x448(%rbp), %r13
shlq $0x5, %rax
movq %rax, -0x90(%rbp)
leaq -0x9e0(%rbp), %r14
movq -0x9e0(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %edx
movq %r14, %rdi
leaq -0x150(%rbp), %rsi
callq 0x56c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x21682
leaq -0x4c8(%rbp), %rdi
callq 0x5280
movq -0x150(%rbp), %rsi
movq -0x148(%rbp), %rdx
leaq -0x4b8(%rbp), %rdi
callq 0x5420
leaq -0x128(%rbp), %rbx
incl %r12d
xorps %xmm0, %xmm0
movaps %xmm0, -0x1b0(%rbp)
movq $0x0, -0x1a0(%rbp)
leaq -0x4c8(%rbp), %rdi
movq %rbx, %rsi
movl $0x9, %edx
callq 0x56c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x21253
leaq -0x1b0(%rbp), %rdi
movq %rbx, %rsi
callq 0x855c
jmp 0x21220
movq -0x1a8(%rbp), %rax
subq -0x1b0(%rbp), %rax
sarq $0x5, %rax
cmpq -0xc8(%rbp), %rax
jae 0x2134a
movl $0x1f, %edx
movq 0x1fd72(%rip), %rdi     # 0x40ff0
leaq 0x13392(%rip), %rsi     # 0x34617
callq 0x5420
movq 0x1fd5f(%rip), %rdi     # 0x40ff0
movl %r12d, %esi
callq 0x5690
movq %rax, %r15
movl $0x15, %edx
movq %rax, %rdi
leaq 0x1338c(%rip), %rsi     # 0x34637
callq 0x5420
movq %r15, %rdi
movl -0x38(%rbp), %esi
callq 0x5690
movq %rax, %r15
movl $0x13, %edx
movq %rax, %rdi
leaq 0x13380(%rip), %rsi     # 0x3464d
callq 0x5420
movq -0x1a8(%rbp), %rsi
subq -0x1b0(%rbp), %rsi
sarq $0x5, %rsi
movq %r15, %rdi
callq 0x5240
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5250
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movl $0x1, %ebx
movq %rax, %rdi
callq 0x5250
jmp 0x2164a
movl %r12d, -0x1d0(%rbp)
movq -0xf0(%rbp), %rcx
movq -0xe8(%rbp), %rax
movq %rcx, -0x60(%rbp)
cmpq %rax, %rcx
je 0x21621
movq -0xa8(%rbp), %r13
leaq -0xb8(%rbp), %rax
cmpq %rax, %r13
je 0x21472
movb $0x1, %bl
movq -0x60(%rbp), %rax
movslq (%rax), %rax
imulq $0x38, %rax, %rdi
addq -0x108(%rbp), %rdi
leaq 0x20(%r13), %rsi
callq 0x18ee8
movq %rax, %r15
testq %rax, %rax
je 0x21434
movslq 0x40(%r13), %rax
movq -0x1b0(%rbp), %rcx
shlq $0x5, %rax
movq (%rcx,%rax), %r14
callq 0x5050
movq %rax, %r12
movl (%rax), %eax
movl %eax, -0x58(%rbp)
movl $0x0, (%r12)
movq %r14, %rdi
leaq -0x190(%rbp), %rsi
movl $0xa, %edx
callq 0x5510
cmpq %r14, -0x190(%rbp)
je 0x21c3e
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x21c4a
movl (%r12), %ecx
cmpl $0x22, %ecx
je 0x21c4a
testl %ecx, %ecx
jne 0x21427
movl -0x58(%rbp), %ecx
movl %ecx, (%r12)
movq 0x28(%r15), %rcx
cmpl %eax, (%rcx)
jne 0x2144c
movzbl %bl, %ebx
jmp 0x2144e
movl $0x11, %edx
movq 0x1fbb0(%rip), %rdi     # 0x40ff0
leaq 0x1321a(%rip), %rsi     # 0x34661
callq 0x5420
xorl %ebx, %ebx
movq %r13, %rdi
callq 0x5270
movq %rax, %r13
leaq -0xb8(%rbp), %rax
cmpq %rax, %r13
jne 0x21385
testb $0x1, %bl
je 0x21614
xorps %xmm0, %xmm0
movaps %xmm0, -0x170(%rbp)
movq $0x0, -0x160(%rbp)
movq -0x1b0(%rbp), %r14
addq -0x90(%rbp), %r14
movl $0x1, %ecx
movq %r14, %rdi
leaq 0x1303c(%rip), %rsi     # 0x344e0
movq $-0x1, %rdx
callq 0x5740
leaq 0x1(%rax), %rdx
leaq -0x190(%rbp), %rdi
movq %r14, %rsi
movq $-0x1, %rcx
callq 0x53e0
movq -0x190(%rbp), %r14
callq 0x5050
movq %rax, %r12
movl (%rax), %ebx
movl $0x0, (%rax)
movq %r14, %rdi
leaq -0x250(%rbp), %rsi
movl $0xa, %edx
callq 0x5510
cmpq %r14, -0x250(%rbp)
je 0x21c62
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
leaq -0x180(%rbp), %r13
leaq -0x190(%rbp), %r14
jb 0x21c56
movl (%r12), %ecx
cmpl $0x22, %ecx
je 0x21c56
testl %ecx, %ecx
jne 0x2153f
movl %ebx, (%r12)
movl %eax, -0x238(%rbp)
movq -0x168(%rbp), %rsi
cmpq -0x160(%rbp), %rsi
je 0x21564
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x168(%rbp)
jmp 0x21577
leaq -0x170(%rbp), %rdi
leaq -0x238(%rbp), %rdx
callq 0x22d68
movq -0x190(%rbp), %rdi
cmpq %r13, %rdi
je 0x21592
movq -0x180(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x60(%rbp), %rax
movslq (%rax), %rbx
movq -0x108(%rbp), %r15
movq %r13, -0x190(%rbp)
movq %r14, %rdi
leaq 0x12fa5(%rip), %rsi     # 0x34556
leaq 0x12fa0(%rip), %rdx     # 0x34558
callq 0x862a
imulq $0x38, %rbx, %rax
addq %rax, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x22e44
movq %rax, %rdi
leaq -0x170(%rbp), %rsi
callq 0x12e6a
movq -0x190(%rbp), %rdi
cmpq %r13, %rdi
je 0x215f9
movq -0x180(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x170(%rbp), %rdi
testq %rdi, %rdi
je 0x21614
movq -0x160(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x60(%rbp), %rcx
addq $0x4, %rcx
jmp 0x21358
cmpq -0xf0(%rbp), %rax
movl $0x0, %ebx
movl $0x2c, %eax
cmovel %eax, %ebx
leaq -0x9e0(%rbp), %r14
movl -0x1d0(%rbp), %r12d
leaq -0x448(%rbp), %r13
leaq -0x1b0(%rbp), %rdi
callq 0xabee
leaq -0x4c8(%rbp), %rdi
movq 0x1f924(%rip), %rsi     # 0x40f88
callq 0x52c0
movq %r13, %rdi
callq 0x5120
testl %ebx, %ebx
je 0x2119f
cmpl $0x2c, %ebx
jne 0x21b6d
leaq -0x9e0(%rbp), %rdi
callq 0x50b0
movq -0x50(%rbp), %rax
movb $0x1, %r14b
cmpq %rax, -0x48(%rbp)
je 0x21b70
xorl %r15d, %r15d
leaq -0x4c8(%rbp), %r13
movq %r15, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq 0x1f900(%rip), %rdi     # 0x40fc0
callq 0x5420
movl $0x1, %edx
movq %rax, %rdi
leaq 0x12bdd(%rip), %rsi     # 0x342b1
callq 0x5420
movq -0x108(%rbp), %rbx
leaq -0x4b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
movq %r13, %rdi
leaq 0x12e5e(%rip), %rsi     # 0x34556
leaq 0x12e59(%rip), %rdx     # 0x34558
callq 0x862a
imulq $0x38, %r15, %r14
addq %r14, %rbx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x22e44
movq 0x8(%rax), %rbx
subq (%rax), %rbx
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x2173f
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
cmpq $0x4, %rbx
jne 0x217b3
movq -0x108(%rbp), %rbx
leaq -0x4b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
movq %r13, %rdi
leaq 0x12df2(%rip), %rsi     # 0x34556
leaq 0x12ded(%rip), %rdx     # 0x34558
callq 0x862a
addq %r14, %rbx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x22e44
movq (%rax), %rax
movl (%rax), %esi
movq 0x1f836(%rip), %rdi     # 0x40fc0
callq 0x5690
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x217cb
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x217cb
movl $0x1, %edx
movq 0x1f801(%rip), %rdi     # 0x40fc0
leaq 0x12ead(%rip), %rsi     # 0x34673
callq 0x5420
movq -0xa8(%rbp), %rbx
leaq -0xb8(%rbp), %rax
cmpq %rax, %rbx
movq %r15, -0x60(%rbp)
je 0x21a7f
leaq -0x4b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
movq %r13, %r12
movq %r13, %rdi
leaq 0x12ab1(%rip), %rdx     # 0x342b2
movq %rdx, %rsi
callq 0x862a
leaq (%r15,%r15,2), %r13
shlq $0x4, %r13
movq -0x268(%rbp), %rdi
addq %r13, %rdi
leaq 0x20(%rbx), %r15
movq %r15, %rsi
callq 0xb694
movq -0x268(%rbp), %rcx
addq %r13, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x21858
movq -0x4c0(%rbp), %rdx
movl $0x1, %r8d
movq %r12, %rdi
xorl %esi, %esi
leaq 0x12e22(%rip), %rcx     # 0x34675
callq 0x55e0
movq -0x298(%rbp), %rdi
addq %r13, %rdi
movq %r15, %rsi
callq 0xb694
movq -0x298(%rbp), %rcx
addq %r13, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x2188c
movq %r12, %rdi
leaq 0x11bc0(%rip), %rsi     # 0x33447
callq 0x5710
movq -0x280(%rbp), %rdi
addq %r13, %rdi
movq %r15, %rsi
callq 0xb694
movq -0x280(%rbp), %rcx
addq %r13, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x218c0
movq %r12, %rdi
leaq 0x12db8(%rip), %rsi     # 0x34673
callq 0x5710
movq -0x108(%rbp), %rdi
addq %r14, %rdi
movq %r15, %rsi
callq 0x22f6e
movq 0x8(%rax), %rcx
cmpq (%rax), %rcx
je 0x2193a
movq -0x108(%rbp), %rdi
addq %r14, %rdi
movq %r15, %rsi
callq 0x22f6e
movq 0x8(%rax), %rcx
subq (%rax), %rcx
cmpq $0x4, %rcx
jne 0x2196f
movl $0x1, %edx
movq 0x1f6ba(%rip), %rdi     # 0x40fc0
leaq 0x129a4(%rip), %rsi     # 0x342b1
callq 0x5420
movq -0x108(%rbp), %rdi
addq %r14, %rdi
movq %r15, %rsi
callq 0x22f6e
movq (%rax), %rax
movl (%rax), %esi
movq 0x1f690(%rip), %rdi     # 0x40fc0
callq 0x5690
jmp 0x21a25
movl $0x1, %edx
movq 0x1f67a(%rip), %rdi     # 0x40fc0
leaq 0x12964(%rip), %rsi     # 0x342b1
callq 0x5420
movl $0x1, %edx
movq 0x1f662(%rip), %rdi     # 0x40fc0
leaq 0x12d0e(%rip), %rsi     # 0x34673
callq 0x5420
jmp 0x21a3b
movl $0x1, %edx
movq 0x1f645(%rip), %rdi     # 0x40fc0
leaq 0x1292f(%rip), %rsi     # 0x342b1
callq 0x5420
xorl %r13d, %r13d
movq -0x108(%rbp), %rdi
addq %r14, %rdi
movq %r15, %rsi
callq 0x22f6e
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
decq %rcx
movq -0x108(%rbp), %rdi
addq %r14, %rdi
cmpq %r13, %rcx
jbe 0x219ed
movq %r15, %rsi
callq 0x22f6e
movq (%rax), %rax
movl (%rax,%r13,4), %esi
movq 0x1f5f1(%rip), %rdi     # 0x40fc0
callq 0x5690
movl $0x1, %edx
movq %rax, %rdi
leaq 0x12c94(%rip), %rsi     # 0x34677
callq 0x5420
incq %r13
jmp 0x2198a
movq %r15, %rsi
callq 0x22f6e
movq %rax, %r13
movq -0x108(%rbp), %rdi
addq %r14, %rdi
movq %r15, %rsi
callq 0x22f6e
movq 0x8(%rax), %rcx
subq (%rax), %rcx
movq (%r13), %rax
movl -0x4(%rax,%rcx), %esi
movq 0x1f5a0(%rip), %rdi     # 0x40fc0
callq 0x5690
movq -0x4c8(%rbp), %rsi
movq -0x4c0(%rbp), %rdx
movq %rax, %rdi
callq 0x5420
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x21a5d
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq %rbx, %rdi
callq 0x5270
movq %rax, %rbx
leaq -0xb8(%rbp), %rax
cmpq %rax, %rbx
movq -0x60(%rbp), %r15
movq %r12, %r13
jne 0x217e6
movq 0x1f53a(%rip), %rcx     # 0x40fc0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq 0x1f51c(%rip), %rdi     # 0x40fc0
callq 0x5030
movq %rax, %rdi
callq 0x5250
incq %r15
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %r15, %rcx
ja 0x216a9
movb $0x1, %r14b
jmp 0x21b70
movq 0x1f515(%rip), %rdi     # 0x40ff0
leaq 0x12b03(%rip), %rsi     # 0x345e5
movl $0x13, %edx
callq 0x5420
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq 0x1f4f5(%rip), %rdi     # 0x40ff0
callq 0x5420
movq %rax, %rbx
leaq 0x12aef(%rip), %rsi     # 0x345f9
movl $0x16, %edx
movq %rax, %rdi
callq 0x5420
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5250
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5250
jmp 0x20f64
xorl %r14d, %r14d
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0x21b92
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0xc0(%rbp), %rdi
callq 0x2286e
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x21bc0
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x53c0
movq 0x1f3c1(%rip), %rsi     # 0x40f88
leaq -0x7a0(%rbp), %rdi
callq 0x52c0
leaq -0x720(%rbp), %rdi
callq 0x5120
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x21bf8
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x21c13
movq -0xe0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movl $0x1, %ebx
testb %r14b, %r14b
jne 0x20e6d
jmp 0x20fea
leaq 0x126a8(%rip), %rdi     # 0x342d5
callq 0x51f0
leaq 0x1269c(%rip), %rdi     # 0x342d5
callq 0x5550
leaq 0x12690(%rip), %rdi     # 0x342d5
callq 0x51f0
leaq 0x12684(%rip), %rdi     # 0x342d5
callq 0x5550
leaq 0x12678(%rip), %rdi     # 0x342d5
callq 0x5550
leaq 0x1266c(%rip), %rdi     # 0x342d5
callq 0x51f0
movq %rax, %r14
callq 0x5630
jmp 0x21ec4
movq %rax, %rdi
callq 0x7d6a
jmp 0x21de2
jmp 0x21d9d
movq %rax, %r14
jmp 0x2201c
jmp 0x21c9c
jmp 0x21de2
movq %rax, %r14
jmp 0x2203b
movq %rax, %r14
jmp 0x21f23
jmp 0x21de2
jmp 0x21cc2
jmp 0x21fa7
jmp 0x21de2
jmp 0x21fa7
movq %rax, %r14
jmp 0x22054
jmp 0x21d9d
jmp 0x21d9d
jmp 0x21de2
jmp 0x21ed4
movq %rax, %r14
jmp 0x2231f
movq %rax, %r14
jmp 0x2232b
movq %rax, %r14
jmp 0x22337
movq %rax, %r14
jmp 0x22343
jmp 0x21d00
movq %rax, %r14
jmp 0x2234f
movq %rax, %r14
jmp 0x21d57
jmp 0x21f5e
jmp 0x21d9d
movq %rax, %r14
jmp 0x22358
movq %rax, %r14
jmp 0x22364
jmp 0x21f14
jmp 0x21de2
jmp 0x21d33
movq %rax, %r14
jmp 0x21d79
movq %rax, %r14
movq -0x190(%rbp), %rdi
cmpq %r13, %rdi
jne 0x21d6a
jmp 0x21d79
movq %rax, %r14
cmpl $0x0, (%r12)
jne 0x21d57
movl %ebx, (%r12)
movq -0x190(%rbp), %rdi
leaq -0x180(%rbp), %rax
cmpq %rax, %rdi
je 0x21d79
movq -0x180(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x170(%rbp), %rdi
testq %rdi, %rdi
je 0x21f17
movq -0x160(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
jmp 0x21f17
movq %rax, %r14
jmp 0x21fee
movq %rax, %r14
jmp 0x2219c
movq %rax, %r14
jmp 0x221b4
movq %rax, %r14
jmp 0x221ea
movq %rax, %r14
jmp 0x22220
movq %rax, %r14
jmp 0x221a8
movq %rax, %r14
jmp 0x221cf
movq %rax, %r14
jmp 0x22205
jmp 0x21fa7
movq %rax, %r14
jmp 0x21fcc
jmp 0x21fa7
jmp 0x21f5e
jmp 0x21ee8
jmp 0x22109
jmp 0x21e1a
movq %rax, %r14
movq -0x80(%rbp), %rdi
cmpq %rbx, %rdi
je 0x21e22
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x21e22
movq %rax, %r14
jmp 0x21e44
movq %rax, %r14
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x21e44
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0x2213b
movq -0x140(%rbp), %rsi
jmp 0x22133
jmp 0x21f14
movq %rax, %r14
movq -0x4c8(%rbp), %rsi
testq %rsi, %rsi
je 0x21e91
leaq -0x4c8(%rbp), %rdi
callq 0x5979
jmp 0x21e91
jmp 0x21f56
movq %rax, %r14
leaq -0x70(%rbp), %r12
jmp 0x220b2
movq %rax, %r14
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x21ec4
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x21ec4
movq %rax, %r14
leaq -0x70(%rbp), %r12
jmp 0x220be
jmp 0x21f5e
jmp 0x21ed4
movq %rax, %r14
jmp 0x222e1
jmp 0x21f4e
jmp 0x22109
jmp 0x22231
movq %rax, %r14
jmp 0x2215d
jmp 0x21fa7
movq %rax, %r14
cmpl $0x0, (%r12)
jne 0x21f17
movl -0x58(%rbp), %eax
movl %eax, (%r12)
jmp 0x21f17
jmp 0x2228e
jmp 0x2228e
jmp 0x21f5e
movq %rax, %r14
leaq -0x1b0(%rbp), %rdi
callq 0xabee
movq 0x1f05e(%rip), %rsi     # 0x40f88
leaq -0x4c8(%rbp), %rdi
callq 0x52c0
leaq -0x448(%rbp), %rdi
callq 0x5120
jmp 0x21fcc
jmp 0x21f8b
jmp 0x2207d
movq %rax, %r14
jmp 0x220a6
movq %rax, %r14
jmp 0x220be
movq %rax, %r14
jmp 0x222b3
movq %rax, %r14
leaq -0x4c8(%rbp), %rdi
callq 0x55a0
jmp 0x2213b
movq %rax, %r14
leaq -0x4c8(%rbp), %rdi
callq 0x18442
jmp 0x21f8e
movq %rax, %r14
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x2213b
movq -0x70(%rbp), %rsi
subq %rdi, %rsi
jmp 0x22136
movq %rax, %r14
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x21fcc
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0x21fee
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0xc0(%rbp), %rdi
callq 0x2286e
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x2201c
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x53c0
movq 0x1ef65(%rip), %rsi     # 0x40f88
leaq -0x7a0(%rbp), %rdi
callq 0x52c0
leaq -0x720(%rbp), %rdi
callq 0x5120
leaq -0x70(%rbp), %rax
movq -0x80(%rbp), %rdi
cmpq %rax, %rdi
je 0x22054
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x222bf
movq -0xe0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
jmp 0x222bf
movq %rax, %r14
jmp 0x22084
movq %rax, %r14
leaq -0x70(%rbp), %r12
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x220a6
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0x150(%rbp), %rdi
callq 0x226ea
leaq -0x128(%rbp), %rdi
callq 0xabee
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x2213b
movq -0x70(%rbp), %rsi
jmp 0x22133
jmp 0x22231
movq %rax, %r14
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x22234
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x22234
jmp 0x22109
jmp 0x22109
jmp 0x2228e
movq %rax, %r14
jmp 0x2213b
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x22119
movl %r15d, (%rbx)
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x2213b
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x2215d
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0x608(%rbp), %rbx
leaq 0x1ea8d(%rip), %rax     # 0x40bf8
movq %rax, -0x10(%rbx)
leaq 0x1eaaa(%rip), %rax     # 0x40c20
movq %rax, (%rbx)
movq $0x0, -0x8(%rbx)
leaq 0x1e9b0(%rip), %rsi     # 0x40b38
leaq -0x7a0(%rbp), %rdi
callq 0x7954
movq %rbx, %rdi
callq 0x5120
leaq -0x500(%rbp), %rdi
callq 0xabee
leaq -0x238(%rbp), %rdi
callq 0x12b8c
movq -0x250(%rbp), %rdi
testq %rdi, %rdi
je 0x221cf
movq -0x240(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x170(%rbp), %rdi
testq %rdi, %rdi
je 0x221ea
movq -0x160(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x1b0(%rbp), %rdi
testq %rdi, %rdi
je 0x22205
movq -0x1a0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x22220
movq -0xe0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x190(%rbp), %rdi
callq 0xabee
jmp 0x222bf
movq %rax, %r14
movq -0x7a0(%rbp), %rdi
testq %rdi, %rdi
je 0x22272
movq -0x780(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
xorl %eax, %eax
movq %rax, -0x7a0(%rbp)
movl %eax, -0x798(%rbp)
movq %rax, -0x790(%rbp)
movl %eax, -0x788(%rbp)
movq %rax, -0x780(%rbp)
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x222e1
movq -0x4b8(%rbp), %rsi
jmp 0x222d9
movq %rax, %r14
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x222b3
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0x7a0(%rbp), %rdi
callq 0xacb2
movq -0x4e8(%rbp), %rdi
leaq -0x4d8(%rbp), %rax
cmpq %rax, %rdi
je 0x222e1
movq -0x4d8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x1f8(%rbp), %rdi
testq %rdi, %rdi
je 0x2231f
movq -0x1d8(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
xorl %eax, %eax
movq %rax, -0x1f8(%rbp)
movl %eax, -0x1f0(%rbp)
movq %rax, -0x1e8(%rbp)
movl %eax, -0x1e0(%rbp)
movq %rax, -0x1d8(%rbp)
leaq -0x280(%rbp), %rdi
callq 0x22796
leaq -0x298(%rbp), %rdi
callq 0x22796
leaq -0x268(%rbp), %rdi
callq 0x22796
leaq -0x108(%rbp), %rdi
callq 0x227d8
leaq -0x50(%rbp), %rdi
callq 0xabee
leaq -0x9e0(%rbp), %rdi
callq 0x50d0
leaq -0x7d8(%rbp), %rdi
callq 0xdf64
movq %r14, %rdi
callq 0x56a0