// File: /workspace/github_cpp_makefile_star2_O3/richardposner[P]BioNetFit2/src/code/Particle.cpp
// Function: Particle::calculateFit(bool, unsigned int)
void Particle::calculateFit(bool local, unsigned int mid) {

	//razi TODO: check if the fit calculation is corrent.

	//swarm_->outputError("Particle::calculateFit needs modification");

	bool usingSD = false;
	bool usingMean = false;

	// Construct pointers to the relevant fitting function.
	// This lets us avoid a switch/case or excess conditionals
	// within the calculation loop
	if (swarm_->options.objFunc == 1) {
		objFuncPtr = &Particle::objFunc_sumOfSquares;
	}
	else if (swarm_->options.objFunc == 2) {
		objFuncPtr = &Particle::objFunc_chiSquare;
		usingSD = true;
	}
	else if (swarm_->options.objFunc == 3) {
		objFuncPtr = &Particle::objFunc_divByMeasured;
	}
	else if (swarm_->options.objFunc == 4) {
		objFuncPtr = &Particle::objFunc_divByMean;
		usingMean = true;
	}

	double colSum;
	double setSum;
	double totalSum;
	double divisor;


	//razi: loop over all subparticles associated with models

	unsigned int subParID = calcsubParID(mid);
	if ((mid<0)|| (mid >= swarm_->getNumModels()) || (!getSubParticle(mid)) || (!models.at(mid)) || (dataFiles_.at(mid).empty())){
		outputError("calculateFit Failed. Invalid SubParticle.  PID:"+ toString(id_) + "  model id:" + toString(mid)+ "  subParID:" + toString(subParID)+". Quitting !!!");
	}else{

		totalSum = 0;
		divisor = 0;
		int notfoundCount = 0;
		// Loop through .exp files. Iterator points to string/dataset pair
		for (auto e = swarm_->options.expFiles.begin(); e != swarm_->options.expFiles.end(); ++e){
			if(swarm_->options.verbosity >=4){
				cout << "DATA FILE FOR MID " << mid << " " << e->first << endl;
			}


			if ( dataFiles_.at(mid).find(e->first) == dataFiles_.at(mid).end() ) {
			  // not found
				if(swarm_->options.verbosity >=4){
					cout << "EXPERIMENTAL KEY NOT FOUND IN SIM GDAT FILE: " << e->first << " SKIPING..." << endl;
				}
				continue;
			}

			//razi: we first need to check if the exp file belongs to this subParticle
			if (dataFiles_.at(mid).count(e->first)!=1){
				cout<<"The exp file "<< e->first<< " does not belong to model is:"<<mid<<". try other models."<<endl;
				continue; //Raquel: was a break, making the fit for MID 1 always become zero
			}


			if(swarm_->options.verbosity >=4){
				cout << "RAQUEL PASSED MID " << mid << endl;
			}
			// Loop through .exp columns. Iterator points to column/map pair
			//cout << "exp loop " << e->first << endl;
			setSum = 0;
			if(swarm_->options.verbosity >=4){
				cout << "first: " << e->second->dataCurrent->begin()->first << endl;
				cout << "second " <<  e->second->dataCurrent->begin()->second.begin()->first << endl;
				cout << " third " << e->second->dataCurrent->begin()->second.begin()->second << endl;
			}
			for (std::map<std::string, std::map<double,double> >::iterator exp_col = e->second->dataCurrent->begin(); exp_col != e->second->dataCurrent->end(); ++exp_col) {
				// Loop through timepoints of column.  Iterator points to a timepoint/value pair

				if (usingMean) {
					//cout << "trying to set mean" << endl;
					divisor = e->second->colAverages.at(exp_col->first);
					//cout << "mean set" << endl;
					if(swarm_->options.verbosity >=4){
						cout << "RAQUEL divisor(colmean): " << divisor << endl;
					}
				}

				//cout << "col loop " << exp_col->first << endl;
				colSum = 0;
				for (std::map<double,double>::iterator timepoint = exp_col->second.begin(); timepoint != exp_col->second.end(); ++timepoint) {
					if (std::isnan(timepoint->second)) {
						continue;
					}

					//double exp = timepoint->second;
					//cout << "exp: " << exp << endl;
					if ( dataFiles_.at(mid).at(e->first).at(swarm_->options.smoothing)->dataCurrent->find(exp_col->first) == dataFiles_.at(mid).at(e->first).at(swarm_->options.smoothing)->dataCurrent->end() ) {
					  // not found
						if(swarm_->options.verbosity >=4){
							cout << "EXPERIMENTAL KEY NOT FOUND IN SIM GDAT FILE, exp_col: " << exp_col->first << " SKIPING..." << endl;

						}
						notfoundCount++;

						if((unsigned)notfoundCount>=e->second->dataCurrent->size()){
							if(swarm_->options.verbosity >=4){
								cout << "Went through all EXP columns and didn't find any result in the SIM GDAT, skipping this failed simulation." << endl;
							}

							totalSum=9999;

						}

						continue;
					}

					if ( dataFiles_.at(mid).at(e->first).at(swarm_->options.smoothing)->dataCurrent->at(exp_col->first).find(timepoint->first) == dataFiles_.at(mid).at(e->first).at(swarm_->options.smoothing)->dataCurrent->at(exp_col->first).end() ) {
					  // not found
						if(swarm_->options.verbosity >=4){
							cout << "EXPERIMENTAL KEY NOT FOUND IN SIM GDAT FILE, time_point: " << timepoint->first << " SKIPING..." << endl;
						}
						continue;
					}

					if (swarm_->options.smoothing == 1) {
						//cout << "sim: " << dataFiles_.at(e->first).at(swarm_->options.smoothing)->dataCurrent->at(exp_col->first).at(timepoint->first) << endl;


					}
					else {
						//cout << "sim: " << dataFiles_.at(e->first).at(swarm_->options.smoothing + 1)->dataCurrent->at(exp_col->first).at(timepoint->first) << endl;
					}



					if (usingSD) {
						divisor = e->second->standardDeviations.at(exp_col->first).at(timepoint->first);
						//cout << "divisor: " << divisor << endl;
					}

					double sim;
					// TODO: Introduce fudge tolerance to account for precision loss in simulation control column
					if (swarm_->options.smoothing == 1) {
						if(swarm_->options.verbosity >=4){
							cout << "trying smoothing" << endl;
							cout << "MID: " << mid << " data files size: " << dataFiles_.size() << " e->first: " << e->first << " dataFiles_.at(mid) size: " << dataFiles_.at(mid).size() << " exp_col->first: " << exp_col->first << endl;
							cout << "exp_col->first: " << exp_col->first << " timepoint->first: " << timepoint->first << endl;



						}

						if(swarm_->options.verbosity >=9){

							for(auto keys=dataFiles_.at(mid).at(e->first).begin(); keys!=dataFiles_.at(mid).at(e->first).end(); ++keys){

								cout << "keys: " << keys->first << endl;
								cout << "keys: " << keys->second << endl;

							}
						}

						if(swarm_->options.verbosity >=5){
							cout << "print: " << dataFiles_.at(mid).at(e->first).at(swarm_->options.smoothing+1)->dataCurrent->at(exp_col->first).at(timepoint->first) << endl;
						}
						sim = dataFiles_.at(mid).at(e->first).at(swarm_->options.smoothing)->dataCurrent->at(exp_col->first).at(timepoint->first);
						//cout << dataCurrent->at(exp_col->first).at(timepoint->first) << endl;
						if(swarm_->options.verbosity >=4){
							cout << " [mid] " << mid << " [e->first] " << e->first << " [swarm_->options.smoothing] " << swarm_->options.smoothing << " exp_col->first " << exp_col->first << " timepoint->first " << timepoint->first << endl;
							cout << "done " << endl;
						}
					}
					else {
						if(swarm_->options.verbosity >=4){
							cout << "trying smoothing2 " << endl;
						}
						sim = dataFiles_.at(mid).at(e->first).at(swarm_->options.smoothing+1)->dataCurrent->at(exp_col->first).at(timepoint->first);
						if(swarm_->options.verbosity >=4){
							cout << "done" << endl;
						}
					}
					double sum = 0;
					if(sim != timepoint->second){ //if simulation and experimental values are exactly equal, the difference between them will be zero, so we can skip the objective function
						sum = (this->*objFuncPtr)(sim, timepoint->second, divisor);
					}
					if(swarm_->options.verbosity >= 3){
						cout << "sum = " << sum << " sim =" << sim << " timepoint->second = " << timepoint->second << " divisor = "<< divisor << endl;
						cout << "SUM: " << sum << "MID: " << mid << endl;
					}
					if (swarm_->options.bootstrap) {
						//cout << "all sets: "<< swarm_->bootstrapMaps.size() << endl;
						//cout << "files: " << swarm_->bootstrapMaps[swarm_->bootstrapCounter].size() << endl;
						//cout << "cols: " << (swarm_->bootstrapMaps[swarm_->bootstrapCounter].begin())->first << endl;
						//cout << "tps: " << swarm_->bootstrapMaps[swarm_->bootstrapCounter][exp_col->first][timepoint->first] << endl;
						//cout << "multiplying " << colSum << " by " << swarm_->bootstrapMaps[swarm_->bootstrapCounter - 1][e->first][exp_col->first][timepoint->first] << endl;
						//cout << "m: " << colSum << " by " << swarm_->bootstrapMaps[swarm_->bootstrapCounter].at(e->first).at(exp_col->first).at(timepoint->first) << endl;
						sum *= swarm_->bootstrapMaps[swarm_->bootstrapCounter][e->first][exp_col->first][timepoint->first];
					} //if (swarm_->options.bootstrap)
					colSum += sum;
				} //for through values
				setSum += colSum;
			} //for col loop
			totalSum += setSum;
		}//for (auto e = swarm_->options.expFiles.begin(); e != swarm_->options.expFiles.end(); ++e)
		// Erase our data sets
		dataFiles_.at(mid).clear();
		// Store our fit calc
		if(swarm_->options.verbosity >=4){
			cout << " totalSum " << totalSum << endl;
		}
		if (!local) {
			fitCalcs[mid][currentGeneration_] = pow(totalSum, 0.5);
			if(swarm_->options.verbosity >=4){
				cout << "RAQUEL LOCAL FIT for mid " << mid << ": " << fitCalcs[mid][currentGeneration_] << endl;
			}
		}
		else {
			fitCalcs[mid][-1] = pow(totalSum, 0.5);
			if(swarm_->options.verbosity >=4){
				cout << "RAQUEL GLOBALFIT FIT for mid " << mid << ": " << fitCalcs[mid][-1]<< endl;
			}
		}

		if (swarm_->options.verbosity >= 3) {
			cout << "Fit calculation["<<mid<<"]: " << pow(totalSum, 0.5) << endl;
		}

	} //if(!getSubParticle(mid))
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movl %edx, %r12d
movq %rdi, %r14
movq 0xa8(%rdi), %rax
movl 0x162c(%rax), %ecx
movl $0x0, 0x1c(%rsp)
decl %ecx
cmpl $0x3, %ecx
ja 0x5c3ff
leaq 0x9d7ee(%rip), %rdx     # 0xf8310
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
leaq -0x6d2e(%rip), %rcx     # 0x53e04
jmp 0x5ab52
leaq -0x6d0f(%rip), %rcx     # 0x53e2c
movl $0x0, 0x1c(%rsp)
jmp 0x5ab52
movb $0x1, %cl
movl %ecx, 0x1c(%rsp)
leaq -0x6c10(%rip), %rcx     # 0x53f42
movl $0x0, 0x18(%rsp)
jmp 0x5ab71
movb $0x1, %cl
movl %ecx, 0x18(%rsp)
leaq -0x6d53(%rip), %rcx     # 0x53e16
movl $0x0, 0x1c(%rsp)
movq %rcx, 0x30(%r14)
movq $0x0, 0x38(%r14)
movl 0x40(%r14), %r13d
movq 0x15c8(%rax), %rbp
subq 0x15c0(%rax), %rbp
shrq $0x3, %rbp
cmpl %r12d, %ebp
jbe 0x5bf7f
movl %r12d, %r8d
movq 0x48(%r14), %rcx
movq 0x50(%r14), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
movq %r8, 0x8(%rsp)
cmpq %r8, %rdx
jbe 0x5c69c
movq 0x8(%rsp), %rdx
cmpq $0x0, (%rcx,%rdx,8)
je 0x5bf7f
movq 0x78(%r14), %rcx
movq 0x80(%r14), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
movq 0x8(%rsp), %rdx
cmpq $0x0, (%rcx,%rdx,8)
je 0x5bf7f
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rbx, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
movq 0x8(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movq %rcx, 0xb0(%rsp)
cmpq $0x0, 0x28(%rdi,%rcx)
je 0x5bf7f
movl %esi, 0xc4(%rsp)
movq 0x1578(%rax), %rbp
leaq 0x1568(%rax), %rcx
xorpd %xmm0, %xmm0
cmpq %rcx, %rbp
je 0x5c40c
movsd %xmm0, 0x40(%rsp)
movq $0x0, 0xe8(%rsp)
movq 0x11b325(%rip), %r12    # 0x175fa8
movsd %xmm0, 0x20(%rsp)
movq 0xb0(%rsp), %r13
cmpl $0x4, 0x1614(%rax)
jb 0x5ad16
movl $0x12, %edx
movq %r12, %rdi
leaq 0x9e785(%rip), %rsi     # 0xf942e
callq 0x22ab0
movq %r12, %rdi
movq 0x8(%rsp), %rsi
callq 0x22650
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0xa6757(%rip), %rsi     # 0x101424
callq 0x22ab0
movq 0x20(%rbp), %rsi
movq 0x28(%rbp), %rdx
movq %rbx, %rdi
callq 0x22ab0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %rbx, %rdi
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
imulq %rbx, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
addq %r13, %rdi
leaq 0x20(%rbp), %rsi
movq %rsi, 0xb8(%rsp)
callq 0x6a4b2
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
imulq %rbx, %rdx
cmpq 0x8(%rsp), %rdx
leaq 0x70(%rsp), %r12
jbe 0x5c69c
leaq (%rdi,%r13), %rbx
addq $0x8, %rbx
cmpq %rbx, %rax
je 0x5be18
addq %r13, %rdi
movq 0xb8(%rsp), %rsi
callq 0x69028
cmpq %rbx, %rax
je 0x5be6b
movq 0xa8(%r14), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x5af34
movl $0x12, %edx
movq 0x11b1e7(%rip), %rbx    # 0x175fa8
movq %rbx, %rdi
leaq 0x9e6f0(%rip), %rsi     # 0xf94bb
callq 0x22ab0
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x22650
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 0xa8(%r14), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x5af34
movl $0x7, %edx
movq 0x11b181(%rip), %r12    # 0x175fa8
movq %r12, %rdi
leaq 0x9e7d0(%rip), %rsi     # 0xf9601
callq 0x22ab0
movq 0x40(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
movq %r12, %rdi
callq 0x22ab0
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
movl $0x7, %edx
movq %r12, %rdi
leaq 0x9e644(%rip), %rsi     # 0xf94ce
callq 0x22ab0
movq 0x40(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0x58(%rax), %rax
movsd 0x20(%rax), %xmm0
movq %r12, %rdi
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
movl $0x7, %edx
movq %r12, %rdi
leaq 0x9e5f2(%rip), %rsi     # 0xf94d6
callq 0x22ab0
movq 0x40(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0x58(%rax), %rax
movsd 0x28(%rax), %xmm0
movq %r12, %rdi
leaq 0x70(%rsp), %r12
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 0x40(%rbp), %rdi
movq (%rdi), %rcx
movq 0x18(%rcx), %rax
addq $0x8, %rcx
xorpd %xmm0, %xmm0
cmpq %rcx, %rax
je 0x5bf10
movsd %xmm0, 0x90(%rsp)
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
movq %rbp, 0x68(%rsp)
cmpb $0x0, 0x1c(%rsp)
movq %rax, 0x38(%rsp)
je 0x5b001
addq $0x38, %rdi
leaq 0x20(%rax), %rsi
callq 0x66072
movsd (%rax), %xmm0
movq 0xa8(%r14), %rax
cmpl $0x4, 0x1614(%rax)
movsd %xmm0, 0x40(%rsp)
jb 0x5affc
movl $0x19, %edx
movq 0x11affd(%rip), %rbx    # 0x175fa8
movq %rbx, %rdi
leaq 0x9e529(%rip), %rsi     # 0xf94de
callq 0x22ab0
movq %rbx, %rdi
movsd 0x40(%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
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x38(%rsp), %rax
movq 0x58(%rax), %rdi
leaq 0x48(%rax), %rcx
movq %rcx, 0x150(%rsp)
cmpq %rcx, %rdi
je 0x5bdc8
addq $0x20, %rax
movq %rax, 0x28(%rsp)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x98(%rsp)
movq 0xb8(%rsp), %rbp
movsd 0x28(%rdi), %xmm0
ucomisd %xmm0, %xmm0
jp 0x5bdb0
movq %rdi, 0x10(%rsp)
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
imulq %rbx, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
addq %r13, %rdi
movq %rbp, %rsi
callq 0x660c6
movq 0xa8(%r14), %rcx
movl 0x1658(%rcx), %ecx
movl %ecx, 0x48(%rsp)
movq %rax, %rdi
leaq 0x48(%rsp), %rsi
callq 0x6611a
movq (%rax), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x6a4f8
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
imulq %rbx, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
movq %rax, %rbx
addq %r13, %rdi
movq %rbp, %rsi
callq 0x660c6
movq 0xa8(%r14), %rcx
movl 0x1658(%rcx), %ecx
movl %ecx, 0x70(%rsp)
movq %rax, %rdi
movq %r12, %rsi
callq 0x6611a
movq (%rax), %rax
movq (%rax), %rax
addq $0x8, %rax
cmpq %rax, %rbx
je 0x5b1da
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
movq %r12, %r15
movq 0x10(%rsp), %rax
leaq 0x20(%rax), %r12
addq %r13, %rdi
movq %rbp, %rsi
callq 0x660c6
movq 0xa8(%r14), %rcx
movl 0x1658(%rcx), %ecx
movl %ecx, 0x48(%rsp)
movq %rax, %rdi
leaq 0x48(%rsp), %rsi
callq 0x6611a
movq (%rax), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x66160
movq %rax, %rbx
movq 0x10(%rax), %rcx
addq $0x8, %rbx
testq %rcx, %rcx
movq %r12, 0x30(%rsp)
je 0x5b2f5
movsd (%r12), %xmm0
movq %rbx, %rax
xorl %edx, %edx
ucomisd 0x20(%rcx), %xmm0
cmovbeq %rcx, %rax
seta %dl
movq 0x10(%rcx,%rdx,8), %rcx
testq %rcx, %rcx
jne 0x5b19f
cmpq %rbx, %rax
movq %r15, %r12
je 0x5b2f8
movsd 0x20(%rax), %xmm1
ucomisd %xmm0, %xmm1
ja 0x5b2f8
movq %rax, %rbx
jmp 0x5b2f8
movq 0xa8(%r14), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x5b258
movl $0x36, %edx
movq 0x11adb2(%rip), %rbx    # 0x175fa8
movq %rbx, %rdi
leaq 0x9e2f8(%rip), %rsi     # 0xf94f8
callq 0x22ab0
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
movq %rbx, %rdi
callq 0x22ab0
movq %rax, %rbx
movl $0xb, %edx
movq %rax, %rdi
leaq 0x9e243(%rip), %rsi     # 0xf946f
callq 0x22ab0
movq (%rbx), %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 0xe8(%rsp), %rcx
incl %ecx
movq 0x68(%rsp), %rax
movq 0x40(%rax), %rax
movq (%rax), %rax
movq %rcx, 0xe8(%rsp)
cmpq %rcx, 0x28(%rax)
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
ja 0x5b7b3
movq 0xa8(%r14), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x5b2e2
movl $0x69, %edx
movq 0x11ad02(%rip), %r12    # 0x175fa8
movq %r12, %rdi
leaq 0x9e27f(%rip), %rsi     # 0xf952f
callq 0x22ab0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
leaq 0x70(%rsp), %r12
callq 0x22050
movq %rax, %rdi
callq 0x22660
movsd 0x9d01e(%rip), %xmm0    # 0xf8308
movsd %xmm0, 0x20(%rsp)
jmp 0x5b7b3
movq %r15, %r12
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
addq %r13, %rdi
movq %rbp, %rsi
callq 0x660c6
movq 0xa8(%r14), %rcx
movl 0x1658(%rcx), %ecx
movl %ecx, 0x70(%rsp)
movq %rax, %rdi
movq %r12, %rsi
callq 0x6611a
movq (%rax), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x66160
addq $0x8, %rax
cmpq %rax, %rbx
je 0x5b72f
cmpb $0x0, 0x18(%rsp)
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
movsd 0x40(%rsp), %xmm0
je 0x5b3a9
movq 0x68(%rsp), %rax
movq 0x40(%rax), %rdi
addq $0x8, %rdi
movq 0x28(%rsp), %rsi
callq 0x66160
movq %rax, %rdi
movq 0x30(%rsp), %rsi
callq 0x661b4
movsd (%rax), %xmm0
movq 0xa8(%r14), %rcx
movl 0x1614(%rcx), %eax
cmpl $0x1, 0x1658(%rcx)
movsd %xmm0, 0x40(%rsp)
jne 0x5b7bd
cmpl $0x4, %eax
jb 0x5b9a3
movl $0x10, %edx
movq 0x11abca(%rip), %r12    # 0x175fa8
movq %r12, %rdi
leaq 0x9e1eb(%rip), %rsi     # 0xf95d3
callq 0x22ab0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movl $0x5, %edx
movq %r12, %rdi
leaq 0x9e1c0(%rip), %rsi     # 0xf95e4
callq 0x22ab0
movq %r12, %rdi
movq 0x8(%rsp), %rsi
callq 0x22650
movq %rbx, %r15
movq %rax, %rbx
movl $0x12, %edx
movq %rax, %rdi
leaq 0x9e19f(%rip), %rsi     # 0xf95ea
callq 0x22ab0
movq 0x98(%r14), %rsi
subq 0x90(%r14), %rsi
sarq $0x4, %rsi
imulq %r15, %rsi
movq %rbx, %rdi
callq 0x22650
movq %rax, %rbx
movl $0xb, %edx
movq %rax, %rdi
leaq 0x9e17d(%rip), %rsi     # 0xf95fd
callq 0x22ab0
movq 0x68(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
movq %rbx, %rdi
callq 0x22ab0
movq %rax, %rbx
movl $0x1a, %edx
movq %rax, %rdi
leaq 0x9e15d(%rip), %rsi     # 0xf9609
callq 0x22ab0
movq 0x90(%r14), %rax
movq 0x98(%r14), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
imulq %r15, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
movq 0x28(%rax,%r13), %rsi
movq %rbx, %rdi
callq 0x22650
movq %rax, %rbx
movl $0x11, %edx
movq %rax, %rdi
leaq 0x9e130(%rip), %rsi     # 0xf9624
callq 0x22ab0
movq 0x38(%rsp), %r13
movq 0x20(%r13), %rsi
movq 0x28(%r13), %rdx
movq %rbx, %rdi
callq 0x22ab0
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
movl $0x10, %edx
movq %r12, %rdi
leaq 0x9e0de(%rip), %rsi     # 0xf9625
callq 0x22ab0
movq 0x20(%r13), %rsi
movq 0x28(%r13), %rdx
movq 0xb0(%rsp), %r13
movq %r12, %rdi
callq 0x22ab0
movq %rax, %rbx
movl $0x13, %edx
movq %rax, %rdi
leaq 0x9e0c0(%rip), %rsi     # 0xf9636
callq 0x22ab0
movq 0x30(%rsp), %rax
movsd (%rax), %xmm0
movq %rbx, %rdi
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 0xa8(%r14), %rax
movl 0x1614(%rax), %eax
cmpl $0x9, %eax
jb 0x5b8bf
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rbx, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
addq %r13, %rdi
movq %rbp, %rsi
callq 0x660c6
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
imulq %rbx, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
movq 0x18(%rax), %rbx
addq %r13, %rdi
movq %rbp, %rsi
callq 0x660c6
addq $0x8, %rax
cmpq %rax, %rbx
je 0x5b8b2
movl $0x6, %edx
movq 0x11a957(%rip), %r12    # 0x175fa8
movq %r12, %rdi
leaq 0x9dfef(%rip), %rbp     # 0xf964a
movq %rbp, %rsi
callq 0x22ab0
movl 0x20(%rbx), %esi
movq %r12, %rdi
callq 0x231e0
movq %rax, %r15
movq (%rax), %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 $0x6, %edx
movq %r12, %rdi
movq %rbp, %rsi
movq 0xb8(%rsp), %rbp
callq 0x22ab0
movq 0x28(%rbx), %rsi
movq %r12, %rdi
callq 0x22750
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r15, %rdi
movq 0x8(%rsp), %r15
movq 0xb0(%rsp), %r13
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq %rbx, %rdi
callq 0x22670
movq %rax, %rbx
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
cmpq %r15, %rdx
ja 0x5b62d
jmp 0x5c69c
movq 0xa8(%r14), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x5b7a9
movl $0x39, %edx
movq 0x11a85d(%rip), %rbx    # 0x175fa8
movq %rbx, %rdi
leaq 0x9de44(%rip), %rsi     # 0xf9599
callq 0x22ab0
movq 0x30(%rsp), %rax
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x23060
movq %rax, %rbx
movl $0xb, %edx
movq %rax, %rdi
leaq 0x9dcf2(%rip), %rsi     # 0xf946f
callq 0x22ab0
movq (%rbx), %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
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
movq 0x10(%rsp), %rdi
jmp 0x5bdb0
cmpl $0x4, %eax
jb 0x5b80a
movl $0x12, %edx
movq 0x11a7da(%rip), %r12    # 0x175fa8
movq %r12, %rdi
leaq 0x9dede(%rip), %rsi     # 0xf96b6
callq 0x22ab0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
leaq 0x70(%rsp), %r12
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
imulq %rbx, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
addq %r13, %rdi
movq %rbp, %rsi
callq 0x660c6
movq 0xa8(%r14), %rcx
movl 0x1658(%rcx), %ecx
incl %ecx
movl %ecx, 0x48(%rsp)
movq %rax, %rdi
leaq 0x48(%rsp), %rsi
callq 0x6611a
movq (%rax), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x66160
movq %rax, %rdi
movq 0x30(%rsp), %rsi
callq 0x661b4
movsd (%rax), %xmm0
movq 0xa8(%r14), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x5bb7f
movsd %xmm0, 0xa0(%rsp)
movl $0x4, %edx
movq 0x11a705(%rip), %r12    # 0x175fa8
movq %r12, %rdi
leaq 0x9fec7(%rip), %rsi     # 0xfb774
jmp 0x5bb44
movq 0xa8(%r14), %rax
movl 0x1614(%rax), %eax
cmpl $0x5, %eax
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
leaq 0x70(%rsp), %r12
jb 0x5b9a3
movl $0x7, %edx
movq 0x11a6c5(%rip), %r12    # 0x175fa8
movq %r12, %rdi
leaq 0x9dd64(%rip), %rsi     # 0xf9651
callq 0x22ab0
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
imulq %rbx, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
addq %r13, %rdi
movq %rbp, %rsi
callq 0x660c6
movq 0xa8(%r14), %rcx
movl 0x1658(%rcx), %ecx
incl %ecx
movl %ecx, 0x48(%rsp)
movq %rax, %rdi
leaq 0x48(%rsp), %rsi
callq 0x6611a
movq (%rax), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x66160
movq %rax, %rdi
movq 0x30(%rsp), %rsi
callq 0x661b4
movsd (%rax), %xmm0
movq %r12, %rdi
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
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
leaq 0x70(%rsp), %r12
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
imulq %rbx, %rdx
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
addq %r13, %rdi
movq %rbp, %rsi
callq 0x660c6
movq 0xa8(%r14), %rcx
movl 0x1658(%rcx), %ecx
movl %ecx, 0x48(%rsp)
movq %rax, %rdi
leaq 0x48(%rsp), %rsi
callq 0x6611a
movq (%rax), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x66160
movq %rax, %rdi
movq 0x30(%rsp), %r15
movq %r15, %rsi
callq 0x661b4
movsd (%rax), %xmm0
movq 0xa8(%r14), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x5bb7f
movsd %xmm0, 0xa0(%rsp)
movl $0x7, %edx
movq 0x11a56b(%rip), %r12    # 0x175fa8
movq %r12, %rdi
leaq 0x9dc12(%rip), %rsi     # 0xf9659
callq 0x22ab0
movq %r12, %rdi
movq 0x8(%rsp), %rsi
callq 0x22650
movq %rax, %rbx
movl $0xc, %edx
movq %rax, %rdi
leaq 0x9dbf6(%rip), %rsi     # 0xf9661
callq 0x22ab0
movq 0x68(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
movq %rbx, %rdi
callq 0x22ab0
movq %rax, %rbx
movl $0x1d, %edx
movq %rax, %rdi
leaq 0x9dbd7(%rip), %rsi     # 0xf966e
callq 0x22ab0
movq 0xa8(%r14), %rax
movl 0x1658(%rax), %esi
movq %rbx, %rdi
callq 0x22650
movq %rax, %rbx
movl $0x10, %edx
movq %rax, %rdi
leaq 0x9dbc9(%rip), %rsi     # 0xf968c
callq 0x22ab0
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
movq %rbx, %rdi
callq 0x22ab0
movq %rax, %rbx
movl $0x12, %edx
movq %rax, %rdi
leaq 0x9dbae(%rip), %rsi     # 0xf969d
callq 0x22ab0
movsd (%r15), %xmm0
movq %rbx, %rdi
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
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
callq 0x22050
movq %rax, %rdi
callq 0x22660
movl $0x5, %edx
movq %r12, %rdi
leaq 0x9db6c(%rip), %rsi     # 0xf96b0
callq 0x22ab0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x70(%rsp), %r12
movsd 0xa0(%rsp), %xmm0
movq 0x10(%rsp), %rax
movsd 0x28(%rax), %xmm1
ucomisd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
jne 0x5bb9a
jnp 0x5bbbb
movq 0x30(%r14), %rax
movq 0x38(%r14), %rdi
addq %r14, %rdi
testb $0x1, %al
je 0x5bbb1
movq (%rdi), %rcx
movq -0x1(%rcx,%rax), %rax
movsd 0x40(%rsp), %xmm2
callq *%rax
jmp 0x5bbbf
xorpd %xmm0, %xmm0
movsd %xmm0, 0xa8(%rsp)
movq 0xa8(%r14), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x5bd31
movl $0x6, %edx
movq 0x11a3c0(%rip), %r12    # 0x175fa8
movq %r12, %rdi
leaq 0x9dad7(%rip), %rsi     # 0xf96c9
callq 0x22ab0
movq %r12, %rdi
movsd 0xa8(%rsp), %xmm0
callq 0x23060
movq %rax, %rbx
movl $0x6, %edx
movq %rax, %rdi
leaq 0x9dab6(%rip), %rsi     # 0xf96d0
callq 0x22ab0
movq %rbx, %rdi
movsd 0xa0(%rsp), %xmm0
callq 0x23060
movq %rax, %rbx
movl $0x15, %edx
movq %rax, %rdi
leaq 0x9da95(%rip), %rsi     # 0xf96d7
callq 0x22ab0
movq 0x10(%rsp), %rax
movsd 0x28(%rax), %xmm0
movq %rbx, %rdi
callq 0x23060
movq %rax, %rbx
movl $0xb, %edx
movq %rax, %rdi
leaq 0x9da82(%rip), %rsi     # 0xf96ed
callq 0x22ab0
movq %rbx, %rdi
movsd 0x40(%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
movl $0x5, %edx
movq %r12, %rdi
leaq 0x9da42(%rip), %rsi     # 0xf96f9
callq 0x22ab0
movq %r12, %rdi
leaq 0x70(%rsp), %r12
movsd 0xa8(%rsp), %xmm0
callq 0x23060
movq %rax, %rbx
movl $0x5, %edx
movq %rax, %rdi
leaq 0x9d900(%rip), %rsi     # 0xf95e4
callq 0x22ab0
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x22650
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %rbx, %rdi
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xa8(%r14), %rax
cmpl $0x0, 0x1638(%rax)
je 0x5bd8c
movl 0x13ec(%rax), %ecx
leaq (%rcx,%rcx,2), %rdi
shlq $0x4, %rdi
addq 0x38(%rax), %rdi
movq %rbp, %rsi
callq 0x66204
movq %rax, %rdi
movq 0x28(%rsp), %rsi
callq 0x66280
movq %rax, %rdi
movq 0x30(%rsp), %rsi
callq 0x662fc
movl (%rax), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movsd 0xa8(%rsp), %xmm1
mulsd %xmm0, %xmm1
movq 0x10(%rsp), %rdi
jmp 0x5bd9a
movq 0x10(%rsp), %rdi
movsd 0xa8(%rsp), %xmm1
movsd 0x98(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x98(%rsp)
callq 0x22670
movq %rax, %rdi
cmpq 0x150(%rsp), %rax
jne 0x5b038
jmp 0x5bdd5
xorpd %xmm0, %xmm0
movsd %xmm0, 0x98(%rsp)
movsd 0x90(%rsp), %xmm0
addsd 0x98(%rsp), %xmm0
movsd %xmm0, 0x90(%rsp)
movq 0x38(%rsp), %rdi
callq 0x22670
movq 0x68(%rsp), %rbp
movq 0x40(%rbp), %rdi
movq (%rdi), %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
jne 0x5af68
jmp 0x5bf23
movq 0xa8(%r14), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x5bf04
movl $0x2d, %edx
movq 0x11a170(%rip), %r12    # 0x175fa8
movq %r12, %rdi
leaq 0x9d5ff(%rip), %rsi     # 0xf9441
callq 0x22ab0
movq 0x20(%rbp), %rsi
movq 0x28(%rbp), %rdx
movq %r12, %rdi
callq 0x22ab0
movq %rax, %rbx
movl $0xb, %edx
movq %rax, %rdi
leaq 0x9d606(%rip), %rsi     # 0xf946f
jmp 0x5becc
movl $0xd, %edx
movq 0x11a131(%rip), %r12    # 0x175fa8
movq %r12, %rdi
leaq 0x9d5fa(%rip), %rsi     # 0xf947b
callq 0x22ab0
movq 0x20(%rbp), %rsi
movq 0x28(%rbp), %rdx
movq %r12, %rdi
callq 0x22ab0
movq %rax, %rbx
movl $0x1d, %edx
movq %rax, %rdi
leaq 0x9d5e1(%rip), %rsi     # 0xf9489
callq 0x22ab0
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x22650
movq %rax, %rbx
movl $0x13, %edx
movq %rax, %rdi
leaq 0x9d5db(%rip), %rsi     # 0xf94a7
callq 0x22ab0
movq (%rbx), %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
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
jmp 0x5bf3f
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
jmp 0x5bf38
movsd %xmm0, 0x90(%rsp)
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
movsd 0x20(%rsp), %xmm0
addsd 0x90(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0x11a069(%rip), %r12    # 0x175fa8
movq %rbp, %rdi
callq 0x22670
movq %rax, %rbp
movq 0xa8(%r14), %rax
leaq 0x1568(%rax), %rcx
cmpq %rcx, %rbp
jne 0x5ac91
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
imulq %rbx, %rdx
jmp 0x5c41a
leaq 0x198(%rsp), %rbx
movq %rbx, %rdi
movl %r13d, %esi
callq 0xbfa49
leaq 0x9d465(%rip), %rcx     # 0xf93fe
movl $0x2f, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x168(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5bfdb
movq %rdx, 0x158(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x168(%rsp)
jmp 0x5bfe2
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x158(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x9ccaf(%rip), %rsi     # 0xf8cb7
callq 0x233b0
leaq 0x100(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5c03d
movq %rdx, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0x5c044
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0xf8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x130(%rsp), %rdi
movl %r12d, %esi
callq 0xbfa49
movq 0xf0(%rsp), %rcx
movq 0xf8(%rsp), %r8
movq 0x138(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r15, %rcx
je 0x5c09d
movq 0x100(%rsp), %rdi
movq 0x130(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x5c0c9
leaq 0x140(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x5c0c4
movq 0x140(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x5c0d8
leaq 0xf0(%rsp), %rdi
callq 0x222b0
jmp 0x5c0e9
leaq 0x130(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0xd8(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x5c116
movq %rsi, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x5c11c
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0xd0(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x9c621(%rip), %rsi     # 0xf8764
leaq 0xc8(%rsp), %rdi
callq 0x233b0
decl %r13d
imull %ebp, %r13d
leal (%r12,%r13), %esi
incl %esi
leaq 0x80(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5c18b
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x5c193
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x110(%rsp), %rdi
callq 0xbfa49
movq 0x70(%rsp), %rcx
movq 0x78(%rsp), %r8
movq 0x118(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x5c1e0
movq 0x80(%rsp), %rdi
movq 0x110(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x5c20c
leaq 0x120(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x5c207
movq 0x120(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x5c218
leaq 0x70(%rsp), %rdi
callq 0x222b0
jmp 0x5c229
leaq 0x110(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x58(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x5c24d
movq %rsi, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x5c253
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x9cb5b(%rip), %rsi     # 0xf8dd2
leaq 0x48(%rsp), %rdi
callq 0x233b0
leaq 0x188(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5c2b1
movq %rdx, 0x178(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x188(%rsp)
jmp 0x5c2b9
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x178(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0xbfa27
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x5c2fa
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c315
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c336
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x70(%rsp), %rdi
cmpq %r12, %rdi
je 0x5c350
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c371
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c392
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xf0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5c3af
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x158(%rsp), %rdi
cmpq %r14, %rdi
je 0x5c3cc
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x1a8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c3ed
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x229c0
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x0, 0x18(%rsp)
jmp 0x5ab7d
movsd %xmm0, 0x20(%rsp)
movq 0xb0(%rsp), %r13
cmpq 0x8(%rsp), %rdx
jbe 0x5c69c
addq %r13, %rdi
callq 0x6ae8e
movq 0xa8(%r14), %rax
cmpl $0x3, 0x1614(%rax)
jbe 0x5c490
movq 0x119b64(%rip), %rbx    # 0x175fa8
leaq 0x9d2b4(%rip), %rsi     # 0xf96ff
movl $0xa, %edx
movq %rbx, %rdi
callq 0x22ab0
movq %rbx, %rdi
movsd 0x20(%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
movsd 0x9a660(%rip), %xmm1    # 0xf6af8
movsd 0x20(%rsp), %xmm0
callq 0x23210
movsd %xmm0, 0x10(%rsp)
movq 0x18(%r14), %rdi
addq %r13, %rdi
cmpb $0x0, 0xc4(%rsp)
je 0x5c53f
leaq 0x48(%rsp), %rsi
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
callq 0x65eca
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0xa8(%r14), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x5c5ff
movq 0x119ab5(%rip), %rbx    # 0x175fa8
leaq 0x9d22a(%rip), %rsi     # 0xf9724
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x22ab0
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x22650
movq %rax, %rbx
leaq 0x9563e(%rip), %rsi     # 0xf1b5c
movl $0x2, %edx
movq %rax, %rdi
callq 0x22ab0
addq 0x18(%r14), %r13
leaq 0x48(%rsp), %rsi
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
jmp 0x5c5c1
movl 0xb0(%r14), %eax
leaq 0x48(%rsp), %rsi
movl %eax, (%rsi)
callq 0x65eca
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0xa8(%r14), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x5c5ff
movq 0x119a31(%rip), %rbx    # 0x175fa8
leaq 0x9d18c(%rip), %rsi     # 0xf970a
movl $0x19, %edx
movq %rbx, %rdi
callq 0x22ab0
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x22650
movq %rax, %rbx
leaq 0x955ba(%rip), %rsi     # 0xf1b5c
movl $0x2, %edx
movq %rax, %rdi
callq 0x22ab0
addq 0x18(%r14), %r13
movl 0xb0(%r14), %eax
leaq 0x48(%rsp), %rsi
movl %eax, (%rsi)
movq %r13, %rdi
callq 0x65eca
movsd (%rax), %xmm0
movq %rbx, %rdi
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 0xa8(%r14), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x5c3ed
movq 0x11998e(%rip), %rbx    # 0x175fa8
leaq 0x9d121(%rip), %rsi     # 0xf9742
movl $0x10, %edx
movq %rbx, %rdi
callq 0x22ab0
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x22650
movq %rax, %rbx
leaq 0xc5f28(%rip), %rsi     # 0x12256d
movl $0x3, %edx
movq %rax, %rdi
callq 0x22ab0
movsd 0x9a49e(%rip), %xmm1    # 0xf6af8
movsd 0x20(%rsp), %xmm0
callq 0x23210
movq %rbx, %rdi
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
jmp 0x5c3ed
leaq 0x96fd6(%rip), %rdi     # 0xf3679
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x22f40
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x5c6d4
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5c6d4
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c6f4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5c6f4
movq %rax, %rbx
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c71a
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5c71a
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r12, %rdi
je 0x5c739
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5c739
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c75f
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5c75f
movq %rax, %rbx
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c785
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5c785
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5c7a7
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5c7a7
movq %rax, %rbx
movq 0x158(%rsp), %rdi
cmpq %r14, %rdi
je 0x5c7c9
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5c7c9
movq %rax, %rbx
leaq 0x1a8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c7ea
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x23240