// File: /workspace/github_cpp_makefile_star2_O3/richardposner[P]BioNetFit2/src/code/Particle.cpp
// Function: Particle::doParticle(unsigned int)
void Particle::doParticle(unsigned int mid) {
	int subParID = calcsubParID(mid);
	int id = subParID;

	if (swarm_->options.verbosity >= 3) {cout << "In doParticle(), waiting for message from master. subParticle:["<<subParID <<":"<< id_  <<"-"<<mid <<"]  model id:"<< mid<< endl; mypause();}

// razi: this is to run the program in slave mode without using master-slave configuration
// this should be commented later on.
#ifdef STANDALONE_STANDALONE_PARTICLE_TEST_ACTIVE

	if (swarm_->options.verbosity >= 3){ cout << "doParticle. Generate random parameters instead of waiting for master to send the parameters. Results are not valid !!!" << endl; mypause();}
	currentGeneration_ =1; int rnd; srand(subParID); //razi random seed

	//razi generate random values for free parameters only for test purpose
	for (auto frp = swarm_->options.models.at(mid)->freeParams_.begin(); frp != swarm_->options.models.at(mid)->freeParams_.end(); ++frp) {
		rnd=rand()%100; simParams_.at(mid).insert(pair<string, double>(frp->first, rnd));
		//cout<<"virtual free param:"<<frp->first<<" is set to "<<rnd<<"."<<endl;
	}

#else //STANDALONE_STANDALONE_PARTICLE_TEST_ACTIVE
	if (swarm_->resumingSavedSwarm) {
		if (swarm_->options.verbosity >= 3)  cout << "Waiting for flight count from master" << endl;
		swarm_->swarmComm->recvMessage(0, id, SEND_NUMFLIGHTS_TO_PARTICLE, true, swarm_->swarmComm->univMessageReceiver);
		currentGeneration_ = stoi(*(swarm_->swarmComm->univMessageReceiver.find(SEND_NUMFLIGHTS_TO_PARTICLE)->second.message.begin()));

		swarm_->swarmComm->univMessageReceiver.clear();
		if (swarm_->options.verbosity >= 3) cout << "Received flight count from master. Waiting for param set from master...." << endl;
		swarm_->swarmComm->recvMessage(0, id, SEND_FINAL_PARAMS_TO_PARTICLE, true, swarm_->swarmComm->univMessageReceiver);

		auto freeParam = swarm_->options.models.at(mid)->getFreeParams_().begin();
		for (auto paramVal = swarm_->swarmComm->univMessageReceiver.find(SEND_FINAL_PARAMS_TO_PARTICLE)->second.message.begin(); paramVal != swarm_->swarmComm->univMessageReceiver.find(SEND_FINAL_PARAMS_TO_PARTICLE)->second.message.end(); ++paramVal) {
			if (swarm_->options.verbosity >= 3) cout << "updating " << freeParam->first << " to " << *paramVal << endl;
			simParams_.at(mid).insert(pair<string, double>(freeParam->first, stod(*paramVal)));
			++freeParam;
		}
		swarm_->swarmComm->univMessageReceiver.clear();
	}
#endif //STANDALONE_STANDALONE_PARTICLE_TEST_ACTIVE


	if (swarm_->options.fitType == "de") {
		// Need to figure out which island I'm on
		for (unsigned int island = 1; island <= swarm_->options.numIslands; ++island) {
			for (unsigned int particle = 1; particle <= (swarm_->options.swarmSize / swarm_->options.numIslands) * island; ++particle) {
				if (particle == id_) {
					island_ = island;
					goto theEnd;
				}
			}
		}
		theEnd:;
	}


#ifndef STANDALONE_PARTICLE_TEST_ACTIVE

//cout << "Particle " << id_ << " waiting to begin" << endl;
//	swarm_->swarmComm->recvMessage(0, id_, NEXT_GENERATION, true, swarm_->swarmComm->univMessageReceiver);
	if (swarm_->options.verbosity >= 3) {
		cout << "subParticle " << id << " waiting to begin" << endl;
	}
	swarm_->swarmComm->recvMessage(0, id, NEXT_GENERATION, true, swarm_->swarmComm->univMessageReceiver); //Master should send message with subParID
	swarm_->swarmComm->univMessageReceiver.clear();
#endif //STANDALONE_PARTICLE_TEST_ACTIVE
	if (swarm_->options.verbosity >= 3) {
		cout << "Particle " << id_ << " starting" << endl;
	}
	if (swarm_->options.verbosity >= 3) {
		cout << "In doParticle(), entering main run loop" << endl;
	}

	bool doContinue = true;
	bool doRunModel = true;
	while(doContinue) {
		if (swarm_->bootstrapCounter > 0 && currentGeneration_ == 1) {
			swarm_->swarmComm->recvMessage(0, id, NEXT_GENERATION, true, swarm_->swarmComm->univMessageReceiver);
			swarm_->swarmComm->univMessageReceiver.clear();
		}
		if (swarm_->options.verbosity >= 3) {
			cout << "DoParticle: Generation is " << currentGeneration_ << endl;
		}
		if (doRunModel) {
			for (unsigned int i = 1; i <= swarm_->options.smoothing; ++i) {
				if (swarm_->options.verbosity >= 3) cout<<"doParticle-1x try to run model for i:"<<i<<endl;

				if (swarm_->isMaster){
						for (unsigned int j=0; j<=swarm_->getNumModels(); j++){   //razi:run all subparticles
						if (getSubParticle(j)){
							getSubParticle(j)->runModel(i, false);   //razi: check later due to false
							if (swarm_->options.verbosity >= 3) {
								cout<<"Particle::doParticle. Running subParticle:["<<calcsubParID(j) <<":"<< id_  <<"-"<<j <<"] for iteration:"<<i << " is completed...\n";
							}
						}
					}
				}else{
					if (getSubParticle(mid)){
						if (swarm_->options.verbosity >= 3) {
							cout<<"Particle::doParticle. Running subParticle:["<<subParID <<":"<< id_  <<"-"<<mid <<"] for iteration:"<<i << " is started...\n";
						}
						getSubParticle(mid)->runModel(i, false);   //razi: check later due to false
						if (swarm_->options.verbosity >= 3) {
							cout<<"Particle::doParticle. Running subParticle:"<< mid <<" for iteration:"<<i << " is completed...\n";
						}
					}else outputError("SubParticle number error subParticle:["+ toString(subParID)+":"+ toString(id_) + "-:"+ toString(mid)+"] particleID:"+ toString(id_)+ " model id:" + toString(mid) + "  subParID:" + toString(subParID));
				}
				if (swarm_->options.verbosity >= 3) cout<<"doParticle-1 ran model for i:"<<i<<endl;
			}

			if (swarm_->isMaster){
				for (unsigned int j=0; j<=swarm_->getNumModels(); j++){
					if (getSubParticle(j)) {
						if (swarm_->options.smoothing > 1) {
							smoothRuns(j);
						}
						finalizeSim(j);
					}
				}
			}else{
				if (getSubParticle(mid)) {
					smoothRuns(mid);
				}
				finalizeSim(mid);
			}
		}
		else{
			//cout<<"do Runmodel was not active\n";
			doRunModel = true;
		}

if (swarm_->options.verbosity >= 3) cout<<"doParticle-4 now lets check messages..."<<endl;
		if (swarm_->options.verbosity >= 5) {
			cout << "RAQUEL before if" << endl;
		}
		if (swarm_->options.fitType == "ga") {
			if (swarm_->options.verbosity >= 3) {
				cout << "RAQUEL Entering check messages GA" << endl;
			}
			//checkMessagesGenetic(); //Raquel: changed this function to fix the problem of not proceeding to the next generation
			checkMessagesGenetic(mid);
			if (swarm_->options.verbosity >= 3) {
				cout << "RAQUEL done check messages" << endl;
			}
		}
		else if (swarm_->options.fitType == "pso") {
			if (swarm_->options.verbosity >= 3) {
				cout << "RAQUEL Entering check messages PSO" << endl;
			}
			checkMessagesPSO(mid);
			if (swarm_->options.verbosity >= 3) {
				cout << "RAQUEL Done check messages PSO" << endl;
			}

		}
		else if (swarm_->options.fitType == "de") {

			if (swarm_->options.verbosity >= 3) {
				cout << "RAQUEL Entering check messages DE" << endl;
			}

			checkMessagesDE(mid);

			if (swarm_->options.verbosity >= 3) {
				cout << "RAQUEL Done check messages DE" << endl;
			}

		}
		else if (swarm_->options.fitType == "sa") {
			doRunModel = checkMessagesDE();
		}
if (swarm_->options.verbosity >= 3) cout<<"doParticle-4 check messages done..."<<endl;

		if (doRunModel == true) {
			// Next generation
			++currentGeneration_;
		}
	}
	if (swarm_->options.verbosity >= 3) {
		cout << "In doParticle(), finished ...." << endl;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rdi, %r15
movl 0x40(%rdi), %eax
decl %eax
movq 0xa8(%rdi), %rdi
movq 0x15c8(%rdi), %rcx
subq 0x15c0(%rdi), %rcx
shrq $0x3, %rcx
imull %eax, %ecx
leal (%rsi,%rcx), %eax
incl %eax
movl %eax, 0xc(%rsp)
cmpl $0x3, 0x1614(%rdi)
movq %rsi, 0x10(%rsp)
movl %esi, %r13d
jb 0x5c909
movq 0x11975c(%rip), %rbx    # 0x175fa8
leaq 0x9bd05(%rip), %rsi     # 0xf8558
movl $0x3f, %edx
movq %rbx, %rdi
callq 0x22ab0
movq %rbx, %rdi
movl 0xc(%rsp), %esi
callq 0x231e0
movq %rax, %rbx
leaq 0xa1d5a(%rip), %rsi     # 0xfe5d0
movl $0x1, %edx
movq %rax, %rdi
callq 0x22ab0
movl 0x40(%r15), %esi
movq %rbx, %rdi
callq 0x22650
movq %rax, %rbx
leaq 0xa4de8(%rip), %rsi     # 0x101681
movl $0x1, %edx
movq %rax, %rdi
callq 0x22ab0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x22650
movq %rax, %rbx
leaq 0x9bcdd(%rip), %rsi     # 0xf8598
movl $0xc, %edx
movq %rax, %rdi
callq 0x22ab0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x22650
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %rbx, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
callq 0xbdb0c
movq 0xa8(%r15), %rdi
cmpb $0x1, 0x13f0(%rdi)
movq %r13, 0x50(%rsp)
jne 0x5cb4c
cmpl $0x3, 0x1614(%rdi)
jb 0x5c96d
movq 0x11967d(%rip), %rbx    # 0x175fa8
leaq 0x9bc73(%rip), %rsi     # 0xf85a5
movl $0x24, %edx
movq %rbx, %rdi
callq 0x22ab0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %rbx, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xa8(%r15), %rdi
movq (%rdi), %rdi
leaq 0x18(%rdi), %r9
xorl %esi, %esi
movl 0xc(%rsp), %edx
movl $0x17, %ecx
movl $0x1, %r8d
pushq $-0x1
pushq $0x1
callq 0x6d52e
addq $0x10, %rsp
movq 0xa8(%r15), %rax
movq (%rax), %rdi
addq $0x18, %rdi
leaq 0x58(%rsp), %rsi
movl $0x17, (%rsi)
callq 0x6895a
movq 0x38(%rax), %rax
movq (%rax), %rbx
callq 0x22070
movq %rax, %r14
movl (%rax), %ebp
movl $0x0, (%rax)
leaq 0x18(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x22d80
cmpq %rbx, (%r12)
movq %r14, 0x40(%rsp)
jne 0x5c9f3
leaq 0x95d43(%rip), %rdi     # 0xf2731
callq 0x225a0
movl (%r14), %ecx
cmpl $0x22, %ecx
setne %dl
movslq %eax, %rsi
cmpq %rax, %rsi
sete %sil
testb %dl, %sil
jne 0x5ca17
leaq 0x95d1f(%rip), %rdi     # 0xf2731
callq 0x22e40
testl %ecx, %ecx
jne 0x5ca22
movq 0x40(%rsp), %rcx
movl %ebp, (%rcx)
movl %eax, 0xb0(%r15)
movq 0xa8(%r15), %rax
movq (%rax), %rdi
addq $0x18, %rdi
callq 0x689b6
movq 0xa8(%r15), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x5ca95
movq 0x119555(%rip), %rbx    # 0x175fa8
leaq 0x9bb70(%rip), %rsi     # 0xf85ca
movl $0x48, %edx
movq %rbx, %rdi
callq 0x22ab0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %rbx, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xa8(%r15), %rax
movq (%rax), %rdi
leaq 0x18(%rdi), %r9
movl $0x15, %r14d
xorl %esi, %esi
movl 0xc(%rsp), %edx
movl $0x15, %ecx
movl $0x1, %r8d
pushq $-0x1
pushq $0x1
callq 0x6d52e
addq $0x10, %rsp
movq 0xa8(%r15), %rax
movq 0x15c0(%rax), %rcx
movq 0x15c8(%rax), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %r13, %rdx
jbe 0x5de8d
movq (%rcx,%r13,8), %rcx
movq 0x48(%rcx), %rbx
movq (%rax), %rdi
addq $0x18, %rdi
leaq 0x18(%rsp), %r12
movl %r14d, (%r12)
movq %r12, %rsi
callq 0x6895a
movq 0x38(%rax), %rcx
movq 0xa8(%r15), %rax
movq (%rax), %rdi
addq $0x18, %rdi
movl %r14d, (%r12)
movq %rcx, %r14
leaq 0x18(%rsp), %rsi
callq 0x6895a
cmpq 0x40(%rax), %r14
jne 0x5de99
movq 0xa8(%r15), %rax
movq (%rax), %rdi
addq $0x18, %rdi
callq 0x689b6
movq 0xa8(%r15), %rdi
addq $0x14e0, %rdi           # imm = 0x14E0
leaq 0xd13a1(%rip), %rsi     # 0x12defb
callq 0x22250
movq 0xa8(%r15), %rcx
testl %eax, %eax
jne 0x5cbb5
movl 0x16fc(%rcx), %esi
testl %esi, %esi
je 0x5cbb5
movl 0x1620(%rcx), %eax
xorl %edx, %edx
divl %esi
movl 0x40(%r15), %edi
movl $0x1, %edx
movl %eax, %r8d
imull %edx, %r8d
testl %r8d, %r8d
je 0x5cba6
movl $0x1, %r9d
cmpl %r9d, %edi
je 0x5cbae
incl %r9d
cmpl %r8d, %r9d
jbe 0x5cb99
incl %edx
cmpl %esi, %edx
jbe 0x5cb87
jmp 0x5cbb5
movl %edx, 0xb4(%r15)
cmpl $0x3, 0x1614(%rcx)
jb 0x5cc2a
movq 0x1193e3(%rip), %rbx    # 0x175fa8
leaq 0xa2fe2(%rip), %rsi     # 0xffbae
movl $0xc, %edx
movq %rbx, %rdi
callq 0x22ab0
movq %rbx, %rdi
movl 0xc(%rsp), %esi
callq 0x231e0
movq %rax, %rbx
leaq 0x9ba2e(%rip), %rsi     # 0xf861d
movl $0x11, %edx
movq %rax, %rdi
callq 0x22ab0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %rbx, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xa8(%r15), %rcx
movq (%rcx), %rdi
leaq 0x18(%rdi), %r9
xorl %esi, %esi
movl 0xc(%rsp), %edx
movl $0x12, %ecx
movl $0x1, %r8d
pushq $-0x1
pushq $0x1
callq 0x6d52e
addq $0x10, %rsp
movq 0xa8(%r15), %rax
movq (%rax), %rdi
addq $0x18, %rdi
callq 0x689b6
movq 0xa8(%r15), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x5cd26
movq 0x11932b(%rip), %rbx    # 0x175fa8
leaq 0xa3218(%rip), %rsi     # 0xffe9c
movl $0x9, %edx
movq %rbx, %rdi
callq 0x22ab0
movl 0x40(%r15), %esi
movq %rbx, %rdi
callq 0x22650
movq %rax, %r14
leaq 0x9b988(%rip), %rsi     # 0xf862f
movl $0x9, %edx
movq %rax, %rdi
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
movq 0xa8(%r15), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x5cd26
leaq 0x9b947(%rip), %rsi     # 0xf8639
movl $0x27, %edx
movq %rbx, %rdi
callq 0x22ab0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %rbx, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movb $0x1, %bpl
movq 0x119278(%rip), %r12    # 0x175fa8
movq 0xa8(%r15), %rdi
cmpl $0x0, 0x13ec(%rdi)
je 0x5cd89
cmpl $0x1, 0xb0(%r15)
jne 0x5cd89
movq (%rdi), %rdi
leaq 0x18(%rdi), %r9
xorl %esi, %esi
movl 0xc(%rsp), %edx
movl $0x12, %ecx
movl $0x1, %r8d
pushq $-0x1
pushq $0x1
callq 0x6d52e
addq $0x10, %rsp
movq 0xa8(%r15), %rax
movq (%rax), %rdi
addq $0x18, %rdi
callq 0x689b6
movq 0xa8(%r15), %rdi
cmpl $0x3, 0x1614(%rdi)
jb 0x5cde6
movl $0x1a, %edx
movq %r12, %rdi
leaq 0x9b8c0(%rip), %rsi     # 0xf8661
callq 0x22ab0
movl 0xb0(%r15), %esi
movq %r12, %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
movq 0xa8(%r15), %rdi
testb $0x1, %bpl
je 0x5db18
movb %bpl, 0x48(%rsp)
cmpl $0x0, 0x1658(%rdi)
je 0x5daac
movl $0x1, %ebp
cmpl $0x3, 0x1614(%rdi)
jb 0x5ce5f
movl $0x25, %edx
movq %r12, %rdi
leaq 0x9b85d(%rip), %rsi     # 0xf867c
callq 0x22ab0
movl %ebp, %esi
movq %r12, %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
movq 0xa8(%r15), %rdi
cmpb $0x1, 0x50(%rdi)
jne 0x5cf9b
movl %ebp, %r13d
xorl %ebx, %ebx
movl %ebx, %ebx
movq 0x48(%r15), %rax
movq 0x50(%r15), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rbx, %rdx
jbe 0x5de7c
movq (%rax,%rbx,8), %rax
testq %rax, %rax
je 0x5cf7a
movq %rax, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x55f62
movq 0xa8(%r15), %rdi
cmpl $0x3, 0x1614(%rdi)
jb 0x5cf7a
movl $0x2b, %edx
movq %r12, %rdi
leaq 0x9b7de(%rip), %rsi     # 0xf86a2
callq 0x22ab0
movl 0x40(%r15), %eax
movq 0xa8(%r15), %rcx
movq 0x15c8(%rcx), %rdx
subq 0x15c0(%rcx), %rdx
decl %eax
shrq $0x3, %rdx
imull %eax, %edx
leal (%rbx,%rdx), %esi
incl %esi
movq %r12, %rdi
callq 0x22650
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0xa16c6(%rip), %rsi     # 0xfe5d0
callq 0x22ab0
movl 0x40(%r15), %esi
movq %r14, %rdi
callq 0x22650
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0xa4754(%rip), %rsi     # 0x101681
callq 0x22ab0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x22650
movq %rax, %r14
movl $0x10, %edx
movq %rax, %rdi
leaq 0x9b77f(%rip), %rsi     # 0xf86ce
callq 0x22ab0
movq %r14, %rdi
movq %r13, %rsi
callq 0x22650
movl $0x11, %edx
movq %rax, %rdi
leaq 0x9b771(%rip), %rsi     # 0xf86df
callq 0x22ab0
movq 0xa8(%r15), %rdi
incl %ebx
movq 0x15c8(%rdi), %rax
subq 0x15c0(%rdi), %rax
shrq $0x3, %rax
cmpl %eax, %ebx
jbe 0x5ce6e
jmp 0x5da3a
movq 0x48(%r15), %rax
movq 0x50(%r15), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r13, %rdx
jbe 0x5e05b
cmpq $0x0, (%rax,%r13,8)
je 0x5d0f9
cmpl $0x3, 0x1614(%rdi)
jb 0x5d074
movl $0x2b, %edx
movq %r12, %rdi
leaq 0x9b6c8(%rip), %rsi     # 0xf86a2
callq 0x22ab0
movq %r12, %rdi
movl 0xc(%rsp), %esi
callq 0x231e0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0xa15d3(%rip), %rsi     # 0xfe5d0
callq 0x22ab0
movl 0x40(%r15), %esi
movq %rbx, %rdi
callq 0x22650
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0xa4661(%rip), %rsi     # 0x101681
callq 0x22ab0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x22650
movq %rax, %rbx
movl $0x10, %edx
movq %rax, %rdi
leaq 0x9b68c(%rip), %rsi     # 0xf86ce
callq 0x22ab0
movl %ebp, %esi
movq %rbx, %rdi
callq 0x22650
movl $0xf, %edx
movq %rax, %rdi
leaq 0x9b691(%rip), %rsi     # 0xf86f1
callq 0x22ab0
movq 0x48(%r15), %rax
movq 0x50(%r15), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r13, %rdx
jbe 0x5e060
movq (%rax,%r13,8), %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x55f62
movq 0xa8(%r15), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x5da3a
movl $0x2a, %edx
movq %r12, %rdi
leaq 0x9b654(%rip), %rsi     # 0xf8701
callq 0x22ab0
movq %r12, %rdi
movq 0x50(%rsp), %rsi
callq 0x22650
movq %rax, %rbx
movl $0xf, %edx
movq %rax, %rdi
leaq 0x9b5fe(%rip), %rsi     # 0xf86cf
callq 0x22ab0
movl %ebp, %esi
movq %rbx, %rdi
callq 0x22650
movl $0x11, %edx
movq %rax, %rdi
leaq 0x9b5f0(%rip), %rsi     # 0xf86df
callq 0x22ab0
jmp 0x5da3a
leaq 0x248(%rsp), %rbx
movq %rbx, %rdi
movl 0xc(%rsp), %esi
callq 0xbe584
movl $0x26, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x9b60b(%rip), %rcx     # 0xf872c
callq 0x22a80
leaq 0x228(%rsp), %r14
movq %r14, 0x218(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5d15a
movq %rdx, 0x218(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x228(%rsp)
jmp 0x5d161
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x10(%rsp), %rbx
leaq 0x168(%rsp), %r13
movq 0x8(%rax), %rdx
movq %rdx, 0x220(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x218(%rsp), %rdi
leaq 0xa1438(%rip), %rsi     # 0xfe5d0
callq 0x233b0
movq %r13, 0x158(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5d1c9
movq %rdx, 0x158(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x168(%rsp)
jmp 0x5d1d1
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x160(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x40(%r15), %esi
leaq 0x1f8(%rsp), %rdi
callq 0xbfa49
movq 0x158(%rsp), %rcx
movl $0xf, %edi
cmpq %r13, %rcx
je 0x5d217
movq 0x168(%rsp), %rdi
movq 0x160(%rsp), %r8
movq 0x1f8(%rsp), %rsi
movq 0x200(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x5d257
movl $0xf, %edi
leaq 0x208(%rsp), %r9
cmpq %r9, %rsi
je 0x5d252
movq 0x208(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x5d266
leaq 0x158(%rsp), %rdi
callq 0x222b0
jmp 0x5d277
leaq 0x1f8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x88(%rsp), %rsi
movq %rsi, 0x78(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x5d2a2
movq %rdx, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x5d2a8
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x78(%rsp), %rdi
leaq 0x9b47f(%rip), %rsi     # 0xf8753
callq 0x233b0
leaq 0x108(%rsp), %rsi
movq %rsi, 0xf8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5d30d
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x5d313
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x100(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1d8(%rsp), %rdi
movl %ebx, %esi
callq 0xbfa49
movq 0xf8(%rsp), %rcx
movl $0xf, %edi
leaq 0x108(%rsp), %rax
cmpq %rax, %rcx
je 0x5d35f
movq 0x108(%rsp), %rdi
movq 0x100(%rsp), %r8
movq 0x1d8(%rsp), %rsi
movq 0x1e0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x5d39f
movl $0xf, %edi
leaq 0x1e8(%rsp), %r9
cmpq %r9, %rsi
je 0x5d39a
movq 0x1e8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x5d3ae
leaq 0xf8(%rsp), %rdi
callq 0x222b0
jmp 0x5d3bf
leaq 0x1d8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0xa8(%rsp), %rsi
movq %rsi, 0x98(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x5d3f0
movq %rdx, 0x98(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa8(%rsp)
jmp 0x5d3f6
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0xa0(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x98(%rsp), %rdi
leaq 0x9b331(%rip), %rsi     # 0xf8756
callq 0x233b0
leaq 0x128(%rsp), %rsi
movq %rsi, 0x118(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5d45e
movq %rdx, 0x118(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x128(%rsp)
jmp 0x5d464
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x120(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x40(%r15), %esi
leaq 0x1b8(%rsp), %rdi
callq 0xbfa49
movq 0x118(%rsp), %rcx
movl $0xf, %edi
leaq 0x128(%rsp), %rax
cmpq %rax, %rcx
je 0x5d4b2
movq 0x128(%rsp), %rdi
movq 0x120(%rsp), %r8
movq 0x1b8(%rsp), %rsi
movq 0x1c0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x5d4f2
movl $0xf, %edi
leaq 0x1c8(%rsp), %r9
cmpq %r9, %rsi
je 0x5d4ed
movq 0x1c8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x5d501
leaq 0x118(%rsp), %rdi
callq 0x222b0
jmp 0x5d512
leaq 0x1b8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0xc8(%rsp), %rsi
movq %rsi, 0xb8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x5d543
movq %rdx, 0xb8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc8(%rsp)
jmp 0x5d549
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0xc0(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xb8(%rsp), %rdi
leaq 0x9b740(%rip), %rsi     # 0xf8cb8
callq 0x233b0
leaq 0x148(%rsp), %rsi
movq %rsi, 0x138(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5d5b1
movq %rdx, 0x138(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x148(%rsp)
jmp 0x5d5b7
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x140(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x198(%rsp), %rdi
movl %ebx, %esi
callq 0xbfa49
movq 0x138(%rsp), %rcx
movl $0xf, %edi
leaq 0x148(%rsp), %rax
cmpq %rax, %rcx
je 0x5d603
movq 0x148(%rsp), %rdi
movq 0x140(%rsp), %r8
movq 0x198(%rsp), %rsi
movq 0x1a0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x5d643
movl $0xf, %edi
leaq 0x1a8(%rsp), %r9
cmpq %r9, %rsi
je 0x5d63e
movq 0x1a8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x5d652
leaq 0x138(%rsp), %rdi
callq 0x222b0
jmp 0x5d663
leaq 0x198(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x68(%rsp), %rsi
movq %rsi, 0x58(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x5d688
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x5d68e
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x60(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x58(%rsp), %rdi
leaq 0x9b0ad(%rip), %rsi     # 0xf8764
callq 0x233b0
leaq 0x28(%rsp), %rsi
movq %rsi, 0x18(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5d6e4
movq %rdx, 0x18(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x28(%rsp)
jmp 0x5d6ea
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x20(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x178(%rsp), %rdi
movl 0xc(%rsp), %esi
callq 0xbe584
movq 0x18(%rsp), %rcx
movl $0xf, %edi
leaq 0x28(%rsp), %rax
cmpq %rax, %rcx
je 0x5d72c
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %r8
movq 0x178(%rsp), %rsi
movq 0x180(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x5d769
movl $0xf, %edi
leaq 0x188(%rsp), %r9
cmpq %r9, %rsi
je 0x5d764
movq 0x188(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x5d775
leaq 0x18(%rsp), %rdi
callq 0x222b0
jmp 0x5d786
leaq 0x178(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0xe8(%rsp), %rsi
movq %rsi, 0xd8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x5d7b7
movq %rdx, 0xd8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe8(%rsp)
jmp 0x5d7bd
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0xe0(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xd8(%rsp), %rdi
callq 0xbfa27
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x5d80f
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x5d834
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x5d850
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x5d86c
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rax
cmpq %rax, %rdi
je 0x5d891
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x5d8b6
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x5d8db
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
je 0x5d900
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x5d925
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x5d94a
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1d8(%rsp), %rdi
leaq 0x1e8(%rsp), %rax
cmpq %rax, %rdi
je 0x5d96f
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x5d994
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x5d9b6
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0x5d9db
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x158(%rsp), %rdi
cmpq %r13, %rdi
je 0x5d9f8
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x218(%rsp), %rdi
cmpq %r14, %rdi
je 0x5da15
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x248(%rsp), %rdi
leaq 0x258(%rsp), %rax
cmpq %rax, %rdi
je 0x5da3a
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xa8(%r15), %rdi
cmpl $0x3, 0x1614(%rdi)
jb 0x5da99
movl $0x1d, %edx
movq %r12, %rdi
leaq 0x9ad17(%rip), %rsi     # 0xf8770
callq 0x22ab0
movl %ebp, %esi
movq %r12, %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
movq 0xa8(%r15), %rdi
incl %ebp
cmpl 0x1658(%rdi), %ebp
movq 0x50(%rsp), %r13
jbe 0x5ce07
cmpb $0x1, 0x50(%rdi)
jne 0x5db1d
xorl %ebx, %ebx
movb 0x48(%rsp), %bpl
movl %ebx, %ebx
movq 0x48(%r15), %rax
movq 0x50(%r15), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rbx, %rdx
jbe 0x5e056
cmpq $0x0, (%rax,%rbx,8)
je 0x5dafe
cmpl $0x2, 0x1658(%rdi)
jb 0x5daed
movq %r15, %rdi
movl %ebx, %esi
callq 0x59ef4
movq %r15, %rdi
movl %ebx, %esi
callq 0x5e3aa
movq 0xa8(%r15), %rdi
incl %ebx
movq 0x15c8(%rdi), %rax
subq 0x15c0(%rdi), %rax
shrq $0x3, %rax
cmpl %eax, %ebx
jbe 0x5dab9
jmp 0x5db61
movb $0x1, %bpl
jmp 0x5db61
movq 0x48(%r15), %rax
movq 0x50(%r15), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r13, %rdx
movb 0x48(%rsp), %bpl
jbe 0x5e082
cmpq $0x0, (%rax,%r13,8)
movq 0x10(%rsp), %rbx
je 0x5db50
movq %r15, %rdi
movl %ebx, %esi
callq 0x59ef4
movq %r15, %rdi
movl %ebx, %esi
callq 0x5e3aa
movq 0xa8(%r15), %rdi
cmpl $0x3, 0x1614(%rdi)
jb 0x5dbfd
movl $0x27, %edx
movq %r12, %rdi
leaq 0x9ac11(%rip), %rsi     # 0xf878e
callq 0x22ab0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xa8(%r15), %rdi
cmpl $0x5, 0x1614(%rdi)
jb 0x5dbfd
movl $0x10, %edx
movq %r12, %rdi
leaq 0x9abed(%rip), %rsi     # 0xf87b6
callq 0x22ab0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xa8(%r15), %rdi
addq $0x14e0, %rdi           # imm = 0x14E0
leaq 0x9437e(%rip), %rsi     # 0xf1f89
callq 0x22250
movq 0xa8(%r15), %rdi
testl %eax, %eax
je 0x5dc8b
addq $0x14e0, %rdi           # imm = 0x14E0
leaq 0xa1349(%rip), %rsi     # 0xfef72
callq 0x22250
movq 0xa8(%r15), %rdi
testl %eax, %eax
je 0x5dd05
addq $0x14e0, %rdi           # imm = 0x14E0
leaq 0xd02b0(%rip), %rsi     # 0x12defb
callq 0x22250
movq 0xa8(%r15), %rdi
testl %eax, %eax
je 0x5dd7c
addq $0x14e0, %rdi           # imm = 0x14E0
leaq 0x9431f(%rip), %rsi     # 0xf1f8c
callq 0x22250
testl %eax, %eax
jne 0x5de1a
movq %r15, %rdi
xorl %esi, %esi
callq 0x62eee
movl %eax, %ebp
jmp 0x5de1a
cmpl $0x3, 0x1614(%rdi)
jb 0x5dcd0
movl $0x21, %edx
movq %r12, %rdi
leaq 0x9ab24(%rip), %rsi     # 0xf87c7
callq 0x22ab0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq %r15, %rdi
movq 0x10(%rsp), %rsi
callq 0x5ed24
movq 0xa8(%r15), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x5de1a
movl $0x1a, %edx
movq %r12, %rdi
leaq 0x9aae9(%rip), %rsi     # 0xf87e9
jmp 0x5dded
cmpl $0x3, 0x1614(%rdi)
jb 0x5dd4a
movl $0x22, %edx
movq %r12, %rdi
leaq 0x9aae7(%rip), %rsi     # 0xf8804
callq 0x22ab0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq %r15, %rdi
movq 0x10(%rsp), %rsi
callq 0x60e62
movq 0xa8(%r15), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x5de1a
movl $0x1e, %edx
movq %r12, %rdi
leaq 0x9aaad(%rip), %rsi     # 0xf8827
jmp 0x5dded
cmpl $0x3, 0x1614(%rdi)
jb 0x5ddc1
movl $0x21, %edx
movq %r12, %rdi
leaq 0x9aab2(%rip), %rsi     # 0xf8846
callq 0x22ab0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq %r15, %rdi
movq 0x10(%rsp), %rsi
callq 0x62eee
movq 0xa8(%r15), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x5de1a
movl $0x1d, %edx
movq %r12, %rdi
leaq 0x9aa7b(%rip), %rsi     # 0xf8868
callq 0x22ab0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xa8(%r15), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x5de66
movl $0x23, %edx
movq %r12, %rdi
leaq 0x9aa4d(%rip), %rsi     # 0xf8886
callq 0x22ab0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
testb $0x1, %bpl
je 0x5cd30
incl 0xb0(%r15)
jmp 0x5cd30
leaq 0x957f6(%rip), %rdi     # 0xf3679
movq %rbx, %rsi
xorl %eax, %eax
callq 0x22f40
leaq 0x957e5(%rip), %rdi     # 0xf3679
movq %r13, %rsi
jmp 0x5de86
leaq (,%r13,2), %rax
addq %r13, %rax
shlq $0x4, %rax
movq %rax, 0x238(%rsp)
movq 0xa8(%r15), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x5df3b
movl $0x9, %edx
movq 0x1180dc(%rip), %r12    # 0x175fa8
movq %r12, %rdi
leaq 0x9a73d(%rip), %rsi     # 0xf8613
callq 0x22ab0
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq %r12, %rdi
callq 0x22ab0
movq %rax, %r12
movl $0x4, %edx
movq %rax, %rdi
leaq 0xa2d8f(%rip), %rsi     # 0x100c8c
callq 0x22ab0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r12, %rdi
callq 0x22ab0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq (%r15), %r12
movq 0x8(%r15), %rdx
subq %r12, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
cmpq %r13, %rdx
jbe 0x5e065
movq %rbx, %rbp
movq %r14, 0x48(%rsp)
movq (%r14), %r13
movq 0x40(%rsp), %rbx
movl (%rbx), %r14d
movl $0x0, (%rbx)
movq %r13, %rdi
leaq 0x58(%rsp), %rsi
callq 0x22760
cmpq %r13, 0x58(%rsp)
je 0x5e06a
movl (%rbx), %eax
testl %eax, %eax
je 0x5dfa6
cmpl $0x22, %eax
movq 0x50(%rsp), %r13
jne 0x5dfae
jmp 0x5e076
movl %r14d, (%rbx)
movq 0x50(%rsp), %r13
addq 0x238(%rsp), %r12
leaq 0x28(%rsp), %r14
movq %r14, 0x18(%rsp)
movq %rbp, %rbx
movq 0x20(%rbp), %rsi
movq 0x28(%rbp), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rbp
movq %rbp, %rdi
movsd %xmm0, 0x240(%rsp)
callq 0x3213c
movsd 0x240(%rsp), %xmm0
movsd %xmm0, 0x38(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
callq 0x4d068
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x5e015
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x22ad0
movq %rax, %rbx
movq 0x48(%rsp), %r14
addq $0x20, %r14
movq 0xa8(%r15), %rax
movq (%rax), %rdi
addq $0x18, %rdi
movl $0x15, 0x18(%rsp)
movq %rbp, %rsi
callq 0x6895a
cmpq 0x40(%rax), %r14
jne 0x5deb0
jmp 0x5cb32
jmp 0x5de7c
jmp 0x5de8d
jmp 0x5de8d
jmp 0x5de8d
leaq 0x946ca(%rip), %rdi     # 0xf273b
callq 0x225a0
leaq 0x946be(%rip), %rdi     # 0xf273b
callq 0x22e40
jmp 0x5de8d
movq %rax, %rbx
jmp 0x5e24a
movq %rax, %rbx
jmp 0x5e26f
movq %rax, %rbx
jmp 0x5e294
movq %rax, %rbx
jmp 0x5e2b6
movq %rax, %rbx
jmp 0x5e2db
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x5e0e4
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5e0e4
movq %rax, %rbx
jmp 0x5e2f8
movq %rax, %rbx
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x5e116
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5e116
movq %rax, %rbx
jmp 0x5e315
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x5e137
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5e137
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x5e158
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5e158
movq %rax, %rbx
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rax
cmpq %rax, %rdi
je 0x5e182
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5e182
movq %rax, %rbx
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x5e1ac
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5e1ac
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x5e1d6
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5e1d6
movq %rax, %rbx
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
je 0x5e200
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5e200
movq %rax, %rbx
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x5e225
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x5e24a
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1d8(%rsp), %rdi
leaq 0x1e8(%rsp), %rax
cmpq %rax, %rdi
je 0x5e26f
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x5e294
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x5e2b6
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0x5e2db
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x158(%rsp), %rdi
cmpq %r13, %rdi
je 0x5e2f8
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x218(%rsp), %rdi
cmpq %r14, %rdi
je 0x5e315
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x248(%rsp), %rdi
leaq 0x258(%rsp), %rax
cmpq %rax, %rdi
je 0x5e379
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x5e379
movq %rax, %rbx
jmp 0x5e225
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x5e379
movq 0x28(%rsp), %rsi
jmp 0x5e332
movq %rax, %rbx
movq 0x40(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x5e379
movl %r14d, (%rax)
jmp 0x5e379
movq %rax, %rbx
movq 0x40(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x5e379
movl %ebp, (%rax)
movq %rbx, %rdi
callq 0x23240
nop