// File: /workspace/github_cpp_makefile_star2_O2/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 $0x988, %rsp            # imm = 0x988
movq %rdx, -0x138(%rbp)
movq %rsi, -0x1d8(%rbp)
movq %rdi, %rbx
leaq -0x2d8(%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 -0x9b0(%rbp), %rdi
callq 0x5450
leaq -0x9b0(%rbp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x73fe
testl %eax, %eax
je 0x1894f
pushq $0x1
popq %rbx
jmp 0x19e57
xorps %xmm0, %xmm0
leaq -0x60(%rbp), %rdx
movaps %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
leaq -0x9b0(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x832b
movq %rsp, -0x260(%rbp)
movl -0x78(%rbp), %eax
addl %eax, %eax
pushq $0x3
popq %rcx
cltd
idivl %ecx
movl %eax, %ebx
leaq 0xf(%rbx), %rax
andq $-0x10, %rax
movq %rsp, %r14
subq %rax, %r14
movq %r14, %rsp
movq -0x58(%rbp), %r15
subq -0x60(%rbp), %r15
sarq $0x5, %r15
js 0x189a8
cvtsi2ss %r15, %xmm0
jmp 0x189c0
movq %r15, %rax
shrq %rax
movl %r15d, %ecx
andl $0x1, %ecx
orq %rax, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
divss 0xcca8(%rip), %xmm0     # 0x25670
callq 0x5220
cvttss2si %xmm0, %ecx
movq %rcx, -0x40(%rbp)
leaq 0xf(%rcx), %rax
andq $-0x10, %rax
movq %rsp, %rcx
subq %rax, %rcx
movq %rcx, -0x38(%rbp)
movq %rcx, %rsp
leaq -0x90(%rbp), %rdi
leaq -0x7a8(%rbp), %rdx
movq %r15, %rsi
callq 0x1aa44
movq -0x58(%rbp), %rsi
subq -0x60(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x1f8(%rbp), %rdi
leaq -0x7a8(%rbp), %rdx
callq 0x1aa96
movq -0x58(%rbp), %rsi
subq -0x60(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x228(%rbp), %rdi
leaq -0x7a8(%rbp), %rdx
callq 0x1aa96
movq -0x58(%rbp), %rsi
subq -0x60(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x210(%rbp), %rdi
leaq -0x7a8(%rbp), %rdx
callq 0x1aa96
movq -0x58(%rbp), %rsi
subq -0x60(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x7a8(%rbp), %rdx
movb $0x0, (%rdx)
leaq -0x2b0(%rbp), %rdi
leaq -0x508(%rbp), %rcx
callq 0x9140
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
leaq -0x9b0(%rbp), %r15
leaq -0x7a8(%rbp), %r12
leaq -0xf0(%rbp), %r13
movq %rbx, -0x70(%rbp)
movq %r15, %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x54c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x18be5
leaq -0x4f8(%rbp), %rax
movq %rax, -0x508(%rbp)
leaq -0x508(%rbp), %rbx
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x7828
andq $0x0, -0x7a8(%rbp)
andl $0x0, -0x7a0(%rbp)
andq $0x0, -0x798(%rbp)
andl $0x0, -0x790(%rbp)
andq $0x0, -0x788(%rbp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7bb6
movq -0x70(%rbp), %rbx
movq %r15, %rdi
callq 0x5140
cmpl $0xa, %eax
je 0x18bbc
movq %r15, %rdi
leaq -0x29(%rbp), %rsi
callq 0x5550
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x18bbc
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x54c0
movl -0x78(%rbp), %eax
addl %eax, %eax
cltd
pushq $0x3
popq %rcx
idivl %ecx
movslq %eax, %rdx
leaq -0xe0(%rbp), %rax
movq %rax, -0xf0(%rbp)
addq %r14, %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x7828
movsbl -0x29(%rbp), %edx
movq -0x58(%rbp), %r8
subq -0x60(%rbp), %r8
shrq $0x5, %r8
leaq -0x308(%rbp), %rdi
movq %r13, %rsi
movq %r12, %rcx
callq 0x187c8
movq %r13, %rdi
callq 0x5778
jmp 0x18b2a
movl $0x100, %esi            # imm = 0x100
movq %r15, %rdi
pushq $0xa
popq %rdx
callq 0x5260
movq %r12, %rdi
callq 0x908a
leaq -0x508(%rbp), %rdi
callq 0x5778
jmp 0x18aae
leaq -0x9b0(%rbp), %rdi
callq 0x50a0
leaq -0x2c0(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movslq -0x78(%rbp), %rax
leaq 0x1(,%rax,2), %rcx
movq %rcx, -0x148(%rbp)
addq %rax, %rax
cltq
negq %rax
movq %rax, -0x270(%rbp)
leaq -0x7a8(%rbp), %r12
leaq -0x508(%rbp), %r15
pushq $0x1
popq %rax
movl %eax, -0x114(%rbp)
xorl %ebx, %ebx
movq -0x138(%rbp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
sarq $0x5, %rax
cmpq %rbx, %rax
jbe 0x197d4
andq $0x0, -0x1c0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x1d0(%rbp)
movq -0x58(%rbp), %rsi
subq -0x60(%rbp), %rsi
sarq $0x5, %rsi
andl $0x0, -0x7a8(%rbp)
leaq -0x130(%rbp), %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x1aae8
movq -0x58(%rbp), %rsi
subq -0x60(%rbp), %rsi
sarq $0x5, %rsi
andl $0x0, -0x7a8(%rbp)
leaq -0x110(%rbp), %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x1aae8
movq -0x58(%rbp), %rsi
subq -0x60(%rbp), %rsi
sarq $0x5, %rsi
andl $0x0, -0x7a8(%rbp)
leaq -0x1b0(%rbp), %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0xbe22
movq -0x58(%rbp), %rsi
subq -0x60(%rbp), %rsi
sarq $0x5, %rsi
andl $0x0, -0x7a8(%rbp)
leaq -0x258(%rbp), %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0xbe22
movq -0x58(%rbp), %rsi
subq -0x60(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x240(%rbp), %rdi
movq %r12, %rdx
callq 0x1ab3e
movq -0x58(%rbp), %rsi
subq -0x60(%rbp), %rsi
sarq $0x5, %rsi
leaq -0x288(%rbp), %rdi
movq %r12, %rdx
callq 0x1ab90
movq %r12, %rdi
callq 0x6d0a
andl $0x0, -0x118(%rbp)
movq %rbx, -0x268(%rbp)
shlq $0x5, %rbx
movq -0x138(%rbp), %rax
movq (%rax), %rdi
movq %rbx, -0x1e0(%rbp)
addq %rbx, %rdi
movq %r12, %rsi
pushq $0x1
popq %rdx
callq 0x74af
testl %eax, %eax
je 0x18deb
xorl %ebx, %ebx
movq %r12, %rdi
callq 0x6dea
leaq -0x288(%rbp), %rdi
callq 0x911e
leaq -0x240(%rbp), %rdi
callq 0xf730
leaq -0x258(%rbp), %rdi
callq 0xc052
leaq -0x1b0(%rbp), %rdi
callq 0xc052
leaq -0x110(%rbp), %rdi
callq 0x1b038
leaq -0x130(%rbp), %rdi
callq 0x1b038
leaq -0x1d0(%rbp), %rdi
callq 0x911e
movq -0x268(%rbp), %rax
incq %rax
testb %bl, %bl
movq %rax, %rbx
jne 0x18c3f
jmp 0x19df9
leaq -0x620(%rbp), %rdi
callq 0x5140
cmpl $-0x1, %eax
je 0x19373
leaq -0xe0(%rbp), %rax
movq %rax, -0xf0(%rbp)
andq $0x0, -0xe8(%rbp)
xorl %ecx, %ecx
movb %cl, -0xe0(%rbp)
leaq -0xb0(%rbp), %rax
movq %rax, -0xc0(%rbp)
andq $0x0, -0xb8(%rbp)
movb %cl, -0xb0(%rbp)
movl $0x2710, %esi           # imm = 0x2710
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
callq 0x55f0
movq -0x138(%rbp), %rax
movq (%rax), %rsi
addq -0x1e0(%rbp), %rsi
movq %r12, %rdi
leaq -0xf0(%rbp), %rdx
movq %rbx, %rcx
callq 0x67b1
testl %eax, %eax
jne 0x197b7
leaq -0xf0(%rbp), %rbx
movq %rbx, %rdi
leaq 0xd61b(%rip), %rsi      # 0x264a5
pushq $-0x1
popq %r14
movq %r14, %rdx
callq 0x53d0
leaq 0x1(%rax), %rdx
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rcx
callq 0x5420
movq %r15, %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0x1339e
movq %r15, %rdi
callq 0x5778
leaq -0x1d0(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x77fc
movq -0x60(%rbp), %r14
movq -0x58(%rbp), %rbx
movq -0xb8(%rbp), %rsi
leaq -0x4f8(%rbp), %rax
movq %rax, -0x508(%rbp)
movq %r15, %rdi
pushq $0x2d
popq %rdx
callq 0x5470
subq %r14, %rbx
sarq $0x5, %rbx
leaq -0x170(%rbp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
leaq -0x190(%rbp), %rcx
callq 0x173be
movq %r15, %rdi
callq 0x5778
movq -0x60(%rbp), %r14
movq -0x58(%rbp), %rbx
movq -0xb8(%rbp), %rsi
movb $0x0, -0x74(%rbp)
movq %r15, %rdi
leaq -0x74(%rbp), %rdx
leaq -0x92(%rbp), %rcx
callq 0x9140
subq %r14, %rbx
sarq $0x5, %rbx
leaq -0x190(%rbp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
leaq -0x91(%rbp), %rcx
callq 0x1abe2
movq %r15, %rdi
callq 0x908a
movq -0xb8(%rbp), %rbx
cmpq -0x148(%rbp), %rbx
jae 0x18f87
xorl %ebx, %ebx
pushq $0x9
jmp 0x19329
movq -0xc0(%rbp), %r14
addq %r14, %rbx
addq -0x270(%rbp), %rbx
movq $0x0, -0x38(%rbp)
movq %rbx, -0x140(%rbp)
cmpq %rbx, %r14
je 0x1912b
movq %r15, %rdi
leaq -0xc0(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq -0x148(%rbp), %rcx
callq 0x5420
movq %r15, %rdi
callq 0x6578
movb %al, -0x150(%rbp)
movq %r15, %rdi
leaq -0x29(%rbp), %rsi
callq 0x7c51
movq %r15, %rdi
callq 0x6674
testl %eax, %eax
jne 0x1931d
leaq -0x308(%rbp), %rdi
movq %r15, %rsi
callq 0x9c92
movq %rax, %rdx
testq %rdx, %rdx
je 0x19110
movq -0x148(%rbp), %rax
movq -0x38(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
xorl %ebx, %ebx
movq %r14, -0x68(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x58(%rbp), %rax
subq -0x60(%rbp), %rax
sarq $0x5, %rax
cmpq %rbx, %rax
jbe 0x19110
movq 0x28(%rdx), %rdi
movb (%rdi,%rbx), %r13b
cmpb $0x2d, %r13b
jne 0x19069
incq %rbx
leaq -0x7a8(%rbp), %r12
leaq -0x508(%rbp), %r15
movq -0x68(%rbp), %r14
movq -0x70(%rbp), %rdx
jmp 0x1902b
cmpb $0x0, -0x150(%rbp)
je 0x1907d
addq %rbx, %rdi
callq 0x64ec
movl %eax, %r13d
movq -0x38(%rbp), %r15
cmpq -0x40(%rbp), %r15
jge 0x1904e
imulq $0x28, %rbx, %rdi
addq -0x190(%rbp), %rdi
movq %r15, %rsi
callq 0x903c
orq %rdx, (%rax)
movl -0x78(%rbp), %eax
addl -0x38(%rbp), %eax
movq %rbx, %rcx
shlq $0x5, %rcx
movq -0x170(%rbp), %rdx
movq (%rdx,%rcx), %r12
movsbl (%r12,%r15), %r14d
cmpq %rax, %r15
jne 0x190ed
movl %r13d, %eax
cmpb $0x2d, %r14b
je 0x19104
movl %r14d, %edi
callq 0x54f0
movl %eax, %ecx
movl %r13d, %eax
testl %ecx, %ecx
jne 0x19104
movb -0x29(%rbp), %cl
movl %r13d, %eax
cmpb %cl, %r13b
je 0x19104
movb $0x4e, %al
cmpb %cl, %r14b
jne 0x19104
jmp 0x19108
cmpb $0x2d, %r14b
jne 0x19108
movq -0xc0(%rbp), %rax
movsbl (%rax,%r15), %edi
callq 0x5580
movb %al, (%r12,%r15)
incq %r15
jmp 0x19081
movq %r15, %rdi
callq 0x5778
incq %r14
incq -0x38(%rbp)
movq -0x140(%rbp), %rbx
jmp 0x18fa7
xorl %ebx, %ebx
movq -0x58(%rbp), %rax
subq -0x60(%rbp), %rax
sarq $0x5, %rax
cmpq %rax, %rbx
jae 0x19309
movq -0xc0(%rbp), %r13
movq -0xb8(%rbp), %r12
movq %rbx, -0x150(%rbp)
shlq $0x5, %rbx
movq -0x170(%rbp), %r14
movq %rbx, -0x140(%rbp)
addq %rbx, %r14
xorps %xmm0, %xmm0
movss %xmm0, -0x70(%rbp)
xorl %r15d, %r15d
movss %xmm0, -0x68(%rbp)
movss %xmm0, -0x40(%rbp)
xorps %xmm2, %xmm2
cmpq %r15, %r12
je 0x1921b
movq (%r14), %rax
movsbl (%rax,%r15), %ebx
movl %ebx, %edi
movss %xmm2, -0x38(%rbp)
callq 0x56f0
movss -0x38(%rbp), %xmm1
movsbl (%r13,%r15), %ecx
movaps %xmm1, %xmm0
addss 0xbe4d(%rip), %xmm0     # 0x25004
cmpb %cl, %bl
je 0x191be
movaps %xmm1, %xmm0
movaps %xmm0, %xmm2
movsbl %al, %edx
cmpl %ecx, %edx
jne 0x191dc
movss -0x40(%rbp), %xmm0
addss 0xbe2f(%rip), %xmm0     # 0x25004
movss %xmm0, -0x40(%rbp)
jmp 0x19213
shll $0x18, %eax
cmpl $0x2d000000, %eax       # imm = 0x2D000000
je 0x19201
cmpl $0x4e000000, %eax       # imm = 0x4E000000
jne 0x19213
movss -0x68(%rbp), %xmm0
addss 0xbe0a(%rip), %xmm0     # 0x25004
movss %xmm0, -0x68(%rbp)
jmp 0x19213
movss -0x70(%rbp), %xmm0
addss 0xbdf6(%rip), %xmm0     # 0x25004
movss %xmm0, -0x70(%rbp)
incq %r15
jmp 0x19184
cvtsi2ss %r12, %xmm0
divss %xmm0, %xmm2
movss -0x40(%rbp), %xmm1
addss -0x68(%rbp), %xmm1
divss %xmm0, %xmm1
movaps %xmm1, %xmm0
movq -0x110(%rbp), %rax
movq -0x150(%rbp), %rbx
ucomiss (%rax,%rbx,4), %xmm2
leaq -0x508(%rbp), %r15
ja 0x19261
jne 0x192ad
jp 0x192ad
movq -0x130(%rbp), %rcx
ucomiss (%rcx,%rbx,4), %xmm0
jbe 0x192ad
movq -0x240(%rbp), %rcx
imulq $0x18, %rbx, %rsi
movq (%rcx,%rsi), %rdx
cmpq %rdx, 0x8(%rcx,%rsi)
je 0x1927e
addq %rsi, %rcx
movq %rdx, 0x8(%rcx)
movss %xmm2, (%rax,%rbx,4)
movq -0x130(%rbp), %rcx
movss %xmm0, (%rcx,%rbx,4)
cvttss2si -0x68(%rbp), %ecx
movq -0x1b0(%rbp), %rdx
movl %ecx, (%rdx,%rbx,4)
cvttss2si -0x70(%rbp), %ecx
movq -0x258(%rbp), %rdx
movl %ecx, (%rdx,%rbx,4)
ucomiss 0xc694(%rip), %xmm2     # 0x25948
jbe 0x19301
ucomiss (%rax,%rbx,4), %xmm2
jne 0x19301
jp 0x19301
movq -0x130(%rbp), %rax
ucomiss (%rax,%rbx,4), %xmm0
jne 0x19301
jp 0x19301
imulq $0x18, %rbx, %rdi
addq -0x240(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0xbe78
movq -0x170(%rbp), %rsi
movq -0x140(%rbp), %rdi
addq %rdi, %rsi
addq -0x288(%rbp), %rdi
callq 0x5200
incq %rbx
jmp 0x1912d
incl -0x118(%rbp)
xorl %r14d, %r14d
movb $0x1, %bl
leaq -0x7a8(%rbp), %r12
jmp 0x1932b
movq %r15, %rdi
callq 0x5778
xorl %ebx, %ebx
pushq $0x1
popq %r14
leaq -0x190(%rbp), %rdi
callq 0x1ac38
leaq -0x170(%rbp), %rdi
callq 0x911e
leaq -0xc0(%rbp), %rdi
callq 0x5778
leaq -0xf0(%rbp), %rdi
callq 0x5778
testl %r14d, %r14d
je 0x18deb
cmpl $0x9, %r14d
je 0x18deb
jmp 0x18d75
movq %r12, %rdi
callq 0x6db4
xorl %ebx, %ebx
movq -0x58(%rbp), %rax
subq -0x60(%rbp), %rax
sarq $0x5, %rax
cmpq %rbx, %rax
jbe 0x19710
leaq -0xe0(%rbp), %rax
movq %rax, -0xf0(%rbp)
andq $0x0, -0xe8(%rbp)
movb $0x0, -0xe0(%rbp)
movq -0x240(%rbp), %rax
imulq $0x18, %rbx, %r14
movq (%rax,%r14), %r12
movq %rbx, -0x38(%rbp)
imulq $0x38, %rbx, %r13
leaq -0xc0(%rbp), %r15
cmpq 0x8(%rax,%r14), %r12
je 0x1952b
movslq (%r12), %rdi
shlq $0x5, %rdi
addq -0x1d0(%rbp), %rdi
leaq 0xd0b7(%rip), %rsi      # 0x264a5
pushq $-0x1
popq %rdx
callq 0x53d0
cmpq $-0x1, %rax
je 0x19478
movq %rax, %rbx
movslq (%r12), %rsi
shlq $0x5, %rsi
addq -0x1d0(%rbp), %rsi
leaq -0x508(%rbp), %r15
movq %r15, %rdi
xorl %edx, %edx
movq %rax, %rcx
callq 0x5420
leaq -0xf0(%rbp), %rdi
movq %r15, %rsi
callq 0x54a0
movq %r15, %rdi
callq 0x5778
movslq (%r12), %rsi
shlq $0x5, %rsi
addq -0x1d0(%rbp), %rsi
incq %rbx
movq %r15, %rdi
movq %rbx, %rdx
pushq $-0x1
popq %rcx
callq 0x5420
movq %r15, %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0x1339e
movl %eax, -0x74(%rbp)
movq %r15, %rdi
callq 0x5778
leaq -0xc0(%rbp), %r15
movq -0x90(%rbp), %rdi
addq %r13, %rdi
leaq -0xf0(%rbp), %rsi
callq 0x13d4e
testq %rax, %rax
je 0x194b8
addq $0x28, %rax
movq %rax, %rdi
leaq -0x74(%rbp), %rsi
callq 0xbe78
leaq -0x2b0(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x903c
orq %rdx, (%rax)
jmp 0x1951b
xorps %xmm0, %xmm0
movaps %xmm0, -0xc0(%rbp)
andq $0x0, -0xb0(%rbp)
movq %r15, %rdi
leaq -0x74(%rbp), %rsi
callq 0xbe78
movq -0x90(%rbp), %rbx
movq %r15, %rdx
leaq -0x508(%rbp), %r15
movq %r15, %rdi
leaq -0xf0(%rbp), %rsi
callq 0x1ad04
addq %r13, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13e1e
movq %r15, %rdi
callq 0x13450
leaq -0xc0(%rbp), %r15
movq %r15, %rdi
callq 0xc052
addq $0x4, %r12
movq -0x240(%rbp), %rax
jmp 0x193cd
movq -0x130(%rbp), %rax
movq -0x38(%rbp), %rbx
movss (%rax,%rbx,4), %xmm0
ucomiss 0xbac2(%rip), %xmm0     # 0x25004
jne 0x19546
jnp 0x19593
movq -0x110(%rbp), %rax
movss (%rax,%rbx,4), %xmm0
ucomiss 0xc3ef(%rip), %xmm0     # 0x25948
leaq -0x7a8(%rbp), %r12
leaq -0x508(%rbp), %r15
jbe 0x196fc
imulq $0x30, %rbx, %rdi
addq -0x1f8(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x9a1e
movq -0x1b0(%rbp), %rax
cmpl $0x0, (%rax,%rbx,4)
jg 0x195cb
jmp 0x195e2
movq -0x1b0(%rbp), %rax
cmpl $0x0, (%rax,%rbx,4)
leaq -0x7a8(%rbp), %r12
leaq -0x508(%rbp), %r15
jle 0x196fc
movq -0x110(%rbp), %rax
movss (%rax,%rbx,4), %xmm0
ucomiss 0xc383(%rip), %xmm0     # 0x25948
jbe 0x196fc
imulq $0x30, %rbx, %rdi
addq -0x228(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x9a1e
movq -0x258(%rbp), %rax
cmpl $0x0, (%rax,%rbx,4)
jle 0x19606
imulq $0x30, %rbx, %rdi
addq -0x210(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x9a1e
movq %rbx, %r14
shlq $0x5, %r14
movq -0x60(%rbp), %rsi
addq %r14, %rsi
leaq -0x190(%rbp), %rbx
movq %rbx, %rdi
leaq 0xce80(%rip), %rdx      # 0x264a5
callq 0xbe9e
leaq -0x170(%rbp), %r13
movq %r13, %rdi
movq %rbx, %rsi
leaq -0xf0(%rbp), %rdx
callq 0x13522
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
leaq 0xcec0(%rip), %rdx      # 0x26517
callq 0xf751
movq %r15, %rdi
movq %rbx, %rsi
pushq $0x10
popq %rdx
callq 0x5740
movq %rbx, %rdi
callq 0x5778
leaq -0x170(%rbp), %rdi
callq 0x5778
leaq -0x190(%rbp), %rdi
callq 0x5778
movq %r15, %rdi
leaq 0xca03(%rip), %rsi      # 0x26097
callq 0x53f0
movq -0x60(%rbp), %rsi
addq %r14, %rsi
movq %rax, %rdi
callq 0x53a0
movq %rax, %rdi
leaq 0xcdf3(%rip), %rsi      # 0x264a5
callq 0x53f0
movq %rax, %rdi
leaq -0xf0(%rbp), %rsi
callq 0x53a0
movq %rax, %rdi
callq 0x51c0
addq -0x288(%rbp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x53a0
movq %rax, %rdi
callq 0x51c0
movq %r15, %rdi
callq 0x5560
movq %r15, %rdi
callq 0x55c0
movq -0x38(%rbp), %rbx
leaq -0xf0(%rbp), %rdi
callq 0x5778
incq %rbx
jmp 0x1937d
movb $0x1, %bl
jmp 0x18d75
movq %rax, %rbx
jmp 0x19727
movq %rax, %rbx
movq %r15, %rdi
callq 0x5778
movq %rbx, %rdi
callq 0x5170
movq 0x1c882(%rip), %rdi     # 0x35fb8
leaq 0xcd6a(%rip), %rsi      # 0x264a7
callq 0x53f0
movq -0x138(%rbp), %rcx
movq -0x1e0(%rbp), %rsi
addq (%rcx), %rsi
movq %rax, %rdi
callq 0x53a0
movq %rax, %rdi
callq 0x51c0
movq 0x1c84e(%rip), %rdi     # 0x35fb8
leaq 0xcd40(%rip), %rsi      # 0x264b1
callq 0x53f0
movq %rax, %rdi
callq 0x51c0
movq %rax, %rdi
leaq 0xcd47(%rip), %rsi      # 0x264cf
callq 0x53f0
movq %rax, %rdi
leaq -0xf0(%rbp), %rsi
callq 0x53a0
movq %rax, %rdi
callq 0x51c0
callq 0x5640
leaq -0x7a8(%rbp), %r12
leaq -0x508(%rbp), %r15
leaq -0xc0(%rbp), %rdi
callq 0x5778
leaq -0xf0(%rbp), %rdi
callq 0x5778
jmp 0x18d73
leaq 0xcae7(%rip), %rsi      # 0x262c2
movq -0x1d8(%rbp), %rdi
callq 0x13394
testb %al, %al
je 0x19860
xorps %xmm0, %xmm0
leaq -0x130(%rbp), %rbx
andq $0x0, 0x10(%rbx)
movaps %xmm0, (%rbx)
xorl %eax, %eax
leaq -0x2b0(%rbp), %r14
leaq -0x7a8(%rbp), %r15
movl %eax, -0x7a8(%rbp)
movslq %eax, %rsi
movq -0x58(%rbp), %rax
subq -0x60(%rbp), %rax
sarq $0x5, %rax
cmpq %rsi, %rax
jbe 0x198c9
movq -0x1f8(%rbp), %rax
imulq $0x30, %rsi, %rcx
cmpq $0x0, 0x28(%rax,%rcx)
jne 0x19856
movq %r14, %rdi
callq 0x903c
testq %rdx, (%rax)
jne 0x19856
movq %rbx, %rdi
movq %r15, %rsi
callq 0xbe78
movl -0x7a8(%rbp), %eax
incl %eax
jmp 0x1980d
leaq -0x7a0(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
xorl %r14d, %r14d
leaq -0x7a8(%rbp), %rbx
movq -0x58(%rbp), %rax
subq -0x60(%rbp), %rax
sarq $0x5, %rax
cmpq %r14, %rax
jbe 0x199f1
movq -0x90(%rbp), %rax
imulq $0x38, %r14, %rcx
leaq (%rax,%rcx), %r15
addq $0x10, %r15
movq (%r15), %r15
testq %r15, %r15
je 0x198c4
leaq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x9a1e
jmp 0x198ae
incq %r14
jmp 0x19886
leaq -0x9b0(%rbp), %rsi
movq -0x1d8(%rbp), %rdi
xorl %edx, %edx
callq 0x73fe
testl %eax, %eax
jne 0x19ded
leaq -0xc0(%rbp), %rsi
leaq -0xb0(%rbp), %rax
movq %rax, (%rsi)
andq $0x0, 0x8(%rsi)
movb $0x0, 0x10(%rsi)
leaq -0x9b0(%rbp), %rdi
callq 0x5080
leaq -0x7a8(%rbp), %rdi
callq 0x52b0
leaq -0x798(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x53a0
leaq -0x160(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq -0xe8(%rbp), %rcx
andl $0x0, (%rcx)
andq $0x0, 0x8(%rcx)
movb $0x0, (%rax)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
andq $0x0, 0x20(%rcx)
pushq $-0x1
popq %r13
xorl %r12d, %r12d
leaq -0x7a8(%rbp), %rbx
leaq -0x170(%rbp), %r14
pushq $0x9
popq %r15
movl $0x0, -0x38(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
movl %r15d, %edx
callq 0x56e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x19cf0
movq %r14, %rdi
leaq 0xcb77(%rip), %rsi      # 0x2651b
callq 0x132f3
movl %r12d, %ecx
movl %r12d, %edx
testb %al, %al
jne 0x199e6
movq %r14, %rdi
leaq 0xcb61(%rip), %rsi      # 0x2651e
callq 0x132f3
testb %al, %al
je 0x199ce
movl %r13d, %ecx
movl -0x38(%rbp), %edx
jmp 0x199e6
leaq -0xf0(%rbp), %rdi
movq %r14, %rsi
callq 0x1ac5a
movl %r12d, (%rax)
movl %r13d, %ecx
movl %r12d, %edx
incl %r12d
movl %ecx, %r13d
movl %edx, -0x38(%rbp)
jmp 0x1997a
movq 0x1c5c0(%rip), %rdi     # 0x35fb8
leaq 0xcbd6(%rip), %rsi      # 0x265d5
callq 0x53f0
movq -0x790(%rbp), %r15
movq 0x1c5a6(%rip), %rbx     # 0x35fb8
leaq 0xc8a8(%rip), %r14      # 0x262c1
leaq -0x7a0(%rbp), %rax
cmpq %rax, %r15
je 0x19a49
movq %rbx, %rdi
movq %r14, %rsi
callq 0x53f0
leaq 0x20(%r15), %rsi
movq %rax, %rdi
callq 0x53a0
movq %r15, %rdi
callq 0x5460
movq %rax, %r15
jmp 0x19a19
movq 0x1c568(%rip), %rdi     # 0x35fb8
callq 0x51c0
xorl %ecx, %ecx
movq 0x1c55a(%rip), %rbx     # 0x35fb8
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rcx, %rax
jbe 0x19cd5
movq %rcx, -0x40(%rbp)
movq %rcx, %rax
shlq $0x5, %rax
addq %rax, %rsi
movq %rbx, %rdi
callq 0x53a0
movq %rax, %rdi
leaq 0xc82b(%rip), %rsi      # 0x262c1
callq 0x53f0
movq -0x790(%rbp), %r14
movq -0x40(%rbp), %rax
imulq $0x30, %rax, %r15
imulq $0x38, %rax, %r13
leaq -0x7a0(%rbp), %rax
cmpq %rax, %r14
je 0x19cc1
leaq -0x508(%rbp), %rdi
leaq 0xc7f6(%rip), %rsi      # 0x262c2
leaq -0xf0(%rbp), %rdx
callq 0x77c0
movq -0x1f8(%rbp), %rdi
addq %r15, %rdi
movq %r14, -0x38(%rbp)
addq $0x20, %r14
movq %r14, %rsi
callq 0x9c1c
movq -0x1f8(%rbp), %rcx
addq %r15, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x19b18
leaq -0x508(%rbp), %rdi
leaq 0xcb27(%rip), %rsi      # 0x2663a
callq 0x5730
movq -0x228(%rbp), %rdi
addq %r15, %rdi
movq %r14, %rsi
callq 0x9c1c
movq -0x228(%rbp), %rcx
addq %r15, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x19b50
leaq -0x508(%rbp), %rdi
leaq 0xb8ec(%rip), %rsi      # 0x25437
callq 0x5720
movq -0x210(%rbp), %rdi
addq %r15, %rdi
movq %r14, %rsi
callq 0x9c1c
movq -0x210(%rbp), %rcx
addq %r15, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x19b88
leaq -0x508(%rbp), %rdi
leaq 0xcab5(%rip), %rsi      # 0x26638
callq 0x5720
movq -0x90(%rbp), %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0x1b8a6
movq 0x8(%rax), %rcx
cmpq (%rax), %rcx
je 0x19bdc
movq -0x90(%rbp), %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0x1b8a6
movq 0x8(%rax), %rcx
subq (%rax), %rcx
cmpq $0x4, %rcx
jne 0x19bf0
movq -0x90(%rbp), %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0x1b8a6
movq (%rax), %rax
jmp 0x19c7c
movq %rbx, %rdi
leaq 0xca52(%rip), %rsi      # 0x26638
callq 0x53f0
jmp 0x19c95
xorl %r12d, %r12d
movq -0x90(%rbp), %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0x1b8a6
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
decq %rcx
movq -0x90(%rbp), %rdi
addq %r13, %rdi
cmpq %r12, %rcx
jbe 0x19c4d
movq %r14, %rsi
callq 0x1b8a6
movq (%rax), %rax
movl (%rax,%r12,4), %esi
movq %rbx, %rdi
callq 0x56a0
movq %rax, %rdi
leaq 0xc9f9(%rip), %rsi      # 0x2663c
callq 0x53f0
incq %r12
jmp 0x19bf3
movq %r14, %rsi
callq 0x1b8a6
movq %rax, %r12
movq -0x90(%rbp), %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0x1b8a6
movq 0x8(%rax), %rcx
subq (%rax), %rcx
movq (%r12), %rax
addq %rcx, %rax
addq $-0x4, %rax
movl (%rax), %esi
movq %rbx, %rdi
callq 0x56a0
movq %rax, %rdi
leaq -0x508(%rbp), %rsi
callq 0x53a0
movq %rax, %rdi
leaq 0xc622(%rip), %rsi      # 0x262c1
callq 0x53f0
leaq -0x508(%rbp), %rdi
callq 0x5778
movq -0x38(%rbp), %rdi
callq 0x5460
movq %rax, %r14
jmp 0x19aae
movq %rbx, %rdi
callq 0x51c0
movq -0x40(%rbp), %rcx
incq %rcx
jmp 0x19a5e
leaq -0x7a8(%rbp), %rdi
callq 0x922a
movl $0x0, -0x114(%rbp)
jmp 0x19df9
cmpl $-0x1, %r13d
je 0x19d4a
movq -0xc8(%rbp), %rax
movq -0x90(%rbp), %rcx
cmpq 0x18(%rcx), %rax
jne 0x19d5a
movq -0xd8(%rbp), %r14
leaq -0xe8(%rbp), %rax
cmpq %rax, %r14
je 0x19e80
movq -0x90(%rbp), %rdi
leaq 0x20(%r14), %rbx
movq %rbx, %rsi
callq 0x13d4e
testq %rax, %rax
je 0x1a4e7
movq %r14, %rdi
callq 0x52a0
movq %rax, %r14
jmp 0x19d11
leaq 0xc7dc(%rip), %rsi      # 0x2652d
movq 0x1c298(%rip), %rdi     # 0x35ff0
jmp 0x19da8
movq 0x1c28f(%rip), %rdi     # 0x35ff0
leaq 0xc7f4(%rip), %rsi      # 0x2655c
callq 0x53f0
movq -0xc8(%rbp), %rsi
movq %rax, %rdi
callq 0x5280
leaq 0xc7e7(%rip), %rsi      # 0x2656a
movq %rax, %rdi
callq 0x53f0
movq -0x90(%rbp), %rcx
movq 0x18(%rcx), %rsi
movq %rax, %rdi
callq 0x5280
movq %rax, %rdi
leaq 0xc7e4(%rip), %rsi      # 0x2658c
callq 0x53f0
movq %rax, %rdi
callq 0x51c0
movq %rax, %rdi
callq 0x51c0
leaq -0xf0(%rbp), %rdi
callq 0x1ad3a
leaq -0x170(%rbp), %rdi
callq 0x5778
leaq -0x7a8(%rbp), %rdi
callq 0x5320
leaq -0xc0(%rbp), %rdi
callq 0x5778
leaq -0x130(%rbp), %rdi
callq 0xc052
leaq -0x2d0(%rbp), %rdi
callq 0x5778
leaq -0x2b0(%rbp), %rdi
callq 0x908a
leaq -0x210(%rbp), %rdi
callq 0x1acc0
leaq -0x228(%rbp), %rdi
callq 0x1acc0
leaq -0x1f8(%rbp), %rdi
callq 0x1acc0
leaq -0x90(%rbp), %rdi
callq 0x1ace2
movq -0x260(%rbp), %rsp
leaq -0x60(%rbp), %rdi
callq 0x911e
movl -0x114(%rbp), %ebx
leaq -0x9b0(%rbp), %rdi
callq 0x50e0
leaq -0x308(%rbp), %rdi
callq 0xbfa8
movl %ebx, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1c131(%rip), %rdi     # 0x35fb8
leaq 0xc747(%rip), %rsi      # 0x265d5
callq 0x53f0
leaq 0xc427(%rip), %rsi      # 0x262c1
movq %rax, %rdi
callq 0x53f0
movq 0x1c10f(%rip), %rdi     # 0x35fb8
leaq 0xc66b(%rip), %rsi      # 0x2651b
callq 0x53f0
movq -0xd8(%rbp), %r15
movq 0x1c0f5(%rip), %rbx     # 0x35fb8
leaq 0xc3f7(%rip), %r14      # 0x262c1
leaq -0xe8(%rbp), %rax
cmpq %rax, %r15
je 0x19efa
movq %rbx, %rdi
movq %r14, %rsi
callq 0x53f0
leaq 0x20(%r15), %rsi
movq %rax, %rdi
callq 0x53a0
movq %r15, %rdi
callq 0x52a0
movq %rax, %r15
jmp 0x19eca
movq 0x1c0b7(%rip), %rdi     # 0x35fb8
callq 0x51c0
leaq -0x180(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movslq -0x38(%rbp), %rax
movq %rax, -0x70(%rbp)
movslq %r13d, %rax
xorl %ebx, %ebx
leaq -0x190(%rbp), %r15
leaq -0x508(%rbp), %r12
leaq -0x170(%rbp), %r13
shlq $0x5, %rax
movq %rax, -0x40(%rbp)
pushq $0xa
popq %r14
leaq -0x9b0(%rbp), %rdi
movq %r15, %rsi
callq 0x5080
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1a195
movq %r12, %rdi
callq 0x52b0
leaq -0x4f8(%rbp), %rdi
movq %r15, %rsi
callq 0x53a0
incl %ebx
xorps %xmm0, %xmm0
movaps %xmm0, -0x110(%rbp)
andq $0x0, -0x100(%rbp)
movq %r12, %rdi
movq %r13, %rsi
pushq $0x9
popq %rdx
callq 0x56e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x19fc0
leaq -0x110(%rbp), %rdi
movq %r13, %rsi
callq 0x77fc
jmp 0x19f93
movq -0x108(%rbp), %rax
subq -0x110(%rbp), %rax
sarq $0x5, %rax
cmpq -0x70(%rbp), %rax
jb 0x1a530
movq %rbx, -0x68(%rbp)
movq -0x130(%rbp), %r13
cmpq -0x128(%rbp), %r13
je 0x1a158
movb $0x1, %r12b
movq -0xd8(%rbp), %r15
leaq -0xe8(%rbp), %rax
cmpq %rax, %r15
je 0x1a077
movslq (%r13), %rax
imulq $0x38, %rax, %rdi
addq -0x90(%rbp), %rdi
leaq 0x20(%r15), %rsi
callq 0x13d4e
movq %rax, %rbx
testq %rax, %rax
je 0x1a054
movslq 0x40(%r15), %rdi
shlq $0x5, %rdi
addq -0x110(%rbp), %rdi
xorl %esi, %esi
movl %r14d, %edx
callq 0x1339e
movq 0x28(%rbx), %rcx
cmpl (%rcx), %eax
sete %al
andb %r12b, %al
movl %eax, %r12d
jmp 0x1a06a
movq 0x1bf95(%rip), %rdi     # 0x35ff0
leaq 0xc5c4(%rip), %rsi      # 0x26626
callq 0x53f0
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x52a0
movq %rax, %r15
jmp 0x19ffe
testb $0x1, %r12b
je 0x1a14f
andq $0x0, -0x1a0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x1b0(%rbp)
movq -0x110(%rbp), %rbx
addq -0x40(%rbp), %rbx
movq %rbx, %rdi
leaq 0xc3fd(%rip), %rsi      # 0x264a5
pushq $-0x1
popq %r15
movq %r15, %rdx
callq 0x53d0
leaq 0x1(%rax), %rdx
leaq -0x1d0(%rbp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rcx
callq 0x5420
movq %r12, %rdi
xorl %esi, %esi
movl %r14d, %edx
callq 0x1339e
leaq -0x1b0(%rbp), %rdi
leaq -0x258(%rbp), %rbx
movl %eax, -0x258(%rbp)
movq %rbx, %rsi
callq 0x1b670
movq %r12, %rdi
callq 0x5778
movslq (%r13), %r15
movq %rbx, %rdx
movq -0x90(%rbp), %rbx
movq %r12, %rdi
leaq 0xc405(%rip), %rsi      # 0x2651b
callq 0x77c0
imulq $0x38, %r15, %rax
addq %rax, %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1b766
leaq -0x1b0(%rbp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0xfc5a
movq %r12, %rdi
callq 0x5778
movq %rbx, %rdi
callq 0xc052
addq $0x4, %r13
jmp 0x19fe7
movq -0x130(%rbp), %rbx
leaq -0x110(%rbp), %rdi
callq 0x911e
leaq -0x508(%rbp), %r12
movq %r12, %rdi
callq 0x5320
cmpq %rbx, %r13
movq -0x68(%rbp), %rbx
leaq -0x190(%rbp), %r15
leaq -0x170(%rbp), %r13
jne 0x19f47
leaq -0x9b0(%rbp), %rdi
callq 0x50a0
xorl %ecx, %ecx
leaq -0x508(%rbp), %r13
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rcx, %rax
jbe 0x1a529
movq %rcx, -0x40(%rbp)
movq %rcx, %rax
shlq $0x5, %rax
addq %rax, %rsi
movq 0x1bde1(%rip), %rdi     # 0x35fb8
callq 0x53a0
movq %rax, %rdi
leaq 0xc0db(%rip), %rsi      # 0x262c1
callq 0x53f0
movq -0x90(%rbp), %rbx
movq %r13, %rdi
leaq 0xc31f(%rip), %rsi      # 0x2651b
leaq -0x1d0(%rbp), %rdx
callq 0x77c0
imulq $0x38, -0x40(%rbp), %r12
addq %r12, %rbx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1b766
movq 0x8(%rax), %rbx
subq (%rax), %rbx
movq %r13, %rdi
callq 0x5778
cmpq $0x4, %rbx
jne 0x1a276
movq -0x90(%rbp), %rbx
movq %r13, %rdi
leaq 0xc2da(%rip), %rsi      # 0x2651b
leaq -0x1d0(%rbp), %rdx
callq 0x77c0
addq %r12, %rbx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1b766
movq (%rax), %rax
movl (%rax), %esi
movq 0x1bd51(%rip), %rdi     # 0x35fb8
callq 0x56a0
movq %r13, %rdi
callq 0x5778
jmp 0x1a289
movq 0x1bd3b(%rip), %rdi     # 0x35fb8
leaq 0xc3b4(%rip), %rsi      # 0x26638
callq 0x53f0
movq -0xd8(%rbp), %rcx
imulq $0x30, -0x40(%rbp), %r15
leaq -0xe8(%rbp), %rax
movq %rcx, -0x38(%rbp)
cmpq %rax, %rcx
je 0x1a4cf
movq %r13, %r14
movq %r13, %rdi
leaq 0xc00c(%rip), %rsi      # 0x262c2
leaq -0x1d0(%rbp), %rdx
callq 0x77c0
movq -0x1f8(%rbp), %rdi
addq %r15, %rdi
movq -0x38(%rbp), %rax
leaq 0x20(%rax), %r13
movq %r13, %rsi
callq 0x9c1c
movq -0x1f8(%rbp), %rcx
addq %r15, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x1a2fe
movq %r14, %rdi
leaq 0xc341(%rip), %rsi      # 0x2663a
callq 0x5730
movq -0x228(%rbp), %rdi
addq %r15, %rdi
movq %r13, %rsi
callq 0x9c1c
movq -0x228(%rbp), %rcx
addq %r15, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x1a332
movq %r14, %rdi
leaq 0xb10a(%rip), %rsi      # 0x25437
callq 0x5720
movq -0x210(%rbp), %rdi
addq %r15, %rdi
movq %r13, %rsi
callq 0x9c1c
movq -0x210(%rbp), %rcx
addq %r15, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x1a366
movq %r14, %rdi
leaq 0xc2d7(%rip), %rsi      # 0x26638
callq 0x5720
movq -0x90(%rbp), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x1b8a6
movq 0x8(%rax), %rcx
cmpq (%rax), %rcx
je 0x1a3d0
movq -0x90(%rbp), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x1b8a6
movq 0x8(%rax), %rcx
subq (%rax), %rcx
cmpq $0x4, %rcx
jne 0x1a3f7
movq 0x1bc11(%rip), %rdi     # 0x35fb8
leaq 0xbf13(%rip), %rsi      # 0x262c1
callq 0x53f0
movq %rax, %rbx
movq -0x90(%rbp), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x1b8a6
movq (%rax), %rax
jmp 0x1a49e
movq 0x1bbe1(%rip), %rdi     # 0x35fb8
leaq 0xbee3(%rip), %rsi      # 0x262c1
callq 0x53f0
movq %rax, %rdi
leaq 0xc24b(%rip), %rsi      # 0x26638
callq 0x53f0
jmp 0x1a4b3
movq 0x1bbba(%rip), %rdi     # 0x35fb8
leaq 0xbebc(%rip), %rsi      # 0x262c1
callq 0x53f0
xorl %ebx, %ebx
movq -0x90(%rbp), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x1b8a6
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
decq %rcx
movq -0x90(%rbp), %rdi
addq %r12, %rdi
cmpq %rbx, %rcx
jbe 0x1a469
movq %r13, %rsi
callq 0x1b8a6
movq (%rax), %rax
movl (%rax,%rbx,4), %esi
movq 0x1bb68(%rip), %rdi     # 0x35fb8
callq 0x56a0
movq %rax, %rdi
leaq 0xc1dd(%rip), %rsi      # 0x2663c
callq 0x53f0
incq %rbx
jmp 0x1a40c
movq %r13, %rsi
callq 0x1b8a6
movq %rax, %rbx
movq -0x90(%rbp), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x1b8a6
movq 0x8(%rax), %rcx
subq (%rax), %rcx
movq (%rbx), %rax
addq %rcx, %rax
addq $-0x4, %rax
movq 0x1bb1a(%rip), %rbx     # 0x35fb8
movl (%rax), %esi
movq %rbx, %rdi
callq 0x56a0
movq %rax, %rdi
movq %r14, %rsi
callq 0x53a0
movq %r14, %r13
movq %r14, %rdi
callq 0x5778
movq -0x38(%rbp), %rdi
callq 0x52a0
movq %rax, %rcx
jmp 0x1a295
movq 0x1bae2(%rip), %rdi     # 0x35fb8
callq 0x51c0
movq -0x40(%rbp), %rcx
incq %rcx
jmp 0x1a1aa
movq 0x1bb02(%rip), %rdi     # 0x35ff0
leaq 0xc0b5(%rip), %rsi      # 0x265aa
callq 0x53f0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x53a0
leaq 0xc0b2(%rip), %rsi      # 0x265be
movq %rax, %rdi
callq 0x53f0
movq %rax, %rdi
callq 0x51c0
movq %rax, %rdi
callq 0x51c0
jmp 0x19dbd
movb $0x1, %bl
jmp 0x1a5ba
movq 0x1bab9(%rip), %rdi     # 0x35ff0
leaq 0xc09e(%rip), %rsi      # 0x265dc
callq 0x53f0
movq %rax, %rdi
movl %ebx, %esi
callq 0x56a0
leaq 0xc0a8(%rip), %rsi      # 0x265fc
movq %rax, %rdi
callq 0x53f0
movq %rax, %rdi
movl -0x38(%rbp), %esi
callq 0x56a0
leaq 0xc0a4(%rip), %rsi      # 0x26612
movq %rax, %rdi
callq 0x53f0
movq -0x108(%rbp), %rsi
subq -0x110(%rbp), %rsi
sarq $0x5, %rsi
movq %rax, %rdi
callq 0x5280
movq %rax, %rdi
callq 0x51c0
movq %rax, %rdi
callq 0x51c0
leaq -0x110(%rbp), %rdi
callq 0x911e
leaq -0x508(%rbp), %rdi
callq 0x5320
xorl %ebx, %ebx
leaq -0x190(%rbp), %rdi
callq 0x5778
leaq -0xf0(%rbp), %rdi
callq 0x1ad3a
leaq -0x170(%rbp), %rdi
callq 0x5778
leaq -0x7a8(%rbp), %rdi
callq 0x5320
leaq -0xc0(%rbp), %rdi
callq 0x5778
leaq -0x130(%rbp), %rdi
callq 0xc052
testb %bl, %bl
jne 0x19ce1
jmp 0x19df9
jmp 0x1a7e7
movq %rax, %rbx
callq 0x5640
jmp 0x1a95b
movq %rax, %rdi
callq 0x7102
jmp 0x1a701
jmp 0x1a81c
jmp 0x1a6d7
movq %rax, %rbx
jmp 0x1a86c
jmp 0x1a642
movq %rax, %rbx
jmp 0x1a878
jmp 0x1a701
movq %rax, %rbx
jmp 0x1a82b
jmp 0x1a701
jmp 0x1a701
jmp 0x1a6bf
jmp 0x1a839
jmp 0x1a839
jmp 0x1a701
jmp 0x1a6d7
jmp 0x1a6d7
jmp 0x1a800
movq %rax, %rbx
jmp 0x1a9d3
jmp 0x1a6d7
jmp 0x1a701
jmp 0x1a6bf
jmp 0x1a797
movq %rax, %rbx
jmp 0x1a9eb
movq %rax, %rbx
jmp 0x1a9f7
movq %rax, %rbx
jmp 0x1aa03
movq %rax, %rbx
jmp 0x1aa0f
jmp 0x1a6b0
movq %rax, %rbx
jmp 0x1aa1b
jmp 0x1a6ba
movq %rax, %rbx
jmp 0x1a6f0
movq %rax, %rbx
jmp 0x1a884
movq %rax, %rbx
jmp 0x1aa24
movq %rax, %rbx
jmp 0x1aa30
movq %rax, %rbx
jmp 0x1a854
jmp 0x1a6e1
movq %rax, %rbx
leaq -0x1d0(%rbp), %rdi
callq 0x5778
leaq -0x1b0(%rbp), %rdi
callq 0xc052
jmp 0x1a81f
movq %rax, %rbx
jmp 0x1a848
jmp 0x1a839
jmp 0x1a839
jmp 0x1a81c
jmp 0x1a800
movq %rax, %rbx
jmp 0x1a97f
movq %rax, %rbx
jmp 0x1a98b
movq %rax, %rbx
jmp 0x1a997
movq %rax, %rbx
jmp 0x1a9a3
movq %rax, %rbx
jmp 0x1a9af
movq %rax, %rbx
jmp 0x1a9bb
movq %rax, %rbx
jmp 0x1a9c7
jmp 0x1a7df
jmp 0x1a800
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
callq 0x5778
jmp 0x1a773
movq %rax, %rbx
leaq -0x170(%rbp), %rdi
callq 0x5778
jmp 0x1a784
movq %rax, %rbx
leaq -0x190(%rbp), %rdi
jmp 0x1a962
jmp 0x1a90f
jmp 0x1a797
movq %rax, %rbx
jmp 0x1a9df
jmp 0x1a90f
movq %rax, %rbx
jmp 0x1a94f
movq %rax, %rbx
leaq -0x508(%rbp), %rdi
callq 0x5778
jmp 0x1a95b
jmp 0x1a7e7
movq %rax, %rbx
leaq -0x508(%rbp), %rdi
callq 0x908a
jmp 0x1a94f
jmp 0x1a7e7
jmp 0x1a8f0
jmp 0x1a839
movq %rax, %rbx
jmp 0x1a973
movq %rax, %rbx
jmp 0x1a95b
jmp 0x1a8ad
jmp 0x1a800
jmp 0x1a914
jmp 0x1a914
movq %rax, %rbx
jmp 0x1a923
movq %rax, %rbx
leaq -0x508(%rbp), %rdi
callq 0x55c0
jmp 0x1a967
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
callq 0x911e
leaq -0x508(%rbp), %rdi
callq 0x5320
jmp 0x1a848
movq %rax, %rbx
leaq -0x508(%rbp), %rdi
callq 0x5778
leaq -0x190(%rbp), %rdi
callq 0x5778
leaq -0xf0(%rbp), %rdi
callq 0x1ad3a
leaq -0x170(%rbp), %rdi
callq 0x5778
leaq -0x7a8(%rbp), %rdi
callq 0x5320
leaq -0xc0(%rbp), %rdi
callq 0x5778
leaq -0x130(%rbp), %rdi
callq 0xc052
jmp 0x1a9d3
jmp 0x1a934
jmp 0x1a8f0
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
callq 0x5778
jmp 0x1a8f3
movq %rax, %rbx
jmp 0x1a943
jmp 0x1a8b7
movq %rax, %rbx
jmp 0x1a8cb
movq %rax, %rbx
leaq -0x508(%rbp), %rdi
callq 0x13450
leaq -0xc0(%rbp), %rdi
callq 0xc052
jmp 0x1a967
movq %rax, %rbx
leaq -0x508(%rbp), %rdi
jmp 0x1a962
jmp 0x1a90f
jmp 0x1a90f
jmp 0x1a90f
jmp 0x1a934
movq %rax, %rbx
leaq -0x7a8(%rbp), %rdi
callq 0x908a
leaq -0x508(%rbp), %rdi
jmp 0x1a9da
jmp 0x1a914
jmp 0x1a934
movq %rax, %rbx
jmp 0x1a967
movq %rax, %rbx
leaq -0x508(%rbp), %rdi
callq 0x5778
leaq -0x7a8(%rbp), %rdi
callq 0x922a
jmp 0x1a9d3
movq %rax, %rbx
leaq -0x508(%rbp), %rdi
callq 0x5778
leaq -0x190(%rbp), %rdi
callq 0x1ac38
leaq -0x170(%rbp), %rdi
callq 0x911e
leaq -0xc0(%rbp), %rdi
callq 0x5778
leaq -0xf0(%rbp), %rdi
callq 0x5778
leaq -0x7a8(%rbp), %rdi
callq 0x6dea
leaq -0x288(%rbp), %rdi
callq 0x911e
leaq -0x240(%rbp), %rdi
callq 0xf730
leaq -0x258(%rbp), %rdi
callq 0xc052
leaq -0x1b0(%rbp), %rdi
callq 0xc052
leaq -0x110(%rbp), %rdi
callq 0x1b038
leaq -0x130(%rbp), %rdi
callq 0x1b038
leaq -0x1d0(%rbp), %rdi
callq 0x911e
leaq -0x2d0(%rbp), %rdi
callq 0x5778
leaq -0x2b0(%rbp), %rdi
callq 0x908a
leaq -0x210(%rbp), %rdi
callq 0x1acc0
leaq -0x228(%rbp), %rdi
callq 0x1acc0
leaq -0x1f8(%rbp), %rdi
callq 0x1acc0
leaq -0x90(%rbp), %rdi
callq 0x1ace2
leaq -0x60(%rbp), %rdi
callq 0x911e
leaq -0x9b0(%rbp), %rdi
callq 0x50e0
leaq -0x308(%rbp), %rdi
callq 0xbfa8
movq %rbx, %rdi
callq 0x56c0