// File: /workspace/github_cpp_makefile_star2_O1/richardposner[P]BioNetFit2/src/code/Evaluate.cpp
// Function: evaluateResults(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::map<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<int>, std::allocator<std::pair<int const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, float, float)
float evaluateResults(string inputFile1, string inputFile2, map<int,string> constraints, string outname, float iteration1, float iteration2) {
  ifstream simResult1;
  ifstream simResult2;
  ofstream outFile;
  /*
  if(argc != 4){
     cout << endl << endl;
     cout << "Usage: ./evaluate_results result_file1.txt result_file2.txt constraint_file.cons";
     cout << endl << endl;
     return 1;
  }
*/
  outFile.open(outname, ios_base::app);
  simResult1.open (inputFile1);
  simResult2.open (inputFile2);

  int count = 0;
  vector<string> constraintValue1;
  vector<string> constraintValue2;
  vector<string> constraintOp;
  vector<string> variableNames1;
  vector<string> variableValues1;
  vector<string> variableNames2;
  vector<string> variableValues2;


  string constraintItem;


  map< string, map <int, double> > namesValues1;
  map< string, map <int, double> > namesValues2;

  string possibleConstraints("<>=!");
  size_t pos = 0;
  size_t newpos;
  size_t newpos2;

  string line;

  string tmpStr;

//just to test if the constraing function works
//int test = constraintFunction(0, "=", 0);
//cout << "test result is: " << test << endl; //the result should be 1

  //tests if input files exist
  if (!simResult1.is_open()){cout << "Error! Can't find simulation result file 1.\n"; return 1;}
  if (!simResult2.is_open()){cout << "Error! Can't find simulation result file 2.\n"; return 1;}

  //reads test constraints file
//  cout << "Reading constraints file..." << endl;


  for(auto it = constraints.begin(); it!=constraints.end(); ++it){
      //parse constraints using a logical expression parser
      //continue here
      //constraintValue1[0] = line.substr(0, line.find(constraints));
	  	  line = it->second;
        newpos = line.find_first_of(possibleConstraints, pos);
        constraintValue1.push_back(line.substr(pos, newpos));

        newpos2 = line.find_last_of(possibleConstraints);
        constraintValue2.push_back(line.substr(newpos2+1));

        //cout << "newpos " << newpos << " newpos2 " << newpos2 << endl;

        if(newpos == newpos2){
	constraintOp.push_back(line.substr(newpos,1));

        }else{constraintOp.push_back(line.substr(newpos,newpos2-newpos+1));}



        count++;


  }



  cout << "Done reading constraints file." << endl;







  //get variable/collumn names
  //cout << "Reading Result File 1..." << endl;
  getline (simResult1,line);
  variableNames1 = splitResults(line, ' ');

  if(variableNames1.size() <= 1){
	  variableNames1 = splitResults(line, '\t');
	  if(variableNames1.size() <= 1){
		cout << "Can't split result table, are you using space or tab as delimiter?" << endl;
		return 1;

	  }

  }

  for (unsigned int i = 0; i < variableNames1.size(); i++){
      if (variableNames1[i].empty() || variableNames1[i]=="#"){
         //cout << "Found empty string at " << i << endl;
         variableNames1.erase(variableNames1.begin()+i);
         i--;
      }
   }

/*
  //debug
  for(int i = 0; i < variableNames.size(); i++){
      cout << i << ": !!!!" << variableNames[i] << "@@@@" << endl;

  }
*/

  //get variable values
  count = 0;
  while ( getline (simResult1,line) ){

      //cout << line << '\n';

      variableValues1 =  splitResults(line, ' ');

      if(variableValues1.size() <= 1){
    	  variableValues1 = splitResults(line, '\t');
    	  if(variableValues1.size() <= 1){
    		cout << "Can't split result table, are you using space or tab as delimiter?" << endl;
    		return 1;

    	  }

      }

      for(unsigned int i = 0; i < variableValues1.size(); i++){
          if (variableValues1[i].empty()){
             //cout << "Found empty string at " << i << endl;
             variableValues1.erase(variableValues1.begin()+i);
             i--;
          }

       }

       //start making the map here
       //make a map with the variable names (string) vs their index (int), pointing to values (double)
       //example map[variableNames[i]][count] = variableValues[i];
       for(unsigned int i = 0; i < variableNames1.size(); i++){

          if(variableNames1[i] != "Iteration" || variableNames1[i] != "iteration" || variableNames1[i] != "time" || variableNames1[i] != "Time"){
             tmpStr = static_cast<string>(variableValues1[i]);
             namesValues1[variableNames1[i]][count] = atof(tmpStr.c_str());
             //cout << "tmpStr: " << tmpStr << endl;
             //cout << "name: " << variableNames[i] << "; value at " << count << ": " << namesValues[variableNames[i]][count]  << endl;
          }


       }


  count++;

  }


  //cout << "FOUND LINES IN THE RESULT FILE: " << count << endl;

  simResult1.close();


  //cout << "Done reading Result File 1." << endl;








  //get variable/collumn names
  //cout << "Reading Result File 2..." << endl;
  getline (simResult2,line);
  variableNames2 = splitResults(line, ' ');

  if(variableNames2.size() <= 1){
	  variableNames2 = splitResults(line, '\t');
	  if(variableNames2.size() <= 1){
		cout << "Can't split result table, are you using space or tab as delimiter?" << endl;
		return 1;

	  }

  }

  for (unsigned int i = 0; i < variableNames2.size(); i++){
      if (variableNames2[i].empty() || variableNames2[i]=="#"){
         //cout << "Found empty string at " << i << endl;
         variableNames2.erase(variableNames2.begin()+i);
         i--;
      }
   }

/*//debug
  for(int i = 0; i < variableNames.size(); i++){
      cout << i << ": !!!!" << variableNames[i] << "@@@@" << endl;

  }
*/
  //get variable values
  count = 0;
  while ( getline (simResult2,line) ){

      //cout << line << '\n';

      variableValues2 =  splitResults(line, ' ');

      if(variableValues2.size() <= 1){
    	  variableValues2 = splitResults(line, '\t');
    	  if(variableValues2.size() <= 1){
    		cout << "Can't split result table, are you using space or tab as delimiter?" << endl;
    		return 1;

    	  }

      }

      for(unsigned int i = 0; i < variableValues2.size(); i++){
          if (variableValues2[i].empty()){
             //cout << "Found empty string at " << i << endl;
             variableValues2.erase(variableValues2.begin()+i);
             i--;
          }

       }

       //start making the map here
       //make a map with the variable names (string) vs their index (int), pointing to values (double)
       //example map[variableNames[i]][count] = variableValues[i];

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

          if(variableNames2[i] != "Iteration" || variableNames2[i] != "iteration"){

             tmpStr = static_cast<string>(variableValues2[i]);
             namesValues2[variableNames2[i]][count] = atof(tmpStr.c_str());
            //cout << "tmpStr: " << tmpStr << endl;
            // cout << "name: " << variableNames[i] << "; value at " << count << ": " << namesValues[variableNames[i]][count]  << endl;
          }


      }


  count++;

  }


  simResult2.close();


  //cout << "Done reading Result File 2." << endl;

