// File: /workspace/github_cpp_makefile_star2_O1/richardposner[P]BioNetFit2/src/code/Swarm.cpp
// Function: Swarm::processLateParticles(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, double, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, double>>>, int, bool, int)
void Swarm::processLateParticles(map<string, double> simParams_, int subParID, bool breed, int currGen) {

		//int found = 0;
			//for(auto i = 1; i<=options.swarmSize; i++){
			//	found = 0;
				//for(auto k = 0; k<options.models.size(); k++){
				//	for(auto j = finishedSubParticles_.begin(); j != finishedSubParticles_.end(); ++j){
						//subParID = fcalcsubParID(i, k, options.models.size());
					//	if(subParID == *j){
							//found = 1;

//						}

	//				}

		if(currGen==0){
			currGen = currentGeneration;

		}
	//
					//if(found==0){
		int pID = fcalcParID(subParID, options.models.size());
		int mid = fcalcMID(subParID, options.models.size());


						map<string, double> paramSet;

							vector<string> paramVals;
							vector<string> paramVecStr;

							//auto best = allGenFits.begin();

							//allGenFits.insert(pair<double, string>(fitCalc, order_params(paramsString, mid)));
							//swarmBestFits_.insert(pair<double, unsigned int>(fitCalc, pID));
							//subswarmBestFits_.insert(pair<double, unsigned int>(fitCalc, subParID));
							//currentsubswarmBestFits_.insert(pair<double, unsigned int>(fitCalc, subParID));

							int bestSP = 0;
							int bestMD = -1;
							int bestP = 0;

							//int mysize = subparticleBestFits_.size();
							//cout << "SIZE1 " << mysize << endl;
							//mysize = swarmBestFits_.size();
							//cout << "SIZE2 " << mysize << endl;

							if(simParams_.size()==0){

								//Raquel: we gotta fix this, make this loop work and discover why the variables are getting erased.
								for(auto pi = subparticleBestFits_.begin(); pi != subparticleBestFits_.end(); pi++){

									bestMD = fcalcMID(pi->second, options.models.size());
									if(bestMD == mid){
										bestSP = pi->second;
										bestP = fcalcParID(bestSP, options.models.size());
										break;
									}

								}


								//split(best->second, paramVals);

								auto fp = options.models.at(mid)->freeParams_.begin();
								for (unsigned int i = 1; i < subparticleCurrParamSets_[pID][mid].size(); i++) {
									//paramSet.insert(pair<string, double> (fp->first, subparticleCurrParamSets_[bestP][mid][i])); //make this work later, to clone the best particle
									paramSet.insert(pair<string, double> (fp->first, subparticleCurrParamSets_[pID][mid][i]));

									++fp;

									paramVecStr.push_back(toString(subparticleCurrParamSets_[bestP][mid][i]));
								}




							}else{

								for (auto i = simParams_.begin(); i != simParams_.end(); ++i) {
									//paramSet.insert(pair<string, double> (fp->first, subparticleCurrParamSets_[bestP][mid][i])); //make this work later, to clone the best particle
									paramSet.insert(pair<string, double> (i->first, i->second));

									paramVecStr.push_back(toString(i->second));
								}
							}

							if(breed){
								swarmComm->sendToSwarm(0, subParID, SEND_FINAL_PARAMS_TO_PARTICLE, false, paramVecStr);
							}
							if(options.verbosity>=3){
								cout << "@@@@@@@@@@@@@@@@@@@@@@@@ LATE SUBPARTICLE " << subParID << " @@@@@@@@@@@@@@@@@@@@@@@@@@@" << " paramvals size: " << paramVals.size() << " freeparam names size: " << options.models.at(mid)->freeParams_.size() << endl;
							}
							for (unsigned int r = 1; r <= options.smoothing; ++r) {
								string outputDir = options.jobOutputDir + toString(currGen) + "/";
								string bnglFilename = getModelName(mid, false)+"_" + toString(pID) + "_" + toString(r) + ".bngl";
								string suffix = toString(pID) + "_" + toString(r) ;
								//options.models[mid]->outputModelWithParams(paramSet, outputDir, bnglFilename, suffix, false, false, true, false, false);

								if (options.models[mid]->getHasGenerateNetwork()){
									// If we're using ODE solver, output .net file
									bnglFilename = boost::regex_replace(bnglFilename, boost::regex("bngl$"), string("net"));
									options.models[mid]->outputModelWithParams(simParams_, outputDir, bnglFilename, suffix,  false, false, true, false, false);
								}
								else {
									// If we're using network free simulation, output .bngl
									options.models[mid]->outputModelWithParams(simParams_, outputDir, bnglFilename, suffix, false, false, false, false, false);
								}


							}
						/*if(breed){
							int numFinishedBreeding = 0;
							while (numFinishedBreeding == 0) {
									if(options.verbosity>=3){

										cout << "checking for DONEBREED FOR LATE PARTICLE " << subParID << endl;
									}
									unsigned int numMessages = swarmComm->recvMessage(-1, 0, DONE_BREEDING, true, swarmComm->univMessageReceiver, true);

							//		int Pheromones::recvMessage(signed int senderID, const int receiverID, int tag, bool block, swarmMsgHolder &messageHolder, bool eraseMessage, int messageID) {

									numFinishedBreeding += numMessages;
									//cout << numFinishedBreeding << endl;
									if(options.verbosity>=3){

										cout << "RAQUEL numFinishedBreeding " << numFinishedBreeding << endl;
									}
							}
						}*/
					//}
				//}

			//}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x308, %rsp            # imm = 0x308
movl %r8d, %ebp
movl %ecx, 0xec(%rsp)
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r12
testl %r8d, %r8d
jne 0x90b6a
movl 0x13e8(%r12), %ebp
movq 0x15c8(%r12), %rsi
subq 0x15c0(%r12), %rsi
shrq $0x3, %rsi
movl %ebx, %edi
callq 0xbf2b8
movl %eax, 0x54(%rsp)
movq 0x15c8(%r12), %rsi
subq 0x15c0(%r12), %rsi
shrq $0x3, %rsi
movl %ebx, 0xf0(%rsp)
movl %ebx, %edi
callq 0xbf2ae
leaq 0x2e0(%rsp), %rcx
movl $0x0, (%rcx)
xorl %r13d, %r13d
movq %r13, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %r13, 0x20(%rcx)
movq %r13, 0x250(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x240(%rsp)
movq %r13, 0x190(%rsp)
movaps %xmm0, 0x180(%rsp)
movl %eax, 0x24(%rsp)
cltq
movq %rax, 0xb8(%rsp)
cmpq %r13, 0x28(%r15)
movq %r12, 0xe0(%rsp)
movl %ebp, 0xf4(%rsp)
movq %r15, 0x138(%rsp)
je 0x918e1
movq 0x18(%r15), %rbx
leaq 0x8(%r15), %rbp
cmpq %rbp, %rbx
je 0x90cd1
leaq 0x38(%rsp), %r15
leaq 0x28(%rsp), %r14
leaq 0x2d8(%rsp), %r12
leaq 0x180(%rsp), %r13
movq %r15, 0x28(%rsp)
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x32180
movsd 0x40(%rbx), %xmm0
movsd %xmm0, 0x48(%rsp)
movq %r12, %rdi
movq %r14, %rsi
callq 0x4d33e
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x90c8e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movsd 0x40(%rbx), %xmm0
movq %r14, %rdi
callq 0xc0446
movq %r13, %rdi
movq %r14, %rsi
callq 0x6a77e
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x90cbd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x22670
movq %rax, %rbx
cmpq %rbp, %rax
jne 0x90c49
cmpb $0x0, 0xec(%rsp)
movq 0xe0(%rsp), %r12
movl 0xf0(%rsp), %ebx
je 0x90d11
movq (%r12), %rdi
subq $0x8, %rsp
leaq 0x188(%rsp), %r9
xorl %esi, %esi
movl %ebx, %edx
movl $0x15, %ecx
xorl %r8d, %r8d
pushq $-0x1
callq 0x6bfb0
addq $0x10, %rsp
cmpl $0x3, 0x1614(%r12)
jb 0x90e06
movq 0xe5269(%rip), %rdi     # 0x175f90
leaq 0x6e99f(%rip), %rsi     # 0xff6cd
movl $0x2a, %edx
callq 0x22ab0
movq 0xe5251(%rip), %rdi     # 0x175f90
movl %ebx, %esi
callq 0x231e0
movq %rax, %rbx
leaq 0x6e9a8(%rip), %rsi     # 0xff6f8
movl $0x1c, %edx
movq %rax, %rdi
callq 0x22ab0
leaq 0x6e9b1(%rip), %rsi     # 0xff715
movl $0x11, %edx
movq %rbx, %rdi
callq 0x22ab0
movq 0x248(%rsp), %rsi
subq 0x240(%rsp), %rsi
sarq $0x5, %rsi
movq %rbx, %rdi
callq 0x22650
movq %rax, %rbx
leaq 0x6e990(%rip), %rsi     # 0xff727
movl $0x17, %edx
movq %rax, %rdi
callq 0x22ab0
movq 0x15c0(%r12), %rax
movq 0x15c8(%r12), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movq 0xb8(%rsp), %rsi
cmpq %rsi, %rdx
jbe 0x91aca
movq (%rax,%rsi,8), %rax
movq 0x58(%rax), %rsi
movq %rbx, %rdi
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
cmpl $0x0, 0x1658(%r12)
je 0x918a8
movl $0x1, %ebx
movq %rsp, %r15
leaq 0x220(%rsp), %r13
movq %r15, %rdi
movl 0xf4(%rsp), %esi
callq 0xbee9e
movq 0x1520(%r12), %rcx
movq 0x1528(%r12), %r8
movq %r15, %rbp
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x68(%rsp), %rsi
movq %rsi, 0x58(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x58(%rsp), %rdi
je 0x90e80
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x90e86
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x60(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x6e942(%rip), %rsi     # 0xff7e7
callq 0x233b0
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x90ed2
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x90ed8
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x90f0c
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x90f27
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x258(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
movl 0x24(%rsp), %edx
xorl %ecx, %ecx
callq 0x7a62c
movq %r15, %rdi
leaq 0x66f1d(%rip), %rsi     # 0xf7e67
callq 0x233b0
leaq 0xa8(%rsp), %rsi
movq %rsi, 0x98(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x90f83
movq %rdx, 0x98(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa8(%rsp)
jmp 0x90f89
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xa0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x118(%rsp), %rdi
movl 0x54(%rsp), %esi
callq 0xbee9e
movq 0x98(%rsp), %rcx
movl $0xf, %esi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rcx
je 0x90fd7
movq 0xa8(%rsp), %rsi
movq 0xa0(%rsp), %r8
movq 0x120(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x91014
movl $0xf, %esi
leaq 0x128(%rsp), %rdi
cmpq %rdi, 0x118(%rsp)
je 0x9100f
movq 0x128(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x9102b
movq 0x118(%rsp), %rsi
leaq 0x98(%rsp), %rdi
callq 0x222b0
jmp 0x9103c
leaq 0x118(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0xd0(%rsp), %rsi
movq %rsi, 0xc0(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x9106d
movq %rdx, 0xc0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd0(%rsp)
jmp 0x91073
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0xc8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xc0(%rsp), %rdi
leaq 0x66dc5(%rip), %rsi     # 0xf7e67
callq 0x233b0
leaq 0x88(%rsp), %rsi
movq %rsi, 0x78(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x910d5
movq %rdx, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x910db
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xf8(%rsp), %rdi
movl %ebx, %esi
callq 0xc03b8
movq 0x78(%rsp), %rcx
movl $0xf, %esi
leaq 0x88(%rsp), %rax
cmpq %rax, %rcx
je 0x91124
movq 0x88(%rsp), %rsi
movq 0x80(%rsp), %r8
movq 0x100(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x91161
movl $0xf, %esi
leaq 0x108(%rsp), %rdi
cmpq %rdi, 0xf8(%rsp)
je 0x9115c
movq 0x108(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x91175
movq 0xf8(%rsp), %rsi
leaq 0x78(%rsp), %rdi
callq 0x222b0
jmp 0x91186
leaq 0xf8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x911a9
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x911af
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq %rbp, %rdi
leaq 0x6814d(%rip), %rsi     # 0xf9323
callq 0x233b0
leaq 0x68(%rsp), %rsi
movq %rsi, 0x58(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x91203
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x91209
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x60(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x9123c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x91261
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x91283
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x912a8
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x912cd
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x912f2
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x258(%rsp), %rdi
leaq 0x268(%rsp), %rax
cmpq %rax, %rdi
je 0x91317
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xc0(%rsp), %r15
movq %r15, %rdi
movl 0x54(%rsp), %esi
callq 0xbee9e
movq %r15, %rdi
leaq 0x66b32(%rip), %rsi     # 0xf7e67
callq 0x233b0
leaq 0x88(%rsp), %rsi
movq %rsi, 0x78(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x91368
movq %rdx, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x9136e
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x98(%rsp), %rdi
movl %ebx, %esi
callq 0xc03b8
movq 0x78(%rsp), %rcx
movl $0xf, %esi
leaq 0x88(%rsp), %rax
cmpq %rax, %rcx
je 0x913b7
movq 0x88(%rsp), %rsi
movq 0x80(%rsp), %r8
movq 0xa0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x913f4
movl $0xf, %esi
leaq 0xa8(%rsp), %rdi
cmpq %rdi, 0x98(%rsp)
je 0x913ef
movq 0xa8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x91408
movq 0x98(%rsp), %rsi
leaq 0x78(%rsp), %rdi
callq 0x222b0
jmp 0x91419
leaq 0x98(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x9143c
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x91442
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x91484
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x914a6
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x914cb
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x15c0(%r12), %rax
movq 0xb8(%rsp), %rcx
movq (%rax,%rcx,8), %r12
cmpb $0x1, 0xb8(%r12)
jne 0x916f8
leaq 0xc0(%rsp), %rdi
leaq 0x66aa1(%rip), %rsi     # 0xf7f9e
xorl %edx, %edx
callq 0x31902
leaq 0x230(%rsp), %rax
movq %rax, 0x220(%rsp)
movq %r13, %rdi
leaq 0x67528(%rip), %rsi     # 0xf8a46
leaq 0x67524(%rip), %rdx     # 0xf8a49
callq 0x32210
movq 0xe0(%rsp), %r12
movq %r13, %rcx
leaq 0x78(%rsp), %r14
movq %r14, %rdi
leaq 0x58(%rsp), %r15
movq %r15, %rsi
leaq 0xc0(%rsp), %rdx
xorl %r8d, %r8d
callq 0x4a2c9
movq %r15, %rdi
movq %r14, %rsi
callq 0x22bb0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x91582
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x220(%rsp), %rdi
leaq 0x230(%rsp), %rax
cmpq %rax, %rdi
je 0x915a7
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xc8(%rsp), %rdi
callq 0x322a0
movq 0x15c0(%r12), %rax
movq 0xb8(%rsp), %rcx
movq (%rax,%rcx,8), %r12
leaq 0x2a8(%rsp), %rdi
movq 0x138(%rsp), %rsi
callq 0x51a66
leaq 0x210(%rsp), %rax
movq %rax, 0x200(%rsp)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x200(%rsp), %rdi
callq 0x32180
leaq 0x170(%rsp), %rax
movq %rax, 0x160(%rsp)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x160(%rsp), %rdi
callq 0x32180
leaq 0x1f0(%rsp), %rax
movq %rax, 0x1e0(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1e0(%rsp), %r14
movq %r14, %rdi
callq 0x32180
movq %r12, %rdi
leaq 0x2a8(%rsp), %rsi
leaq 0x200(%rsp), %rdx
leaq 0x160(%rsp), %rcx
movq %r14, %r8
xorl %r9d, %r9d
xorl %eax, %eax
pushq %rax
pushq %rax
pushq $0x1
pushq %rax
callq 0x4eede
addq $0x20, %rsp
movq 0x1e0(%rsp), %rdi
leaq 0x1f0(%rsp), %rax
cmpq %rax, %rdi
je 0x916b3
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x916d8
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x200(%rsp), %rdi
leaq 0x210(%rsp), %rcx
movq %rcx, %rax
leaq 0x2a8(%rsp), %r12
jmp 0x91822
leaq 0x278(%rsp), %rdi
movq 0x138(%rsp), %rsi
callq 0x51a66
leaq 0x1d0(%rsp), %rax
movq %rax, 0x1c0(%rsp)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1c0(%rsp), %rdi
callq 0x32180
leaq 0x150(%rsp), %rax
movq %rax, 0x140(%rsp)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x140(%rsp), %rdi
callq 0x32180
leaq 0x1b0(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1a0(%rsp), %r14
movq %r14, %rdi
callq 0x32180
movq %r12, %rdi
leaq 0x278(%rsp), %rsi
leaq 0x1c0(%rsp), %rdx
leaq 0x140(%rsp), %rcx
movq %r14, %r8
xorl %r9d, %r9d
xorl %eax, %eax
pushq %rax
pushq %rax
pushq %rax
pushq %rax
callq 0x4eede
addq $0x20, %rsp
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x917e2
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x91807
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rcx
movq %rcx, %rax
leaq 0x278(%rsp), %r12
cmpq %rcx, %rdi
je 0x91832
movq (%rax), %rsi
incq %rsi
callq 0x229c0
movq %r12, %rdi
callq 0x4a694
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x91855
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
movq 0xe0(%rsp), %r12
je 0x91879
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x91895
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
incl %ebx
cmpl 0x1658(%r12), %ebx
movq %rbp, %r15
jbe 0x90e25
leaq 0x180(%rsp), %rdi
callq 0x31a9e
leaq 0x240(%rsp), %rdi
callq 0x31a9e
leaq 0x2d8(%rsp), %rdi
callq 0x4a694
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1a68(%r12), %rbx
leaq 0x1a58(%r12), %r14
cmpq %r14, %rbx
je 0x9194e
cvttsd2si 0x28(%rbx), %rdi
movq 0x15c8(%r12), %rsi
subq 0x15c0(%r12), %rsi
shrq $0x3, %rsi
callq 0xbf2ae
cmpl 0x24(%rsp), %eax
je 0x9192d
movq %rbx, %rdi
callq 0x22670
movq %rax, %rbx
cmpq %r14, %rax
jne 0x918f6
jmp 0x9194e
cvttsd2si 0x28(%rbx), %edi
movq 0x15c8(%r12), %rsi
subq 0x15c0(%r12), %rsi
shrq $0x3, %rsi
callq 0xbf2b8
movl %eax, %r13d
movq 0xb8(%rsp), %rsi
movq 0x15c0(%r12), %rax
movq 0x15c8(%r12), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x91ad8
movq (%rax,%rsi,8), %rax
movq 0x48(%rax), %rbx
leaq 0x1460(%r12), %r14
movl $0x1, %r15d
leaq 0x28(%rsp), %r12
movl 0x54(%rsp), %eax
movl %eax, 0x28(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x6f13e
movl 0x24(%rsp), %ecx
movl %ecx, 0x58(%rsp)
movq %rax, %rdi
leaq 0x58(%rsp), %rsi
callq 0x6f1a2
movl %r15d, %r15d
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
jbe 0x90cd1
movq %r13, %rbp
movl 0x54(%rsp), %eax
movl %eax, 0x58(%rsp)
movq %r14, %rdi
leaq 0x58(%rsp), %rsi
callq 0x6f13e
movl 0x24(%rsp), %ecx
movl %ecx, (%rsp)
movq %rax, %rdi
movq %rsp, %rsi
callq 0x6f1a2
movq (%rax), %r13
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x32180
movsd (%r13,%r15,8), %xmm0
movsd %xmm0, 0x48(%rsp)
leaq 0x2d8(%rsp), %rdi
movq %r12, %rsi
callq 0x4d33e
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
movq %rbp, %r13
je 0x91a56
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x22670
movq %rax, %rbx
movl %r13d, 0x58(%rsp)
movq %r14, %rdi
leaq 0x58(%rsp), %rsi
callq 0x6f13e
movl 0x24(%rsp), %ecx
movl %ecx, (%rsp)
movq %rax, %rdi
movq %rsp, %rsi
callq 0x6f1a2
movq (%rax), %rax
movsd (%rax,%r15,8), %xmm0
movq %r12, %rdi
callq 0xc0446
leaq 0x180(%rsp), %rdi
movq %r12, %rsi
callq 0x6a77e
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x91ac2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
incl %r15d
jmp 0x91991
leaq 0x61bf4(%rip), %rdi     # 0xf36c5
xorl %eax, %eax
callq 0x22f40
leaq 0x61be6(%rip), %rdi     # 0xf36c5
xorl %eax, %eax
callq 0x22f40
jmp 0x91f26
jmp 0x91f26
jmp 0x91f26
jmp 0x91f26
movq %rax, %rbx
jmp 0x91bf0
movq %rax, %rbx
jmp 0x91ba6
jmp 0x91cc3
movq %rax, %rbx
movq 0x220(%rsp), %rdi
leaq 0x230(%rsp), %rax
cmpq %rax, %rdi
je 0x91bfd
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x91bfd
movq %rax, %rbx
jmp 0x91c3c
movq %rax, %rbx
movq 0x1e0(%rsp), %rdi
leaq 0x1f0(%rsp), %rax
cmpq %rax, %rdi
je 0x91c17
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x91c17
movq %rax, %rbx
jmp 0x91bcb
movq %rax, %rbx
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x91ba6
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x91bcb
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x91bf0
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x278(%rsp), %rdi
jmp 0x91c69
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x322a0
jmp 0x91cc6
movq %rax, %rbx
jmp 0x91c61
movq %rax, %rbx
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x91c3c
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x200(%rsp), %rdi
leaq 0x210(%rsp), %rax
cmpq %rax, %rdi
je 0x91c61
movq 0x210(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x2a8(%rsp), %rdi
callq 0x4a694
jmp 0x91cc6
jmp 0x91f26
jmp 0x91c7c
jmp 0x91f26
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
jne 0x91f15
jmp 0x91f29
jmp 0x91f26
jmp 0x91f26
jmp 0x91f26
jmp 0x91cad
jmp 0x91f26
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
jne 0x91f15
jmp 0x91f29
movq %rax, %rbx
leaq 0x38(%rsp), %r14
leaq 0x68(%rsp), %r15
leaq 0x10(%rsp), %rax
movq (%rsp), %rdi
cmpq %rax, %rdi
je 0x91ef4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x91ef4
jmp 0x91f26
movq %rax, %rbx
jmp 0x91d1d
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x91d1d
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x91f29
movq 0x10(%rsp), %rsi
jmp 0x91f1a
movq %rax, %rbx
leaq 0x38(%rsp), %r14
jmp 0x91f0b
movq %rax, %rbx
jmp 0x91e41
movq %rax, %rbx
jmp 0x91e1c
movq %rax, %rbx
jmp 0x91df7
movq %rax, %rbx
jmp 0x91dd2
movq %rax, %rbx
jmp 0x91db0
movq %rax, %rbx
jmp 0x91d8b
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x91d8b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x91db0
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x91dd2
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x91df7
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x91e1c
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x91e41
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x38(%rsp), %r14
movq 0x258(%rsp), %rdi
leaq 0x268(%rsp), %rax
cmpq %rax, %rdi
je 0x91f0b
movq 0x268(%rsp), %rsi
jmp 0x91f03
movq %rax, %rbx
jmp 0x91eea
movq %rax, %rbx
jmp 0x91ec5
movq %rax, %rbx
jmp 0x91ea3
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x91ea3
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x91ec5
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x91eea
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x38(%rsp), %r14
leaq 0x68(%rsp), %r15
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x91f0b
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x91f29
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x91f29
jmp 0x91f26
movq %rax, %rbx
leaq 0x180(%rsp), %rdi
callq 0x31a9e
leaq 0x240(%rsp), %rdi
callq 0x31a9e
leaq 0x2d8(%rsp), %rdi
callq 0x4a694
movq %rbx, %rdi
callq 0x23240