// File: /workspace/github_cpp_makefile_star2_O1/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 0x63435
movq 0x48(%rbx), %rax
movq 0x50(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rbp, %rdx
jbe 0x6500d
cmpq $0x0, (%rax,%rbp,8)
je 0x63435
movq 0x78(%rbx), %rax
movq 0x80(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rbp, %rdx
jbe 0x6500f
cmpq $0x0, (%rax,%rbp,8)
jne 0x63877
leaq 0xd8(%rsp), %r14
movq %r14, %rdi
callq 0xc03b8
leaq 0x95de9(%rip), %rcx     # 0xf9235
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 0x63485
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x6348c
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 0x95828(%rip), %rsi     # 0xf8cd7
callq 0x233b0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x634db
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x634e2
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 0x58(%rsp), %rdi
movq 0x108(%rsp), %rsi
callq 0xc03b8
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x60(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r15, %rcx
je 0x6352e
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x6354d
leaq 0x68(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x63548
movq 0x68(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x6355e
movq 0x58(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x222b0
jmp 0x6356c
leaq 0x58(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x88(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x63596
movq %rsi, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x6359c
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x951c1(%rip), %rsi     # 0xf8784
leaq 0x78(%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 0x635fe
movq %rdx, 0x128(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x138(%rsp)
jmp 0x63606
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 0xc03b8
movq 0x128(%rsp), %rcx
movq 0x130(%rsp), %r8
movq 0xc0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x63660
movq 0x138(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x63685
leaq 0xc8(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x63680
movq 0xc8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x6369c
movq 0xb8(%rsp), %rsi
leaq 0x128(%rsp), %rdi
callq 0x222b0
jmp 0x636ad
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 0x636da
movq %rsi, 0x2d0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x2e0(%rsp)
jmp 0x636e0
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 0x956eb(%rip), %rsi     # 0xf8df2
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 0x63744
movq %rdx, 0x2b0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x2c0(%rsp)
jmp 0x6374c
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 0xc0396
movq 0x2b0(%rsp), %rdi
cmpq %r13, %rdi
je 0x6378d
movq 0x2c0(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x2e0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x637ae
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x637cf
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x637ec
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6380d
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x63828
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6383f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x63856
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x63877
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 0x6500b
movq (%rax,%rbp,8), %rax
movq %rax, 0x110(%rsp)
leaq 0x88(%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 0x63920
movl $0x21, %edx
movq 0x1126ae(%rip), %r14    # 0x175f90
movq %r14, %rdi
leaq 0x9597c(%rip), %rsi     # 0xf9268
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 0x6da7e
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 0x64928
movl $0x15, 0x2d0(%rsp)
movq %r14, %rsi
callq 0x696ce
movl %r15d, 0x2c(%rsp)
movq %rax, 0xa8(%rsp)
movq %rdx, 0x1a8(%rsp)
cmpq %rdx, %rax
je 0x647c1
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x63a6e
movl $0x2a, %edx
movq 0x1125c7(%rip), %r14    # 0x175f90
movq %r14, %rdi
leaq 0x958b7(%rip), %rsi     # 0xf928a
callq 0x22ab0
movq %r14, %rdi
movq 0x100(%rsp), %rsi
callq 0x22650
movq %rax, %r13
movl $0x11, %edx
movq %rax, %rdi
leaq 0x958bb(%rip), %rsi     # 0xf92b5
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 0x95895(%rip), %rsi     # 0xf92c7
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
movq 0x1a8(%rsp), %rax
cmpq %rax, 0xa8(%rsp)
je 0x647c1
movl 0x2c(%rsp), %r15d
movl %r15d, 0x124(%rsp)
movq 0xa8(%rbx), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x63b07
movl $0x19, %edx
movq 0x1124de(%rip), %r14    # 0x175f90
movq %r14, %rdi
leaq 0x9582b(%rip), %rsi     # 0xf92e7
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 0x64795
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 0x63c8b
xorl %r15d, %r15d
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x63bf7
movl 0x40(%rbx), %esi
movq 0x112423(%rip), %rdi    # 0x175f90
callq 0x22650
movq %rax, %r13
movl $0x14, %edx
movq %rax, %rdi
leaq 0x953b5(%rip), %rsi     # 0xf8f39
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 0x9d0fa(%rip), %rsi     # 0x100ca5
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 0x64ee0
movl (%r13), %eax
testl %eax, %eax
je 0x63c50
cmpl $0x22, %eax
leaq 0x88(%rsp), %r12
jne 0x63c5c
jmp 0x64eec
movl %r14d, (%r13)
leaq 0x88(%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 0x63b4f
movq 0xa8(%rbx), %rsi
cmpl $0x0, 0x1658(%rsi)
leaq 0x2e0(%rsp), %r15
leaq 0x138(%rsp), %r14
je 0x64795
movl $0x1, %ebp
leaq 0xd8(%rsp), %r13
movq %r13, %rdi
movq 0x108(%rsp), %rdx
xorl %ecx, %ecx
callq 0x7a62c
movq %r13, %rdi
leaq 0x9418f(%rip), %rsi     # 0xf7e67
callq 0x233b0
leaq 0x40(%rsp), %rsi
movq %rsi, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x63d05
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x63d0b
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 0x58(%rsp), %rdi
callq 0xc03b8
movq 0x30(%rsp), %rcx
movl $0xf, %esi
leaq 0x40(%rsp), %rax
cmpq %rax, %rcx
je 0x63d49
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %r8
movq 0x60(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x63d77
movl $0xf, %esi
leaq 0x68(%rsp), %rdi
cmpq %rdi, 0x58(%rsp)
je 0x63d72
movq 0x68(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x63d88
movq 0x58(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x222b0
jmp 0x63d96
leaq 0x58(%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)
leaq 0x8(%rsp), %rdi
leaq 0x9407d(%rip), %rsi     # 0xf7e67
callq 0x233b0
movq %r12, 0x78(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x63e15
movq %rdx, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x63e1d
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xb8(%rsp), %rdi
movl %ebp, %esi
callq 0xc03b8
movq 0x78(%rsp), %rcx
movl $0xf, %esi
cmpq %r12, %rcx
je 0x63e5e
movq 0x88(%rsp), %rsi
movq 0x80(%rsp), %r8
movq 0xc0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x63e9b
movl $0xf, %esi
leaq 0xc8(%rsp), %rdi
cmpq %rdi, 0xb8(%rsp)
je 0x63e96
movq 0xc8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x63eaf
movq 0xb8(%rsp), %rsi
leaq 0x78(%rsp), %rdi
callq 0x222b0
jmp 0x63ec0
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 0x63ee9
movq %rdx, 0x128(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x138(%rsp)
jmp 0x63ef0
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 0x95404(%rip), %rsi     # 0xf9323
callq 0x233b0
movq %r15, 0x2d0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x63f50
movq %rdx, 0x2d0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x2e0(%rsp)
jmp 0x63f57
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 0x63f8f
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x63fb4
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x63fce
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x63fea
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x64006
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x64022
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x64047
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 0xc03b8
movq 0x1520(%r14), %rcx
movq 0x1528(%r14), %r8
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
movq %r12, 0x78(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x640a3
movq %rdx, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x640ab
movups (%rcx), %xmm0
movups %xmm0, (%r12)
leaq 0x138(%rsp), %r14
movq 0x8(%rax), %rdx
movq %rdx, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %rdi
leaq 0x9b70d(%rip), %rsi     # 0xff7e7
callq 0x233b0
movq %r14, 0x128(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6410b
movq %rdx, 0x128(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x138(%rsp)
jmp 0x64112
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 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x64147
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x64163
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x78(%rsp), %rdi
leaq 0x128(%rsp), %rsi
leaq 0x2d0(%rsp), %rdx
callq 0x33608
movl 0x40(%rbx), %esi
leaq 0xd8(%rsp), %r13
movq %r13, %rdi
callq 0xc03b8
movq %r13, %rdi
leaq 0x93ccd(%rip), %rsi     # 0xf7e67
callq 0x233b0
leaq 0x40(%rsp), %rsi
movq %rsi, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x641c7
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x641cd
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 0x58(%rsp), %rdi
movl %ebp, %esi
callq 0xc03b8
movq 0x30(%rsp), %rcx
movl $0xf, %esi
leaq 0x40(%rsp), %rax
cmpq %rax, %rcx
je 0x6420a
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %r8
movq 0x60(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x64238
movl $0xf, %esi
leaq 0x68(%rsp), %rdi
cmpq %rdi, 0x58(%rsp)
je 0x64233
movq 0x68(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x64249
movq 0x58(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x222b0
jmp 0x64257
leaq 0x58(%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 0x6427c
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x64282
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 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x642bb
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x642d7
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x642fc
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x200(%rsp), %rax
movq %rax, 0x1f0(%rsp)
movq 0x128(%rsp), %rsi
movq 0x130(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1f0(%rsp), %rdi
callq 0x32180
leaq 0x1f0(%rsp), %rdi
callq 0xbf2c2
movl %eax, %r13d
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
je 0x64361
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x229c0
testl %r13d, %r13d
jne 0x643b4
leaq 0x290(%rsp), %rdi
leaq 0x93c22(%rip), %rsi     # 0xf7f97
leaq 0x128(%rsp), %rdx
callq 0x319d8
leaq 0x290(%rsp), %rdi
callq 0xc038e
movq 0x290(%rsp), %rdi
leaq 0x2a0(%rsp), %rax
cmpq %rax, %rdi
je 0x643b4
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 0x6456a
cmpl $0x3, %eax
jb 0x64425
movl $0x27, %edx
movq 0x111ba9(%rip), %rdi    # 0x175f90
leaq 0x94f13(%rip), %rsi     # 0xf9301
callq 0x22ab0
movq 0x111b96(%rip), %rcx    # 0x175f90
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x111b78(%rip), %rdi    # 0x175f90
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq (%rbx), %rsi
addq 0x118(%rsp), %rsi
leaq 0x488(%rsp), %rdi
callq 0x51a66
leaq 0x280(%rsp), %rax
movq %rax, 0x270(%rsp)
movq 0x128(%rsp), %rsi
movq 0x130(%rsp), %rdx
addq %rsi, %rdx
leaq 0x270(%rsp), %rdi
callq 0x32180
leaq 0x1e0(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq 0x2d0(%rsp), %rsi
movq 0x2d8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1d0(%rsp), %rdi
callq 0x32180
leaq 0x260(%rsp), %rax
movq %rax, 0x250(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x250(%rsp), %r13
movq %r13, %rdi
callq 0x32180
movq 0x110(%rsp), %rdi
leaq 0x488(%rsp), %rsi
leaq 0x270(%rsp), %rdx
leaq 0x1d0(%rsp), %rcx
movq %r13, %r8
xorl %r9d, %r9d
xorl %eax, %eax
pushq %rax
pushq %rax
pushq $0x1
pushq %rax
callq 0x4eede
addq $0x20, %rsp
movq 0x250(%rsp), %rdi
leaq 0x260(%rsp), %rax
cmpq %rax, %rdi
je 0x64525
movq 0x260(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x6454a
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x270(%rsp), %rdi
leaq 0x280(%rsp), %rcx
movq %rcx, %rax
leaq 0x488(%rsp), %r13
jmp 0x646f8
cmpl $0x3, %eax
jb 0x645b9
movl $0x2c, %edx
movq 0x111a15(%rip), %rdi    # 0x175f90
leaq 0x94da7(%rip), %rsi     # 0xf9329
callq 0x22ab0
movq 0x111a02(%rip), %rcx    # 0x175f90
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x1119e4(%rip), %rdi    # 0x175f90
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq (%rbx), %rsi
addq 0x118(%rsp), %rsi
leaq 0x458(%rsp), %rdi
callq 0x51a66
leaq 0x240(%rsp), %rax
movq %rax, 0x230(%rsp)
movq 0x128(%rsp), %rsi
movq 0x130(%rsp), %rdx
addq %rsi, %rdx
leaq 0x230(%rsp), %rdi
callq 0x32180
leaq 0x1c0(%rsp), %rax
movq %rax, 0x1b0(%rsp)
movq 0x2d0(%rsp), %rsi
movq 0x2d8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1b0(%rsp), %rdi
callq 0x32180
leaq 0x220(%rsp), %rax
movq %rax, 0x210(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x210(%rsp), %r13
movq %r13, %rdi
callq 0x32180
movq 0x110(%rsp), %rdi
leaq 0x458(%rsp), %rsi
leaq 0x230(%rsp), %rdx
leaq 0x1b0(%rsp), %rcx
movq %r13, %r8
xorl %r9d, %r9d
xorl %eax, %eax
pushq %rax
pushq %rax
pushq %rax
pushq %rax
callq 0x4eede
addq $0x20, %rsp
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0x646b8
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x646dd
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x230(%rsp), %rdi
leaq 0x240(%rsp), %rcx
movq %rcx, %rax
leaq 0x458(%rsp), %r13
cmpq %rcx, %rdi
je 0x64708
movq (%rax), %rsi
incq %rsi
callq 0x229c0
movq %r13, %rdi
callq 0x4a694
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6472c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x64746
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x64763
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x2d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x64780
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x229c0
incl %ebp
movq 0xa8(%rbx), %rsi
cmpl 0x1658(%rsi), %ebp
jbe 0x63cb4
movl 0x124(%rsp), %r15d
incl %r15d
movq 0xa8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xa8(%rsp)
cmpq 0x1a8(%rsp), %rax
jne 0x63a8e
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 0x696ce
movq 0xa8(%rbx), %rcx
cmpq %rdx, %rax
jne 0x64ef8
movq (%rcx), %rdi
addq $0x18, %rdi
movl $0x19, 0x2d0(%rsp)
movq %r14, %rsi
callq 0x696ce
movq 0xa8(%rbx), %rcx
cmpq %rdx, %rax
jne 0x64932
movq (%rcx), %rdi
addq $0x18, %rdi
movl $0x1a, 0x2d0(%rsp)
movq %r14, %rsi
callq 0x696ce
movq %rax, %r15
movq 0xa8(%rbx), %rax
cmpq %rdx, %r15
movq 0x100(%rsp), %rbp
jne 0x649da
movq (%rax), %rdi
addq $0x18, %rdi
movl $0x12, 0x2d0(%rsp)
movq %r14, %rsi
callq 0x696ce
cmpq %rdx, %rax
movl 0x2c(%rsp), %r15d
je 0x63959
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6490a
movl $0xc, %edx
movq 0x1116f0(%rip), %r14    # 0x175f90
movq %r14, %rdi
leaq 0x9b608(%rip), %rsi     # 0xffeb2
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 0x94b16(%rip), %rsi     # 0xf93ef
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 0x68e70
movb $0x1, %al
movl %eax, 0x50(%rsp)
jmp 0x64eba
callq 0x68e70
jmp 0x64eba
cmpl $0x3, 0x1614(%rcx)
jb 0x649ac
movl $0xc, %edx
movq 0x111649(%rip), %r14    # 0x175f90
movq %r14, %rdi
leaq 0x9b561(%rip), %rsi     # 0xffeb2
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 0x94720(%rip), %rsi     # 0xf90a0
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), %rax
incl 0x13ec(%rax)
movl $0x1, 0xb0(%rbx)
movq (%rax), %rdi
addq $0x18, %rdi
callq 0x68e70
movb $0x1, %al
movl %eax, 0x50(%rsp)
jmp 0x64eb5
cmpl $0x3, 0x1614(%rax)
jb 0x64a6c
movl $0x22, %edx
movq 0x11159d(%rip), %r14    # 0x175f90
movq %r14, %rdi
leaq 0x94971(%rip), %rsi     # 0xf936e
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 0x94959(%rip), %rsi     # 0xf9391
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 0x664d4
leaq 0x8(%rsp), %r15
movl $0x0, 0x80(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x88(%rsp)
leaq 0x80(%rsp), %rax
movq %rax, 0x90(%rsp)
movq %rax, 0x98(%rsp)
movq %rcx, 0xa0(%rsp)
callq 0x66990
leaq 0x128(%rsp), %rdi
leaq 0x78(%rsp), %rsi
movq %rax, %rdx
callq 0xe6610
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x64b45
movl $0xe, %edx
movq 0x111489(%rip), %rdi    # 0x175f90
leaq 0x94899(%rip), %rsi     # 0xf93a7
callq 0x22ab0
movq 0x111476(%rip), %rcx    # 0x175f90
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x111458(%rip), %rdi    # 0x175f90
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x4b8(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x6722c
movq %rbx, %rdi
leaq 0x4b8(%rsp), %r14
movq %r14, %rsi
movq 0x108(%rsp), %rdx
callq 0x54c1e
movq %r14, %rdi
callq 0x6749c
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x64c5b
movl $0x20, %edx
movq 0x1113f6(%rip), %rdi    # 0x175f90
leaq 0x94815(%rip), %rsi     # 0xf93b6
callq 0x22ab0
movq 0x90(%rsp), %rax
movsd 0x20(%rax), %xmm0
movq 0x1113d6(%rip), %rdi    # 0x175f90
callq 0x23060
movq %rax, %r15
movl $0xb, %edx
movq %rax, %rdi
leaq 0x94806(%rip), %rsi     # 0xf93d7
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 0x64ffa
leaq (,%rbp,2), %rax
addq %rbp, %rax
shlq $0x4, %rax
addq %rax, %rdi
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
leaq 0x8(%rsp), %rsi
callq 0x66390
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 0x64fd8
leaq (,%rbp,2), %r14
addq %rbp, %r14
shlq $0x4, %r14
addq %r14, %rdi
movl $0xffffffff, 0xd8(%rsp) # imm = 0xFFFFFFFF
leaq 0xd8(%rsp), %rsi
callq 0x66390
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0xc0446
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x6a77e
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x64cf1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
subq %rcx, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
cmpq %rbp, %rdx
jbe 0x64fe9
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
imulq %rsi, %rdx
cmpq %rbp, %rdx
jbe 0x64fc7
movq 0x18(%rcx,%r14), %r15
addq %r14, %rax
addq $0x8, %rax
cmpq %rax, %r15
je 0x64e1b
movsd 0x40(%r15), %xmm0
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0xc0446
leaq 0x30(%rsp), %rdi
movq %r13, %rsi
callq 0x6a77e
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x64d82
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x64de6
movl $0xb, %edx
movq 0x1111f2(%rip), %rdi    # 0x175f90
leaq 0x9463e(%rip), %rsi     # 0xf93e3
callq 0x22ab0
movsd 0x40(%r15), %xmm0
movq 0x1111d9(%rip), %rdi    # 0x175f90
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 0x64d36
jmp 0x64fc7
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 0x6bfb0
addq $0x10, %rsp
movq 0xa8(%rbx), %rax
movq (%rax), %rdi
addq $0x18, %rdi
callq 0x68e70
movq %r14, %rdi
callq 0x31a9e
leaq 0x78(%rsp), %rdi
callq 0x6749c
leaq 0x128(%rsp), %rdi
callq 0xe5f50
leaq 0x150(%rsp), %rdi
callq 0xe8b00
leaq 0x2d0(%rsp), %r14
movq %r14, %rdi
movq 0x11109d(%rip), %rsi    # 0x175f38
callq 0x226f0
leaq 0x350(%rsp), %rdi
callq 0x222d0
movl $0x0, 0x50(%rsp)
movl 0x2c(%rsp), %r15d
cmpl 0xb4(%rsp), %r15d
jge 0x638c6
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 0x8d874(%rip), %rdi     # 0xf275b
callq 0x225a0
leaq 0x8d868(%rip), %rdi     # 0xf275b
callq 0x22e40
cmpl $0x3, 0x1614(%rcx)
jb 0x64f4b
movq 0x111088(%rip), %r14    # 0x175f90
leaq 0x9afa3(%rip), %rsi     # 0xffeb2
movl $0xc, %edx
movq %r14, %rdi
callq 0x22ab0
movq %r14, %rdi
movq 0xf8(%rsp), %rsi
callq 0x22650
movq %rax, %r14
leaq 0x94420(%rip), %rsi     # 0xf9356
movl $0x17, %edx
movq %rax, %rdi
callq 0x22ab0
movq %r14, %rdi
callq 0x22430
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x64f7e
movq 0x11102e(%rip), %r14    # 0x175f90
leaq 0x94100(%rip), %rsi     # 0xf9069
movl $0x1b, %edx
movq %r14, %rdi
callq 0x22ab0
movq %r14, %rdi
callq 0x22430
movq 0xa8(%rbx), %rax
movq (%rax), %rdi
callq 0x6b7b4
movq 0xa8(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x64fc0
movq 0x110fec(%rip), %rbx    # 0x175f90
leaq 0x940da(%rip), %rsi     # 0xf9085
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x22ab0
movq %rbx, %rdi
callq 0x22430
xorl %edi, %edi
callq 0x22b90
leaq 0x8e6f7(%rip), %rdi     # 0xf36c5
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22f40
leaq 0x8e6e6(%rip), %rdi     # 0xf36c5
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22f40
leaq 0x8e6d5(%rip), %rdi     # 0xf36c5
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22f40
leaq 0x8e6c4(%rip), %rdi     # 0xf36c5
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22f40
jmp 0x6500f
jmp 0x6500f
leaq 0x8e6af(%rip), %rdi     # 0xf36c5
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22f40
movq %rax, %rbx
movq 0x2b0(%rsp), %rdi
cmpq %r13, %rdi
je 0x65045
movq 0x2c0(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65045
movq %rax, %rbx
leaq 0x2e0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6506b
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x6506b
movq %rax, %rbx
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65091
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65091
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x650b3
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x650b3
movq %rax, %rbx
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x650d9
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x650d9
movq %rax, %rbx
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x650f9
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x650f9
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x65115
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65115
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x65131
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65131
movq %rax, %rbx
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x6550e
jmp 0x6516b
jmp 0x65195
jmp 0x6516b
jmp 0x65195
jmp 0x65172
jmp 0x65195
movq %rax, %rbx
leaq 0x4b8(%rsp), %rdi
callq 0x6749c
jmp 0x651a2
jmp 0x65162
movq %rax, %rbx
jmp 0x651c6
jmp 0x65195
jmp 0x6516b
movq %rax, %rbx
jmp 0x651a2
jmp 0x65195
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x65198
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65198
jmp 0x65195
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x31a9e
leaq 0x78(%rsp), %rdi
callq 0x6749c
leaq 0x128(%rsp), %rdi
callq 0xe5f50
leaq 0x150(%rsp), %rdi
callq 0xe8b00
movq 0x110d6b(%rip), %rsi    # 0x175f38
leaq 0x2d0(%rsp), %rdi
callq 0x226f0
leaq 0x350(%rsp), %rdi
callq 0x222d0
jmp 0x655c0
movq %rax, %rbx
movq 0x290(%rsp), %rdi
leaq 0x2a0(%rsp), %rax
cmpq %rax, %rdi
je 0x65550
movq 0x2a0(%rsp), %rsi
jmp 0x653a1
movq %rax, %rbx
jmp 0x652d2
movq %rax, %rbx
jmp 0x65288
movq %rax, %rbx
jmp 0x65304
movq %rax, %rbx
movq 0x250(%rsp), %rdi
leaq 0x260(%rsp), %rax
cmpq %rax, %rdi
je 0x652df
movq 0x260(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x652df
movq %rax, %rbx
jmp 0x652ad
movq %rax, %rbx
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0x65288
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x652ad
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x230(%rsp), %rdi
leaq 0x240(%rsp), %rax
cmpq %rax, %rdi
je 0x652d2
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x458(%rsp), %rdi
jmp 0x65336
movq %rax, %rbx
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x65304
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x270(%rsp), %rdi
leaq 0x280(%rsp), %rax
cmpq %rax, %rdi
je 0x6532e
movq 0x280(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x6532e
movq %rax, %rbx
leaq 0x488(%rsp), %rdi
callq 0x4a694
jmp 0x65550
movq %rax, %rbx
jmp 0x6556c
movq %rax, %rbx
jmp 0x654e2
movq %rax, %rbx
jmp 0x655a3
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x653fc
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x653fc
movq %rax, %rbx
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
je 0x65550
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65550
movq %rax, %rbx
jmp 0x654aa
movq %rax, %rbx
jmp 0x654c6
movq %rax, %rbx
jmp 0x65490
movq %rax, %rbx
jmp 0x654fe
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x65527
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65527
movq %rax, %rbx
jmp 0x6546b
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x65425
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65425
movq %rax, %rbx
jmp 0x65586
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x6556c
movq 0xe8(%rsp), %rsi
jmp 0x65564
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x6546b
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x65490
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x654aa
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x654c6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x654e2
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x654fe
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x655c0
movq 0xe8(%rsp), %rsi
jmp 0x655b8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x655a3
movq 0x18(%rsp), %rsi
jmp 0x6559b
movq %rax, %rbx
cmpl $0x0, (%r13)
jne 0x655c0
movl %r14d, (%r13)
jmp 0x655c0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6556c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x65586
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x655a3
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x2d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x655c0
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x23240