float constraintDist;
float result;
float constraintDistC = 0;
//added new model checking method
float fulfilledConstrants = 0;
int first = 0;
vector<string> consList;
//Now test if the constraints are fulfilled
 //And return a list of iterations or time points and whether they were fulfilled
 //cout << "Time" << "\t" << "Constraint" << "\t" << "Result(0=FALSE;1=TRUE)" << endl;
 //outFile << "Time" << "\t" << "Constraint" << "\t" << "Result(0=FALSE;1=TRUE)" << endl; //old mode
	outFile << "Time" << "\t" << "Constraints_fulfilled" << endl;
 for(unsigned int i = 0; i < constraintValue1.size(); i++){
     //constraintFunction(0, "=", 0);
     //cout << "@@@" << constraintValue1[i] << "@@@map size" << namesValues1[constraintValue1[i]].size() << endl;
 //    cout << constraintValue1[i] << "\t" <<  constraintOp[i] << "\t" << constraintValue2[i] << endl;
     cout << "Starting test for constraint: " << constraintValue1[i] << " " <<  constraintOp[i] << " " << constraintValue2[i] << " Iteration1 " << iteration1 << " Iteration2 " << iteration2 << endl;

     for (unsigned int j = 0; j < namesValues1[variableNames1[i]].size(); j++){
    	 //Raquel: added this if to check only the last time point
         //if(j==namesValues1[variableNames1[i]].size()-1){
    	 //if found the desired time point

    	 for(unsigned int k = 0; k < namesValues2[variableNames2[i]].size(); k++){
    		 //if we reach the correct time point/iteration specified by the user

    		 if(namesValues1[variableNames1[0]][j] == iteration1 && namesValues2[variableNames2[0]][k] == iteration2){
        	 	 cout << "FOUND TIME POINT 1= " << iteration1 << " TIME POINT2= " << iteration2 << endl;
        	 	 cout << "MODEL 1 " << inputFile1 << endl;
        	 	 cout << "MODEL 2 " << inputFile2 << endl;
        	 	cout << "Original constraint: " << constraintValue1[i] << " " << constraintOp[i] << " " << constraintValue2[i] << endl;

        	 	 //cout << "FOUND LAST TIME POINT j= " << j << " value " << namesValues1[variableNames1[0]][j] << endl;
        	 	 //cout << namesValues[constraintValue1[i]][j] << " " << constraintOp[i] << " " << namesValues[constraintValue2[i]][j];

        	 	 //if both constraint values belong to observables (are not explicit numbers)
        	 	 if(constraintValue1[i].find_first_not_of("-01234567890.") != string::npos && constraintValue2[i].find_first_not_of("-01234567890.") != string::npos){

        		 	 result = constraintFunction(namesValues1[constraintValue1[i]][j], constraintOp[i], namesValues2[constraintValue2[i]][j]);
            	 	 cout << "Constraint values: " << namesValues1[constraintValue1[i]][j] << " " << constraintOp[i] << " " << namesValues2[constraintValue2[i]][j] << endl;
            	 	 // (expected_value/(constraint_diff+expected_value))
            	 	 if(result==0){
            	 		 constraintDist = sqrt( pow( ( namesValues2[constraintValue2[i]][j]-namesValues1[constraintValue1[i]][j] ), 2) );
            	 		 result=( namesValues2[constraintValue2[i]][j] / (constraintDist + namesValues2[constraintValue2[i]][j]) );

            	 	 }


        	 	 }else if(constraintValue1[i].find_first_not_of("-01234567890.") != string::npos && constraintValue2[i].find_first_not_of("-01234567890.") == string::npos){

        	 		 result = constraintFunction(namesValues1[constraintValue1[i]][j], constraintOp[i], atof(constraintValue2[i].c_str()));
            	 	 cout << "Constraint values: " << namesValues1[constraintValue1[i]][j] << " " << constraintOp[i] << " " << atof(constraintValue2[i].c_str()) << endl;
            	 	 if(result==0){
            	 		 constraintDist = sqrt( pow( ( atof(constraintValue2[i].c_str())-namesValues1[constraintValue1[i]][j] ), 2) );
            	 		 result=( atof(constraintValue2[i].c_str()) / (constraintDist + atof(constraintValue2[i].c_str()) ) );

            	 	 }
        	 	 }else if(constraintValue1[i].find_first_not_of("-01234567890.") == string::npos && constraintValue2[i].find_first_not_of("-01234567890.") != string::npos){

        		 	 result = constraintFunction(atof(constraintValue1[i].c_str()), constraintOp[i], namesValues2[constraintValue2[i]][j]);
            	 	 cout << "Constraint values: " << atof(constraintValue1[i].c_str()) << " " << constraintOp[i] << " " << namesValues2[constraintValue2[i]][j] << endl;

            	 	 if(result==0){
            	 		 constraintDist = sqrt( pow( ( namesValues2[constraintValue2[i]][j]-atof(constraintValue1[i].c_str()) ), 2) );
            	 		 result=( namesValues2[constraintValue2[i]][j] / (constraintDist + namesValues2[constraintValue2[i]][j]) );

            	 	 }
        	 	 }else if(constraintValue1[i].find_first_not_of("-01234567890.") == string::npos && constraintValue2[i].find_first_not_of("-01234567890.") == string::npos){

        		 	 cout << "ERROR can't find any constraint value in the observable list!!!" << endl;
        		 	 cout << "constraint value 1: " << constraintValue1[i] << "constraint value 2: " << constraintValue2[i] << endl;

        	 	 }

        	 	 cout << "RESULT=" << result << endl;
        	 //cout << " = " << result << "; iteration = " << j << " constraints = " << constraintValue1[i] << constraintOp[i] << constraintValue2[i] << endl;

        	 	 if(result<=1 && result>0){

        	 		 fulfilledConstrants+=result;

        	 		 if(result<1){
        	 		    constraintDistC+=constraintDist*0.05;
        	 		 }

        	 		 if(result==1){
            	 		 consList.push_back(constraintValue1[i]+constraintOp[i]+constraintValue2[i]);
            	 		 //outFile << constraintValue1[i]<< constraintOp[i] << constraintValue2[i]<< " " << ;

        	 		 }
        	 		 result = 0;
        	 		 constraintDist = 0;
        	 	 }else{
        	 		 cout << "ERROR invalid constraint result: " << result << endl;
        	 		 result = 0;
        	 		 constraintDist=0;
        	 	 }
        	 	 if( (variableNames1[0]=="time" || variableNames1[0]=="Time") && first==0){
        	 		 //cout << namesValues1[variableNames1[0]][j] << "\t";
        	 		 outFile << namesValues1[variableNames1[0]][j] << "\t";
        	 		 first = 1;
        	 	 }else{
        	 		 if(first==0){
        	 			 outFile << j+1 << "\t";
        		 	 	 first = 1;
        	 		 }
        	 		 //cout << j+1 << "\t";

        	 	 }
        	 	 cout << constraintValue1[i] << constraintOp[i] << constraintValue2[i] << "\t";
        	 	 cout << result <<endl; //old mode
        	 	 outFile << constraintValue1[i] << constraintOp[i] << constraintValue2[i] << "\t"; //old mode
        	 	 outFile << result << endl; //old mode




         	 }


    	 }

     }




 }

 outFile << fulfilledConstrants << "\t";

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

	 outFile << consList[i] << "\t";


 }
 	 outFile << constraintDistC << endl;

 	consList.clear();


 outFile.close();


