// File: /workspace/github_cpp_makefile_star2_O3/richardposner[P]BioNetFit2/src/code/Pheromones.cpp
// Function: Pheromones::recvMessage(int, int, int, bool, std::unordered_multimap<int, Pheromones::swarmMessage, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<int const, Pheromones::swarmMessage>>>&, bool, int)
int Pheromones::recvMessage(signed int senderID, const int receiverID, int tag, bool block, swarmMsgHolder &messageHolder, bool eraseMessage, int messageID) {
	int numMessages = 0;
	std::string serializedMessage; //Raquel: moved this from inside the loop to here so it's not redeclared
	swarmMessage smessage;

	if (swarm_->options.useCluster) {
		//swarmMessage smessage;
		//std::string serializedMessage;
		//cout << "RRR recvMessage senderID: " << senderID << " receiverID: " << receiverID << " tag: " << tag <<endl;
		std::string msg;
		MPI_Status status;
		int flag = 0;

		while (1) {
			//std::cout << "rcv loop" << std::endl;
			//usleep(10000);

			MPI_Iprobe(MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &flag, &status);
			//MPI_Probe(MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
			//if(status == MPI_SUCCESS)
			if (flag==1) {
				//cout << "status tag: " << recvStatus->tag() << std::endl;
				//cout << "status source: " << recvStatus->source() << std::endl;
				//boost::optional<int> msgLength = recvStatus->count<char>();
				//char smChar[*msgLength];
				//char smChar[MAX_SWARM_MESSAGE_SIZE];
				//cout << "recvStatus->tag() " << recvStatus->tag() << " DONE_BREEDING " << DONE_BREEDING << endl;
				int count;

				MPI_Get_count(&status, MPI_CHAR, &count);


				if (swarm_->options.verbosity>=3) {
					cout << "message size " << count << endl;
				}
				//if (block) 
				if (swarm_->options.verbosity>=3) {
					cout << "trying a blocking receive to receiverID " << receiverID << " from senderID " << senderID  << endl;
				}
				//cout << "Tag: " << tag << "; smChar length: " << sizeof(smChar) << "; *msgLength: " << *msgLength << endl;
				//world_->recv(senderID, tag, smChar, *msgLength);
				//world_->recv(senderID, recvStatus->tag(), smChar, *msgLength);
					//world_->recv(senderID, recvStatus->tag(), msg);
				char *buffer = new char[count + 1];
				MPI_Recv(buffer, count, MPI_CHAR, status.MPI_SOURCE, status.MPI_TAG, MPI_COMM_WORLD, &status);
				buffer[count] = '\0';
				msg = std::string(buffer);
				delete [] buffer;
				//cout <<"RRR received message is smChar = " << smChar << endl;
				if (swarm_->options.verbosity>=3) {
					cout <<"RRR received message is = " << msg << endl;
					cout << "Message size is " << msg.length() << endl;
				}
				//world_->recv(boost::mpi::any_source, tag, *msgLength);
				block = false;
			    if (swarm_->options.verbosity>=3) {

			    	cout << "RRR passed receive step." << endl;
			    }

				//smessage = deserializeSwarmMessage(std::string(smChar));
				if(msg.length()>0){
					smessage = deserializeSwarmMessage(msg);


				}else{
				    if (swarm_->options.verbosity>=3) {

				    	cout << "MESSAGE EMPTY!!!" << endl;
				    }
					//smessage.tag = std::to_string(recvStatus->tag());
					//smessage.sender = senderID;
					//smessage.id = messageID;
				}
			    if (swarm_->options.verbosity>=3) {

			    	cout << "RRR deserialized message" << endl;
			    }
				msg.clear();
			    if (swarm_->options.verbosity>=3) {

			    	cout << "Cleaned serialized message" << endl;
			    }
				// If we have any messages in our messageHolder, let's process them
				//std::cout << "messageholder not empty: " << smessage.tag << ":" << smessage.sender << std::endl;

				// Make sure our message matches the sender, tag, and id we requested
				if ( (tag == -1 || tag == stoi(smessage.tag)) && (senderID == -1 || senderID == smessage.sender) && (messageID == -1 || messageID == smessage.id)) {
					// Insert the message into our message holder and increment numMessages
				    if (swarm_->options.verbosity>=3) {

				    	std::cout << "inserting message in the holder" << std::endl;
				    }
					messageHolder.insert(std::pair<int, swarmMessage>(stoi(smessage.tag), smessage));

					++numMessages;

					// If user doesn't want to erase the message, put it back in the queue
					if (!eraseMessage) {
					    if (swarm_->options.verbosity>=3) {

					    	std::cout << "Not erasing message" << std::endl;
					    }
						sendToSwarm(senderID, receiverID, stoi(smessage.tag), false, smessage.message);
					}

					// Clear out the smessage for next use
					clearSwarmMessage(smessage);
				}
				else {
				    if (swarm_->options.verbosity>=3) {

				    	std::cout << "putting it back in the queue..." << std::endl;
				    	std::cout << "@@@@@@@@@@@@@@@@@@@@@@@ Expected: " << tag << "; Received: " << smessage.tag << "@@@@@@@@@@@@@@@@@@@@@@@@@@" << std::endl;
				    }
					sendToSwarm(smessage.sender, receiverID, stoi(smessage.tag), false, smessage.message);

					if(tag == DONE_BREEDING && stoi(smessage.tag) == SIMULATION_END ){

						if(swarm_->options.verbosity >= 3){
							std::cout << "SENDER REINSERTED = " << smessage.sender << endl;
						}
						swarm_->fixRunningParticle(smessage.sender);

						std::vector<unsigned int> NewlyFinishedParticles = swarm_->checkMasterMessages();

						for(auto i = NewlyFinishedParticles.begin(); i!=NewlyFinishedParticles.end(); ++i){
							if (swarm_->options.verbosity>=3) {
						    	std::cout << "@@@@@@@@@@@@@@@@@@@@@@@ PROCESSING LATE PAR: " << *i << std::endl;
						    	std::cout << "from pheromones: " << swarm_->subparticleCurrParamSets_.size() << std::endl;
						    }
							std::map<std::string,double> mysimParams;
							int mid = fcalcMID(*i, swarm_->options.models.size());
							int pID = fcalcParID(*i, swarm_->options.models.size());

							auto fp = swarm_->options.models.at(mid)->freeParams_.begin();

							for (unsigned int j = 0; j < swarm_->subparticleCurrParamSets_[pID][mid].size(); j++) {
//								std::map<unsigned int, std::map<unsigned int, std::vector<double> > > subparticleCurrParamSets_;   //razi: PID, MID, PARAMA VALUESS

								//paramSet.insert(pair<string, double> (fp->first, subparticleCurrParamSets_[bestP][mid][i])); //make this work later, to clone the best particle
								mysimParams.insert(pair<std::string, double> (fp->first, swarm_->subparticleCurrParamSets_[pID][mid][j]));

								++fp;
							}
							swarm_->processLateParticles(mysimParams, *i, true, 0);

						}



					}
				}

				break;
			}
			else if (!block) {
				break;
			}
		}
	}
	else {
		//cout << "RAQUEL entering recvMessage entering while loop" << endl;
		//cout << "RAQUEL receiver ID: " << receiverID << " senderID: " << senderID << endl;
		unsigned int priority = 0;

		while(1) {
			//cout << "RAQUEL inside recvMessage entered while loop" << endl;

			message_queue::size_type recvd_size;

			char buffer[MAX_SWARM_MESSAGE_SIZE];
			//std::cout << "rcv loop" << std::endl;
			if (block) {
//std::cout << "trying a blocking receive to " << receiverID << " from " << senderID << std::endl;

				smq_[receiverID]->receive(buffer, sizeof(buffer), recvd_size, priority);
				buffer[recvd_size] = '\0';


				block = false;
//std::cout << "blocking receive to " << receiverID << " from " << senderID << " succeeded with recv_size of " << recvd_size << " and message of " << buffer << std::endl;
			}
			else {

//std::cout << "trying a non-blocking receive to " << receiverID << " from " << senderID << std::endl;
				bool hasMessage = smq_[receiverID]->try_receive(buffer, sizeof(buffer), recvd_size, priority);
				buffer[recvd_size] = '\0';

//std::cout << "non-blocking receive to " << receiverID << " from " << senderID << " succeeded with recv_size of " << recvd_size << " and bool of " << hasMessage << std::endl;
				if (!hasMessage) {
//std::cout << "breaking" << std::endl;
					break;
				}
			}
			// If we have any messages in our messageHolder, let's process them

			// De-serialize the smessage
			swarmMessage smessage = deserializeSwarmMessage(buffer);


sleep(1);

			//razi: uncomment later
			//std::cout << "smessage not empty: " << smessage.tag << std::endl;
			//std::cout << "tag: " << tag << ":" << smessage.tag << std::endl;
			//std::cout << "sender: " << tag << ":" << smessage.sender << std::endl;
			//std::cout << "id: " << tag << ":" << smessage.id << std::endl;

			// Make sure our message matches the sender, tag, and id we requested
			if ( (tag == -1 || stoi(smessage.tag) == tag) && (senderID == -1 || senderID == smessage.sender) && (messageID == -1 || messageID == smessage.id)) {
				// Insert the message into our message holder and increment numMessages
				messageHolder.insert(std::pair<int, swarmMessage>(stoi(smessage.tag), smessage));
//std::cout << "storing pair with tag of " << stoi(smessage.tag) << std::endl;
				++numMessages;

				// If user doesn't want to erase the message, put it back in the queue
				if (!eraseMessage) {
					//std::cout << "noerase" << std::endl;
					sendToSwarm(senderID, receiverID, tag, false, smessage.message);
				}
			}
			else {
				// If this isn't our message, put it back in the queue. This will go SLOW
				// unless we use a different queue for every particle

//std::cout << "putting it back in the queue..." << std::endl;
				sendToSwarm(smessage.sender, receiverID, stoi(smessage.tag), false, smessage.message, smessage.id);

				if (!block) {
					break;
				}
			}
		}
	}
	//cout << "RAQUEL inside recvMessage exiting with num messages: " << numMessages << endl;

	return numMessages;





}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5d8, %rsp            # imm = 0x5D8
movq %r9, 0x150(%rsp)
movl %r8d, %r13d
movl %ecx, 0x28(%rsp)
movl %esi, 0x1c(%rsp)
leaq 0x1b0(%rsp), %rax
movq %rax, -0x10(%rax)
xorl %ecx, %ecx
movq %rcx, -0x8(%rax)
movb %cl, (%rax)
leaq 0xb8(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rcx, -0x8(%rax)
movb %cl, (%rax)
leaq 0xd0(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %rcx, 0x10(%rax)
movq %rdi, 0x10(%rsp)
movq 0x50(%rdi), %rax
cmpb $0x1, 0x1631(%rax)
movl %edx, 0x20(%rsp)
jne 0x6d5ff
leaq 0x48(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
leaq 0x30(%rsp), %rbx
movl $0x0, (%rbx)
movq 0x1089a1(%rip), %r15    # 0x175f68
leaq 0xe8(%rsp), %r12
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r15, %rdx
movq %rbx, %rcx
movq %r12, %r8
callq 0x224b0
cmpl $0x1, 0x30(%rsp)
je 0x6da47
testb %r13b, %r13b
jne 0x6d5cf
xorl %r12d, %r12d
jmp 0x6e7ae
movq $0x0, 0x98(%rsp)
leaq 0x30(%rsp), %rax
movl $0x0, (%rax)
movslq %edx, %rax
movq %rax, 0x178(%rsp)
leaq 0x168(%rsp), %r14
leaq 0x60(%rsp), %r12
leaq 0x38(%rsp), %r15
leaq 0x158(%rsp), %rbp
movq 0x10(%rsp), %rax
movq 0x68(%rax), %rax
movq 0x178(%rsp), %rcx
movq (%rax,%rcx,8), %rbx
testb $0x1, %r13b
je 0x6d6c8
movl $0xfffffffe, 0xe8(%rsp) # imm = 0xFFFFFFFE
movabsq $0x7ffffffffffffffe, %rax # imm = 0x7FFFFFFFFFFFFFFE
movq %rax, 0x100(%rsp)
movq %r15, %rdi
leaq 0xe8(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0x7173e
movq %r15, (%rsp)
movl $0x3e8, %ecx            # imm = 0x3E8
movq %rbx, %rdi
xorl %esi, %esi
leaq 0x1f0(%rsp), %rdx
leaq 0x80(%rsp), %r8
leaq 0x30(%rsp), %r9
callq 0x71dae
movq 0x80(%rsp), %rax
movb $0x0, 0x1f0(%rsp,%rax)
xorl %r13d, %r13d
jmp 0x6d740
movl $0xfffffffe, 0xe8(%rsp) # imm = 0xFFFFFFFE
movabsq $0x7ffffffffffffffe, %rax # imm = 0x7FFFFFFFFFFFFFFE
movq %rax, 0x100(%rsp)
movq %r15, %rdi
leaq 0xe8(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0x7173e
movq %r15, (%rsp)
movl $0x3e8, %ecx            # imm = 0x3E8
movq %rbx, %rdi
movl $0x2, %esi
leaq 0x1f0(%rsp), %rdx
leaq 0x80(%rsp), %r8
leaq 0x30(%rsp), %r9
callq 0x71dae
movq 0x80(%rsp), %rcx
movb $0x0, 0x1f0(%rsp,%rcx)
testb %al, %al
je 0x6da3a
movq %r14, 0x158(%rsp)
leaq 0x1f0(%rsp), %rbx
movq %rbx, %rdi
callq 0x223a0
leaq (%rsp,%rax), %rdx
addq $0x1f0, %rdx            # imm = 0x1F0
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x321d2
movq %r15, %rdi
movq 0x10(%rsp), %rsi
movq %rbp, %rdx
callq 0x6d2f8
movq 0x158(%rsp), %rdi
cmpq %r14, %rdi
je 0x6d79b
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x229c0
movl $0x1, %edi
callq 0x22700
cmpl $-0x1, 0x28(%rsp)
je 0x6d819
movq 0x38(%rsp), %r15
callq 0x22070
movq %rax, %rbx
movl (%rax), %ebp
movl $0x0, (%rax)
movq %r15, %rdi
leaq 0x100(%rsp), %rsi
movl $0xa, %edx
callq 0x22d80
cmpq %r15, 0x100(%rsp)
je 0x6e855
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x6e849
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x6e849
testl %ecx, %ecx
jne 0x6d80f
movl %ebp, (%rbx)
cmpl 0x28(%rsp), %eax
jne 0x6d96c
movl 0x1c(%rsp), %ecx
cmpl $-0x1, %ecx
sete %al
movl 0x5c(%rsp), %ebx
cmpl %ecx, %ebx
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x6d970
cmpl $-0x1, 0x618(%rsp)
je 0x6d852
movl 0x618(%rsp), %eax
cmpl %eax, 0x58(%rsp)
jne 0x6d970
movq 0x38(%rsp), %r15
callq 0x22070
movq %rax, %rbx
movl (%rax), %ebp
movl $0x0, (%rax)
movq %r15, %rdi
leaq 0xe8(%rsp), %rsi
movl $0xa, %edx
callq 0x22d80
cmpq %r15, 0xe8(%rsp)
je 0x6e861
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
leaq 0x38(%rsp), %r15
jb 0x6e86d
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x6e86d
testl %ecx, %ecx
jne 0x6d8ba
movl %ebp, (%rbx)
movl %eax, 0x24(%rsp)
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
leaq 0x24(%rsp), %rsi
movq %r15, %rdx
callq 0x6eb86
movq 0x150(%rsp), %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x71fee
leaq 0x158(%rsp), %rbp
leaq 0x130(%rsp), %rdi
callq 0x31a0a
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x6d922
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x98(%rsp), %rax
incl %eax
movq %rax, 0x98(%rsp)
movb $0x1, %bl
cmpb $0x0, 0x610(%rsp)
jne 0x6da0d
movl $0xffffffff, (%rsp)     # imm = 0xFFFFFFFF
movq 0x10(%rsp), %rdi
movl 0x1c(%rsp), %esi
movl 0x20(%rsp), %edx
movl 0x28(%rsp), %ecx
xorl %r8d, %r8d
movq %r12, %r9
callq 0x6bac2
jmp 0x6da0d
movl 0x5c(%rsp), %ebx
movq 0x38(%rsp), %rbp
callq 0x22070
movq %rax, %r15
movl (%rax), %eax
movl %eax, 0x7c(%rsp)
movl $0x0, (%r15)
movq %rbp, %rdi
leaq 0x100(%rsp), %rsi
movl $0xa, %edx
callq 0x22d80
cmpq %rbp, 0x100(%rsp)
je 0x6e831
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
leaq 0x158(%rsp), %rbp
jb 0x6e83d
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x6e83d
testl %ecx, %ecx
jne 0x6d9e6
movl 0x7c(%rsp), %ecx
movl %ecx, (%r15)
movl 0x58(%rsp), %ecx
movl %ecx, (%rsp)
movq 0x10(%rsp), %rdi
movl %ebx, %esi
movl 0x20(%rsp), %edx
movl %eax, %ecx
xorl %r8d, %r8d
movq %r12, %r9
callq 0x6bac2
leaq 0x38(%rsp), %r15
movl %r13d, %ebx
movq %r12, %rdi
callq 0x31a0a
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x6da31
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x229c0
testb $0x1, %bl
jne 0x6d63b
movq 0x98(%rsp), %r12
jmp 0x6e7c5
movq 0x1084fa(%rip), %rsi    # 0x175f48
leaq 0xe8(%rsp), %rbx
leaq 0x24(%rsp), %rdx
movq %rbx, %rdi
callq 0x22e10
movq 0x10(%rsp), %r14
movq 0x50(%r14), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6db4d
movq 0x108528(%rip), %rdi    # 0x175fa8
leaq 0x8e00a(%rip), %rsi     # 0xfba91
movl $0xd, %edx
callq 0x22ab0
movl 0x24(%rsp), %esi
movq 0x10850c(%rip), %rdi    # 0x175fa8
callq 0x231e0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r15, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x50(%r14), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6db4d
movq 0x1084c9(%rip), %rdi    # 0x175fa8
leaq 0x8dfb9(%rip), %rsi     # 0xfba9f
movl $0x28, %edx
callq 0x22ab0
movq 0x1084b1(%rip), %rdi    # 0x175fa8
movl 0x20(%rsp), %esi
callq 0x231e0
movq %rax, %r15
leaq 0x8dfbe(%rip), %rsi     # 0xfbac8
movl $0xf, %edx
movq %rax, %rdi
callq 0x22ab0
movq %r15, %rdi
movl 0x1c(%rsp), %esi
callq 0x231e0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r15, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movslq 0x24(%rsp), %r12
leaq 0x1(%r12), %rdi
callq 0x22040
movq %rax, %r15
movl 0xe8(%rsp), %ecx
movl 0xec(%rsp), %r8d
movq %rbx, (%rsp)
movq 0x1083cf(%rip), %rdx    # 0x175f48
movq 0x1083e8(%rip), %r9     # 0x175f68
movq %rax, %rdi
movl %r12d, %esi
callq 0x227b0
movslq 0x24(%rsp), %rax
movb $0x0, (%r15,%rax)
leaq 0x200(%rsp), %r14
movq %r14, -0x10(%r14)
movq %r15, %rdi
callq 0x223a0
movq %r15, %rdx
addq %rax, %rdx
leaq 0x1f0(%rsp), %rdi
movq %r15, %rsi
callq 0x321d2
leaq 0x38(%rsp), %rdi
leaq 0x1f0(%rsp), %rbx
movq %rbx, %rsi
callq 0x22bb0
movq (%rbx), %rdi
cmpq %r14, %rdi
movq 0x10(%rsp), %rbx
je 0x6dbf1
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %r15, %rdi
callq 0x22c60
movq 0x50(%rbx), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6dd0d
movq 0x108397(%rip), %rdi    # 0x175fa8
leaq 0x8dec0(%rip), %rsi     # 0xfbad8
movl $0x1a, %edx
callq 0x22ab0
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x108375(%rip), %rdi    # 0x175fa8
callq 0x22ab0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %rbx, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x10833f(%rip), %rdi    # 0x175fa8
leaq 0x8de83(%rip), %rsi     # 0xfbaf3
movl $0x10, %edx
callq 0x22ab0
movq 0x40(%rsp), %rsi
movq 0x108322(%rip), %rdi    # 0x175fa8
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 0x10(%rsp), %rax
movq 0x50(%rax), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6dd0d
movq 0x1082da(%rip), %rbx    # 0x175fa8
leaq 0x8de2f(%rip), %rsi     # 0xfbb04
movl $0x18, %edx
movq %rbx, %rdi
callq 0x22ab0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x1082a8(%rip), %rdi    # 0x175fa8
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x40(%rsp), %rdx
testq %rdx, %rdx
je 0x6ddfc
leaq 0x190(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x38(%rsp), %rsi
addq %rsi, %rdx
leaq 0x180(%rsp), %rdi
callq 0x3213c
movq 0x10(%rsp), %rsi
leaq 0x1f0(%rsp), %rdi
leaq 0x180(%rsp), %rdx
callq 0x6d2f8
leaq 0xa8(%rsp), %rbx
leaq 0x1f0(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x22bb0
movq 0x20(%r15), %rax
movq %rax, 0x20(%rbx)
leaq 0x218(%rsp), %r15
movq 0x38(%rbx), %rax
movups (%r15), %xmm0
movq 0x10(%r15), %rcx
movq %rcx, 0x38(%rbx)
movups 0x28(%rbx), %xmm1
movups %xmm0, 0x28(%rbx)
leaq 0x100(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq $0x0, 0x10(%r15)
callq 0x31a0a
movq %r15, %rdi
callq 0x31a0a
movq -0x28(%r15), %rdi
cmpq %r14, %rdi
je 0x6dddd
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x180(%rsp), %rdi
cmpq %r13, %rdi
je 0x6de54
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x6de54
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6de54
movq 0x108193(%rip), %rbx    # 0x175fa8
leaq 0x8dd01(%rip), %rsi     # 0xfbb1d
movl $0x10, %edx
movq %rbx, %rdi
callq 0x22ab0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x108161(%rip), %rdi    # 0x175fa8
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6deac
movq 0x10813b(%rip), %rbx    # 0x175fa8
leaq 0x8dcba(%rip), %rsi     # 0xfbb2e
movl $0x18, %edx
movq %rbx, %rdi
callq 0x22ab0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x108109(%rip), %rdi    # 0x175fa8
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq $0x0, 0x40(%rsp)
movq 0x38(%rsp), %rax
movb $0x0, (%rax)
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6df15
movq 0x1080d2(%rip), %rbx    # 0x175fa8
leaq 0x8dc6a(%rip), %rsi     # 0xfbb47
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x22ab0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x1080a0(%rip), %rdi    # 0x175fa8
callq 0x22050
movq %rax, %rdi
callq 0x22660
movabsq $-0x100000000, %rbp     # imm = 0xFFFFFFFF00000000
cmpl $-0x1, 0x28(%rsp)
je 0x6df8a
movq 0xa8(%rsp), %rbx
callq 0x22070
movq %rax, %r15
movl (%rax), %r14d
movl $0x0, (%rax)
leaq 0x1f0(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x22d80
cmpq %rbx, (%r12)
je 0x6e8a2
leaq -0x80000000(%rax), %rcx
cmpq %rbp, %rcx
jb 0x6e8ae
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x6e8ae
testl %ecx, %ecx
jne 0x6df84
movl %r14d, (%r15)
cmpl 0x28(%rsp), %eax
jne 0x6dfc0
cmpl $-0x1, 0x1c(%rsp)
je 0x6df9e
movl 0x1c(%rsp), %eax
cmpl %eax, 0xcc(%rsp)
jne 0x6dfc0
cmpl $-0x1, 0x618(%rsp)
je 0x6e563
movl 0x618(%rsp), %eax
cmpl %eax, 0xc8(%rsp)
je 0x6e563
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6e0b1
movq 0x107fcb(%rip), %rbx    # 0x175fa8
leaq 0x8dbb2(%rip), %rsi     # 0xfbb96
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x22ab0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x107f99(%rip), %rdi    # 0x175fa8
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x107f85(%rip), %rdi    # 0x175fa8
leaq 0x8db8c(%rip), %rsi     # 0xfbbb6
movl $0x22, %edx
callq 0x22ab0
movq 0x107f6d(%rip), %rdi    # 0x175fa8
movl 0x28(%rsp), %esi
callq 0x231e0
movq %rax, %rbx
leaq 0x8db8b(%rip), %rsi     # 0xfbbd9
movl $0xc, %edx
movq %rax, %rdi
callq 0x22ab0
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
movq %rbx, %rdi
callq 0x22ab0
movq %rax, %rbx
leaq 0x916ed(%rip), %rsi     # 0xff76a
movl $0x1a, %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
movl 0xcc(%rsp), %ebx
movq 0xa8(%rsp), %r12
callq 0x22070
movq %rax, %r15
movl (%rax), %r14d
movl $0x0, (%rax)
leaq 0x1f0(%rsp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x22d80
cmpq %r12, (%r13)
je 0x6e88a
leaq -0x80000000(%rax), %rcx
cmpq %rbp, %rcx
jb 0x6e896
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x6e896
testl %ecx, %ecx
movq 0x10(%rsp), %rdi
jne 0x6e11b
movl %r14d, (%r15)
movl $0xffffffff, (%rsp)     # imm = 0xFFFFFFFF
xorl %r12d, %r12d
movl %ebx, %esi
movl 0x20(%rsp), %edx
movl %eax, %ecx
xorl %r8d, %r8d
leaq 0xd0(%rsp), %r9
callq 0x6bac2
cmpl $0x11, 0x28(%rsp)
jne 0x6e559
movq 0xa8(%rsp), %rbx
movl (%r15), %r14d
movl $0x0, (%r15)
leaq 0x1f0(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x22d80
cmpq %rbx, (%r12)
je 0x6e8ba
leaq -0x80000000(%rax), %rcx
cmpq %rbp, %rcx
jb 0x6e8c6
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x6e8c6
testl %ecx, %ecx
leaq 0x48(%rsp), %rbp
movq 0x10(%rsp), %rcx
movl $0x0, %r12d
jne 0x6e1af
movl %r14d, (%r15)
cmpl $0xd, %eax
jne 0x6e7ae
movq 0x50(%rcx), %rdi
cmpl $0x3, 0x1614(%rdi)
jb 0x6e223
movq 0x107ddc(%rip), %rdi    # 0x175fa8
leaq 0x8da13(%rip), %rsi     # 0xfbbe6
movl $0x14, %edx
callq 0x22ab0
movl 0xcc(%rsp), %esi
movq 0x107dbd(%rip), %rdi    # 0x175fa8
callq 0x231e0
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 0x10(%rsp), %rax
movq 0x50(%rax), %rdi
movl 0xcc(%rsp), %esi
callq 0x95896
movq 0x10(%rsp), %r12
movq 0x50(%r12), %rsi
leaq 0x80(%rsp), %rdi
callq 0x8d5d8
movq 0x80(%rsp), %r14
cmpq 0x88(%rsp), %r14
je 0x6e52d
movq 0x107d45(%rip), %r15    # 0x175fa8
leaq 0x100(%rsp), %rbp
movq 0x50(%r12), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6e31d
movl $0x2d, %edx
movq %r15, %rdi
leaq 0x8d96f(%rip), %rsi     # 0xfbbfb
callq 0x22ab0
movl (%r14), %esi
movq %r15, %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
movl $0x11, %edx
movq %r15, %rdi
leaq 0x8d954(%rip), %rsi     # 0xfbc29
callq 0x22ab0
movq 0x50(%r12), %rax
movq 0x1488(%rax), %rsi
movq %r15, %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 0x50(%r12), %rax
movl $0x0, 0x1f8(%rsp)
xorl %edx, %edx
movq %rdx, 0x200(%rsp)
leaq 0x1f8(%rsp), %rcx
movq %rcx, 0x208(%rsp)
movq %rcx, 0x210(%rsp)
movq %rdx, 0x218(%rsp)
movl (%r14), %edi
movq 0x15c8(%rax), %rsi
subq 0x15c0(%rax), %rsi
shrq $0x3, %rsi
callq 0xbe994
movl %eax, %ebx
movl (%r14), %edi
movq 0x50(%r12), %rax
movq 0x15c8(%rax), %rsi
subq 0x15c0(%rax), %rsi
shrq $0x3, %rsi
callq 0xbe99e
movl %eax, %r13d
movq %r14, 0x28(%rsp)
movq 0x50(%r12), %rdi
movslq %ebx, %rbx
movq 0x15c0(%rdi), %rax
movq 0x15c8(%rdi), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rbx, %rdx
jbe 0x6e879
movq (%rax,%rbx,8), %rax
movq 0x48(%rax), %r15
xorl %r14d, %r14d
addq $0x1460, %rdi           # imm = 0x1460
movl %r13d, 0x100(%rsp)
movq %rbp, %rsi
callq 0x6ec24
movl %ebx, 0x34(%rsp)
movq %rax, %rdi
leaq 0x34(%rsp), %rsi
callq 0x6ec8a
movl %r14d, %r14d
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x3, %rcx
cmpq %r14, %rcx
jbe 0x6e4bf
movq 0x50(%r12), %rdi
movl $0x1460, %eax           # imm = 0x1460
addq %rax, %rdi
movl %r13d, 0x34(%rsp)
leaq 0x34(%rsp), %rsi
callq 0x6ec24
movl %ebx, 0xa4(%rsp)
movq %rax, %rdi
leaq 0xa4(%rsp), %rsi
callq 0x6ec8a
movq (%rax), %r12
leaq 0x110(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x3213c
movsd (%r12,%r14,8), %xmm0
movsd %xmm0, 0x120(%rsp)
leaq 0x1f0(%rsp), %rdi
movq %rbp, %rsi
callq 0x4d068
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
movq 0x10(%rsp), %r12
je 0x6e4a7
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %r15, %rdi
callq 0x22670
movq %rax, %r15
incl %r14d
movq 0x50(%r12), %rdi
jmp 0x6e3c6
movq 0x50(%r12), %rbx
leaq 0x1c0(%rsp), %r13
movq %r13, %rdi
leaq 0x1f0(%rsp), %rsi
callq 0x51772
movq 0x28(%rsp), %r14
movl (%r14), %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x9022a
movq 0x107aaa(%rip), %r15    # 0x175fa8
movq %r13, %rdi
callq 0x4a472
leaq 0x1f0(%rsp), %rdi
callq 0x4a472
addq $0x4, %r14
cmpq 0x88(%rsp), %r14
jne 0x6e26b
movq 0x80(%rsp), %r14
testq %r14, %r14
leaq 0x48(%rsp), %rbp
movl $0x0, %r12d
je 0x6e7ae
movq 0x90(%rsp), %rsi
subq %r14, %rsi
movq %r14, %rdi
callq 0x229c0
jmp 0x6e7ae
leaq 0x48(%rsp), %rbp
jmp 0x6e7ae
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6e5bb
movq 0x107a2c(%rip), %rbx    # 0x175fa8
leaq 0x8d5df(%rip), %rsi     # 0xfbb62
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x22ab0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x1079fa(%rip), %rdi    # 0x175fa8
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xa8(%rsp), %rbx
callq 0x22070
movq %rax, %r15
movl (%rax), %r14d
movl $0x0, (%rax)
leaq 0x100(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x22d80
cmpq %rbx, (%r12)
je 0x6e8d2
leaq -0x80000000(%rax), %rcx
cmpq %rbp, %rcx
jb 0x6e8de
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x6e8de
testl %ecx, %ecx
jne 0x6e619
movl %r14d, (%r15)
leaq 0x80(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x1f0(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
callq 0x6eb86
leaq 0x1f0(%rsp), %rdx
movq 0x150(%rsp), %rdi
xorl %esi, %esi
callq 0x71fee
leaq 0x220(%rsp), %rbx
movq %rbx, %rdi
callq 0x31a0a
movq -0x28(%rbx), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0x6e680
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x229c0
cmpb $0x0, 0x610(%rsp)
jne 0x6e741
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x6e6c4
movq 0x107901(%rip), %rdi    # 0x175fa8
leaq 0x8d4d4(%rip), %rsi     # 0xfbb82
movl $0x13, %edx
callq 0x22ab0
movq 0x1078e9(%rip), %rdi    # 0x175fa8
callq 0x22430
movq 0xa8(%rsp), %rbx
movl (%r15), %r14d
movl $0x0, (%r15)
leaq 0x1f0(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x22d80
cmpq %rbx, (%r12)
je 0x6e8ea
leaq -0x80000000(%rax), %rcx
cmpq %rbp, %rcx
movl 0x20(%rsp), %edx
jb 0x6e8f6
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x6e8f6
testl %ecx, %ecx
movq 0x10(%rsp), %rdi
jne 0x6e724
movl %r14d, (%r15)
movl $0xffffffff, (%rsp)     # imm = 0xFFFFFFFF
movl 0x1c(%rsp), %esi
movl %eax, %ecx
xorl %r8d, %r8d
leaq 0xd0(%rsp), %r9
callq 0x6bac2
xorl %eax, %eax
movq %rax, 0xb0(%rsp)
movq 0xa8(%rsp), %rcx
movb $0x0, (%rcx)
movq %rax, 0xc8(%rsp)
movq 0xd0(%rsp), %rbx
movq 0xd8(%rsp), %r14
movl $0x1, %r12d
cmpq %rbx, %r14
leaq 0x48(%rsp), %rbp
je 0x6e7ae
leaq 0x10(%rbx), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x6e796
movq (%r15), %rsi
incq %rsi
callq 0x229c0
leaq 0x20(%r15), %rax
addq $0x10, %r15
cmpq %r14, %r15
movq %rax, %r15
jne 0x6e782
movq %rbx, 0xd8(%rsp)
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6e7c5
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xd0(%rsp), %rdi
callq 0x31a0a
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6e7f7
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x6e81c
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x229c0
movl %r12d, %eax
addq $0x5d8, %rsp            # imm = 0x5D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x83ef9(%rip), %rdi     # 0xf2731
callq 0x225a0
leaq 0x83eed(%rip), %rdi     # 0xf2731
callq 0x22e40
leaq 0x83ee1(%rip), %rdi     # 0xf2731
callq 0x22e40
leaq 0x83ed5(%rip), %rdi     # 0xf2731
callq 0x225a0
leaq 0x83ec9(%rip), %rdi     # 0xf2731
callq 0x225a0
leaq 0x83ebd(%rip), %rdi     # 0xf2731
callq 0x22e40
leaq 0x84df9(%rip), %rdi     # 0xf3679
movq %rbx, %rsi
xorl %eax, %eax
callq 0x22f40
leaq 0x83ea0(%rip), %rdi     # 0xf2731
callq 0x225a0
leaq 0x83e94(%rip), %rdi     # 0xf2731
callq 0x22e40
leaq 0x83e88(%rip), %rdi     # 0xf2731
callq 0x225a0
leaq 0x83e7c(%rip), %rdi     # 0xf2731
callq 0x22e40
leaq 0x83e70(%rip), %rdi     # 0xf2731
callq 0x225a0
leaq 0x83e64(%rip), %rdi     # 0xf2731
callq 0x22e40
leaq 0x83e58(%rip), %rdi     # 0xf2731
callq 0x225a0
leaq 0x83e4c(%rip), %rdi     # 0xf2731
callq 0x22e40
leaq 0x83e40(%rip), %rdi     # 0xf2731
callq 0x225a0
leaq 0x83e34(%rip), %rdi     # 0xf2731
callq 0x22e40
jmp 0x6e949
movq %rax, %r12
leaq 0x1f0(%rsp), %rdi
callq 0x6ebfc
jmp 0x6e99b
jmp 0x6e998
jmp 0x6e998
jmp 0x6e949
movq %rax, %r12
movq 0x180(%rsp), %rdi
cmpq %r13, %rdi
je 0x6e99b
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x6e99b
jmp 0x6e998
jmp 0x6e949
jmp 0x6e998
jmp 0x6e949
movq %rax, %r12
cmpl $0x0, (%r15)
jne 0x6e99b
movl %r14d, (%r15)
jmp 0x6e99b
jmp 0x6ea44
movq %rax, %r12
leaq 0x1c0(%rsp), %rdi
callq 0x4a472
jmp 0x6ea47
jmp 0x6ea44
jmp 0x6ea44
jmp 0x6ea44
jmp 0x6e998
movq %rax, %r12
leaq 0x100(%rsp), %rdi
callq 0x6ebfc
jmp 0x6ea08
jmp 0x6ea05
jmp 0x6e9e7
movq %rax, %r12
leaq 0x48(%rsp), %rbp
jmp 0x6ea76
movq %rax, %r12
leaq 0x48(%rsp), %rbp
jmp 0x6ea59
movq %rax, %r12
jmp 0x6ea76
jmp 0x6e9df
movq %rax, %r12
movq 0x158(%rsp), %rdi
cmpq %r14, %rdi
je 0x6ea8d
movq 0x168(%rsp), %rsi
jmp 0x6ea85
jmp 0x6e9df
movq %rax, %r12
jmp 0x6ea8d
movq %rax, %r12
cmpl $0x0, (%rbx)
jne 0x6ea08
movl %ebp, (%rbx)
jmp 0x6ea08
movq %rax, %r12
cmpl $0x0, (%r15)
jne 0x6ea08
movl 0x7c(%rsp), %eax
movl %eax, (%r15)
jmp 0x6ea08
movq %rax, %r12
leaq 0x38(%rsp), %rdi
callq 0x6eb5e
jmp 0x6ea8d
movq %rax, %r12
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x6ea47
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x6ea47
jmp 0x6ea44
jmp 0x6ea44
jmp 0x6ea44
movq %rax, %r12
leaq 0x48(%rsp), %rbp
leaq 0x1f0(%rsp), %rdi
callq 0x4a472
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x6ea76
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x229c0
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6ea8d
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xa8(%rsp), %rdi
callq 0x6eb5e
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x6eabf
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %r12, %rdi
callq 0x23240
nop