// File: /workspace/github_cpp_makefile_star2_O3/richardposner[P]BioNetFit2/src/code/Particle.cpp
// Function: Particle::checkMessagesDE(unsigned int)
bool Particle::checkMessagesDE(unsigned int mid) {
	unsigned int subParID = calcsubParID(mid);
	if ((mid<0)|| (mid >= swarm_->getNumModels()) || (!getSubParticle(mid)) || (!models.at(mid)))
		outputError("checkMessagesDE Failed. Invalid SubParticle.  PID:"+ toString(id_) + "  model id:" + toString(mid)+ "  subParID:" + toString(subParID)+". Quitting !!!");

	Model * mdl= models.at(mid);

	while(1) {

		if (swarm_->options.verbosity >= 3) {
			cout << "Checking for messages from master" << endl;
		}

		int numCheckedMessages = 0;
		int numMessages = swarm_->swarmComm->recvMessage(-1, subParID, -1, true, swarm_->swarmComm->univMessageReceiver, true);


		if (swarm_->options.verbosity >= 3) {
			//cout << "Found " << numMessages << " messages" << endl;

			/*
			for (auto sm = swarm_->swarmComm->univMessageReceiver.begin(); sm != swarm_->swarmComm->univMessageReceiver.end(); ++sm) {
				cout << "tag: " << sm->second.tag << endl;
			}
			 */
		}

		// Holds iterator ranges when finding items in the message holder
		pair <Pheromones::swarmMsgHolderIt, Pheromones::swarmMsgHolderIt> smhRange;

		while (numCheckedMessages < numMessages) {
			smhRange = swarm_->swarmComm->univMessageReceiver.equal_range(SEND_FINAL_PARAMS_TO_PARTICLE);
			if (smhRange.first != smhRange.second) {
				if (swarm_->options.verbosity >= 3) {
					cout << "Receiving parameter list from master mid: " << mid << " simParams size: " << simParams_.size() << " SEND_FINAL_PARAMS_TO_PARTICLE " << SEND_FINAL_PARAMS_TO_PARTICLE << endl;
				}
				for (Pheromones::swarmMsgHolderIt sm = smhRange.first; sm != smhRange.second; ++sm) {
					if (swarm_->options.verbosity >= 4){
						cout << "sm->second.message size: " << sm->second.message.size() << endl;
					}
					//cout << "sm->second.message[0]: " << sm->second.message[0] << endl;
					int messageIndex = 0;
					if(sm->second.message.size()>0){


					for (auto p = simParams_[mid].begin(); p != simParams_[mid].end(); ++p) {
						if (swarm_->options.verbosity >= 3) {
							cout << id_ << " updating parameter " << p->first << " to " << sm->second.message[messageIndex] << endl;
						}
						p->second = stod(sm->second.message[messageIndex]);
						++messageIndex;
					}

					for (unsigned int i = 1; i <= swarm_->options.smoothing; ++i) {

						// Construct our filenames
						string bnglFilename = swarm_->getModelName(mid, false)+"_" + toString(id_) + "_" + toString(i) + ".bngl";
						string path = swarm_->options.jobOutputDir + toString(currentGeneration_ + 1) + "/";
						string bnglFullPath = path + bnglFilename;
						string suffix = toString(id_) + "_" + toString(i);

						if (!checkIfFileExists(path)) {

							runCommand("mkdir " + path);
						}

						// And generate our models
						if (mdl->getHasGenerateNetwork()){
							// If we're using ODE solver, output .net and .bngl
							if (swarm_->options.verbosity >= 3) {
								cout << "Using ODE solver, output .net and .bngl" << endl;
							}
							mdl->outputModelWithParams(simParams_[mid], path, bnglFilename, suffix, false, false, true, false, false);
						}
						else {
							// If we're using network free simulation, output .bngl
							if (swarm_->options.verbosity >= 3) {
								cout << " using network free simulation, output .bngl" << endl;
							}
							mdl->outputModelWithParams(simParams_[mid], path, bnglFilename, suffix, false, false, false, false, false);
						}
					}

					}
					++numCheckedMessages;

				}
			}

			smhRange = swarm_->swarmComm->univMessageReceiver.equal_range(FIT_FINISHED);
			if (smhRange.first != smhRange.second) {

				if (swarm_->options.verbosity >= 3) {
					cout << "SubParticle " << subParID << ": Master told me to die" << endl;
				}
				if (swarm_->options.verbosity >= 3) {
					cout << "RAQUEL entering ~pheromones" << endl;
				}
				swarm_->swarmComm->~Pheromones();
				if (swarm_->options.verbosity >= 3) {
					cout << "RAQUEL exiting ~pheromones" << endl;
				}
				exit(0);
			}

			smhRange = swarm_->swarmComm->univMessageReceiver.equal_range(NEW_BOOTSTRAP);
			if (smhRange.first != smhRange.second) {

				if (swarm_->options.verbosity >= 3) {
					cout << "SubParticle " << subParID << ": Starting a new bootstrapping run" << endl;
				}

				++swarm_->bootstrapCounter;
				currentGeneration_ = 1;

				swarm_->swarmComm->univMessageReceiver.clear();
				return true;
			}

			smhRange = swarm_->swarmComm->univMessageReceiver.equal_range(BEGIN_NELDER_MEAD);
			if (smhRange.first != smhRange.second) {

				if (swarm_->options.verbosity >= 3) {
					cout << "Beginning Nelder-Mead local search" << endl;

					cout << "deserializing simplex" << endl;
				}
				std::stringstream iss;
				iss.str(smhRange.first->second.message[0]); // Simplex is serialized in the first indice of the message vector
				boost::archive::text_iarchive ia(iss);
				map<double, vector<double> > simplex;
				ia >> simplex;
				if (swarm_->options.verbosity >= 3) {
					cout << "running search" << endl;
				}
				runNelderMead(simplex, mid);
				if (swarm_->options.verbosity >= 3) {
					cout << "nelder mead finished. old calc: " << simplex.begin()->first << " new calc: " << fitCalcs.at(mid)[-1] << endl;
				}
				vector<string> paramsStr;
				paramsStr.push_back(toString(fitCalcs.at(mid)[-1]));
				for (auto p = simParams_.at(mid).begin(); p != simParams_.at(mid).end(); ++p) {
					paramsStr.push_back(toString(p->second));
					if (swarm_->options.verbosity >= 3) {
						cout << "new param: " << p->second << endl;
					}
				}
				swarm_->swarmComm->sendToSwarm(subParID, 0, SIMULATION_END, false, paramsStr);
				swarm_->swarmComm->univMessageReceiver.clear();

				return false;
			}

			smhRange = swarm_->swarmComm->univMessageReceiver.equal_range(NEXT_GENERATION);
			if (smhRange.first != smhRange.second) {

				if (swarm_->options.verbosity >= 3) {
					cout  << "SubParticle " << subParID <<  ": Master told me to move to the next iteration" << endl;
				}

				swarm_->swarmComm->univMessageReceiver.clear();
				return true;
			}
		}
		swarm_->swarmComm->univMessageReceiver.clear();
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4e8, %rsp            # imm = 0x4E8
movl %esi, %r8d
movq %rdi, %rbx
movl 0x40(%rdi), %esi
leal -0x1(%rsi), %eax
movq 0xa8(%rdi), %rcx
movq 0x15c8(%rcx), %rdx
subq 0x15c0(%rcx), %rdx
shrq $0x3, %rdx
imull %edx, %eax
addl %r8d, %eax
incl %eax
movl %eax, 0x54(%rsp)
movl %r8d, %ebp
movq %r8, 0x108(%rsp)
cmpl %r8d, %edx
jbe 0x62f85
movq 0x48(%rbx), %rax
movq 0x50(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rbp, %rdx
jbe 0x64b29
cmpq $0x0, (%rax,%rbp,8)
je 0x62f85
movq 0x78(%rbx), %rax
movq 0x80(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rbp, %rdx
jbe 0x64b2b
cmpq $0x0, (%rax,%rbp,8)
jne 0x633e0
leaq 0xd8(%rsp), %r14
movq %r14, %rdi
callq 0xbfa49
leaq 0x96279(%rip), %rcx     # 0xf9215
movl $0x32, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x62fd5
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x62fdc
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x30(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x95cb8(%rip), %rsi     # 0xf8cb7
callq 0x233b0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6302b
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x63032
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88(%rsp), %rdi
movq 0x108(%rsp), %rsi
callq 0xbfa49
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x90(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r15, %rcx
je 0x63084
movq 0x18(%rsp), %rdi
movq 0x88(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x630b0
leaq 0x98(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x630ab
movq 0x98(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x630bc
leaq 0x8(%rsp), %rdi
callq 0x222b0
jmp 0x630cd
leaq 0x88(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x68(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x630f1
movq %rsi, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x630f7
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x60(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x95649(%rip), %rsi     # 0xf8764
leaq 0x58(%rsp), %rdi
callq 0x233b0
leaq 0x138(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x63156
movq %rdx, 0x128(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x138(%rsp)
jmp 0x6315e
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x130(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xb8(%rsp), %rdi
movl 0x54(%rsp), %esi
callq 0xbfa49
movq 0x128(%rsp), %rcx
movq 0x130(%rsp), %r8
movq 0xc0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x631b8
movq 0x138(%rsp), %rdi
movq 0xb8(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x631e4
leaq 0xc8(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x631df
movq 0xc8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x631f3
leaq 0x128(%rsp), %rdi
callq 0x222b0
jmp 0x63204
leaq 0xb8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x2e0(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x63231
movq %rsi, 0x2d0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x2e0(%rsp)
jmp 0x63237
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x2d8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x95b74(%rip), %rsi     # 0xf8dd2
leaq 0x2d0(%rsp), %rdi
callq 0x233b0
leaq 0x2c0(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6329b
movq %rdx, 0x2b0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x2c0(%rsp)
jmp 0x632a3
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x2b0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0xbfa27
movq 0x2b0(%rsp), %rdi
cmpq %r13, %rdi
je 0x632e4
movq 0x2c0(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x2e0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x63305
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x63326
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x63343
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6335e
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6337f
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x63396
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x633ad
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x633ce
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x78(%rbx), %rax
movq 0x80(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rbp, %rdx
jbe 0x64b27
movq (%rax,%rbp,8), %rax
movq %rax, 0x110(%rsp)
leaq 0x68(%rsp), %r12
movl 0x54(%rsp), %eax
movq %rax, 0xf8(%rsp)
leaq 0x2d0(%rsp), %r14
movl %eax, 0x50(%rsp)
movq %rbp, 0x100(%rsp)
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6347b
movl $0x21, %edx
movq 0x112b72(%rip), %r14    # 0x175fa8
movq %r14, %rdi
leaq 0x95e08(%rip), %rsi     # 0xf9248
callq 0x22ab0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
leaq 0x2d0(%rsp), %r14
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xa8(%rbx), %rax
movq (%rax), %rdi
leaq 0x18(%rdi), %r9
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl 0x54(%rsp), %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0x1, %r8d
pushq $-0x1
pushq $0x1
callq 0x6d52e
addq $0x10, %rsp
movl %eax, 0xb4(%rsp)
xorl %r13d, %r13d
movl %r13d, %r15d
movq 0xa8(%rbx), %rax
movq (%rax), %rdi
addq $0x18, %rdi
cmpl 0xb4(%rsp), %r13d
jge 0x6446d
movl $0x15, 0x2d0(%rsp)
movq %r14, %rsi
callq 0x6920c
movl %r15d, 0x2c(%rsp)
movq %rax, 0xa8(%rsp)
movq %rdx, 0x288(%rsp)
cmpq %rdx, %rax
je 0x64306
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x635c2
movl $0x2a, %edx
movq 0x112a8b(%rip), %r14    # 0x175fa8
movq %r14, %rdi
leaq 0x95d43(%rip), %rsi     # 0xf926a
callq 0x22ab0
movq %r14, %rdi
movq 0x100(%rsp), %rsi
callq 0x22650
movq %rax, %r13
movl $0x11, %edx
movq %rax, %rdi
leaq 0x95d47(%rip), %rsi     # 0xf9295
callq 0x22ab0
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x4, %rsi
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
movq %r13, %rdi
callq 0x22650
movq %rax, %r13
movl $0x1f, %edx
movq %rax, %rdi
leaq 0x95d21(%rip), %rsi     # 0xf92a7
callq 0x22ab0
movq %r13, %rdi
movl $0x15, %esi
callq 0x231e0
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
movl 0x2c(%rsp), %r15d
movl %r15d, 0x124(%rsp)
movq 0xa8(%rbx), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x63640
movl $0x19, %edx
movq 0x1129bd(%rip), %r14    # 0x175fa8
movq %r14, %rdi
leaq 0x95cd2(%rip), %rsi     # 0xf92c7
callq 0x22ab0
movq 0xa8(%rsp), %rax
movq 0x40(%rax), %rsi
subq 0x38(%rax), %rsi
sarq $0x5, %rsi
movq %r14, %rdi
callq 0x22650
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
movq 0xa8(%rsp), %rcx
movq 0x40(%rcx), %rax
cmpq 0x38(%rcx), %rax
je 0x642da
movq (%rbx), %rax
movq 0x100(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movq %rcx, 0x118(%rsp)
addq %rcx, %rax
addq $0x8, %rax
movq 0x10(%rax), %rbp
cmpq %rax, %rbp
je 0x637be
xorl %r15d, %r15d
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x63730
movl 0x40(%rbx), %esi
movq 0x112902(%rip), %rdi    # 0x175fa8
callq 0x22650
movq %rax, %r13
movl $0x14, %edx
movq %rax, %rdi
leaq 0x9585c(%rip), %rsi     # 0xf8f19
callq 0x22ab0
movq 0x20(%rbp), %rsi
movq 0x28(%rbp), %rdx
movq %r13, %rdi
callq 0x22ab0
movq %rax, %r13
movl $0x4, %edx
movq %rax, %rdi
leaq 0x9d5a8(%rip), %rsi     # 0x100c8c
callq 0x22ab0
movq 0xa8(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r15), %rsi
movq 0x8(%rax,%r15), %rdx
movq %r13, %rdi
callq 0x22ab0
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
movq 0xa8(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r15), %r12
callq 0x22070
movq %rax, %r13
movl (%rax), %r14d
movl $0x0, (%rax)
movq %r12, %rdi
leaq 0x2d0(%rsp), %rsi
callq 0x22760
cmpq %r12, 0x2d0(%rsp)
je 0x649f8
movl (%r13), %eax
testl %eax, %eax
je 0x63786
cmpl $0x22, %eax
leaq 0x68(%rsp), %r12
jne 0x6378f
jmp 0x64a04
movl %r14d, (%r13)
leaq 0x68(%rsp), %r12
movsd %xmm0, 0x40(%rbp)
movq %rbp, %rdi
callq 0x22670
movq %rax, %rbp
movq (%rbx), %rax
movq 0x118(%rsp), %rcx
addq %rcx, %rax
addq $0x8, %rax
addq $0x20, %r15
cmpq %rax, %rbp
jne 0x63688
movq 0xa8(%rbx), %rsi
cmpl $0x0, 0x1658(%rsi)
leaq 0x2e0(%rsp), %r15
leaq 0x138(%rsp), %r14
je 0x642da
movl $0x1, %ebp
leaq 0xd8(%rsp), %r13
movq %r13, %rdi
movq 0x108(%rsp), %rdx
xorl %ecx, %ecx
callq 0x79f68
movq %r13, %rdi
leaq 0x9460c(%rip), %rsi     # 0xf7e17
callq 0x233b0
leaq 0x40(%rsp), %rsi
movq %rsi, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x63838
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x6383e
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x40(%rbx), %esi
leaq 0x88(%rsp), %rdi
callq 0xbfa49
movq 0x30(%rsp), %rcx
movl $0xf, %edi
leaq 0x40(%rsp), %rax
cmpq %rax, %rcx
je 0x6387f
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %r8
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x638bc
movl $0xf, %edi
leaq 0x98(%rsp), %r9
cmpq %r9, %rsi
je 0x638b7
movq 0x98(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x638c8
leaq 0x30(%rsp), %rdi
callq 0x222b0
jmp 0x638d9
leaq 0x88(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x638fe
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x63904
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x8(%rsp), %rdi
leaq 0x944ea(%rip), %rsi     # 0xf7e17
callq 0x233b0
movq %r12, 0x58(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x63955
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x6395d
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x60(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xb8(%rsp), %rdi
movl %ebp, %esi
callq 0xbfa49
movq 0x58(%rsp), %rcx
movl $0xf, %edi
cmpq %r12, %rcx
je 0x63998
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %r8
movq 0xb8(%rsp), %rsi
movq 0xc0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x639d5
movl $0xf, %edi
leaq 0xc8(%rsp), %r9
cmpq %r9, %rsi
je 0x639d0
movq 0xc8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x639e1
leaq 0x58(%rsp), %rdi
callq 0x222b0
jmp 0x639f2
leaq 0xb8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
movq %r14, 0x128(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x63a1b
movq %rdx, 0x128(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x138(%rsp)
jmp 0x63a22
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x130(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x128(%rsp), %rdi
leaq 0x958b2(%rip), %rsi     # 0xf9303
callq 0x233b0
movq %r15, 0x2d0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x63a82
movq %rdx, 0x2d0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x2e0(%rsp)
jmp 0x63a89
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x2d8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x63ac1
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x63ae6
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x63afd
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x63b19
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x63b3e
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x63b5a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x63b7f
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xa8(%rbx), %r14
movl 0xb0(%rbx), %esi
incl %esi
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0xbfa49
movq 0x1520(%r14), %rcx
movq 0x1528(%r14), %r8
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
movq %r12, 0x58(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x63bd8
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x63be0
movups (%rcx), %xmm0
movups %xmm0, (%r12)
leaq 0x138(%rsp), %r14
movq 0x8(%rax), %rdx
movq %rdx, 0x60(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x58(%rsp), %rdi
leaq 0x9bc4b(%rip), %rsi     # 0xff857
callq 0x233b0
movq %r14, 0x128(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x63c3d
movq %rdx, 0x128(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x138(%rsp)
jmp 0x63c44
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x130(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x63c76
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x63c92
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x58(%rsp), %rdi
leaq 0x128(%rsp), %rsi
leaq 0x2d0(%rsp), %rdx
callq 0x335a4
movl 0x40(%rbx), %esi
leaq 0xd8(%rsp), %r13
movq %r13, %rdi
callq 0xbfa49
movq %r13, %rdi
leaq 0x9414e(%rip), %rsi     # 0xf7e17
callq 0x233b0
leaq 0x40(%rsp), %rsi
movq %rsi, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x63cf6
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x63cfc
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88(%rsp), %rdi
movl %ebp, %esi
callq 0xbfa49
movq 0x30(%rsp), %rcx
movl $0xf, %edi
leaq 0x40(%rsp), %rax
cmpq %rax, %rcx
je 0x63d3c
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %r8
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x63d79
movl $0xf, %edi
leaq 0x98(%rsp), %r9
cmpq %r9, %rsi
je 0x63d74
movq 0x98(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x63d85
leaq 0x30(%rsp), %rdi
callq 0x222b0
jmp 0x63d96
leaq 0x88(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x63dbb
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x63dc1
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x63e03
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x63e1f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x63e44
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x1f8(%rsp), %rax
movq %rax, 0x1e8(%rsp)
movq 0x128(%rsp), %rsi
movq 0x130(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1e8(%rsp), %rdi
callq 0x3213c
leaq 0x1e8(%rsp), %rdi
callq 0xbe9a8
movl %eax, %r13d
movq 0x1e8(%rsp), %rdi
leaq 0x1f8(%rsp), %rax
cmpq %rax, %rdi
je 0x63ea9
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x229c0
testl %r13d, %r13d
jne 0x63efc
leaq 0x290(%rsp), %rdi
leaq 0x9408a(%rip), %rsi     # 0xf7f47
leaq 0x128(%rsp), %rdx
callq 0x31944
leaq 0x290(%rsp), %rdi
callq 0xbfa1f
movq 0x290(%rsp), %rdi
leaq 0x2a0(%rsp), %rax
cmpq %rax, %rdi
je 0x63efc
movq 0x2a0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xa8(%rbx), %rax
movl 0x1614(%rax), %eax
movq 0x110(%rsp), %rcx
cmpb $0x1, 0xb8(%rcx)
jne 0x640b2
cmpl $0x3, %eax
jb 0x63f6d
movl $0x27, %edx
movq 0x112079(%rip), %rdi    # 0x175fa8
leaq 0x953ab(%rip), %rsi     # 0xf92e1
callq 0x22ab0
movq 0x112066(%rip), %rcx    # 0x175fa8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x112048(%rip), %rdi    # 0x175fa8
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq (%rbx), %rsi
addq 0x118(%rsp), %rsi
leaq 0x488(%rsp), %rdi
callq 0x51772
leaq 0x278(%rsp), %rax
movq %rax, 0x268(%rsp)
movq 0x128(%rsp), %rsi
movq 0x130(%rsp), %rdx
addq %rsi, %rdx
leaq 0x268(%rsp), %rdi
callq 0x3213c
leaq 0x1d8(%rsp), %rax
movq %rax, 0x1c8(%rsp)
movq 0x2d0(%rsp), %rsi
movq 0x2d8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1c8(%rsp), %rdi
callq 0x3213c
leaq 0x258(%rsp), %rax
movq %rax, 0x248(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x248(%rsp), %r13
movq %r13, %rdi
callq 0x3213c
movq 0x110(%rsp), %rdi
leaq 0x488(%rsp), %rsi
leaq 0x268(%rsp), %rdx
leaq 0x1c8(%rsp), %rcx
movq %r13, %r8
xorl %r9d, %r9d
xorl %eax, %eax
pushq %rax
pushq %rax
pushq $0x1
pushq %rax
callq 0x4ebec
addq $0x20, %rsp
movq 0x248(%rsp), %rdi
leaq 0x258(%rsp), %rax
cmpq %rax, %rdi
je 0x6406d
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1c8(%rsp), %rdi
leaq 0x1d8(%rsp), %rax
cmpq %rax, %rdi
je 0x64092
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x268(%rsp), %rdi
leaq 0x278(%rsp), %rcx
movq %rcx, %rax
leaq 0x488(%rsp), %r13
jmp 0x64240
cmpl $0x3, %eax
jb 0x64101
movl $0x2c, %edx
movq 0x111ee5(%rip), %rdi    # 0x175fa8
leaq 0x9523f(%rip), %rsi     # 0xf9309
callq 0x22ab0
movq 0x111ed2(%rip), %rcx    # 0x175fa8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x111eb4(%rip), %rdi    # 0x175fa8
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq (%rbx), %rsi
addq 0x118(%rsp), %rsi
leaq 0x458(%rsp), %rdi
callq 0x51772
leaq 0x238(%rsp), %rax
movq %rax, 0x228(%rsp)
movq 0x128(%rsp), %rsi
movq 0x130(%rsp), %rdx
addq %rsi, %rdx
leaq 0x228(%rsp), %rdi
callq 0x3213c
leaq 0x1b8(%rsp), %rax
movq %rax, 0x1a8(%rsp)
movq 0x2d0(%rsp), %rsi
movq 0x2d8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1a8(%rsp), %rdi
callq 0x3213c
leaq 0x218(%rsp), %rax
movq %rax, 0x208(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x208(%rsp), %r13
movq %r13, %rdi
callq 0x3213c
movq 0x110(%rsp), %rdi
leaq 0x458(%rsp), %rsi
leaq 0x228(%rsp), %rdx
leaq 0x1a8(%rsp), %rcx
movq %r13, %r8
xorl %r9d, %r9d
xorl %eax, %eax
pushq %rax
pushq %rax
pushq %rax
pushq %rax
callq 0x4ebec
addq $0x20, %rsp
movq 0x208(%rsp), %rdi
leaq 0x218(%rsp), %rax
cmpq %rax, %rdi
je 0x64200
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1a8(%rsp), %rdi
leaq 0x1b8(%rsp), %rax
cmpq %rax, %rdi
je 0x64225
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rcx
movq %rcx, %rax
leaq 0x458(%rsp), %r13
cmpq %rcx, %rdi
je 0x64250
movq (%rax), %rsi
incq %rsi
callq 0x229c0
movq %r13, %rdi
callq 0x4a472
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x64274
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x6428b
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x642a8
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x2d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x642c5
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x229c0
incl %ebp
movq 0xa8(%rbx), %rsi
cmpl 0x1658(%rsi), %ebp
jbe 0x637e7
movl 0x124(%rsp), %r15d
incl %r15d
movq 0xa8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xa8(%rsp)
cmpq 0x288(%rsp), %rax
jne 0x635c7
movl %r15d, %r13d
movq 0xa8(%rbx), %rax
movq (%rax), %rdi
addq $0x18, %rdi
movl $0x16, 0x2d0(%rsp)
leaq 0x2d0(%rsp), %r14
movq %r14, %rsi
callq 0x6920c
movq 0xa8(%rbx), %rcx
cmpq %rdx, %rax
jne 0x64a10
movq (%rcx), %rdi
addq $0x18, %rdi
movl $0x19, 0x2d0(%rsp)
movq %r14, %rsi
callq 0x6920c
movq 0xa8(%rbx), %rcx
cmpq %rdx, %rax
jne 0x64477
movq (%rcx), %rdi
addq $0x18, %rdi
movl $0x1a, 0x2d0(%rsp)
movq %r14, %rsi
callq 0x6920c
movq %rax, %r15
movq 0xa8(%rbx), %rax
cmpq %rdx, %r15
movq 0x100(%rsp), %rbp
jne 0x6451f
movq (%rax), %rdi
addq $0x18, %rdi
movl $0x12, 0x2d0(%rsp)
movq %r14, %rsi
callq 0x6920c
cmpq %rdx, %rax
movl 0x2c(%rsp), %r15d
je 0x634ad
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x64456
movl $0xc, %edx
movq 0x111bc3(%rip), %r14    # 0x175fa8
movq %r14, %rdi
leaq 0x9baaa(%rip), %rsi     # 0xffe99
callq 0x22ab0
movq %r14, %rdi
leaq 0x2d0(%rsp), %r14
movq 0xf8(%rsp), %rsi
callq 0x22650
movq %rax, %r15
movl $0x2e, %edx
movq %rax, %rdi
leaq 0x94fb1(%rip), %rsi     # 0xf93cf
callq 0x22ab0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r15, %rdi
movl 0x2c(%rsp), %r15d
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xa8(%rbx), %rax
movq (%rax), %rdi
addq $0x18, %rdi
callq 0x689b6
movb $0x1, %al
movl %eax, 0x50(%rsp)
jmp 0x649d2
callq 0x689b6
jmp 0x649d2
cmpl $0x3, 0x1614(%rcx)
jb 0x644f8
movl $0xc, %edx
movq 0x111b1c(%rip), %r14    # 0x175fa8
movq %r14, %rdi
leaq 0x9ba03(%rip), %rsi     # 0xffe99
callq 0x22ab0
movq %r14, %rdi
leaq 0x2d0(%rsp), %r14
movq 0xf8(%rsp), %rsi
callq 0x22650
movq %rax, %r15
movl $0x22, %edx
movq %rax, %rdi
leaq 0x94bbb(%rip), %rsi     # 0xf9080
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
movq 0xa8(%rbx), %rcx
incl 0x13ec(%rcx)
movl $0x1, 0xb0(%rbx)
movq (%rcx), %rdi
addq $0x18, %rdi
callq 0x689b6
movb $0x1, %al
movl %eax, 0x50(%rsp)
jmp 0x649cd
cmpl $0x3, 0x1614(%rax)
jb 0x645b1
movl $0x22, %edx
movq 0x111a70(%rip), %r14    # 0x175fa8
movq %r14, %rdi
leaq 0x94e0c(%rip), %rsi     # 0xf934e
callq 0x22ab0
movq (%r14), %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 %r14, %rdi
leaq 0x94df4(%rip), %rsi     # 0xf9371
callq 0x22ab0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
leaq 0x2d0(%rsp), %r14
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq %r14, %rdi
callq 0x22680
movq 0x38(%r15), %rsi
leaq 0x2e8(%rsp), %rdi
callq 0x22f00
leaq 0x128(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x66012
leaq 0x8(%rsp), %r15
movl $0x0, 0x60(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x68(%rsp)
leaq 0x60(%rsp), %rax
movq %rax, 0x70(%rsp)
movq %rax, 0x78(%rsp)
movq %rcx, 0x80(%rsp)
callq 0x664c2
leaq 0x128(%rsp), %rdi
leaq 0x58(%rsp), %rsi
movq %rax, %rdx
callq 0xe5cc0
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6467b
movl $0xe, %edx
movq 0x11196b(%rip), %rdi    # 0x175fa8
leaq 0x94d43(%rip), %rsi     # 0xf9387
callq 0x22ab0
movq 0x111958(%rip), %rcx    # 0x175fa8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x11193a(%rip), %rdi    # 0x175fa8
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x4b8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x66d5e
movq %rbx, %rdi
leaq 0x4b8(%rsp), %r14
movq %r14, %rsi
movq 0x108(%rsp), %rdx
callq 0x54908
movq %r14, %rdi
callq 0x66fce
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6478e
movl $0x20, %edx
movq 0x1118d8(%rip), %rdi    # 0x175fa8
leaq 0x94cbf(%rip), %rsi     # 0xf9396
callq 0x22ab0
movq 0x70(%rsp), %rax
movsd 0x20(%rax), %xmm0
movq 0x1118bb(%rip), %rdi    # 0x175fa8
callq 0x23060
movq %rax, %r15
movl $0xb, %edx
movq %rax, %rdi
leaq 0x94cb3(%rip), %rsi     # 0xf93b7
callq 0x22ab0
movq 0x18(%rbx), %rdi
movq 0x20(%rbx), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
cmpq %rbp, %rdx
jbe 0x64b16
leaq (,%rbp,2), %rax
addq %rbp, %rax
shlq $0x4, %rax
addq %rax, %rdi
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
leaq 0x8(%rsp), %rsi
callq 0x65eca
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x23060
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
leaq 0x8(%rsp), %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x18(%rbx), %rdi
movq 0x20(%rbx), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
cmpq %rbp, %rdx
jbe 0x64af4
leaq (,%rbp,2), %r14
addq %rbp, %r14
shlq $0x4, %r14
addq %r14, %rdi
movl $0xffffffff, 0xd8(%rsp) # imm = 0xFFFFFFFF
leaq 0xd8(%rsp), %rsi
callq 0x65eca
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0xbfad7
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x6a2a2
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x64824
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rdx
cmpq %rbp, %rdx
jbe 0x64b05
movq 0x18(%rax,%r14), %r15
addq %r14, %rax
addq $0x8, %rax
cmpq %rax, %r15
je 0x64933
movsd 0x40(%r15), %xmm0
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0xbfad7
leaq 0x30(%rsp), %rdi
movq %r13, %rsi
callq 0x6a2a2
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6489a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x648fe
movl $0xb, %edx
movq 0x1116f2(%rip), %rdi    # 0x175fa8
leaq 0x94b06(%rip), %rsi     # 0xf93c3
callq 0x22ab0
movsd 0x40(%r15), %xmm0
movq 0x1116d9(%rip), %rdi    # 0x175fa8
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
movq %r15, %rdi
callq 0x22670
movq %rax, %r15
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rdx
cmpq %rbp, %rdx
ja 0x6484e
jmp 0x64ae3
movq 0xa8(%rbx), %rax
movq (%rax), %rdi
subq $0x8, %rsp
movl 0x5c(%rsp), %esi
xorl %edx, %edx
movl $0xd, %ecx
xorl %r8d, %r8d
leaq 0x38(%rsp), %r14
movq %r14, %r9
pushq $-0x1
callq 0x6bac2
addq $0x10, %rsp
movq 0xa8(%rbx), %rax
movq (%rax), %rdi
addq $0x18, %rdi
callq 0x689b6
movq %r14, %rdi
callq 0x31a0a
leaq 0x58(%rsp), %rdi
callq 0x66fce
leaq 0x128(%rsp), %rdi
callq 0xe5600
leaq 0x150(%rsp), %rdi
callq 0xe81b0
leaq 0x2d0(%rsp), %r14
movq %r14, %rdi
movq 0x11159d(%rip), %rsi    # 0x175f50
callq 0x226f0
leaq 0x350(%rsp), %rdi
callq 0x222d0
movl $0x0, 0x50(%rsp)
movl 0x2c(%rsp), %r15d
cmpl 0xb4(%rsp), %r15d
jge 0x6341a
movl 0x50(%rsp), %eax
andb $0x1, %al
addq $0x4e8, %rsp            # imm = 0x4E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8dd3c(%rip), %rdi     # 0xf273b
callq 0x225a0
leaq 0x8dd30(%rip), %rdi     # 0xf273b
callq 0x22e40
cmpl $0x3, 0x1614(%rcx)
jb 0x64aa1
movq 0x111584(%rip), %r14    # 0x175fa8
leaq 0x9b46e(%rip), %rsi     # 0xffe99
movl $0xc, %edx
movq %r14, %rdi
callq 0x22ab0
movq %r14, %rdi
movq 0xf8(%rsp), %rsi
callq 0x22650
movq %rax, %r14
leaq 0x948e4(%rip), %rsi     # 0xf9336
movl $0x17, %edx
movq %rax, %rdi
callq 0x22ab0
movq %r14, %rdi
callq 0x22430
movq 0xa8(%rbx), %rcx
cmpl $0x3, 0x1614(%rcx)
jb 0x64aa1
movq 0x11152a(%rip), %r14    # 0x175fa8
leaq 0x945c4(%rip), %rsi     # 0xf9049
movl $0x1b, %edx
movq %r14, %rdi
callq 0x22ab0
movq %r14, %rdi
callq 0x22430
movq 0xa8(%rbx), %rcx
movq (%rcx), %rdi
callq 0x6b2c0
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x64adc
movq 0x1114e8(%rip), %rbx    # 0x175fa8
leaq 0x9459e(%rip), %rsi     # 0xf9065
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x22ab0
movq %rbx, %rdi
callq 0x22430
xorl %edi, %edi
callq 0x22b90
leaq 0x8eb8f(%rip), %rdi     # 0xf3679
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22f40
leaq 0x8eb7e(%rip), %rdi     # 0xf3679
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22f40
leaq 0x8eb6d(%rip), %rdi     # 0xf3679
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22f40
leaq 0x8eb5c(%rip), %rdi     # 0xf3679
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22f40
jmp 0x64b2b
jmp 0x64b2b
leaq 0x8eb47(%rip), %rdi     # 0xf3679
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22f40
movq %rax, %rbx
movq 0x2b0(%rsp), %rdi
cmpq %r13, %rdi
je 0x64b61
movq 0x2c0(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64b61
movq %rax, %rbx
leaq 0x2e0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64b87
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64b87
movq %rax, %rbx
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64bad
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64bad
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x64bcf
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64bcf
movq %rax, %rbx
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64bef
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64bef
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64c15
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64c15
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x64c31
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64c31
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x64c4d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64c4d
movq %rax, %rbx
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x6504e
jmp 0x64c87
jmp 0x64cb1
movq %rax, %rbx
leaq 0x4b8(%rsp), %rdi
callq 0x66fce
jmp 0x64cbe
jmp 0x64c78
jmp 0x64c87
movq %rax, %rbx
jmp 0x64ce2
jmp 0x64cb1
jmp 0x64c90
jmp 0x64cb1
jmp 0x64cb1
jmp 0x64c87
movq %rax, %rbx
jmp 0x64cbe
jmp 0x64cb1
jmp 0x64cb1
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x64cb4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64cb4
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x31a0a
leaq 0x58(%rsp), %rdi
callq 0x66fce
leaq 0x128(%rsp), %rdi
callq 0xe5600
leaq 0x150(%rsp), %rdi
callq 0xe81b0
movq 0x111267(%rip), %rsi    # 0x175f50
leaq 0x2d0(%rsp), %rdi
callq 0x226f0
leaq 0x350(%rsp), %rdi
callq 0x222d0
jmp 0x650e1
movq %rax, %rbx
movq 0x290(%rsp), %rdi
leaq 0x2a0(%rsp), %rax
cmpq %rax, %rdi
je 0x65074
movq 0x2a0(%rsp), %rsi
jmp 0x64eca
movq %rax, %rbx
jmp 0x64da4
movq %rax, %rbx
jmp 0x64dee
movq %rax, %rbx
movq 0x248(%rsp), %rdi
leaq 0x258(%rsp), %rax
cmpq %rax, %rdi
je 0x64e00
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64e00
movq %rax, %rbx
jmp 0x64e25
movq %rax, %rbx
jmp 0x64dc9
movq %rax, %rbx
movq 0x208(%rsp), %rdi
leaq 0x218(%rsp), %rax
cmpq %rax, %rdi
je 0x64da4
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1a8(%rsp), %rdi
leaq 0x1b8(%rsp), %rax
cmpq %rax, %rdi
je 0x64dc9
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rax
cmpq %rax, %rdi
je 0x64dee
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x458(%rsp), %rdi
jmp 0x64e52
movq %rax, %rbx
jmp 0x64e4a
movq %rax, %rbx
movq 0x1c8(%rsp), %rdi
leaq 0x1d8(%rsp), %rax
cmpq %rax, %rdi
je 0x64e25
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x268(%rsp), %rdi
leaq 0x278(%rsp), %rax
cmpq %rax, %rdi
je 0x64e4a
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x488(%rsp), %rdi
callq 0x4a472
jmp 0x65074
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x64ef2
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64ef2
movq %rax, %rbx
jmp 0x65022
movq %rax, %rbx
jmp 0x65090
movq %rax, %rbx
jmp 0x650c4
movq %rax, %rbx
jmp 0x64fca
movq %rax, %rbx
movq 0x1e8(%rsp), %rdi
leaq 0x1f8(%rsp), %rax
cmpq %rax, %rdi
je 0x65074
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65074
movq %rax, %rbx
jmp 0x64ffd
movq %rax, %rbx
jmp 0x64fe1
movq %rax, %rbx
jmp 0x64fa5
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x64f5f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64f5f
movq %rax, %rbx
jmp 0x6503e
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x64f3f
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x64f3f
movq %rax, %rbx
jmp 0x650a7
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x650c4
movq 0x18(%rsp), %rsi
jmp 0x650bc
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x65090
movq 0xe8(%rsp), %rsi
jmp 0x65088
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x64fa5
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x64fca
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x64fe1
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x64ffd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x65022
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6503e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x650e1
movq 0xe8(%rsp), %rsi
jmp 0x650d9
movq %rax, %rbx
cmpl $0x0, (%r13)
jne 0x650e1
movl %r14d, (%r13)
jmp 0x650e1
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x65090
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x650a7
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x650c4
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x2d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x650e1
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x23240
nop