//namesValues[variableNames[i]][count]

  return fulfilledConstrants;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x8e8, %rsp            # imm = 0x8E8
movss %xmm1, 0x8(%rsp)
movss %xmm0, 0x138(%rsp)
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, 0x1a0(%rsp)
movq %rdi, 0x1a8(%rsp)
leaq 0x6e0(%rsp), %rdi
callq 0x22aa0
leaq 0x4d8(%rsp), %rdi
callq 0x22aa0
leaq 0x2d8(%rsp), %rdi
callq 0x23190
leaq 0x2d8(%rsp), %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x22420
leaq 0x6e0(%rsp), %rdi
movq 0x1a8(%rsp), %rsi
movl $0x8, %edx
callq 0x22840
leaq 0x4d8(%rsp), %rdi
movq 0x1a0(%rsp), %rsi
movl $0x8, %edx
callq 0x22840
xorl %eax, %eax
movl %eax, 0x44(%rsp)
movq %rax, 0xe0(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0xd0(%rsp)
movq %rax, 0xc0(%rsp)
movaps %xmm0, 0xb0(%rsp)
movq %rax, 0x150(%rsp)
movaps %xmm0, 0x140(%rsp)
movq %rax, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movq %rax, 0x120(%rsp)
movaps %xmm0, 0x110(%rsp)
movq %rax, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movq %rax, 0x100(%rsp)
movaps %xmm0, 0xf0(%rsp)
leaq 0x2a8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
leaq 0x268(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x1f8(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x1c0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x89cc6(%rip), %rsi     # 0xfdd53
leaq 0x89cc3(%rip), %rdx     # 0xfdd57
leaq 0x1b0(%rsp), %rdi
callq 0x32210
leaq 0x170(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x1e0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x758(%rsp), %rdi
callq 0x221e0
testb %al, %al
je 0x74748
leaq 0x550(%rsp), %rdi
callq 0x221e0
testb %al, %al
je 0x74751
movq 0x18(%r14), %rbx
addq $0x8, %r14
movq %r14, 0x48(%rsp)
cmpq %r14, %rbx
je 0x74257
leaq 0x20(%rsp), %r15
leaq 0x160(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x28(%rbx), %rsi
movq %r12, %rdi
callq 0x22500
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rcx
movq %r12, %rdi
xorl %edx, %edx
callq 0x22f50
movq %rax, %r14
movq %r13, %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x22a00
leaq 0xd0(%rsp), %rdi
movq %r13, %rsi
callq 0x6a77e
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x74179
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rcx
movq %r12, %rdi
movq $-0x1, %rdx
callq 0x23450
movq %rax, %rbp
leaq 0x1(%rax), %rdx
movq %r13, %rdi
movq %r12, %rsi
movq $-0x1, %rcx
callq 0x22a00
leaq 0xb0(%rsp), %rdi
movq %r13, %rsi
callq 0x6a77e
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x741d8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x229c0
subq %r14, %rbp
jne 0x74202
movl $0x1, %ecx
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x22a00
leaq 0x140(%rsp), %rdi
movq %r13, %rsi
callq 0x6a77e
jmp 0x74226
incq %rbp
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x22a00
leaq 0x140(%rsp), %rdi
movq %r13, %rsi
callq 0x6a77e
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x7423d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x229c0
incl 0x44(%rsp)
movq %rbx, %rdi
callq 0x22670
movq %rax, %rbx
cmpq 0x48(%rsp), %rax
jne 0x74119
movq 0x101d32(%rip), %rbx    # 0x175f90
leaq 0x89b4d(%rip), %rsi     # 0xfddb2
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x22ab0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x101d00(%rip), %r15    # 0x175f90
movq %r15, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x6e0(%rsp), %rax
leaq 0x6e0(%rsp), %rdi
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %edx
leaq 0x6e0(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0x23300
leaq 0x50(%rsp), %rdi
leaq 0x160(%rsp), %rsi
movl $0x20, %edx
callq 0x73cf4
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movaps 0x70(%rsp), %xmm0
movq 0x80(%rsp), %rax
leaq 0x50(%rsp), %rbx
movups (%rbx), %xmm1
movaps %xmm1, 0x70(%rsp)
movq 0x10(%rbx), %rcx
movq %rcx, 0x80(%rsp)
movapd (%rdi), %xmm1
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movupd %xmm1, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x31a9e
movq %rbx, %rdi
callq 0x31a9e
movq 0x78(%rsp), %rax
subq 0x70(%rsp), %rax
cmpq $0x20, %rax
ja 0x743d6
leaq 0x50(%rsp), %rdi
leaq 0x160(%rsp), %rsi
movl $0x9, %edx
callq 0x73cf4
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movaps 0x70(%rsp), %xmm0
movq 0x80(%rsp), %rax
leaq 0x50(%rsp), %rbx
movups (%rbx), %xmm1
movaps %xmm1, 0x70(%rsp)
movq 0x10(%rbx), %rcx
movq %rcx, 0x80(%rsp)
movapd (%rdi), %xmm1
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movupd %xmm1, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x31a9e
movq %rbx, %rdi
callq 0x31a9e
movq 0x78(%rsp), %rax
subq 0x70(%rsp), %rax
cmpq $0x21, %rax
jb 0x74a3e
movq 0x70(%rsp), %rdi
cmpq %rdi, 0x78(%rsp)
je 0x7443e
xorl %r12d, %r12d
leaq 0x70(%rsp), %rbx
leaq 0x83da2(%rip), %r14     # 0xf8193
xorl %r13d, %r13d
shlq $0x5, %r12
cmpq $0x0, 0x8(%rdi,%r12)
je 0x7440f
addq %r12, %rdi
movq %r14, %rsi
callq 0x22250
testl %eax, %eax
jne 0x74422
addq 0x70(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7662c
decl %r13d
incl %r13d
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
movq %r13, %r12
cmpq %r13, %rax
ja 0x743f4
xorl %eax, %eax
leaq 0x160(%rsp), %r12
leaq 0x50(%rsp), %r13
leaq 0x10(%rsp), %rbp
leaq 0x899bb(%rip), %rbx     # 0xfde14
movl %eax, 0x44(%rsp)
movq 0x6e0(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x6e0(%rsp), %r14
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x23300
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x748e7
movq %r13, %rdi
movq %r12, %rsi
movl $0x20, %edx
callq 0x73cf4
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps 0x110(%rsp), %xmm0
movq 0x120(%rsp), %rax
movups 0x50(%rsp), %xmm1
movaps %xmm1, 0x110(%rsp)
movq 0x60(%rsp), %rcx
movq %rcx, 0x120(%rsp)
movapd 0x10(%rsp), %xmm1
movaps %xmm0, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movupd %xmm1, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq %rbp, %rdi
callq 0x31a9e
movq %r13, %rdi
callq 0x31a9e
movq 0x118(%rsp), %rax
subq 0x110(%rsp), %rax
cmpq $0x20, %rax
ja 0x745b4
movq %r13, %rdi
movq %r12, %rsi
movl $0x9, %edx
callq 0x73cf4
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps 0x110(%rsp), %xmm0
movq 0x120(%rsp), %rax
movups 0x50(%rsp), %xmm1
movaps %xmm1, 0x110(%rsp)
movq 0x60(%rsp), %rcx
movq %rcx, 0x120(%rsp)
movapd 0x10(%rsp), %xmm1
movaps %xmm0, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movupd %xmm1, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq %rbp, %rdi
callq 0x31a9e
movq %r13, %rdi
callq 0x31a9e
movq 0x118(%rsp), %rax
subq 0x110(%rsp), %rax
cmpq $0x21, %rax
jb 0x74a3e
movq 0x110(%rsp), %rsi
cmpq %rsi, 0x118(%rsp)
je 0x7460c
xorl %eax, %eax
xorl %r12d, %r12d
shlq $0x5, %rax
cmpq $0x0, 0x8(%rsi,%rax)
jne 0x745ea
addq %rax, %rsi
leaq 0x110(%rsp), %rdi
callq 0x7662c
decl %r12d
incl %r12d
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
movq %r12, %rax
cmpq %r12, %rcx
ja 0x745cb
movq 0x70(%rsp), %rdi
cmpq %rdi, 0x78(%rsp)
je 0x74730
movl $0x1, %r13d
xorl %r12d, %r12d
shlq $0x5, %r12
addq %r12, %rdi
movq %rbx, %rsi
callq 0x22250
testl %eax, %eax
jne 0x74684
movq 0x70(%rsp), %rdi
addq %r12, %rdi
leaq 0x84dcd(%rip), %rsi     # 0xf9414
callq 0x22250
testl %eax, %eax
jne 0x74684
movq 0x70(%rsp), %rdi
addq %r12, %rdi
leaq 0x7d16b(%rip), %rsi     # 0xf17ca
callq 0x22250
testl %eax, %eax
jne 0x74684
movq 0x70(%rsp), %rdi
addq %r12, %rdi
leaq 0x897a7(%rip), %rsi     # 0xfde1e
callq 0x22250
testl %eax, %eax
je 0x74710
movq 0x110(%rsp), %rax
leaq 0x20(%rsp), %r14
movq %r14, 0x10(%rsp)
movq (%rax,%r12), %rsi
movq 0x8(%rax,%r12), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x32180
leaq 0x1d0(%rsp), %rdi
movq %rbp, %rsi
callq 0x22bb0
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x746d1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1d0(%rsp), %rdi
callq 0x22be0
movsd %xmm0, 0x48(%rsp)
addq 0x70(%rsp), %r12
leaq 0x260(%rsp), %rdi
movq %r12, %rsi
callq 0x764c8
movq %rax, %rdi
leaq 0x44(%rsp), %rsi
callq 0x76544
movsd 0x48(%rsp), %xmm0
movsd %xmm0, (%rax)
movl %r13d, %r12d
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
incl %r13d
cmpq %r12, %rax
ja 0x74625
movl 0x44(%rsp), %eax
incl %eax
leaq 0x160(%rsp), %r12
leaq 0x50(%rsp), %r13
jmp 0x74459
leaq 0x89609(%rip), %rsi     # 0xfdd58
jmp 0x74758
leaq 0x8962d(%rip), %rsi     # 0xfdd85
movq 0x101831(%rip), %rdi    # 0x175f90
movl $0x2c, %edx
callq 0x22ab0
movss 0x895c7(%rip), %xmm0    # 0xfdd38
movss %xmm0, 0x40(%rsp)
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x7479c
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x747c1
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x747e6
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x1f0(%rsp), %rdi
callq 0x765a8
leaq 0x260(%rsp), %rdi
callq 0x765a8
movq 0x298(%rsp), %rdi
leaq 0x2a8(%rsp), %rax
cmpq %rax, %rdi
je 0x74825
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xf0(%rsp), %rdi
callq 0x31a9e
leaq 0x90(%rsp), %rdi
callq 0x31a9e
leaq 0x110(%rsp), %rdi
callq 0x31a9e
leaq 0x70(%rsp), %rdi
callq 0x31a9e
leaq 0x140(%rsp), %rdi
callq 0x31a9e
leaq 0xb0(%rsp), %rdi
callq 0x31a9e
leaq 0xd0(%rsp), %rdi
callq 0x31a9e
movq 0x1016ec(%rip), %rax    # 0x175f70
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x2e0(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x2d8(%rsp,%rcx)
callq 0x227d0
leaq 0x3d0(%rsp), %rdi
callq 0x222d0
leaq 0x4d8(%rsp), %rdi
callq 0x22200
leaq 0x6e0(%rsp), %rdi
callq 0x22200
movss 0x40(%rsp), %xmm0
addq $0x8e8, %rsp            # imm = 0x8E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6e0(%rsp), %rdi
callq 0x221b0
movq 0x4d8(%rsp), %rax
leaq 0x4d8(%rsp), %rdi
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %edx
leaq 0x4d8(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0x23300
leaq 0x50(%rsp), %rdi
leaq 0x160(%rsp), %rsi
movl $0x20, %edx
callq 0x73cf4
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movaps 0x90(%rsp), %xmm0
movq 0xa0(%rsp), %rax
leaq 0x50(%rsp), %rbx
movups (%rbx), %xmm1
movaps %xmm1, 0x90(%rsp)
movq 0x10(%rbx), %rcx
movq %rcx, 0xa0(%rsp)
movapd (%rdi), %xmm1
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movupd %xmm1, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x31a9e
movq %rbx, %rdi
callq 0x31a9e
movq 0x98(%rsp), %rax
subq 0x90(%rsp), %rax
cmpq $0x20, %rax
ja 0x74a89
leaq 0x50(%rsp), %rdi
leaq 0x160(%rsp), %rsi
movl $0x9, %edx
callq 0x73cf4
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movaps 0x90(%rsp), %xmm0
movq 0xa0(%rsp), %rax
leaq 0x50(%rsp), %rbx
movups (%rbx), %xmm1
movaps %xmm1, 0x90(%rsp)
movq 0x10(%rbx), %rcx
movq %rcx, 0xa0(%rsp)
movapd (%rdi), %xmm1
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movupd %xmm1, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x31a9e
movq %rbx, %rdi
callq 0x31a9e
movq 0x98(%rsp), %rax
subq 0x90(%rsp), %rax
cmpq $0x21, %rax
jae 0x74a89
movq 0x10154b(%rip), %rbx    # 0x175f90
leaq 0x89385(%rip), %rsi     # 0xfddd1
movl $0x42, %edx
movq %rbx, %rdi
callq 0x22ab0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x101519(%rip), %rdi    # 0x175f90
callq 0x22050
movq %rax, %rdi
callq 0x22660
jmp 0x74769
movq 0x90(%rsp), %rdi
cmpq %rdi, 0x98(%rsp)
je 0x74b03
xorl %r12d, %r12d
leaq 0x90(%rsp), %rbx
leaq 0x836e6(%rip), %r14     # 0xf8193
xorl %r13d, %r13d
shlq $0x5, %r12
cmpq $0x0, 0x8(%rdi,%r12)
je 0x74acb
addq %r12, %rdi
movq %r14, %rsi
callq 0x22250
testl %eax, %eax
jne 0x74ae1
addq 0x90(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7662c
decl %r13d
incl %r13d
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
movq %r13, %r12
cmpq %r13, %rax
ja 0x74ab0
xorl %eax, %eax
leaq 0x160(%rsp), %r14
leaq 0x50(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x892f6(%rip), %rbp     # 0xfde14
movl %eax, 0x44(%rsp)
movq 0x4d8(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x4d8(%rsp), %rbx
addq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23300
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x74def
movq %r12, %rdi
movq %r14, %rsi
movl $0x20, %edx
callq 0x73cf4
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps 0xf0(%rsp), %xmm0
movq 0x100(%rsp), %rax
movups 0x50(%rsp), %xmm1
movaps %xmm1, 0xf0(%rsp)
movq 0x60(%rsp), %rcx
movq %rcx, 0x100(%rsp)
movapd 0x10(%rsp), %xmm1
movaps %xmm0, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movupd %xmm1, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq %r13, %rdi
callq 0x31a9e
movq %r12, %rdi
callq 0x31a9e
movq 0xf8(%rsp), %rax
subq 0xf0(%rsp), %rax
cmpq $0x20, %rax
ja 0x74c79
movq %r12, %rdi
movq %r14, %rsi
movl $0x9, %edx
callq 0x73cf4
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps 0xf0(%rsp), %xmm0
movq 0x100(%rsp), %rax
movups 0x50(%rsp), %xmm1
movaps %xmm1, 0xf0(%rsp)
movq 0x60(%rsp), %rcx
movq %rcx, 0x100(%rsp)
movapd 0x10(%rsp), %xmm1
movaps %xmm0, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movupd %xmm1, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq %r13, %rdi
callq 0x31a9e
movq %r12, %rdi
callq 0x31a9e
movq 0xf8(%rsp), %rax
subq 0xf0(%rsp), %rax
cmpq $0x20, %rax
jbe 0x74a3e
movq 0xf0(%rsp), %rsi
cmpq %rsi, 0xf8(%rsp)
je 0x74cd1
xorl %eax, %eax
xorl %r14d, %r14d
shlq $0x5, %rax
cmpq $0x0, 0x8(%rsi,%rax)
jne 0x74caf
addq %rax, %rsi
leaq 0xf0(%rsp), %rdi
callq 0x7662c
decl %r14d
incl %r14d
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
movq %r14, %rax
cmpq %r14, %rcx
ja 0x74c90
movq 0x90(%rsp), %rdi
cmpq %rdi, 0x98(%rsp)
je 0x74dd7
movl $0x1, %r12d
xorl %r14d, %r14d
shlq $0x5, %r14
addq %r14, %rdi
movq %rbp, %rsi
callq 0x22250
testl %eax, %eax
jne 0x74d22
movq 0x90(%rsp), %rdi
addq %r14, %rdi
leaq 0x846ff(%rip), %rsi     # 0xf9414
callq 0x22250
testl %eax, %eax
je 0x74db1
movq 0xf0(%rsp), %rax
leaq 0x20(%rsp), %rbx
movq %rbx, 0x10(%rsp)
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x32180
leaq 0x1d0(%rsp), %rdi
movq %r13, %rsi
callq 0x22bb0
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x74d6f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1d0(%rsp), %rdi
callq 0x22be0
movsd %xmm0, 0x48(%rsp)
addq 0x90(%rsp), %r14
leaq 0x1f0(%rsp), %rdi
movq %r14, %rsi
callq 0x764c8
movq %rax, %rdi
leaq 0x44(%rsp), %rsi
callq 0x76544
movsd 0x48(%rsp), %xmm0
movsd %xmm0, (%rax)
movl %r12d, %r14d
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
incl %r12d
cmpq %r14, %rax
ja 0x74cf0
movl 0x44(%rsp), %eax
incl %eax
leaq 0x160(%rsp), %r14
leaq 0x50(%rsp), %r12
jmp 0x74b1e
leaq 0x4d8(%rsp), %rdi
callq 0x221b0
xorps %xmm0, %xmm0
movaps %xmm0, 0x180(%rsp)
movq $0x0, 0x190(%rsp)
leaq 0x89004(%rip), %rsi     # 0xfde1e
leaq 0x2d8(%rsp), %rdi
movl $0x4, %edx
callq 0x22ab0
leaq 0x81e8d(%rip), %rsi     # 0xf6cc0
leaq 0x2d8(%rsp), %rdi
movl $0x1, %edx
callq 0x22ab0
leaq 0x88fd7(%rip), %rsi     # 0xfde23
leaq 0x2d8(%rsp), %rbx
movl $0x15, %edx
movq %rbx, %rdi
callq 0x22ab0
movq 0x2d8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0x2d8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xd8(%rsp), %rax
cmpq 0xd0(%rsp), %rax
je 0x76075
xorps %xmm0, %xmm0
cvtss2sd 0x138(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
xorps %xmm0, %xmm0
cvtss2sd 0x8(%rsp), %xmm0
movsd %xmm0, 0x138(%rsp)
xorl %ebp, %ebp
xorps %xmm0, %xmm0
movss %xmm0, 0x40(%rsp)
movss %xmm0, 0xec(%rsp)
xorl %ecx, %ecx
movl $0x0, 0xac(%rsp)
movq %rcx, 0x290(%rsp)
movl $0x1e, %edx
movq %r15, %rdi
leaq 0x88f35(%rip), %rsi     # 0xfde39
callq 0x22ab0
movq 0xd0(%rsp), %rax
shlq $0x5, %rbp
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r15, %rdi
callq 0x22ab0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8c505(%rip), %rsi     # 0x10143d
callq 0x22ab0
movq 0x140(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r14, %rdi
callq 0x22ab0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8c4d5(%rip), %rsi     # 0x10143d
callq 0x22ab0
movq 0xb0(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r14, %rdi
callq 0x22ab0
movq %rax, %r14
movl $0xc, %edx
movq %rax, %rdi
leaq 0x88ec0(%rip), %rsi     # 0xfde58
callq 0x22ab0
movq %r14, %rdi
movsd 0x48(%rsp), %xmm0
callq 0x23060
movq %rax, %r14
movl $0xc, %edx
movq %rax, %rdi
leaq 0x88ea8(%rip), %rsi     # 0xfde65
callq 0x22ab0
movq %r14, %rdi
movsd 0x138(%rsp), %xmm0
callq 0x23060
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
xorl %ebx, %ebx
movq 0x70(%rsp), %rsi
addq %rbp, %rsi
leaq 0x260(%rsp), %rdi
callq 0x764c8
movl %ebx, %ecx
cmpq %rcx, 0x28(%rax)
jbe 0x76031
leal 0x1(%rbx), %eax
movq %rax, 0x198(%rsp)
xorl %r12d, %r12d
movq 0x90(%rsp), %rsi
addq %rbp, %rsi
leaq 0x1f0(%rsp), %rdi
callq 0x764c8
movl %r12d, %ecx
cmpq %rcx, 0x28(%rax)
jbe 0x76024
movq 0x70(%rsp), %rsi
leaq 0x260(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
ucomisd 0x48(%rsp), %xmm0
jne 0x7601c
jp 0x7601c
movq 0x90(%rsp), %rsi
leaq 0x1f0(%rsp), %rdi
callq 0x764c8
movl %r12d, 0x50(%rsp)
movq %rax, %rdi
leaq 0x50(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
ucomisd 0x138(%rsp), %xmm0
jne 0x7601c
jp 0x7601c
movl $0x14, %edx
movq %r15, %rdi
leaq 0x88d97(%rip), %rsi     # 0xfde72
callq 0x22ab0
movq %r15, %rdi
movsd 0x48(%rsp), %xmm0
callq 0x23060
movq %rax, %r14
movl $0xe, %edx
movq %rax, %rdi
leaq 0x88d87(%rip), %rsi     # 0xfde87
callq 0x22ab0
movq %r14, %rdi
movsd 0x138(%rsp), %xmm0
callq 0x23060
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movl $0x8, %edx
movq %r15, %rdi
leaq 0x88d47(%rip), %rsi     # 0xfde96
callq 0x22ab0
movq 0x1a8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x22ab0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movl $0x8, %edx
movq %r15, %rdi
leaq 0x88cfb(%rip), %rsi     # 0xfde9f
callq 0x22ab0
movq 0x1a0(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x22ab0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movl $0x15, %edx
movq %r15, %rdi
leaq 0x88caf(%rip), %rsi     # 0xfdea8
callq 0x22ab0
movq 0xd0(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r15, %rdi
callq 0x22ab0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8c214(%rip), %rsi     # 0x10143d
callq 0x22ab0
movq 0x140(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r14, %rdi
callq 0x22ab0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8c1e4(%rip), %rsi     # 0x10143d
callq 0x22ab0
movq 0xb0(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r14, %rdi
callq 0x22ab0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xd0(%rsp), %rdi
addq %rbp, %rdi
movl $0xd, %ecx
leaq 0x88c06(%rip), %r14     # 0xfdebe
movq %r14, %rsi
xorl %edx, %edx
callq 0x23160
cmpq $-0x1, %rax
je 0x75535
movq 0xb0(%rsp), %rdi
addq %rbp, %rdi
movl $0xd, %ecx
movq %r14, %rsi
xorl %edx, %edx
callq 0x23160
cmpq $-0x1, %rax
je 0x75535
movq 0xd0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x260(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x140(%rsp), %rax
leaq 0x250(%rsp), %rcx
movq %rcx, 0x240(%rsp)
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
addq %rsi, %rdx
leaq 0x240(%rsp), %rdi
callq 0x32180
movq 0xb0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x1f0(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x50(%rsp)
movq %rax, %rdi
leaq 0x50(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm1
movsd 0x8(%rsp), %xmm0
leaq 0x240(%rsp), %rdi
callq 0x73e0d
movl %eax, %r14d
movq 0x240(%rsp), %rdi
leaq 0x250(%rsp), %rax
cmpq %rax, %rdi
je 0x753bc
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x229c0
movl $0x13, %edx
movq %r15, %rdi
leaq 0x88b01(%rip), %rsi     # 0xfdecc
callq 0x22ab0
movq 0xd0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x260(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x23060
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8c026(%rip), %rsi     # 0x10143d
callq 0x22ab0
movq 0x140(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r13, %rdi
callq 0x22ab0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8bff6(%rip), %rsi     # 0x10143d
callq 0x22ab0
movq 0xb0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x1f0(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x50(%rsp)
movq %rax, %rdi
leaq 0x50(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x23060
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r13, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
testl %r14d, %r14d
jne 0x75993
movq 0xb0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x1f0(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0xd0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x260(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x50(%rsp)
movq %rax, %rdi
leaq 0x50(%rsp), %rsi
callq 0x66390
movsd 0x8(%rsp), %xmm0
subsd (%rax), %xmm0
mulsd %xmm0, %xmm0
ucomisd 0x81612(%rip), %xmm0    # 0xf6b38
jb 0x759af
sqrtsd %xmm0, %xmm0
jmp 0x759b4
movq 0xd0(%rsp), %rdi
addq %rbp, %rdi
movl $0xd, %ecx
movq %r14, %rsi
xorl %edx, %edx
callq 0x23160
cmpq $-0x1, %rax
je 0x75579
movq 0xb0(%rsp), %rdi
addq %rbp, %rdi
movl $0xd, %ecx
movq %r14, %rsi
xorl %edx, %edx
callq 0x23160
cmpq $-0x1, %rax
je 0x7580d
movq 0xd0(%rsp), %rdi
addq %rbp, %rdi
movl $0xd, %ecx
movq %r14, %rsi
xorl %edx, %edx
callq 0x23160
cmpq $-0x1, %rax
je 0x755f4
movq 0xd0(%rsp), %rdi
addq %rbp, %rdi
movl $0xd, %ecx
movq %r14, %rsi
xorl %edx, %edx
callq 0x23160
xorpd %xmm0, %xmm0
movss %xmm0, 0x3c(%rsp)
cmpq $-0x1, %rax
jne 0x75c20
movq 0xb0(%rsp), %rdi
addq %rbp, %rdi
movl $0xd, %ecx
movq %r14, %rsi
xorl %edx, %edx
callq 0x23160
cmpq $-0x1, %rax
je 0x75a83
xorpd %xmm0, %xmm0
jmp 0x75c20
movq 0xb0(%rsp), %rdi
addq %rbp, %rdi
movl $0xd, %ecx
movq %r14, %rsi
xorl %edx, %edx
callq 0x23160
cmpq $-0x1, %rax
je 0x75599
movq 0xd0(%rsp), %rax
movq (%rax,%rbp), %rdi
callq 0x22be0
movsd %xmm0, 0x8(%rsp)
movq 0x140(%rsp), %rax
leaq 0x230(%rsp), %rcx
movq %rcx, 0x220(%rsp)
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
addq %rsi, %rdx
leaq 0x220(%rsp), %rdi
callq 0x32180
movq 0xb0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x1f0(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm1
movsd 0x8(%rsp), %xmm0
leaq 0x220(%rsp), %rdi
callq 0x73e0d
movl %eax, %r14d
movq 0x220(%rsp), %rdi
leaq 0x230(%rsp), %rax
cmpq %rax, %rdi
je 0x756c4
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x229c0
movl $0x13, %edx
movq %r15, %rdi
leaq 0x887f9(%rip), %rsi     # 0xfdecc
callq 0x22ab0
movq 0xd0(%rsp), %rax
movq (%rax,%rbp), %rdi
callq 0x22be0
movq %r15, %rdi
callq 0x23060
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8bd3a(%rip), %rsi     # 0x10143d
callq 0x22ab0
movq 0x140(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r13, %rdi
callq 0x22ab0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8bd0a(%rip), %rsi     # 0x10143d
callq 0x22ab0
movq 0xb0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x1f0(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x23060
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r13, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
testl %r14d, %r14d
jne 0x75993
movq 0xb0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x1f0(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0xd0(%rsp), %rax
movq (%rax,%rbp), %rdi
callq 0x22be0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movapd %xmm1, %xmm0
mulsd %xmm1, %xmm0
ucomisd 0x8133a(%rip), %xmm0    # 0xf6b38
jb 0x75b8b
sqrtsd %xmm0, %xmm0
jmp 0x75b90
movq 0xd0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x260(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
leaq 0x2c8(%rsp), %r13
leaq 0x2b8(%rsp), %r14
movsd (%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x140(%rsp), %rax
movq %r13, 0x2b8(%rsp)
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x32180
movq 0xb0(%rsp), %rax
movq (%rax,%rbp), %rdi
callq 0x22be0
movapd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
movq %r14, %rdi
callq 0x73e0d
movl %eax, %r14d
movq 0x2b8(%rsp), %rdi
cmpq %r13, %rdi
je 0x758b7
movq 0x2c8(%rsp), %rsi
incq %rsi
callq 0x229c0
movl $0x13, %edx
movq %r15, %rdi
leaq 0x88606(%rip), %rsi     # 0xfdecc
callq 0x22ab0
movq 0xd0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x260(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x23060
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8bb2b(%rip), %rsi     # 0x10143d
callq 0x22ab0
movq 0x140(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r13, %rdi
callq 0x22ab0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8bafb(%rip), %rsi     # 0x10143d
callq 0x22ab0
movq 0xb0(%rsp), %rax
movq (%rax,%rbp), %rdi
callq 0x22be0
movq %r13, %rdi
callq 0x23060
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r13, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
testl %r14d, %r14d
je 0x75a1e
xorps %xmm0, %xmm0
cvtsi2ss %r14d, %xmm0
movss %xmm0, 0x8(%rsp)
xorps %xmm0, %xmm0
movss %xmm0, 0x3c(%rsp)
jmp 0x75c26
callq 0x22790
movsd %xmm0, 0x8(%rsp)
movq 0xb0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x1f0(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
movsd %xmm0, 0x130(%rsp)
movq 0xb0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x1f0(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x50(%rsp)
movq %rax, %rdi
leaq 0x50(%rsp), %rsi
callq 0x66390
jmp 0x75bf5
movq 0xb0(%rsp), %rax
movq (%rax,%rbp), %rdi
callq 0x22be0
movsd %xmm0, 0x8(%rsp)
movq 0xd0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x260(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
movsd 0x8(%rsp), %xmm0
subsd (%rax), %xmm0
mulsd %xmm0, %xmm0
ucomisd 0x810c4(%rip), %xmm0    # 0xf6b38
jb 0x75b54
sqrtsd %xmm0, %xmm0
jmp 0x75b59
movl $0x3f, %edx
movq %r15, %rdi
leaq 0x8844e(%rip), %rsi     # 0xfdee0
callq 0x22ab0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r15, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movl $0x14, %edx
movq %r15, %rdi
leaq 0x88453(%rip), %rsi     # 0xfdf20
callq 0x22ab0
movq 0xd0(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r15, %rdi
callq 0x22ab0
movq %rax, %r14
movl $0x14, %edx
movq %rax, %rdi
leaq 0x88438(%rip), %rsi     # 0xfdf35
callq 0x22ab0
movq 0xb0(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r14, %rdi
callq 0x22ab0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
xorpd %xmm0, %xmm0
movss %xmm0, 0x8(%rsp)
jmp 0x75c26
callq 0x22790
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x3c(%rsp)
movq 0xb0(%rsp), %rax
movq (%rax,%rbp), %rdi
callq 0x22be0
cvtss2sd 0x3c(%rsp), %xmm1
addsd %xmm0, %xmm1
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
jmp 0x75c20
callq 0x22790
movsd %xmm0, 0x8(%rsp)
movq 0xb0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x1f0(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
movsd %xmm0, 0x130(%rsp)
movq 0xb0(%rsp), %rsi
addq %rbp, %rsi
leaq 0x1f0(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x50(%rsp)
movq %rax, %rdi
leaq 0x50(%rsp), %rsi
callq 0x66390
xorps %xmm0, %xmm0
cvtsd2ss 0x8(%rsp), %xmm0
movss %xmm0, 0x3c(%rsp)
cvtss2sd %xmm0, %xmm0
addsd (%rax), %xmm0
movsd 0x130(%rsp), %xmm1
divsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movss %xmm0, 0x8(%rsp)
movl $0x7, %edx
movq %r15, %rdi
leaq 0x88315(%rip), %rsi     # 0xfdf4a
callq 0x22ab0
xorps %xmm0, %xmm0
cvtss2sd 0x8(%rsp), %xmm0
movq %r15, %rdi
movsd %xmm0, 0x130(%rsp)
callq 0x23060
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movss 0x880b2(%rip), %xmm0    # 0xfdd38
movss 0x8(%rsp), %xmm1
ucomiss %xmm1, %xmm0
jb 0x75d70
movaps %xmm1, %xmm0
ucomiss 0x8809d(%rip), %xmm1    # 0xfdd3c
jbe 0x75d70
movaps %xmm0, %xmm1
movss 0x88088(%rip), %xmm0    # 0xfdd38
ucomiss %xmm1, %xmm0
jbe 0x75ce3
xorps %xmm0, %xmm0
cvtss2sd 0x3c(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtss2sd 0xec(%rsp), %xmm1
mulsd 0x8806e(%rip), %xmm0    # 0xfdd40
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xec(%rsp)
movss 0x40(%rsp), %xmm0
movss 0x8(%rsp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x40(%rsp)
ucomiss 0x88038(%rip), %xmm1    # 0xfdd38
jne 0x75e29
jp 0x75e29
movq 0xd0(%rsp), %rsi
addq %rbp, %rsi
movq 0x140(%rsp), %rdx
addq %rbp, %rdx
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x33608
movq 0xb0(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r14, %rdi
callq 0x222b0
leaq 0x20(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x75dc1
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x75dc7
movl $0x21, %edx
movq %r15, %rdi
leaq 0x881d3(%rip), %rsi     # 0xfdf52
callq 0x22ab0
movq %r15, %rdi
movsd 0x130(%rsp), %xmm0
callq 0x23060
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
jmp 0x75e29
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x180(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x6a77e
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x75e0d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x75e29
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x70(%rsp), %rdi
leaq 0x7b995(%rip), %rsi     # 0xf17ca
callq 0x22250
testl %eax, %eax
je 0x75e8d
movq 0x70(%rsp), %rdi
leaq 0x87fd4(%rip), %rsi     # 0xfde1e
callq 0x22250
orl 0xac(%rsp), %eax
je 0x75e97
cmpl $0x0, 0xac(%rsp)
jne 0x75edf
leaq 0x2d8(%rsp), %rdi
movq 0x198(%rsp), %rsi
callq 0x22650
movl $0x1, %edx
movq %rax, %rdi
leaq 0x80e3a(%rip), %rsi     # 0xf6cc0
callq 0x22ab0
jmp 0x75edf
cmpl $0x0, 0xac(%rsp)
jne 0x75edf
movq 0x70(%rsp), %rsi
leaq 0x260(%rsp), %rdi
callq 0x764c8
movl %ebx, 0x10(%rsp)
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
leaq 0x2d8(%rsp), %rdi
callq 0x23060
movl $0x1, %edx
movq %rax, %rdi
leaq 0x80de6(%rip), %rsi     # 0xf6cc0
callq 0x22ab0
movq 0xd0(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r15, %rdi
callq 0x22ab0
movq 0x140(%rsp), %rcx
movq (%rcx,%rbp), %rsi
movq 0x8(%rcx,%rbp), %rdx
movq %rax, %rdi
callq 0x22ab0
movq 0xb0(%rsp), %rcx
movq (%rcx,%rbp), %rsi
movq 0x8(%rcx,%rbp), %rdx
movq %rax, %rdi
callq 0x22ab0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x80d87(%rip), %rsi     # 0xf6cc0
callq 0x22ab0
xorps %xmm0, %xmm0
movq %r15, %rdi
callq 0x23060
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xd0(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
leaq 0x2d8(%rsp), %rdi
callq 0x22ab0
movq 0x140(%rsp), %rcx
movq (%rcx,%rbp), %rsi
movq 0x8(%rcx,%rbp), %rdx
movq %rax, %rdi
callq 0x22ab0
movq 0xb0(%rsp), %rcx
movq (%rcx,%rbp), %rsi
movq 0x8(%rcx,%rbp), %rdx
movq %rax, %rdi
callq 0x22ab0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x80cee(%rip), %rsi     # 0xf6cc0
callq 0x22ab0
xorps %xmm0, %xmm0
leaq 0x2d8(%rsp), %rdi
callq 0x23060
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movl $0x1, 0xac(%rsp)
movq %rax, %rdi
callq 0x22660
incl %r12d
jmp 0x7502e
movq 0x198(%rsp), %rbx
jmp 0x74fff
movq 0xd8(%rsp), %rax
subq 0xd0(%rsp), %rax
movq 0x290(%rsp), %rcx
incl %ecx
sarq $0x5, %rax
movq %rcx, %rbp
cmpq %rcx, %rax
ja 0x74eed
xorps %xmm0, %xmm0
cvtss2sd 0xec(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
movss 0x40(%rsp), %xmm0
jmp 0x76082
xorps %xmm0, %xmm0
xorpd %xmm1, %xmm1
movsd %xmm1, 0x48(%rsp)
movss %xmm0, 0x40(%rsp)
cvtss2sd %xmm0, %xmm0
leaq 0x2d8(%rsp), %rdi
callq 0x23060
leaq 0x80c20(%rip), %rsi     # 0xf6cc0
movl $0x1, %edx
movq %rax, %rdi
callq 0x22ab0
movq 0x180(%rsp), %rax
cmpq %rax, 0x188(%rsp)
je 0x7611a
movl $0x1, %ebp
xorl %ecx, %ecx
leaq 0x2d8(%rsp), %rbx
leaq 0x80beb(%rip), %r14     # 0xf6cc0
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq %rbx, %rdi
callq 0x22ab0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x22ab0
movl %ebp, %ecx
movq 0x180(%rsp), %rax
movq 0x188(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x760d5
leaq 0x2d8(%rsp), %rdi
movsd 0x48(%rsp), %xmm0
callq 0x23060
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %rbx, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x180(%rsp), %rbx
movq 0x188(%rsp), %r14
cmpq %rbx, %r14
je 0x7619c
leaq 0x10(%rbx), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x76184
movq (%r15), %rsi
incq %rsi
callq 0x229c0
leaq 0x20(%r15), %rax
addq $0x10, %r15
cmpq %r14, %r15
movq %rax, %r15
jne 0x76170
movq %rbx, 0x188(%rsp)
leaq 0x2d8(%rsp), %rdi
callq 0x22de0
leaq 0x180(%rsp), %rdi
callq 0x31a9e
jmp 0x74777
jmp 0x76344
jmp 0x76344
jmp 0x76344
jmp 0x76344
jmp 0x76357
jmp 0x76344
movq %rax, %rbx
jmp 0x763d6
movq %rax, %rbx
jmp 0x764a5
movq %rax, %rbx
jmp 0x764b2
jmp 0x76344
jmp 0x76357
jmp 0x76344
jmp 0x76344
jmp 0x76344
jmp 0x76344
jmp 0x76344
jmp 0x76240
jmp 0x76240
movq %rax, %rbx
jmp 0x7646d
jmp 0x76344
jmp 0x76344
jmp 0x76344
jmp 0x76344
jmp 0x76344
jmp 0x76240
jmp 0x76344
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x76367
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x76367
jmp 0x76344
jmp 0x76357
jmp 0x76357
jmp 0x76357
jmp 0x76357
jmp 0x76344
jmp 0x76357
jmp 0x76357
jmp 0x7628d
movq %rax, %rbx
movq 0x220(%rsp), %rdi
leaq 0x230(%rsp), %rax
cmpq %rax, %rdi
je 0x7635a
movq 0x230(%rsp), %rsi
jmp 0x76338
jmp 0x76344
jmp 0x76344
jmp 0x76357
jmp 0x76357
jmp 0x76344
jmp 0x76357
jmp 0x76357
jmp 0x76357
jmp 0x76344
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x762fe
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x762fe
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x7635a
movq 0x60(%rsp), %rsi
jmp 0x76338
jmp 0x76357
jmp 0x76318
movq %rax, %rbx
movq 0x240(%rsp), %rdi
leaq 0x250(%rsp), %rax
cmpq %rax, %rdi
je 0x7635a
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x7635a
jmp 0x76357
movq %rax, %rbx
jmp 0x76367
jmp 0x76357
jmp 0x76357
jmp 0x76357
jmp 0x76357
jmp 0x76357
jmp 0x76357
jmp 0x76357
movq %rax, %rbx
leaq 0x180(%rsp), %rdi
callq 0x31a9e
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x7638c
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x763b1
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x763d6
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x1f0(%rsp), %rdi
callq 0x765a8
leaq 0x260(%rsp), %rdi
callq 0x765a8
movq 0x298(%rsp), %rdi
leaq 0x2a8(%rsp), %rax
cmpq %rax, %rdi
je 0x76415
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xf0(%rsp), %rdi
callq 0x31a9e
leaq 0x90(%rsp), %rdi
callq 0x31a9e
leaq 0x110(%rsp), %rdi
callq 0x31a9e
leaq 0x70(%rsp), %rdi
callq 0x31a9e
leaq 0x140(%rsp), %rdi
callq 0x31a9e
leaq 0xb0(%rsp), %rdi
callq 0x31a9e
leaq 0xd0(%rsp), %rdi
callq 0x31a9e
movq 0xffafc(%rip), %rax     # 0x175f70
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x2e0(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x2d8(%rsp,%rcx)
callq 0x227d0
leaq 0x3d0(%rsp), %rdi
callq 0x222d0
leaq 0x4d8(%rsp), %rdi
callq 0x22200
leaq 0x6e0(%rsp), %rdi
callq 0x22200
movq %rbx, %rdi
callq 0x23240
nop