// File: /workspace/github_cpp_makefile_star2_O3/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, -0x198(%rbp)
movq %rsi, -0x1f8(%rbp)
movq %rdi, %rbx
leaq -0x508(%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 0x7f3f
movl $0x1, %ebx
testl %eax, %eax
jne 0x20c82
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
leaq -0x9e0(%rbp), %rdi
leaq -0xcc(%rbp), %rsi
callq 0x9684
movq %rsp, -0x2a8(%rbp)
movl -0xcc(%rbp), %eax
addl %eax, %eax
cltq
imulq $0x55555556, %rax, %rcx # imm = 0x55555556
movq %rcx, %rax
shrq $0x3f, %rax
shrq $0x20, %rcx
addl %eax, %ecx
movq %rcx, -0x38(%rbp)
leaq 0xf(%rcx), %rax
andq $-0x10, %rax
movq %rsp, %r14
subq %rax, %r14
movq %r14, %rsp
movq -0x48(%rbp), %r15
subq -0x50(%rbp), %r15
sarq $0x5, %r15
js 0x1ef79
xorps %xmm0, %xmm0
cvtsi2ss %r15, %xmm0
jmp 0x1ef94
movq %r15, %rax
shrq %rax
movl %r15d, %ecx
andl $0x1, %ecx
orq %rax, %rcx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
divss 0x146e4(%rip), %xmm0    # 0x33680
callq 0x51e0
cvttss2si %xmm0, %ecx
movq %rcx, -0x58(%rbp)
leaq 0xf(%rcx), %rax
andq $-0x10, %rax
movq %rsp, %rcx
subq %rax, %rcx
movq %rcx, -0x88(%rbp)
movq %rcx, %rsp
leaq -0x108(%rbp), %rdi
leaq -0x7d8(%rbp), %rdx
movq %r15, %rsi
callq 0x21fac
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x248(%rbp), %rdi
leaq -0x7d8(%rbp), %rdx
callq 0x22050
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x278(%rbp), %rdi
leaq -0x7d8(%rbp), %rdx
callq 0x22050
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x260(%rbp), %rdi
leaq -0x7d8(%rbp), %rdx
callq 0x22050
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x7d8(%rbp), %rdx
movb $0x0, (%rdx)
leaq -0x2a0(%rbp), %rdi
leaq -0x4c8(%rbp), %rcx
callq 0xabec
movq -0x58(%rbp), %rax
movq -0x88(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x90(%rbp)
leaq -0x9e0(%rbp), %r15
leaq -0x7d8(%rbp), %r13
movq %r15, %rdi
movq -0x88(%rbp), %rsi
movq -0x58(%rbp), %rdx
callq 0x5480
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1f22e
movq %r13, %rbx
leaq -0x4b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
leaq -0x4c8(%rbp), %r13
movq %r13, %rdi
movq -0x88(%rbp), %rsi
movq -0x90(%rbp), %rdx
callq 0x85fc
xorl %eax, %eax
movq %rax, -0x7d8(%rbp)
movl %eax, -0x7d0(%rbp)
movq %rax, -0x7c8(%rbp)
movl %eax, -0x7c0(%rbp)
movq %rax, -0x7b8(%rbp)
movq %r13, %rdi
movq %rbx, %r13
movq %rbx, %rsi
callq 0x8993
leaq -0x29(%rbp), %r12
movq %r15, %rdi
callq 0x5140
cmpl $0xa, %eax
je 0x1f1d6
movq %r15, %rdi
movq %r12, %rsi
callq 0x5500
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1f1d6
movq %r15, %rdi
movq %r14, %rsi
movq -0x38(%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 -0xb8(%rbp), %rax
movq %rax, -0xc8(%rbp)
addq %r14, %rdx
leaq -0xc8(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x85fc
movsbl -0x29(%rbp), %edx
movq -0x48(%rbp), %r8
subq -0x50(%rbp), %r8
shrq $0x5, %r8
leaq -0x538(%rbp), %rdi
movq %rbx, %rsi
movq %r13, %rcx
callq 0x1ecf0
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x1f108
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x1f108
movl $0x100, %esi            # imm = 0x100
movq %r15, %rdi
movl $0xa, %edx
callq 0x5220
movq -0x7d8(%rbp), %rdi
testq %rdi, %rdi
je 0x1f203
movq -0x7b8(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1f080
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x1f080
leaq -0x9e0(%rbp), %rdi
callq 0x50b0
leaq -0x4d8(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq -0x198(%rbp), %rcx
movq 0x8(%rcx), %rax
cmpq (%rcx), %rax
je 0x203f2
movslq -0xcc(%rbp), %rax
leaq 0x1(,%rax,2), %rcx
movq %rcx, -0x1e8(%rbp)
movq %rax, -0x1f0(%rbp)
addq %rax, %rax
leaq -0x70(%rbp), %r12
cltq
negq %rax
movq %rax, -0x2b0(%rbp)
movq 0x21d15(%rip), %rax     # 0x40fb0
movq (%rax), %rcx
movq %rcx, -0x2c0(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x2b8(%rbp)
leaq -0x7d8(%rbp), %rdx
leaq -0x4c8(%rbp), %r13
movq $0x0, -0x1e0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x1d0(%rbp)
movq $0x0, -0x1c0(%rbp)
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x7d8(%rbp)
leaq -0xf0(%rbp), %rdi
movq %r13, %rcx
movq %rdx, %rbx
callq 0x220e8
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x7d8(%rbp)
leaq -0x150(%rbp), %rdi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x220e8
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x7d8(%rbp)
leaq -0x190(%rbp), %rdi
movq %rbx, %rdx
movq %r13, %rcx
callq 0xfedc
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x7d8(%rbp)
leaq -0x230(%rbp), %rdi
movq %rbx, %rdx
movq %r13, %rcx
callq 0xfedc
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x218(%rbp), %rdi
movq %rbx, %rdx
callq 0x22272
movq -0x48(%rbp), %rsi
subq -0x50(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x500(%rbp), %rdi
movq %rbx, %rdx
callq 0x222f0
movq %rbx, %rdi
callq 0x7710
movl $0x0, -0x12c(%rbp)
movq -0x1e0(%rbp), %rcx
shlq $0x5, %rcx
movq -0x198(%rbp), %rax
movq (%rax), %rdi
movq %rcx, -0x200(%rbp)
addq %rcx, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x8076
testl %eax, %eax
je 0x1f622
xorl %ebx, %ebx
leaq 0x217f5(%rip), %rax     # 0x40bf8
movq %rax, -0x650(%rbp)
leaq 0x2180f(%rip), %rax     # 0x40c20
movq %rax, -0x640(%rbp)
movq $0x0, -0x648(%rbp)
leaq -0x7d8(%rbp), %rdi
leaq 0x21707(%rip), %rsi     # 0x40b38
callq 0x7922
leaq -0x640(%rbp), %rdi
callq 0x5120
leaq -0x500(%rbp), %rdi
callq 0xab8e
leaq -0x218(%rbp), %rdi
callq 0x12a2a
movq -0x230(%rbp), %rdi
testq %rdi, %rdi
je 0x1f475
movq -0x220(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x190(%rbp), %rdi
testq %rdi, %rdi
je 0x1f490
movq -0x180(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x150(%rbp), %rdi
testq %rdi, %rdi
je 0x1f4ab
movq -0x140(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x1f4c6
movq -0xe0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x1d0(%rbp), %rdi
callq 0xab8e
testb %bl, %bl
je 0x20beb
movq -0x1e0(%rbp), %rdx
incq %rdx
movq -0x198(%rbp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
sarq $0x5, %rax
movq %rdx, -0x1e0(%rbp)
cmpq %rdx, %rax
leaq -0x7d8(%rbp), %rdx
ja 0x1f2c9
jmp 0x203f2
leaq 0x14dac(%rip), %rdi     # 0x342c5
callq 0x51f0
jmp 0x218ce
leaq 0x14d9b(%rip), %rdi     # 0x342c5
callq 0x5550
jmp 0x218ce
movq %rax, %r14
jmp 0x1f566
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x1f544
movl %r12d, (%rbx)
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1f566
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq %r14, %rdi
callq 0x5160
movl $0x9, %edx
movq 0x21a46(%rip), %rdi     # 0x40fc0
leaq 0x14f51(%rip), %rsi     # 0x344d2
callq 0x5420
movq -0x198(%rbp), %rax
movq (%rax), %rax
movq -0x200(%rbp), %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq 0x21a19(%rip), %rdi     # 0x40fc0
callq 0x5420
movq %rax, %rdi
callq 0x5190
movl $0x1d, %edx
movq 0x21a00(%rip), %rdi     # 0x40fc0
leaq 0x14f15(%rip), %rsi     # 0x344dc
callq 0x5420
movq 0x219ed(%rip), %rdi     # 0x40fc0
callq 0x5190
movq %rax, %rbx
movl $0x47, %edx
movq %rax, %rdi
leaq 0x14f10(%rip), %rsi     # 0x344fa
callq 0x5420
movq -0xc8(%rbp), %rsi
movq -0xc0(%rbp), %rdx
movq %rbx, %rdi
callq 0x5420
movq %rax, %rdi
callq 0x5190
leaq -0x70(%rbp), %r12
callq 0x5630
leaq -0x4c8(%rbp), %r13
jmp 0x1fd25
leaq -0x650(%rbp), %rdi
callq 0x5140
cmpl $-0x1, %eax
leaq -0x80(%rbp), %rbx
je 0x1fd74
leaq -0xb8(%rbp), %rax
movq %rax, -0xc8(%rbp)
xorl %eax, %eax
movq %rax, -0xc0(%rbp)
movb %al, -0xb8(%rbp)
movq %r12, -0x80(%rbp)
movq %rax, -0x78(%rbp)
movb %al, -0x70(%rbp)
movl $0x2710, %esi           # imm = 0x2710
movq %rbx, %rdi
callq 0x55f0
movq -0x198(%rbp), %rax
movq (%rax), %rsi
addq -0x200(%rbp), %rsi
leaq -0x7d8(%rbp), %rdi
leaq -0xc8(%rbp), %rdx
movq %rbx, %rcx
callq 0x6c5b
movl $0x1, %r15d
testl %eax, %eax
jne 0x1fd25
movl $0x1, %ecx
leaq -0xc8(%rbp), %rbx
movq %rbx, %rdi
leaq 0x14e15(%rip), %rsi     # 0x344d0
movq $-0x1, %rdx
callq 0x5740
leaq 0x1(%rax), %rdx
movq %r13, %rdi
movq %rbx, %rsi
movq $-0x1, %rcx
callq 0x53e0
movq -0x4c8(%rbp), %r14
callq 0x5050
movq %rax, %rbx
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r14, %rdi
leaq -0x128(%rbp), %rsi
movl $0xa, %edx
callq 0x5510
cmpq %r14, -0x128(%rbp)
je 0x1f512
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x1f523
movl (%rbx), %eax
cmpl $0x22, %eax
je 0x1f523
testl %eax, %eax
jne 0x1f741
movl %r12d, (%rbx)
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1f763
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0x1d0(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
leaq -0x70(%rbp), %r12
callq 0x8528
movq -0x50(%rbp), %r14
movq -0x48(%rbp), %rbx
movq -0x78(%rbp), %rsi
leaq -0x4b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
movq %r13, %rdi
movl $0x2d, %edx
callq 0x5440
subq %r14, %rbx
sarq $0x5, %rbx
leaq -0x128(%rbp), %rdi
movq %rbx, %rsi
movq %r13, %rdx
leaq -0x170(%rbp), %r15
movq %r15, %rcx
callq 0x1d6b0
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1f7e6
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x50(%rbp), %r14
movq -0x48(%rbp), %rbx
movq -0x78(%rbp), %rsi
movb $0x0, -0x94(%rbp)
movq %r13, %rdi
leaq -0x94(%rbp), %rdx
leaq -0x12e(%rbp), %rcx
callq 0xabec
subq %r14, %rbx
sarq $0x5, %rbx
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
leaq -0x12d(%rbp), %rcx
callq 0x2237c
movq -0x4c8(%rbp), %rdi
testq %rdi, %rdi
je 0x1f846
movq -0x4a8(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x78(%rbp), %rbx
movl $0x9, %r15d
cmpq -0x1e8(%rbp), %rbx
jb 0x1fd0d
movq -0x80(%rbp), %r14
addq %r14, %rbx
addq -0x2b0(%rbp), %rbx
cmpq %rbx, %r14
leaq -0x80(%rbp), %rsi
je 0x1fa92
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, -0x1a0(%rbp)
xorl %edx, %edx
movq %rbx, -0x2c8(%rbp)
movq %r13, %rdi
movq %rdx, -0x38(%rbp)
movq -0x1e8(%rbp), %rcx
callq 0x53e0
movq %r13, %rdi
callq 0x68d8
movb %al, -0x1a8(%rbp)
movq %r13, %rdi
leaq -0x29(%rbp), %rsi
callq 0x8a8b
movq %r13, %rdi
callq 0x6a7b
testl %eax, %eax
jne 0x1fce5
movq %r14, -0x1d8(%rbp)
leaq -0x538(%rbp), %rdi
movq %r13, %rsi
callq 0xb6d2
movq %rax, %rcx
testq %rax, %rax
movq -0x38(%rbp), %r12
je 0x1fa30
movq -0x48(%rbp), %rax
cmpq -0x50(%rbp), %rax
je 0x1fa30
movq -0x1e8(%rbp), %rax
addq %r12, %rax
movq %rax, -0x88(%rbp)
xorl %r15d, %r15d
movq %rcx, -0x90(%rbp)
movq 0x28(%rcx), %rdi
movb (%rdi,%r15), %al
movb %al, -0x58(%rbp)
cmpb $0x2d, %al
je 0x1fa11
cmpb $0x0, -0x1a8(%rbp)
je 0x1f945
addq %r15, %rdi
callq 0x684c
movb %al, -0x58(%rbp)
cmpl $0x0, -0x1f0(%rbp)
js 0x1fa11
movq -0x1a0(%rbp), %r14
movq %r12, %rbx
movq -0x170(%rbp), %rax
leaq (%r15,%r15,4), %rcx
movq (%rax,%rcx,8), %rax
movl %ebx, %edx
movl $0x1, %esi
movl %ebx, %ecx
shlq %cl, %rsi
shrl $0x6, %edx
orq %rsi, (%rax,%rdx,8)
movl -0xcc(%rbp), %eax
addl %r12d, %eax
movq %r15, %rcx
shlq $0x5, %rcx
movq -0x128(%rbp), %rdx
movq (%rdx,%rcx), %r12
movsbl (%r12,%rbx), %r13d
cmpq %rax, %rbx
jne 0x1f9d2
movb -0x58(%rbp), %al
cmpb $0x2d, %r13b
je 0x1f9e5
movl %r13d, %edi
callq 0x54a0
movl %eax, %ecx
movb -0x58(%rbp), %al
testl %ecx, %ecx
jne 0x1f9e5
movb -0x29(%rbp), %cl
movb -0x58(%rbp), %dl
movl %edx, %eax
cmpb %cl, %dl
je 0x1f9e5
movb $0x4e, %al
cmpb %cl, %r13b
jne 0x1f9e5
jmp 0x1f9e9
cmpb $0x2d, %r13b
jne 0x1f9e9
movq -0x80(%rbp), %rax
movsbl (%rax,%rbx), %edi
callq 0x5560
movb %al, (%r12,%rbx)
incq %rbx
movq %r14, %rax
sarq $0x20, %rax
movabsq $0x100000000, %rcx      # imm = 0x100000000
addq %rcx, %r14
cmpq -0x88(%rbp), %rax
movq -0x38(%rbp), %r12
jl 0x1f95c
incq %r15
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
sarq $0x5, %rax
cmpq %r15, %rax
movq -0x90(%rbp), %rcx
ja 0x1f91e
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1fa52
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x1d8(%rbp), %r14
incq %r14
incq %r12
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, -0x1a0(%rbp)
movq -0x2c8(%rbp), %rbx
cmpq %rbx, %r14
movq %r12, %rdx
leaq -0x70(%rbp), %r12
leaq -0x4c8(%rbp), %r13
leaq -0x80(%rbp), %rsi
jne 0x1f892
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rax, -0x1a0(%rbp)
movq %rcx, -0x1d8(%rbp)
cmpq %rax, %rcx
je 0x1fcda
xorl %ebx, %ebx
movq -0x78(%rbp), %r13
testq %r13, %r13
je 0x1fba3
movq -0x128(%rbp), %rax
movq %rbx, -0x1a8(%rbp)
movq %rbx, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %r15
xorps %xmm2, %xmm2
movq -0x80(%rbp), %r12
xorl %r14d, %r14d
xorps %xmm1, %xmm1
xorps %xmm3, %xmm3
xorps %xmm0, %xmm0
movss %xmm0, -0x90(%rbp)
movss %xmm3, -0x58(%rbp)
movss %xmm2, -0x88(%rbp)
movss %xmm1, -0x38(%rbp)
movsbl (%r15,%r14), %ebx
movl %ebx, %edi
callq 0x56d0
movss -0x88(%rbp), %xmm1
movsbl (%r12,%r14), %ecx
movaps %xmm1, %xmm0
addss 0x134da(%rip), %xmm0    # 0x33004
cmpb %cl, %bl
je 0x1fb31
movaps %xmm1, %xmm0
movaps %xmm0, %xmm2
movsbl %al, %edx
cmpl %ecx, %edx
movss -0x38(%rbp), %xmm1
movss -0x58(%rbp), %xmm3
jne 0x1fb4f
addss 0x134b7(%rip), %xmm1    # 0x33004
jmp 0x1fb82
shll $0x18, %eax
cmpl $0x2d000000, %eax       # imm = 0x2D000000
je 0x1fb6a
cmpl $0x4e000000, %eax       # imm = 0x4E000000
jne 0x1fb82
addss 0x1349c(%rip), %xmm3    # 0x33004
jmp 0x1fb82
movss -0x90(%rbp), %xmm0
addss 0x1348a(%rip), %xmm0    # 0x33004
movss %xmm0, -0x90(%rbp)
incq %r14
cmpq %r14, %r13
jne 0x1faf4
cvttss2si -0x90(%rbp), %eax
leaq -0x70(%rbp), %r12
movq -0x1a8(%rbp), %rbx
jmp 0x1fbae
xorps %xmm3, %xmm3
xorl %eax, %eax
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm0, %xmm0
cvtsi2ss %r13, %xmm0
divss %xmm0, %xmm2
addss %xmm3, %xmm1
divss %xmm0, %xmm1
movq -0x150(%rbp), %rcx
ucomiss (%rcx,%rbx,4), %xmm2
leaq -0x4c8(%rbp), %r13
ja 0x1fbe7
jne 0x1fc2e
jp 0x1fc2e
movq -0xf0(%rbp), %rdx
ucomiss (%rdx,%rbx,4), %xmm1
jbe 0x1fc2e
movq -0x218(%rbp), %rdx
leaq (%rbx,%rbx,2), %rdi
movq (%rdx,%rdi,8), %rsi
cmpq %rsi, 0x8(%rdx,%rdi,8)
je 0x1fc05
leaq (%rdx,%rdi,8), %rdx
movq %rsi, 0x8(%rdx)
movss %xmm2, (%rcx,%rbx,4)
movq -0xf0(%rbp), %rdx
movss %xmm1, (%rdx,%rbx,4)
cvttss2si %xmm3, %edx
movq -0x190(%rbp), %rsi
movl %edx, (%rsi,%rbx,4)
movq -0x230(%rbp), %rdx
movl %eax, (%rdx,%rbx,4)
ucomiss 0x13d3b(%rip), %xmm2    # 0x33970
jbe 0x1fcbc
ucomiss (%rcx,%rbx,4), %xmm2
jne 0x1fcbc
jp 0x1fcbc
movq -0xf0(%rbp), %rax
ucomiss (%rax,%rbx,4), %xmm1
jne 0x1fcbc
jp 0x1fcbc
movq -0x218(%rbp), %rax
leaq (%rbx,%rbx,2), %rcx
leaq (%rax,%rcx,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x1fc7d
movl -0x12c(%rbp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x1fc89
leaq -0x12c(%rbp), %rdx
callq 0xdeae
movq %rbx, %rdi
shlq $0x5, %rdi
movq -0x128(%rbp), %rsi
addq %rdi, %rsi
addq -0x500(%rbp), %rdi
callq 0x51c0
movq -0x50(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x1d8(%rbp)
incq %rbx
movq -0x1d8(%rbp), %rax
subq -0x1a0(%rbp), %rax
sarq $0x5, %rax
cmpq %rax, %rbx
jb 0x1fab3
incl -0x12c(%rbp)
xorl %r15d, %r15d
jmp 0x1fd0d
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1fd07
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movl $0x1, %r15d
leaq -0x170(%rbp), %rdi
callq 0x22414
leaq -0x128(%rbp), %rdi
callq 0xab8e
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x1fd3a
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x1fd5c
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x53c0
testl %r15d, %r15d
je 0x1f622
cmpl $0x9, %r15d
je 0x1f622
jmp 0x1f3fa
leaq -0x7d8(%rbp), %rdi
callq 0x77fa
movq -0x48(%rbp), %rax
movb $0x1, %bl
cmpq -0x50(%rbp), %rax
je 0x1f3fc
xorl %ecx, %ecx
leaq -0x170(%rbp), %r15
leaq -0xb8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq $0x0, -0xc0(%rbp)
movb $0x0, -0xb8(%rbp)
movq -0x218(%rbp), %rax
movq %rcx, -0x38(%rbp)
leaq (%rcx,%rcx,2), %rbx
movq (%rax,%rbx,8), %r12
cmpq 0x8(%rax,%rbx,8), %r12
je 0x2006d
movq -0x38(%rbp), %rcx
movq %rcx, %rax
shrq $0x6, %rax
movq %rax, -0x88(%rbp)
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x58(%rbp)
movq %rbx, -0x90(%rbp)
movslq (%r12), %rdi
shlq $0x5, %rdi
addq -0x1d0(%rbp), %rdi
movl $0x1, %ecx
leaq 0x146b9(%rip), %rsi     # 0x344d0
movq $-0x1, %rdx
callq 0x5740
cmpq $-0x1, %rax
je 0x1ff30
movq %rax, %r14
movslq (%r12), %rsi
shlq $0x5, %rsi
addq -0x1d0(%rbp), %rsi
movq %r13, %rdi
xorl %edx, %edx
movq %rax, %rcx
callq 0x53e0
leaq -0xc8(%rbp), %rdi
movq %r13, %rsi
callq 0x5470
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1fe7d
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movslq (%r12), %rsi
shlq $0x5, %rsi
addq -0x1d0(%rbp), %rsi
incq %r14
movq %r13, %rdi
movq %r14, %rdx
movq $-0x1, %rcx
callq 0x53e0
movq -0x4c8(%rbp), %r15
callq 0x5050
movq %rax, %r14
movl (%rax), %r13d
movl $0x0, (%rax)
movq %r15, %rdi
leaq -0x80(%rbp), %rsi
movl $0xa, %edx
callq 0x5510
cmpq %r15, -0x80(%rbp)
je 0x21892
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x21886
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x21886
testl %ecx, %ecx
jne 0x1ff01
movl %r13d, (%r14)
movl %eax, -0x94(%rbp)
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x1ff29
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0x4c8(%rbp), %r13
imulq $0x38, -0x38(%rbp), %r15
movq -0x108(%rbp), %rdi
addq %r15, %rdi
leaq -0xc8(%rbp), %rsi
callq 0x18d28
testq %rax, %rax
je 0x1ff73
movq 0x30(%rax), %rsi
cmpq 0x38(%rax), %rsi
je 0x20027
movl -0x94(%rbp), %ecx
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x30(%rax)
jmp 0x2003a
xorps %xmm0, %xmm0
movaps %xmm0, -0x80(%rbp)
movq $0x0, -0x70(%rbp)
leaq -0x80(%rbp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
leaq -0x94(%rbp), %rdx
callq 0xdeae
movq -0x108(%rbp), %r14
leaq -0x4c8(%rbp), %r13
movq %r13, %rdi
leaq -0xc8(%rbp), %rsi
movq %rbx, %rdx
callq 0x22550
addq %r15, %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x18e24
movq -0x4a8(%rbp), %rdi
testq %rdi, %rdi
je 0x1ffe0
movq -0x498(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
leaq -0x170(%rbp), %r15
movq -0x90(%rbp), %rbx
je 0x20010
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x20057
movq -0x70(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
jmp 0x20057
addq $0x28, %rax
movq %rax, %rdi
leaq -0x94(%rbp), %rdx
callq 0xdeae
movq -0x2a0(%rbp), %rax
movq -0x88(%rbp), %rcx
movq -0x58(%rbp), %rdx
orq %rdx, (%rax,%rcx,8)
leaq -0x170(%rbp), %r15
addq $0x4, %r12
movq -0x218(%rbp), %rax
cmpq 0x8(%rax,%rbx,8), %r12
jne 0x1fdfc
movq -0xf0(%rbp), %rax
movq -0x38(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0
ucomiss 0x12f80(%rip), %xmm0    # 0x33004
jne 0x20088
jnp 0x200d3
movq -0x150(%rbp), %rax
movss (%rax,%rcx,4), %xmm0
ucomiss 0x138d5(%rip), %xmm0    # 0x33970
leaq -0x70(%rbp), %r12
jbe 0x203ad
movq %rbx, %rdi
shlq $0x4, %rdi
addq -0x248(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xb4a0
movq -0x38(%rbp), %r14
movq -0x190(%rbp), %rax
cmpl $0x0, (%rax,%r14,4)
jg 0x20101
jmp 0x2011f
movq -0x190(%rbp), %rax
cmpl $0x0, (%rax,%rcx,4)
leaq -0x70(%rbp), %r12
jle 0x203ad
movq -0x150(%rbp), %rax
movss (%rax,%rcx,4), %xmm0
ucomiss 0x13875(%rip), %xmm0    # 0x33970
jbe 0x203ad
movq %rbx, %rdi
shlq $0x4, %rdi
addq -0x278(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xb4a0
movq -0x38(%rbp), %r14
movq -0x230(%rbp), %rax
cmpl $0x0, (%rax,%r14,4)
jle 0x2014b
shlq $0x4, %rbx
addq -0x260(%rbp), %rbx
movq %rbx, %rdi
leaq -0xc8(%rbp), %rsi
callq 0xb4a0
movq -0x38(%rbp), %r14
movq -0x50(%rbp), %rax
shlq $0x5, %r14
leaq -0x160(%rbp), %rcx
movq %rcx, -0x170(%rbp)
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x8566
movq %r15, %rdi
leaq 0x14351(%rip), %rsi     # 0x344d0
callq 0x5710
movq -0xc8(%rbp), %rsi
movq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x5110
leaq -0x118(%rbp), %rsi
movq %rsi, -0x128(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x201ca
movq %rdx, -0x128(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x118(%rbp)
jmp 0x201d0
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 0x1434a(%rip), %rsi     # 0x34542
callq 0x5710
movq %r12, -0x80(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2021d
movq %rdx, -0x80(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x70(%rbp)
jmp 0x20225
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x78(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r13, %rdi
leaq -0x80(%rbp), %rsi
movl $0x10, %edx
callq 0x5720
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x20262
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x20284
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0x202a6
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x53c0
movl $0x1, %edx
movq %r13, %rdi
leaq 0x13dc2(%rip), %rsi     # 0x34077
callq 0x5420
movq -0x50(%rbp), %rax
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
movq %r13, %rdi
callq 0x5420
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x141ef(%rip), %rsi     # 0x344d0
callq 0x5420
movq -0xc8(%rbp), %rsi
movq -0xc0(%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 %r13, %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 %r13, %rdi
callq 0x5530
movq -0x2c0(%rbp), %rax
movq %rax, -0x4c8(%rbp)
movq -0x18(%rax), %rax
movq -0x2b8(%rbp), %rcx
movq %rcx, -0x4c8(%rbp,%rax)
leaq -0x4c0(%rbp), %rdi
callq 0x5330
leaq -0x3d0(%rbp), %rdi
callq 0x5120
movq -0x38(%rbp), %rcx
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x203d3
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x38(%rbp), %rcx
incq %rcx
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
sarq $0x5, %rax
cmpq %rcx, %rax
ja 0x1fd99
movb $0x1, %bl
jmp 0x1f3fc
leaq 0x13ea9(%rip), %rsi     # 0x342a2
movq -0x1f8(%rbp), %rdi
callq 0x50f0
testl %eax, %eax
je 0x20642
xorps %xmm0, %xmm0
movaps %xmm0, -0xf0(%rbp)
movq $0x0, -0xe0(%rbp)
movl $0x0, -0x7d8(%rbp)
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
cmpq %rax, %rcx
je 0x204fb
xorl %edx, %edx
movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000
leaq 0x3f(%r15), %r12
leaq -0xf0(%rbp), %rbx
leaq -0x7d8(%rbp), %r14
movq -0x248(%rbp), %rsi
leaq (%rdx,%rdx,2), %rdi
shlq $0x4, %rdi
cmpq $0x0, 0x28(%rsi,%rdi)
jne 0x204d8
leal 0x3f(%rdx), %esi
testl %edx, %edx
cmovnsl %edx, %esi
sarl $0x6, %esi
movslq %esi, %rsi
shlq $0x3, %rsi
addq -0x2a0(%rbp), %rsi
movq %rdx, %rdi
andq %r12, %rdi
xorl %r8d, %r8d
cmpq %r15, %rdi
setbe %r8b
movq -0x8(%rsi,%r8,8), %rsi
btq %rdx, %rsi
jb 0x204d8
movq -0xe8(%rbp), %rsi
cmpq -0xe0(%rbp), %rsi
je 0x204c5
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, -0xe8(%rbp)
jmp 0x204d8
movq %rbx, %rdi
movq %r14, %rdx
callq 0xdeae
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
movslq -0x7d8(%rbp), %rdx
incq %rdx
movl %edx, -0x7d8(%rbp)
movq %rcx, %rsi
subq %rax, %rsi
sarq $0x5, %rsi
cmpq %rdx, %rsi
ja 0x2045b
leaq -0x9e0(%rbp), %rbx
movq -0x1f8(%rbp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x7f3f
testl %eax, %eax
jne 0x20bd0
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 -0x7d8(%rbp), %rdi
callq 0x5280
leaq -0x7c8(%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 -0xc0(%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 -0x7d8(%rbp), %rbx
leaq -0x128(%rbp), %r14
leaq 0x13f80(%rip), %r15     # 0x34546
movl $0x0, -0x58(%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 0x20a7a
movq %r14, %rdi
movq %r15, %rsi
callq 0x50f0
movl %r12d, %ecx
movl %r12d, %edx
testl %eax, %eax
je 0x20637
movq %r14, %rdi
leaq 0x13f3b(%rip), %rsi     # 0x34549
callq 0x50f0
testl %eax, %eax
je 0x20631
leaq -0xc8(%rbp), %rdi
movq %r14, %rsi
callq 0x22444
movl %r12d, (%rax)
movl %r13d, %ecx
movl %r12d, %edx
jmp 0x20637
movl %r13d, %ecx
movl -0x58(%rbp), %edx
incl %r12d
movl %ecx, %r13d
movl %edx, -0x58(%rbp)
jmp 0x205cd
leaq -0x7d0(%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 0x206b2
xorl %r14d, %r14d
leaq -0x7d8(%rbp), %rbx
movq -0x108(%rbp), %rax
imulq $0x38, %r14, %rcx
leaq (%rax,%rcx), %r15
addq $0x10, %r15
movq (%r15), %r15
testq %r15, %r15
je 0x2069e
leaq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0xb4a0
jmp 0x20688
incq %r14
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
sarq $0x5, %rax
cmpq %r14, %rax
ja 0x20675
movq 0x20907(%rip), %rbx     # 0x40fc0
leaq 0x13f40(%rip), %rsi     # 0x34600
movl $0x6, %edx
movq %rbx, %rdi
callq 0x5420
movq -0x7c0(%rbp), %r14
leaq -0x7d0(%rbp), %rax
cmpq %rax, %r14
je 0x20725
movq 0x208d9(%rip), %r15     # 0x40fc0
leaq 0x13bb3(%rip), %r12     # 0x342a1
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 -0x7d0(%rbp), %rax
cmpq %rax, %r14
jne 0x206ee
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq 0x2087d(%rip), %rdi     # 0x40fc0
callq 0x5030
movq %rax, %rdi
callq 0x5250
movq -0x50(%rbp), %rax
cmpq %rax, -0x48(%rbp)
je 0x20a67
xorl %r15d, %r15d
movq %r15, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq 0x20848(%rip), %rdi     # 0x40fc0
callq 0x5420
movl $0x1, %edx
movq %rax, %rdi
leaq 0x13b15(%rip), %rsi     # 0x342a1
callq 0x5420
movq -0x7c0(%rbp), %r14
leaq -0x7d0(%rbp), %rax
cmpq %rax, %r14
je 0x20a1a
leaq -0x4b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
leaq -0x4c8(%rbp), %rdi
leaq 0x13ade(%rip), %rdx     # 0x342a2
movq %rdx, %rsi
callq 0x85fc
movq %r15, %rbx
leaq (%r15,%r15,2), %r12
shlq $0x4, %r12
movq -0x248(%rbp), %rdi
addq %r12, %rdi
leaq 0x20(%r14), %r15
movq %r15, %rsi
callq 0xb648
movq -0x248(%rbp), %rcx
addq %r12, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x20822
movq -0x4c0(%rbp), %rdx
movl $0x1, %r8d
leaq -0x4c8(%rbp), %rdi
xorl %esi, %esi
leaq 0x13e48(%rip), %rcx     # 0x34665
callq 0x55e0
movq -0x278(%rbp), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0xb648
movq -0x278(%rbp), %rcx
addq %r12, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x2085a
leaq -0x4c8(%rbp), %rdi
leaq 0x12bf2(%rip), %rsi     # 0x33447
callq 0x5710
movq -0x260(%rbp), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0xb648
movq -0x260(%rbp), %rcx
addq %r12, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x20892
leaq -0x4c8(%rbp), %rdi
leaq 0x13dd6(%rip), %rsi     # 0x34663
callq 0x5710
imulq $0x38, %rbx, %r12
movq -0x108(%rbp), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0x22c9a
movq 0x8(%rax), %rcx
cmpq (%rax), %rcx
je 0x208ea
movq -0x108(%rbp), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0x22c9a
movq 0x8(%rax), %rcx
subq (%rax), %rcx
cmpq $0x4, %rcx
jne 0x2090d
addq -0x108(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x22c9a
movq (%rax), %rax
jmp 0x209a2
movl $0x1, %edx
movq 0x206ca(%rip), %r15     # 0x40fc0
movq %r15, %rdi
leaq 0x13d63(%rip), %rsi     # 0x34663
callq 0x5420
movq %r15, %rax
jmp 0x209c6
xorl %r13d, %r13d
movq -0x108(%rbp), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0x22c9a
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
decq %rcx
movq -0x108(%rbp), %rdi
addq %r12, %rdi
cmpq %r13, %rcx
jbe 0x20973
movq %r15, %rsi
callq 0x22c9a
movq (%rax), %rax
movl (%rax,%r13,4), %esi
movq 0x2066b(%rip), %rdi     # 0x40fc0
callq 0x5690
movl $0x1, %edx
movq %rax, %rdi
leaq 0x13cfe(%rip), %rsi     # 0x34667
callq 0x5420
incq %r13
jmp 0x20910
movq %r15, %rsi
callq 0x22c9a
movq %rax, %r13
addq -0x108(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x22c9a
movq 0x8(%rax), %rcx
subq (%rax), %rcx
movq (%r13), %rax
addq %rcx, %rax
addq $-0x4, %rax
movl (%rax), %esi
movq 0x20615(%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 0x138cc(%rip), %rsi     # 0x342a1
callq 0x5420
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x209fc
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq %r14, %rdi
callq 0x5430
movq %rax, %r14
leaq -0x7d0(%rbp), %rax
cmpq %rax, %r14
movq %rbx, %r15
jne 0x207a8
movq 0x2059f(%rip), %rcx     # 0x40fc0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq 0x20581(%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 0x20761
leaq -0x7d8(%rbp), %rdi
callq 0xac54
xorl %ebx, %ebx
jmp 0x20bf0
cmpl $-0x1, %r13d
je 0x20ad1
movq -0xa0(%rbp), %rax
movq -0x108(%rbp), %rcx
cmpq 0x18(%rcx), %rax
jne 0x20aee
movq -0xb0(%rbp), %rbx
leaq -0xc0(%rbp), %rax
cmpq %rax, %rbx
je 0x20cab
movq -0x108(%rbp), %rdi
leaq 0x20(%rbx), %rsi
callq 0x18d28
testq %rax, %rax
je 0x2163b
movq %rbx, %rdi
callq 0x5270
movq %rax, %rbx
jmp 0x20a9b
movq 0x20518(%rip), %rbx     # 0x40ff0
leaq 0x13a79(%rip), %rsi     # 0x34558
movl $0x2e, %edx
movq %rbx, %rdi
callq 0x5420
jmp 0x20b5a
movq 0x204fb(%rip), %rdi     # 0x40ff0
leaq 0x13a8b(%rip), %rsi     # 0x34587
movl $0xd, %edx
callq 0x5420
movq -0xa0(%rbp), %rsi
movq 0x204dc(%rip), %rdi     # 0x40ff0
callq 0x5240
movq %rax, %rbx
leaq 0x13a72(%rip), %rsi     # 0x34595
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 0x13a6a(%rip), %rsi     # 0x345b7
movl $0x1d, %edx
movq %rax, %rdi
callq 0x5420
movq %rbx, %rdi
callq 0x5190
movq %rax, %rdi
callq 0x5190
leaq -0xc8(%rbp), %rdi
callq 0x225a4
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x20b98
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x53c0
movq 0x203e9(%rip), %rsi     # 0x40f88
leaq -0x7d8(%rbp), %rdi
callq 0x52c0
leaq -0x758(%rbp), %rdi
callq 0x5120
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x20bd0
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x20beb
movq -0xe0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movl $0x1, %ebx
movq -0x4e8(%rbp), %rdi
leaq -0x4d8(%rbp), %rax
cmpq %rax, %rdi
je 0x20c12
movq -0x4d8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x2a0(%rbp), %rdi
testq %rdi, %rdi
je 0x20c42
movq -0x280(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq $0x0, -0x2a0(%rbp)
movl $0x0, -0x298(%rbp)
leaq -0x260(%rbp), %rdi
callq 0x224c0
leaq -0x278(%rbp), %rdi
callq 0x224c0
leaq -0x248(%rbp), %rdi
callq 0x224c0
leaq -0x108(%rbp), %rdi
callq 0x22508
movq -0x2a8(%rbp), %rsp
leaq -0x50(%rbp), %rdi
callq 0xab8e
leaq -0x9e0(%rbp), %rdi
callq 0x50d0
leaq -0x538(%rbp), %rdi
callq 0xddf4
movl %ebx, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2030e(%rip), %rdi     # 0x40fc0
leaq 0x13947(%rip), %rsi     # 0x34600
movl $0x6, %edx
callq 0x5420
movq 0x202f6(%rip), %rdi     # 0x40fc0
leaq 0x135d0(%rip), %rsi     # 0x342a1
movl $0x1, %edx
callq 0x5420
movq 0x202de(%rip), %rdi     # 0x40fc0
leaq 0x1385d(%rip), %rsi     # 0x34546
movl $0x2, %edx
callq 0x5420
movq -0xb0(%rbp), %rbx
leaq -0xc0(%rbp), %rax
cmpq %rax, %rbx
je 0x20d4b
movq 0x202b3(%rip), %r14     # 0x40fc0
leaq 0x1358d(%rip), %r15     # 0x342a1
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 -0xc0(%rbp), %rax
cmpq %rax, %rbx
jne 0x20d14
movq 0x2026e(%rip), %rdi     # 0x40fc0
callq 0x5190
leaq -0x160(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movslq -0x58(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movslq %r13d, %rax
xorl %r14d, %r14d
leaq -0x4c8(%rbp), %r15
leaq -0x128(%rbp), %r12
leaq -0x150(%rbp), %r13
shlq $0x5, %rax
movq %rax, -0x90(%rbp)
movq -0x9e0(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x9e0(%rbp), %rbx
addq %rbx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %edx
movq %rbx, %rdi
leaq -0x170(%rbp), %rsi
callq 0x56c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x211de
movq %r15, %rdi
callq 0x5280
movq -0x170(%rbp), %rsi
movq -0x168(%rbp), %rdx
leaq -0x4b8(%rbp), %rdi
callq 0x5420
incl %r14d
xorps %xmm0, %xmm0
movaps %xmm0, -0x150(%rbp)
movq $0x0, -0x140(%rbp)
movq %r15, %rdi
movq %r12, %rsi
movl $0x9, %edx
callq 0x56c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x20e46
movq %r13, %rdi
movq %r12, %rsi
callq 0x8528
jmp 0x20e1b
movq -0x148(%rbp), %rax
subq -0x150(%rbp), %rax
sarq $0x5, %rax
cmpq -0x1f0(%rbp), %rax
jb 0x216d4
movl %r14d, -0x1a8(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq -0xe8(%rbp), %rax
je 0x211b3
movq -0xb0(%rbp), %r15
leaq -0xc0(%rbp), %rax
cmpq %rax, %r15
je 0x20fad
movb $0x1, %r14b
movq -0x38(%rbp), %rax
movslq (%rax), %rax
imulq $0x38, %rax, %rdi
addq -0x108(%rbp), %rdi
leaq 0x20(%r15), %rsi
callq 0x18d28
movq %rax, %r13
testq %rax, %rax
je 0x20f69
movslq 0x40(%r15), %rax
movq -0x150(%rbp), %rcx
shlq $0x5, %rax
movq (%rcx,%rax), %r12
callq 0x5050
movq %rax, %rbx
movl (%rax), %eax
movl %eax, -0x88(%rbp)
movl $0x0, (%rbx)
movq %r12, %rdi
leaq -0x1d0(%rbp), %rsi
movl $0xa, %edx
callq 0x5510
cmpq %r12, -0x1d0(%rbp)
je 0x218aa
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x2189e
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x2189e
testl %ecx, %ecx
jne 0x20f40
movl -0x88(%rbp), %ecx
movl %ecx, (%rbx)
movq 0x28(%r13), %rcx
cmpl %eax, (%rcx)
sete %al
andb %al, %r14b
movq %r15, %rdi
callq 0x5270
movq %rax, %r15
leaq -0xc0(%rbp), %rax
cmpq %rax, %r15
jne 0x20e9e
jmp 0x20fa4
movl $0x11, %edx
movq 0x2007b(%rip), %rdi     # 0x40ff0
leaq 0x136d5(%rip), %rsi     # 0x34651
callq 0x5420
movq %r15, %rdi
callq 0x5270
movq %rax, %r15
xorl %r14d, %r14d
leaq -0xc0(%rbp), %rax
cmpq %rax, %r15
jne 0x20e9e
jmp 0x21149
testb %r14b, %r14b
je 0x21149
xorps %xmm0, %xmm0
movaps %xmm0, -0x190(%rbp)
movq $0x0, -0x180(%rbp)
movq -0x150(%rbp), %rbx
addq -0x90(%rbp), %rbx
movl $0x1, %ecx
movq %rbx, %rdi
leaq 0x134f1(%rip), %rsi     # 0x344d0
movq $-0x1, %rdx
callq 0x5740
leaq 0x1(%rax), %rdx
leaq -0x1d0(%rbp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq $-0x1, %rcx
callq 0x53e0
movq -0x1d0(%rbp), %r15
callq 0x5050
movq %rax, %rbx
movl (%rax), %r14d
movl $0x0, (%rax)
movq %r15, %rdi
leaq -0x230(%rbp), %rsi
movl $0xa, %edx
callq 0x5510
cmpq %r15, -0x230(%rbp)
je 0x218c2
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
leaq -0x1c0(%rbp), %r12
jb 0x218b6
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x218b6
testl %ecx, %ecx
jne 0x21074
movl %r14d, (%rbx)
movl %eax, -0x218(%rbp)
movq -0x188(%rbp), %rsi
cmpq -0x180(%rbp), %rsi
je 0x21099
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x188(%rbp)
jmp 0x210ac
leaq -0x190(%rbp), %rdi
leaq -0x218(%rbp), %rdx
callq 0x22a9e
movq -0x1d0(%rbp), %rdi
cmpq %r12, %rdi
je 0x210c7
movq -0x1c0(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x38(%rbp), %rax
movslq (%rax), %r14
movq -0x108(%rbp), %rbx
movq %r12, -0x1d0(%rbp)
movq %r13, %rdi
leaq 0x13460(%rip), %rsi     # 0x34546
leaq 0x1345b(%rip), %rdx     # 0x34548
callq 0x85fc
imulq $0x38, %r14, %rax
addq %rax, %rbx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x22b7a
movq %rax, %rdi
leaq -0x190(%rbp), %rsi
callq 0x12d0e
movq -0x1d0(%rbp), %rdi
cmpq %r12, %rdi
je 0x2112e
movq -0x1c0(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x190(%rbp), %rdi
testq %rdi, %rdi
je 0x21149
movq -0x180(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x38(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x38(%rbp)
cmpq -0xe8(%rbp), %rax
jne 0x20e84
movq -0x38(%rbp), %rax
cmpq -0xf0(%rbp), %rax
je 0x211b3
leaq -0x150(%rbp), %r13
movq %r13, %rdi
callq 0xab8e
leaq -0x4c8(%rbp), %r15
movq %r15, %rdi
movq 0x1fdf9(%rip), %rsi     # 0x40f88
callq 0x52c0
leaq -0x448(%rbp), %rdi
callq 0x5120
movl -0x1a8(%rbp), %r14d
leaq -0x128(%rbp), %r12
jmp 0x20d9e
leaq -0x150(%rbp), %rdi
callq 0xab8e
movq 0x1fdc2(%rip), %rsi     # 0x40f88
leaq -0x4c8(%rbp), %rdi
callq 0x52c0
leaq -0x448(%rbp), %rdi
callq 0x5120
leaq -0x9e0(%rbp), %rdi
callq 0x50b0
movq -0x50(%rbp), %rax
movb $0x1, %r14b
cmpq %rax, -0x48(%rbp)
je 0x217d0
xorl %r13d, %r13d
leaq -0x4c8(%rbp), %r15
movq %r13, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq 0x1fda4(%rip), %rdi     # 0x40fc0
callq 0x5420
movl $0x1, %edx
movq %rax, %rdi
leaq 0x13071(%rip), %rsi     # 0x342a1
callq 0x5420
movq -0x108(%rbp), %rbx
leaq -0x4b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
movq %r15, %rdi
leaq 0x132f2(%rip), %rsi     # 0x34546
leaq 0x132ed(%rip), %rdx     # 0x34548
callq 0x85fc
imulq $0x38, %r13, %r12
addq %r12, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x22b7a
movq 0x8(%rax), %rbx
subq (%rax), %rbx
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x2129b
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
cmpq $0x4, %rbx
jne 0x2130f
movq -0x108(%rbp), %rbx
leaq -0x4b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
movq %r15, %rdi
leaq 0x13286(%rip), %rsi     # 0x34546
leaq 0x13281(%rip), %rdx     # 0x34548
callq 0x85fc
addq %r12, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x22b7a
movq (%rax), %rax
movl (%rax), %esi
movq 0x1fcda(%rip), %rdi     # 0x40fc0
callq 0x5690
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x21327
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x21327
movl $0x1, %edx
movq 0x1fca5(%rip), %rdi     # 0x40fc0
leaq 0x13341(%rip), %rsi     # 0x34663
callq 0x5420
movq -0xb0(%rbp), %r14
leaq -0xc0(%rbp), %rax
cmpq %rax, %r14
movq %r13, -0x38(%rbp)
je 0x215e6
leaq -0x4b8(%rbp), %rax
movq %rax, -0x4c8(%rbp)
movq %r15, %rdi
leaq 0x12f48(%rip), %rdx     # 0x342a2
movq %rdx, %rsi
callq 0x85fc
leaq (,%r13,2), %rbx
addq %r13, %rbx
shlq $0x4, %rbx
movq -0x248(%rbp), %rdi
addq %rbx, %rdi
leaq 0x20(%r14), %r13
movq %r13, %rsi
callq 0xb648
leaq 0x132d9(%rip), %r15     # 0x34667
movq -0x248(%rbp), %rcx
addq %rbx, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x213c3
movq -0x4c0(%rbp), %rdx
movl $0x1, %r8d
leaq -0x4c8(%rbp), %rdi
xorl %esi, %esi
leaq 0x132a7(%rip), %rcx     # 0x34665
callq 0x55e0
movq -0x278(%rbp), %rdi
addq %rbx, %rdi
movq %r13, %rsi
callq 0xb648
movq -0x278(%rbp), %rcx
addq %rbx, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x213fb
leaq -0x4c8(%rbp), %rdi
leaq 0x12051(%rip), %rsi     # 0x33447
callq 0x5710
movq -0x260(%rbp), %rdi
addq %rbx, %rdi
movq %r13, %rsi
callq 0xb648
movq -0x260(%rbp), %rcx
addq %rbx, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x21433
leaq -0x4c8(%rbp), %rdi
leaq 0x13235(%rip), %rsi     # 0x34663
callq 0x5710
movq -0x108(%rbp), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x22c9a
movq 0x8(%rax), %rcx
cmpq (%rax), %rcx
je 0x2149f
movq -0x108(%rbp), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x22c9a
movq 0x8(%rax), %rcx
subq (%rax), %rcx
cmpq $0x4, %rcx
jne 0x214d4
movl $0x1, %edx
movq 0x1fb47(%rip), %rdi     # 0x40fc0
leaq 0x12e21(%rip), %rsi     # 0x342a1
callq 0x5420
movq -0x108(%rbp), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x22c9a
movq (%rax), %rax
jmp 0x2157a
movl $0x1, %edx
movq 0x1fb15(%rip), %rdi     # 0x40fc0
leaq 0x12def(%rip), %rsi     # 0x342a1
callq 0x5420
movl $0x1, %edx
movq 0x1fafd(%rip), %rdi     # 0x40fc0
leaq 0x13199(%rip), %rsi     # 0x34663
callq 0x5420
jmp 0x2159e
movl $0x1, %edx
movq 0x1fae0(%rip), %rdi     # 0x40fc0
leaq 0x12dba(%rip), %rsi     # 0x342a1
callq 0x5420
xorl %ebx, %ebx
movq -0x108(%rbp), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x22c9a
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
decq %rcx
movq -0x108(%rbp), %rdi
addq %r12, %rdi
cmpq %rbx, %rcx
jbe 0x2154c
movq %r13, %rsi
callq 0x22c9a
movq (%rax), %rax
movl (%rax,%rbx,4), %esi
movq 0x1fa8e(%rip), %rdi     # 0x40fc0
callq 0x5690
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5420
incq %rbx
jmp 0x214ee
movq %r13, %rsi
callq 0x22c9a
movq %rax, %rbx
movq -0x108(%rbp), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x22c9a
movq 0x8(%rax), %rcx
subq (%rax), %rcx
movq (%rbx), %rax
addq %rcx, %rax
addq $-0x4, %rax
movl (%rax), %esi
movq 0x1fa3d(%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 0x215c0
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq %r14, %rdi
callq 0x5270
movq %rax, %r14
leaq -0xc0(%rbp), %rax
cmpq %rax, %r14
movq -0x38(%rbp), %r13
leaq -0x4c8(%rbp), %r15
jne 0x21342
movq 0x1f9d3(%rip), %rcx     # 0x40fc0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq 0x1f9b5(%rip), %rdi     # 0x40fc0
callq 0x5030
movq %rax, %rdi
callq 0x5250
incq %r13
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %r13, %rcx
ja 0x21205
movb $0x1, %r14b
jmp 0x217d0
movq 0x1f9ae(%rip), %rdi     # 0x40ff0
leaq 0x12f8c(%rip), %rsi     # 0x345d5
movl $0x13, %edx
callq 0x5420
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq 0x1f98e(%rip), %rdi     # 0x40ff0
callq 0x5420
movq %rax, %rbx
leaq 0x12f78(%rip), %rsi     # 0x345e9
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 0x20b6a
movq 0x1f915(%rip), %rdi     # 0x40ff0
leaq 0x12f25(%rip), %rsi     # 0x34607
movl $0x1f, %edx
callq 0x5420
movq 0x1f8fd(%rip), %rdi     # 0x40ff0
movl %r14d, %esi
callq 0x5690
movq %rax, %rbx
leaq 0x12f22(%rip), %rsi     # 0x34627
movl $0x15, %edx
movq %rax, %rdi
callq 0x5420
movq %rbx, %rdi
movl -0x58(%rbp), %esi
callq 0x5690
movq %rax, %rbx
leaq 0x12f16(%rip), %rsi     # 0x3463d
movl $0x13, %edx
movq %rax, %rdi
callq 0x5420
movq -0x148(%rbp), %rsi
subq -0x150(%rbp), %rsi
sarq $0x5, %rsi
movq %rbx, %rdi
callq 0x5240
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 %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
leaq -0x150(%rbp), %rdi
callq 0xab8e
movq 0x1f7d3(%rip), %rsi     # 0x40f88
leaq -0x4c8(%rbp), %rdi
callq 0x52c0
leaq -0x448(%rbp), %rdi
callq 0x5120
xorl %r14d, %r14d
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0x217f2
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0xc8(%rbp), %rdi
callq 0x225a4
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x21820
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x53c0
movq 0x1f761(%rip), %rsi     # 0x40f88
leaq -0x7d8(%rbp), %rdi
callq 0x52c0
leaq -0x758(%rbp), %rdi
callq 0x5120
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x21858
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x21873
movq -0xe0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movl $0x1, %ebx
testb %r14b, %r14b
jne 0x20a73
jmp 0x20bf0
leaq 0x12a38(%rip), %rdi     # 0x342c5
callq 0x5550
leaq 0x12a2c(%rip), %rdi     # 0x342c5
callq 0x51f0
leaq 0x12a20(%rip), %rdi     # 0x342c5
callq 0x5550
leaq 0x12a14(%rip), %rdi     # 0x342c5
callq 0x51f0
leaq 0x12a08(%rip), %rdi     # 0x342c5
callq 0x5550
leaq 0x129fc(%rip), %rdi     # 0x342c5
callq 0x51f0
movq %rax, %r15
callq 0x5630
jmp 0x21b1d
movq %rax, %rdi
callq 0x7d38
jmp 0x219fe
jmp 0x21b84
jmp 0x2198f
movq %rax, %r15
jmp 0x21c6c
jmp 0x2190e
jmp 0x219fe
movq %rax, %r15
jmp 0x21b93
jmp 0x219fe
movq %rax, %r15
jmp 0x21c8b
jmp 0x21918
movq %rax, %r15
jmp 0x21ca4
jmp 0x219fe
jmp 0x21bf7
jmp 0x21bf7
jmp 0x2198f
jmp 0x219fe
jmp 0x2198f
jmp 0x21b28
movq %rax, %r15
jmp 0x21f53
movq %rax, %r15
jmp 0x21f5f
movq %rax, %r15
jmp 0x21f6b
movq %rax, %r15
jmp 0x21f77
jmp 0x2195f
movq %rax, %r15
jmp 0x21f83
jmp 0x21b6a
jmp 0x2198f
movq %rax, %r15
jmp 0x219a2
jmp 0x219fe
movq %rax, %r15
jmp 0x21f8c
movq %rax, %r15
jmp 0x21f98
jmp 0x2198a
movq %rax, %r15
jmp 0x219c4
movq %rax, %r15
jmp 0x21c3e
movq %rax, %r15
cmpl $0x0, (%rbx)
jne 0x219a2
movl %r14d, (%rbx)
movq -0x1d0(%rbp), %rdi
leaq -0x1c0(%rbp), %rax
cmpq %rax, %rdi
je 0x219c4
movq -0x1c0(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x190(%rbp), %rdi
testq %rdi, %rdi
je 0x21b87
movq -0x180(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
jmp 0x21b87
movq %rax, %r15
movq -0x1d0(%rbp), %rdi
cmpq %r12, %rdi
jne 0x219b5
jmp 0x219c4
jmp 0x21bf7
movq %rax, %r15
jmp 0x21c1c
jmp 0x21bf7
movq %rax, %r15
jmp 0x21df4
movq %rax, %r15
jmp 0x21e0c
movq %rax, %r15
jmp 0x21e42
movq %rax, %r15
jmp 0x21e78
movq %rax, %r15
jmp 0x21e00
movq %rax, %r15
jmp 0x21e27
movq %rax, %r15
jmp 0x21e5d
jmp 0x21b6a
jmp 0x21b41
jmp 0x21b84
jmp 0x21a6e
movq %rax, %r15
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x21a76
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x21a76
movq %rax, %r15
jmp 0x21a98
movq %rax, %r15
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x21a98
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0x21d8c
movq -0x160(%rbp), %rsi
jmp 0x21d84
jmp 0x21d59
jmp 0x21b6a
jmp 0x21b62
movq %rax, %r15
movq -0x4c8(%rbp), %rsi
testq %rsi, %rsi
je 0x21aea
leaq -0x4a8(%rbp), %rdi
callq 0x5979
jmp 0x21aea
movq %rax, %r15
leaq -0x70(%rbp), %r12
jmp 0x21d02
movq %rax, %r15
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x21b1d
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x21b1d
movq %rax, %r15
leaq -0x70(%rbp), %r12
jmp 0x21d0e
jmp 0x21b28
movq %rax, %r15
jmp 0x21f1e
jmp 0x21d59
jmp 0x21b5a
jmp 0x21e86
jmp 0x21bf7
movq %rax, %r15
jmp 0x21dae
jmp 0x21ecb
jmp 0x21ecb
jmp 0x21b6a
jmp 0x21ccd
movq %rax, %r15
jmp 0x21cf6
movq %rax, %r15
jmp 0x21d0e
movq %rax, %r15
jmp 0x21ef0
movq %rax, %r15
cmpl $0x0, (%rbx)
jne 0x21b87
movl -0x88(%rbp), %eax
movl %eax, (%rbx)
jmp 0x21b87
movq %rax, %r15
leaq -0x150(%rbp), %rdi
callq 0xab8e
movq 0x1f3ee(%rip), %rsi     # 0x40f88
leaq -0x4c8(%rbp), %rdi
callq 0x52c0
leaq -0x448(%rbp), %rdi
callq 0x5120
jmp 0x21c1c
movq %rax, %r15
leaq -0x4c8(%rbp), %rdi
callq 0x55a0
jmp 0x21d8c
jmp 0x21bdb
movq %rax, %r15
leaq -0x4c8(%rbp), %rdi
callq 0x18280
jmp 0x21bde
movq %rax, %r15
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x21d8c
movq -0x70(%rbp), %rsi
subq %rdi, %rsi
jmp 0x21d87
movq %rax, %r15
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x21c1c
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0x21c3e
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0xc8(%rbp), %rdi
callq 0x225a4
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x21c6c
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x53c0
movq 0x1f315(%rip), %rsi     # 0x40f88
leaq -0x7d8(%rbp), %rdi
callq 0x52c0
leaq -0x758(%rbp), %rdi
callq 0x5120
leaq -0x70(%rbp), %rax
movq -0x80(%rbp), %rdi
cmpq %rax, %rdi
je 0x21ca4
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x21efc
movq -0xe0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
jmp 0x21efc
movq %rax, %r15
jmp 0x21cd4
movq %rax, %r15
leaq -0x70(%rbp), %r12
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x21cf6
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0x170(%rbp), %rdi
callq 0x22414
leaq -0x128(%rbp), %rdi
callq 0xab8e
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x21d8c
movq -0x70(%rbp), %rsi
jmp 0x21d84
jmp 0x21e86
movq %rax, %r15
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x21e89
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x21e89
jmp 0x21d59
jmp 0x21d59
jmp 0x21ecb
movq %rax, %r15
jmp 0x21d8c
movq %rax, %r15
cmpl $0x0, (%r14)
jne 0x21d6a
movl %r13d, (%r14)
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x21d8c
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x21dae
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0x7d8(%rbp), %rdi
leaq 0x1ee3c(%rip), %rax     # 0x40bf8
movq %rax, 0x188(%rdi)
leaq 0x1ee56(%rip), %rax     # 0x40c20
movq %rax, 0x198(%rdi)
movq $0x0, 0x190(%rdi)
leaq 0x1ed55(%rip), %rsi     # 0x40b38
callq 0x7922
leaq -0x640(%rbp), %rdi
callq 0x5120
leaq -0x500(%rbp), %rdi
callq 0xab8e
leaq -0x218(%rbp), %rdi
callq 0x12a2a
movq -0x230(%rbp), %rdi
testq %rdi, %rdi
je 0x21e27
movq -0x220(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x190(%rbp), %rdi
testq %rdi, %rdi
je 0x21e42
movq -0x180(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x150(%rbp), %rdi
testq %rdi, %rdi
je 0x21e5d
movq -0x140(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x21e78
movq -0xe0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x1d0(%rbp), %rdi
callq 0xab8e
jmp 0x21efc
movq %rax, %r15
movq -0x7d8(%rbp), %rdi
testq %rdi, %rdi
je 0x21eaf
movq -0x7b8(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq $0x0, -0x7d8(%rbp)
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x21f1e
movq -0x4b8(%rbp), %rsi
jmp 0x21f16
movq %rax, %r15
movq -0x4c8(%rbp), %rdi
leaq -0x4b8(%rbp), %rax
cmpq %rax, %rdi
je 0x21ef0
movq -0x4b8(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0x7d8(%rbp), %rdi
callq 0xac54
movq -0x4e8(%rbp), %rdi
leaq -0x4d8(%rbp), %rax
cmpq %rax, %rdi
je 0x21f1e
movq -0x4d8(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x2a0(%rbp), %rdi
testq %rdi, %rdi
je 0x21f53
movq -0x280(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
xorl %eax, %eax
movq %rax, -0x2a0(%rbp)
movl $0x0, -0x298(%rbp)
movq %rax, -0x290(%rbp)
leaq -0x260(%rbp), %rdi
callq 0x224c0
leaq -0x278(%rbp), %rdi
callq 0x224c0
leaq -0x248(%rbp), %rdi
callq 0x224c0
leaq -0x108(%rbp), %rdi
callq 0x22508
leaq -0x50(%rbp), %rdi
callq 0xab8e
leaq -0x9e0(%rbp), %rdi
callq 0x50d0
leaq -0x538(%rbp), %rdi
callq 0xddf4
movq %r15, %rdi
callq 0x56a0