// File: /workspace/github_cpp_makefile_star2_O1/devanshdalal[P]cloud-computing-concepts-part-2/MP2Node.cpp
// Function: MP2Node::checkMessages()
void MP2Node::checkMessages()
{
	/*
	 * Implement this. Parts of it are already implemented
	 */
	char *data;
	int size;

	/*
	 * Declare your local variables here
	 */

	// dequeue all messages and handle them
	while (!memberNode->mp2q.empty())
	{
		/*
		 * Pop a message from the queue
		 */
		data = (char *)memberNode->mp2q.front().elt;
		size = memberNode->mp2q.front().size;
		memberNode->mp2q.pop();

		string message(data, data + size);

		/*
		 * Handle the message types here
		 */
		// std::cout << "message:" << message << "\n";
		Message msg(message);
		// {CREATE, READ, UPDATE, DELETE, REPLY, READREPLY};
		switch (msg.type)
		{
		case MessageType::READ:
		{
			const auto &key = msg.key;
			const auto value = readKey(key);
			std::cout << "MessageType::READ on " << memberNode->addr.getAddress()
					  << " from " << msg.fromAddr.getAddress()
					  << " " << key << ", " << value << "\n";
			if (not value.empty())
			{
				log->logReadSuccess(&(memberNode->addr), false /*is_coordinator*/, msg.transID, key, value);
				auto reply = Message(msg.transID, memberNode->addr, value);
				// std::cout << "reply.toString(): " << reply.toString() << "\n";
				emulNet->ENsend(&(memberNode->addr), &(msg.fromAddr), reply.toString());
			}
			else
			{
				log->logReadFail(&(memberNode->addr), false /*is_coordinator*/, msg.transID, key);
			}
			break;
		}
		case MessageType::UPDATE:
		{
			const auto &key = msg.key;
			const auto &value = msg.value;
			const auto &replica = msg.replica;
			if (updateKeyValue(key, value, replica))
			{
				if (msg.transID >= 0)
				{
					log->logUpdateSuccess(&(memberNode->addr), false /*is_coordinator*/, msg.transID, key, value);
					auto reply = Message(msg.transID, memberNode->addr, MessageType::REPLY, true);
					emulNet->ENsend(&(memberNode->addr), &(msg.fromAddr), reply.toString());
				}
			}
			else
			{
				log->logUpdateFail(&(memberNode->addr), false /*is_coordinator*/, msg.transID, key, value);
			}
			break;
		}
		case MessageType::CREATE:
		{
			const auto &key = msg.key;
			const auto &value = msg.value;
			const auto &replica = msg.replica;
			// std::cout << "MessageType::CREATE/UPDATE on " << memberNode->addr.getAddress()
			// 		  << " from " << msg.fromAddr.getAddress() << " key: "
			// 		  << key << "," << msg.replica << "\n";
			createKeyValue(key, value, replica);
			if (msg.transID >= 0)
			{
				log->logCreateSuccess(&(memberNode->addr), false /*is_coordinator*/, msg.transID, key, value);
				auto reply = Message(msg.transID, memberNode->addr, MessageType::REPLY, true);
				emulNet->ENsend(&(memberNode->addr), &(msg.fromAddr), reply.toString());
			}
			break;
		}
		case MessageType::DELETE:
		{
			const auto &key = msg.key;
			if (deletekey(key))
			{
				log->logDeleteSuccess(&(memberNode->addr), false /*is_coordinator*/, msg.transID, key);
				auto reply = Message(msg.transID, memberNode->addr, MessageType::REPLY, true);
				emulNet->ENsend(&(memberNode->addr), &(msg.fromAddr), reply.toString());
			}
			else
			{
				log->logDeleteFail(&(memberNode->addr), false /*is_coordinator*/, msg.transID, key);
			}
			break;
		}
		case MessageType::READREPLY:
		{
			auto it = local_state_.find(msg.transID);
			// for (auto &v : local_state_)
			// {
			// 	std::cout << "v: " << v.first << "???" << v.second.key << "\n";
			// }
			if (it != local_state_.end())
			{
				const auto &key = it->second.key;
				auto &value = it->second.value;
				auto &replies = it->second.replies;
				std::cout << "MessageType::READREPLY on " << memberNode->addr.getAddress()
						  << " from " << msg.fromAddr.getAddress() << " key: "
						  << key << "," << msg.value << "\n";
				if (value.empty())
				{
					value = msg.value;
				}
				++replies;
				if (replies >= READ_QUORUM)
				{
					// READ success
					log->logReadSuccess(&(memberNode->addr), true /*is_coordinator*/, msg.transID, key, value);
					local_state_.erase(it);
				}
			}
			break;
		}
		case MessageType::REPLY:
		{
			auto it = local_state_.find(msg.transID);
			if (it != local_state_.end())
			{
				auto &state = it->second;
				const auto &key = state.key;
				const auto &value = state.value;
				auto &replies = state.replies;
				std::cout << "MessageType::REPLY for " << memberNode->addr.getAddress()
						  << " from " << msg.fromAddr.getAddress() << " key: "
						  << key << "," << value << "," << msg.type << "\n";
				++replies;
				if (replies >= WRITE_QUORUM)
				{
					// READ success
					// std::cout << "log->logCreateSuccess\n";
					if (state.type == MessageType::CREATE)
					{
						log->logCreateSuccess(&(memberNode->addr), true /*is_coordinator*/, msg.transID, key, value);
					}
					else if (state.type == MessageType::UPDATE)
					{
						log->logUpdateSuccess(&(memberNode->addr), true /*is_coordinator*/, msg.transID, key, value);
					}
					else if (state.type == MessageType::DELETE)
					{
						log->logDeleteSuccess(&(memberNode->addr), true /*is_coordinator*/, msg.transID, key);
					}
					local_state_.erase(it);
				}
			}

			break;
		}

		default:
			break;
		}
	}

	/*
	 * This function should also ensure all READ and UPDATE operation
	 * get QUORUM replies
	 */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x548, %rsp            # imm = 0x548
movq %rdi, 0x8(%rsp)
movq 0x60(%rdi), %rdi
movq 0xa8(%rdi), %rax
cmpq %rax, 0xc8(%rdi)
je 0x12db4
movq 0x8(%rsp), %rdx
leaq 0x80(%rdx), %rcx
movq %rcx, 0x120(%rsp)
leaq 0x88(%rdx), %rbx
addq $0x98, %rdi
movq (%rax), %r14
movslq 0x8(%rax), %r15
callq 0x6258
addq %r14, %r15
leaq 0x138(%rsp), %rax
movq %rax, 0x128(%rsp)
leaq 0x128(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xbb34
leaq 0x4a0(%rsp), %rax
movq %rax, 0x490(%rsp)
movq 0x128(%rsp), %rsi
movq 0x130(%rsp), %rdx
addq %rsi, %rdx
leaq 0x490(%rsp), %r14
movq %r14, %rdi
callq 0xbb34
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x1609c
movq 0x490(%rsp), %rdi
leaq 0x4a0(%rsp), %rax
cmpq %rax, %rdi
je 0x11a37
movq 0x4a0(%rsp), %rsi
incq %rsi
callq 0x3280
movl 0x30(%rsp), %eax
cmpq $0x5, %rax
ja 0x12d15
leaq 0x7244(%rip), %rcx      # 0x18c90
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x200(%rsp), %rax
movq %rax, 0x1f0(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1f0(%rsp), %rdi
callq 0xbb34
leaq 0x3a0(%rsp), %rax
movq %rax, 0x390(%rsp)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x390(%rsp), %r14
movq %r14, %rdi
callq 0xbb34
movl 0x34(%rsp), %ecx
movq 0x8(%rsp), %rdi
leaq 0x1f0(%rsp), %rsi
movq %r14, %rdx
callq 0x1115a
movq 0x390(%rsp), %rdi
leaq 0x3a0(%rsp), %rax
cmpq %rax, %rdi
je 0x11aea
movq 0x3a0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
je 0x11b0f
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x3280
movl 0x80(%rsp), %r15d
testl %r15d, %r15d
js 0x12d15
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r14
movq 0x78(%rax), %r12
leaq 0x1e0(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1d0(%rsp), %rdi
callq 0xbb34
leaq 0x380(%rsp), %rax
movq %rax, 0x370(%rsp)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x370(%rsp), %r13
movq %r13, %rdi
callq 0xbb34
addq $0x8, %r14
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
movl %r15d, %ecx
leaq 0x1d0(%rsp), %r8
movq %r13, %r9
callq 0xc588
movq 0x370(%rsp), %rdi
leaq 0x380(%rsp), %rax
cmpq %rax, %rdi
je 0x11bc8
movq 0x380(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x11bed
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x3280
movl 0x80(%rsp), %r14d
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rsi
addq $0x8, %rsi
leaq 0x53c(%rsp), %r15
movq %r15, %rdi
callq 0xce50
leaq 0xa8(%rsp), %r12
movq %r12, %rdi
movl %r14d, %esi
movq %r15, %rdx
movl $0x4, %ecx
movl $0x1, %r8d
callq 0x16a1c
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r14
movq 0x70(%rax), %r15
leaq 0x4d0(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x16bf4
addq $0x8, %r14
movq %r15, %rdi
movq %r14, %rsi
leaq 0x78(%rsp), %rdx
movq %r13, %rcx
callq 0x6b8c
movq 0x4d0(%rsp), %rdi
leaq 0x4e0(%rsp), %rax
cmpq %rax, %rdi
je 0x12303
movq 0x4e0(%rsp), %rsi
jmp 0x122fb
movq 0x8(%rsp), %rax
movq 0x90(%rax), %rcx
movq %rbx, %rdi
movq %rbx, %rax
testq %rcx, %rcx
je 0x11cc8
movl 0x80(%rsp), %edx
movq %rdi, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x11cb1
movq %rdi, %r15
cmpq %rdi, %rax
je 0x11ce1
movl 0x80(%rsp), %ecx
cmpl 0x20(%rax), %ecx
cmovlq %rdi, %rax
movq %rax, %r15
cmpq %rdi, %r15
je 0x12d15
movl $0x17, %edx
movq 0xe2da(%rip), %rdi      # 0x1ffd0
leaq 0x7041(%rip), %rsi      # 0x18d3e
callq 0x32d0
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rsi
addq $0x8, %rsi
leaq 0xa8(%rsp), %rdi
callq 0xb51c
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
movq 0xe29d(%rip), %rdi      # 0x1ffd0
callq 0x32d0
movq %rax, %r14
movl $0x6, %edx
movq %rax, %rdi
leaq 0x6fcd(%rip), %rsi      # 0x18d17
callq 0x32d0
leaq 0x10(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0xb51c
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r14, %rdi
callq 0x32d0
movq %rax, %r14
movl $0x6, %edx
movq %rax, %rdi
leaq 0x68f4(%rip), %rsi      # 0x18676
callq 0x32d0
movq 0x30(%r15), %rsi
movq 0x38(%r15), %rdx
movq %r14, %rdi
callq 0x32d0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x6f93(%rip), %rsi      # 0x18d3c
callq 0x32d0
movq 0x50(%r15), %rsi
movq 0x58(%r15), %rdx
movq %r14, %rdi
callq 0x32d0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x6f6c(%rip), %rsi      # 0x18d3c
callq 0x32d0
movl 0x30(%rsp), %esi
movq %r14, %rdi
callq 0x3450
movl $0x1, %edx
movq %rax, %rdi
leaq 0x6505(%rip), %rsi      # 0x182f5
callq 0x32d0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x11e11
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x11e36
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x78(%r15), %rax
incq %rax
movq %rax, 0x78(%r15)
cmpq $0x2, %rax
jb 0x12d15
movl 0x28(%r15), %eax
cmpl $0x3, %eax
je 0x12c86
cmpl $0x2, %eax
je 0x12bc5
testl %eax, %eax
jne 0x12d05
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r14
movq 0x78(%rax), %r12
movl 0x80(%rsp), %r13d
leaq 0x340(%rsp), %rax
movq %rax, 0x330(%rsp)
movq 0x30(%r15), %rsi
movq 0x38(%r15), %rdx
addq %rsi, %rdx
leaq 0x330(%rsp), %rdi
callq 0xbb34
leaq 0x320(%rsp), %rax
movq %rax, 0x310(%rsp)
movq 0x50(%r15), %rsi
movq 0x58(%r15), %rdx
addq %rsi, %rdx
leaq 0x310(%rsp), %rbp
movq %rbp, %rdi
callq 0xbb34
addq $0x8, %r14
movq %r12, %rdi
movq %r14, %rsi
movl $0x1, %edx
movl %r13d, %ecx
leaq 0x330(%rsp), %r8
movq %rbp, %r9
callq 0xc588
movq 0x310(%rsp), %rdi
leaq 0x320(%rsp), %rax
cmpq %rax, %rdi
je 0x11f18
movq 0x320(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x330(%rsp), %rdi
leaq 0x340(%rsp), %rcx
jmp 0x12cf2
leaq 0x260(%rsp), %rax
movq %rax, 0x250(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x250(%rsp), %rdi
callq 0xbb34
leaq 0x400(%rsp), %rax
movq %rax, 0x3f0(%rsp)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x3f0(%rsp), %r14
movq %r14, %rdi
callq 0xbb34
movl 0x34(%rsp), %ecx
movq 0x8(%rsp), %rdi
leaq 0x250(%rsp), %rsi
movq %r14, %rdx
callq 0x11582
movl %eax, %r14d
movq 0x3f0(%rsp), %rdi
leaq 0x400(%rsp), %rax
cmpq %rax, %rdi
je 0x11fc5
movq 0x400(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x250(%rsp), %rdi
leaq 0x260(%rsp), %rax
cmpq %rax, %rdi
je 0x11fea
movq 0x260(%rsp), %rsi
incq %rsi
callq 0x3280
testb %r14b, %r14b
je 0x12a53
movl 0x80(%rsp), %r15d
testl %r15d, %r15d
js 0x12d15
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r14
movq 0x78(%rax), %r12
leaq 0x240(%rsp), %rax
movq %rax, 0x230(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x230(%rsp), %rdi
callq 0xbb34
leaq 0x3e0(%rsp), %rax
movq %rax, 0x3d0(%rsp)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x3d0(%rsp), %r13
movq %r13, %rdi
callq 0xbb34
addq $0x8, %r14
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
movl %r15d, %ecx
leaq 0x230(%rsp), %r8
movq %r13, %r9
callq 0xc76c
movq 0x3d0(%rsp), %rdi
leaq 0x3e0(%rsp), %rax
cmpq %rax, %rdi
je 0x120ac
movq 0x3e0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x230(%rsp), %rdi
leaq 0x240(%rsp), %rax
cmpq %rax, %rdi
je 0x120d1
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x3280
movl 0x80(%rsp), %r14d
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rsi
addq $0x8, %rsi
leaq 0x542(%rsp), %r15
movq %r15, %rdi
callq 0xce50
leaq 0xa8(%rsp), %r12
movq %r12, %rdi
movl %r14d, %esi
movq %r15, %rdx
movl $0x4, %ecx
movl $0x1, %r8d
callq 0x16a1c
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r14
movq 0x70(%rax), %r15
leaq 0x4f0(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x16bf4
addq $0x8, %r14
movq %r15, %rdi
movq %r14, %rsi
leaq 0x78(%rsp), %rdx
movq %r13, %rcx
callq 0x6b8c
movq 0x4f0(%rsp), %rdi
leaq 0x500(%rsp), %rax
cmpq %rax, %rdi
je 0x12303
movq 0x500(%rsp), %rsi
jmp 0x122fb
leaq 0x1c0(%rsp), %rax
movq %rax, 0x1b0(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1b0(%rsp), %rdi
callq 0xbb34
movq 0x8(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
callq 0x117d6
movl %eax, %r14d
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x121d8
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r15
testb %r14b, %r14b
je 0x129db
movq 0x78(%rax), %r12
movl 0x80(%rsp), %r14d
leaq 0x1a0(%rsp), %rax
movq %rax, 0x190(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x190(%rsp), %rdi
callq 0xbb34
addq $0x8, %r15
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl %r14d, %ecx
leaq 0x190(%rsp), %r8
callq 0xc85e
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x12261
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x3280
movl 0x80(%rsp), %r14d
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rsi
addq $0x8, %rsi
leaq 0x536(%rsp), %r15
movq %r15, %rdi
callq 0xce50
leaq 0xa8(%rsp), %r12
movq %r12, %rdi
movl %r14d, %esi
movq %r15, %rdx
movl $0x4, %ecx
movl $0x1, %r8d
callq 0x16a1c
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r14
movq 0x70(%rax), %r15
leaq 0x4b0(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x16bf4
addq $0x8, %r14
movq %r15, %rdi
movq %r14, %rsi
leaq 0x78(%rsp), %rdx
movq %r13, %rcx
callq 0x6b8c
movq 0x4b0(%rsp), %rdi
leaq 0x4c0(%rsp), %rax
cmpq %rax, %rdi
je 0x12303
movq 0x4c0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x12328
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x1234d
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x12d15
movq 0xc0(%rsp), %rsi
jmp 0x12bb8
leaq 0x480(%rsp), %rax
movq %rax, 0x470(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x470(%rsp), %r14
movq %r14, %rdi
callq 0xbb34
leaq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r14, %rdx
callq 0x113a4
movq 0x470(%rsp), %rdi
leaq 0x480(%rsp), %rax
cmpq %rax, %rdi
je 0x123d7
movq 0x480(%rsp), %rsi
incq %rsi
callq 0x3280
movl $0x15, %edx
movq 0xdbed(%rip), %rdi      # 0x1ffd0
leaq 0x6917(%rip), %rsi      # 0x18d01
callq 0x32d0
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rsi
addq $0x8, %rsi
leaq 0xa8(%rsp), %rdi
callq 0xb51c
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
movq 0xdbb0(%rip), %rdi      # 0x1ffd0
callq 0x32d0
movq %rax, %r14
movl $0x6, %edx
movq %rax, %rdi
leaq 0x68e0(%rip), %rsi      # 0x18d17
callq 0x32d0
leaq 0x450(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0xb51c
movq 0x450(%rsp), %rsi
movq 0x458(%rsp), %rdx
movq %r14, %rdi
callq 0x32d0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x5e3e(%rip), %rsi      # 0x182b6
callq 0x32d0
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %r14, %rdi
callq 0x32d0
movq %rax, %r14
movl $0x2, %edx
movq %rax, %rdi
leaq 0x687d(%rip), %rsi      # 0x18d1e
callq 0x32d0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r14, %rdi
callq 0x32d0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x5e2e(%rip), %rsi      # 0x182f5
callq 0x32d0
movq 0x450(%rsp), %rdi
leaq 0x460(%rsp), %rax
cmpq %rax, %rdi
je 0x124f1
movq 0x460(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x12516
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3280
cmpq $0x0, 0x18(%rsp)
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r15
je 0x12b29
movq 0x78(%rax), %r13
movl 0x80(%rsp), %r14d
leaq 0x2a0(%rsp), %rax
movq %rax, 0x290(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x290(%rsp), %rdi
callq 0xbb34
leaq 0x440(%rsp), %rax
movq %rax, 0x430(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x430(%rsp), %r12
movq %r12, %rdi
callq 0xbb34
addq $0x8, %r15
movq %r13, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl %r14d, %ecx
leaq 0x290(%rsp), %r8
movq %r12, %r9
callq 0xc67a
movq 0x430(%rsp), %rdi
leaq 0x440(%rsp), %rax
cmpq %rax, %rdi
je 0x125d2
movq 0x440(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x290(%rsp), %rdi
leaq 0x2a0(%rsp), %rax
cmpq %rax, %rdi
je 0x125f7
movq 0x2a0(%rsp), %rsi
incq %rsi
callq 0x3280
movl 0x80(%rsp), %r14d
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rsi
addq $0x8, %rsi
leaq 0x14a(%rsp), %rdi
callq 0xce50
leaq 0x410(%rsp), %r15
leaq 0x420(%rsp), %rax
movq %rax, 0x410(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xbb34
leaq 0xa8(%rsp), %rdi
movl %r14d, %esi
leaq 0x14a(%rsp), %rdx
movq %r15, %rcx
callq 0x16b06
movq 0x410(%rsp), %rdi
leaq 0x420(%rsp), %rax
cmpq %rax, %rdi
je 0x12686
movq 0x420(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r14
movq 0x70(%rax), %r15
leaq 0x510(%rsp), %r12
movq %r12, %rdi
leaq 0xa8(%rsp), %rsi
callq 0x16bf4
addq $0x8, %r14
movq %r15, %rdi
movq %r14, %rsi
leaq 0x78(%rsp), %rdx
movq %r12, %rcx
callq 0x6b8c
movq 0x510(%rsp), %rdi
leaq 0x520(%rsp), %rax
cmpq %rax, %rdi
je 0x126e7
movq 0x520(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x1270c
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x12731
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x12ba0
movq 0xc0(%rsp), %rsi
jmp 0x12b98
movq 0x8(%rsp), %rax
movq 0x90(%rax), %rcx
movq %rbx, %rdi
movq %rbx, %rax
testq %rcx, %rcx
je 0x1278f
movl 0x80(%rsp), %edx
movq %rdi, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x12778
movq %rdi, %r15
cmpq %rdi, %rax
je 0x127a8
movl 0x80(%rsp), %ecx
cmpl 0x20(%rax), %ecx
cmovlq %rdi, %rax
movq %rax, %r15
cmpq %rdi, %r15
je 0x12d15
movl $0x1a, %edx
movq 0xd813(%rip), %rdi      # 0x1ffd0
leaq 0x655d(%rip), %rsi      # 0x18d21
callq 0x32d0
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rsi
addq $0x8, %rsi
leaq 0xa8(%rsp), %rdi
callq 0xb51c
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
movq 0xd7d6(%rip), %rdi      # 0x1ffd0
callq 0x32d0
movq %rax, %r14
movl $0x6, %edx
movq %rax, %rdi
leaq 0x6506(%rip), %rsi      # 0x18d17
callq 0x32d0
leaq 0x10(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0xb51c
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r14, %rdi
callq 0x32d0
movq %rax, %r14
movl $0x6, %edx
movq %rax, %rdi
leaq 0x5e2d(%rip), %rsi      # 0x18676
callq 0x32d0
movq 0x30(%r15), %rsi
movq 0x38(%r15), %rdx
movq %r14, %rdi
callq 0x32d0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x64cc(%rip), %rsi      # 0x18d3c
callq 0x32d0
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq %r14, %rdi
callq 0x32d0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x5a5f(%rip), %rsi      # 0x182f5
callq 0x32d0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x128b7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x128dc
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3280
cmpq $0x0, 0x58(%r15)
jne 0x128f1
leaq 0x50(%r15), %rdi
leaq 0x58(%rsp), %rsi
callq 0x3140
movq 0x78(%r15), %rax
incq %rax
movq %rax, 0x78(%r15)
cmpq $0x2, %rax
jb 0x12d15
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r14
movq 0x78(%rax), %r12
movl 0x80(%rsp), %r13d
leaq 0x160(%rsp), %rax
movq %rax, 0x150(%rsp)
movq 0x30(%r15), %rsi
movq 0x38(%r15), %rdx
addq %rsi, %rdx
leaq 0x150(%rsp), %rdi
callq 0xbb34
leaq 0x360(%rsp), %rax
movq %rax, 0x350(%rsp)
movq 0x50(%r15), %rsi
movq 0x58(%r15), %rdx
addq %rsi, %rdx
leaq 0x350(%rsp), %rbp
movq %rbp, %rdi
callq 0xbb34
addq $0x8, %r14
movq %r12, %rdi
movq %r14, %rsi
movl $0x1, %edx
movl %r13d, %ecx
leaq 0x150(%rsp), %r8
movq %rbp, %r9
callq 0xc67a
movq 0x350(%rsp), %rdi
leaq 0x360(%rsp), %rax
cmpq %rax, %rdi
je 0x129b5
movq 0x360(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x12d05
movq 0x160(%rsp), %rsi
jmp 0x12cfd
movq 0x78(%rax), %r12
movl 0x80(%rsp), %r14d
leaq 0x180(%rsp), %rax
movq %rax, 0x170(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x170(%rsp), %rdi
callq 0xbb34
addq $0x8, %r15
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl %r14d, %ecx
leaq 0x170(%rsp), %r8
callq 0xcc0a
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x12d15
movq 0x180(%rsp), %rsi
jmp 0x12bb8
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r14
movq 0x78(%rax), %r13
movl 0x80(%rsp), %r15d
leaq 0x220(%rsp), %rax
movq %rax, 0x210(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x210(%rsp), %rdi
callq 0xbb34
leaq 0x3c0(%rsp), %rax
movq %rax, 0x3b0(%rsp)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x3b0(%rsp), %r12
movq %r12, %rdi
callq 0xbb34
addq $0x8, %r14
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
movl %r15d, %ecx
leaq 0x210(%rsp), %r8
movq %r12, %r9
callq 0xcb18
movq 0x3b0(%rsp), %rdi
leaq 0x3c0(%rsp), %rax
cmpq %rax, %rdi
je 0x12b03
movq 0x3c0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0x12d15
movq 0x220(%rsp), %rsi
jmp 0x12bb8
movq 0x78(%rax), %r12
movl 0x80(%rsp), %r14d
leaq 0x280(%rsp), %rax
movq %rax, 0x270(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x270(%rsp), %rdi
callq 0xbb34
addq $0x8, %r15
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl %r14d, %ecx
leaq 0x270(%rsp), %r8
callq 0xca34
movq 0x270(%rsp), %rdi
leaq 0x280(%rsp), %rax
cmpq %rax, %rdi
je 0x12ba0
movq 0x280(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x12d15
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12d15
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r14
movq 0x78(%rax), %r12
movl 0x80(%rsp), %r13d
leaq 0x300(%rsp), %rax
movq %rax, 0x2f0(%rsp)
movq 0x30(%r15), %rsi
movq 0x38(%r15), %rdx
addq %rsi, %rdx
leaq 0x2f0(%rsp), %rdi
callq 0xbb34
leaq 0x2e0(%rsp), %rax
movq %rax, 0x2d0(%rsp)
movq 0x50(%r15), %rsi
movq 0x58(%r15), %rdx
addq %rsi, %rdx
leaq 0x2d0(%rsp), %rbp
movq %rbp, %rdi
callq 0xbb34
addq $0x8, %r14
movq %r12, %rdi
movq %r14, %rsi
movl $0x1, %edx
movl %r13d, %ecx
leaq 0x2f0(%rsp), %r8
movq %rbp, %r9
callq 0xc76c
movq 0x2d0(%rsp), %rdi
leaq 0x2e0(%rsp), %rax
cmpq %rax, %rdi
je 0x12c74
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x2f0(%rsp), %rdi
leaq 0x300(%rsp), %rcx
jmp 0x12cf2
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r12
movq 0x78(%rax), %r13
movl 0x80(%rsp), %r14d
leaq 0x2c0(%rsp), %rax
movq %rax, 0x2b0(%rsp)
movq 0x30(%r15), %rsi
movq 0x38(%r15), %rdx
addq %rsi, %rdx
leaq 0x2b0(%rsp), %rdi
callq 0xbb34
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %r14d, %ecx
leaq 0x2b0(%rsp), %r8
callq 0xc85e
movq 0x2b0(%rsp), %rdi
leaq 0x2c0(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0x12d05
movq (%rax), %rsi
incq %rsi
callq 0x3280
movq 0x120(%rsp), %rdi
movq %r15, %rsi
callq 0x149c4
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x12d3a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x12d56
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x12d72
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x12d97
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xa8(%rdi), %rax
cmpq %rax, 0xc8(%rdi)
jne 0x11999
addq $0x548, %rsp            # imm = 0x548
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x2b0(%rsp), %rdi
leaq 0x2c0(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x2c0(%rsp), %rsi
jmp 0x1339d
movq %rax, %rbx
movq 0x2d0(%rsp), %rdi
leaq 0x2e0(%rsp), %rax
cmpq %rax, %rdi
je 0x12e1c
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12e1c
movq %rax, %rbx
movq 0x2f0(%rsp), %rdi
leaq 0x300(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x300(%rsp), %rsi
jmp 0x1339d
movq %rax, %rbx
movq 0x310(%rsp), %rdi
leaq 0x320(%rsp), %rax
cmpq %rax, %rdi
je 0x12e6f
movq 0x320(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12e6f
movq %rax, %rbx
movq 0x330(%rsp), %rdi
leaq 0x340(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x340(%rsp), %rsi
jmp 0x1339d
movq %rax, %rbx
movq 0x350(%rsp), %rdi
leaq 0x360(%rsp), %rax
cmpq %rax, %rdi
je 0x12ec2
movq 0x360(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12ec2
movq %rax, %rbx
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x160(%rsp), %rsi
jmp 0x1339d
movq %rax, %rbx
movq 0x4f0(%rsp), %rdi
leaq 0x500(%rsp), %rax
cmpq %rax, %rdi
je 0x13094
movq 0x500(%rsp), %rsi
jmp 0x13087
jmp 0x13091
movq %rax, %rbx
movq 0x3d0(%rsp), %rdi
leaq 0x3e0(%rsp), %rax
cmpq %rax, %rdi
je 0x12f43
movq 0x3e0(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12f43
movq %rax, %rbx
movq 0x230(%rsp), %rdi
leaq 0x240(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x240(%rsp), %rsi
jmp 0x1339d
movq %rax, %rbx
movq 0x270(%rsp), %rdi
leaq 0x280(%rsp), %rax
cmpq %rax, %rdi
je 0x13389
movq 0x280(%rsp), %rsi
jmp 0x13381
movq %rax, %rbx
movq 0x3b0(%rsp), %rdi
leaq 0x3c0(%rsp), %rax
cmpq %rax, %rdi
je 0x12fbf
movq 0x3c0(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12fbf
movq %rax, %rbx
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x220(%rsp), %rsi
jmp 0x1339d
movq %rax, %rbx
movq 0x4b0(%rsp), %rdi
leaq 0x4c0(%rsp), %rax
cmpq %rax, %rdi
je 0x13094
movq 0x4c0(%rsp), %rsi
jmp 0x13087
jmp 0x13091
movq %rax, %rbx
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x1a0(%rsp), %rsi
jmp 0x1339d
movq %rax, %rbx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x180(%rsp), %rsi
jmp 0x1339d
jmp 0x132f4
movq %rax, %rbx
movq 0x4d0(%rsp), %rdi
leaq 0x4e0(%rsp), %rax
cmpq %rax, %rdi
je 0x13094
movq 0x4e0(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x13094
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x139f8
jmp 0x133a5
movq %rax, %rbx
movq 0x370(%rsp), %rdi
leaq 0x380(%rsp), %rax
cmpq %rax, %rdi
je 0x130d3
movq 0x380(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x130d3
movq %rax, %rbx
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x1e0(%rsp), %rsi
jmp 0x1339d
jmp 0x132de
jmp 0x132f4
movq %rax, %rbx
movq 0x510(%rsp), %rdi
leaq 0x520(%rsp), %rax
cmpq %rax, %rdi
je 0x13130
movq 0x520(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x13130
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x139f8
jmp 0x13389
movq %rax, %rbx
movq 0x410(%rsp), %rdi
leaq 0x420(%rsp), %rax
cmpq %rax, %rdi
je 0x13389
movq 0x420(%rsp), %rsi
jmp 0x13381
movq %rax, %rbx
movq 0x430(%rsp), %rdi
leaq 0x440(%rsp), %rax
cmpq %rax, %rdi
je 0x13198
movq 0x440(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x13198
movq %rax, %rbx
movq 0x290(%rsp), %rdi
leaq 0x2a0(%rsp), %rax
cmpq %rax, %rdi
je 0x13389
movq 0x2a0(%rsp), %rsi
jmp 0x13381
jmp 0x132de
jmp 0x132f4
jmp 0x132f4
jmp 0x132ef
jmp 0x132e7
movq %rax, %rbx
movq 0x470(%rsp), %rdi
leaq 0x480(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x480(%rsp), %rsi
jmp 0x1339d
jmp 0x132f4
movq %rax, %rbx
movq 0x390(%rsp), %rdi
leaq 0x3a0(%rsp), %rax
cmpq %rax, %rdi
je 0x1325c
movq 0x3a0(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x1325c
movq %rax, %rbx
movq 0x3f0(%rsp), %rdi
leaq 0x400(%rsp), %rax
cmpq %rax, %rdi
je 0x13285
movq 0x400(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x13285
movq %rax, %rbx
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x200(%rsp), %rsi
jmp 0x1339d
movq %rax, %rbx
movq 0x250(%rsp), %rdi
leaq 0x260(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x260(%rsp), %rsi
jmp 0x1339d
jmp 0x132f4
movq %rax, %rbx
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x1c0(%rsp), %rsi
jmp 0x1339d
jmp 0x132f4
jmp 0x132e7
jmp 0x132de
jmp 0x132f4
movq %rax, %rbx
jmp 0x1331d
jmp 0x132f4
jmp 0x132f4
movq %rax, %rbx
jmp 0x13389
movq %rax, %rbx
jmp 0x13364
movq %rax, %rbx
jmp 0x133a5
jmp 0x132fe
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1331d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0xb8(%rsp), %rsi
jmp 0x1339d
movq %rax, %rbx
movq 0x450(%rsp), %rdi
leaq 0x460(%rsp), %rax
cmpq %rax, %rdi
je 0x13364
movq 0x460(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x13389
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x133a5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
leaq 0x30(%rsp), %rdi
callq 0x139f8
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x133d4
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x3470
movq %rax, %rbx
jmp 0x133af
movq %rax, %rbx
movq 0x490(%rsp), %rdi
leaq 0x4a0(%rsp), %rax
cmpq %rax, %rdi
je 0x133af
movq 0x4a0(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x133af
nop