// File: /workspace/github_cpp_makefile_star2_O3/sjtuwrk[P]SunwayMR/include/Messaging.hpp
// Function: messageHandler(void*)
void* messageHandler(void *data)
{
	// parse data
	struct xyz_messaging_listen_thread_data_ *td = (struct xyz_messaging_listen_thread_data_ *)data;
	Messaging *m = td->mess;

	string msg;
	readSocket(td->client_sockfd, msg);

	string::size_type pos;
	pos=msg.find('$', 0);
	if (pos !=  string::npos) {
		string typeStr = msg.substr(0, pos);
		int msgType = atoi(typeStr.c_str());
		string msgContent=msg.substr(pos+1);

		if(msgType == FILE_BLOCK_REQUEST) { // reply file block
			vector<string> vs;
			splitString(msgContent, vs, FILE_BLOCK_REQUEST_DELIMITATION);
			if(vs.size() >= 4) {
				string ret;
				string path = vs[0];
				int offset = atoi(vs[1].c_str());
				int length = atoi(vs[2].c_str());
				FileSourceFormat format = static_cast<FileSourceFormat>(atoi(vs[3].c_str()));
				if (format == FILE_SOURCE_FORMAT_BYTE) {

					pthread_mutex_lock(&m->mutex_check_file_cache);
					if (m->file_cache_bytes.find(path) == m->file_cache_bytes.end()) { // check file cache
						string *file_content = new string();
						readFile(path, *file_content);
						m->file_cache_bytes[path] = file_content;
					} 
					pthread_mutex_unlock(&m->mutex_check_file_cache);

					ret = m->file_cache_bytes[path]->substr(offset, length);
				} else {
					pthread_mutex_lock(&m->mutex_check_file_cache);
					if (m->file_cache_lines.find(path) == m->file_cache_lines.end()) { // check file cache
						vector<string> *file_content = new vector<string>();
						readFileToLines(path, *file_content);
						m->file_cache_lines[path] = file_content;
					} 
					pthread_mutex_unlock(&m->mutex_check_file_cache);

					unsigned end_line = offset+length;
					for (unsigned int i=offset; i<end_line && i<m->file_cache_lines[path]->size(); i++) {
						ret += (*m->file_cache_lines[path])[i];
						ret += "\n";
					}
				}
				send(td->client_sockfd, ret);
				close(td->client_sockfd);
			}
		} else if(msgType == FETCH_REQUEST) {

			//cout << "CONTEXT ID: " << SUNWAYMR_CONTEXT_ID << endl;

			vector<string> paras;
			splitString(msgContent, paras, ",");
			if(paras.size() == 2)
			{
				long shuffleID = atol(paras[0].c_str());
				int partitionID = atoi(paras[1].c_str());

				// send back data
				string base_dir = "cache/shuffle/";
				string app_id = num2string(SUNWAYMR_CONTEXT_ID);
			    string shuffle_id = num2string(shuffleID);

			    string dir = app_id.append("/shuffle-") + shuffle_id.append("/");
			    dir = base_dir + dir;
			    vector<string> allFileNames;
				listAllFileNamesContain(dir, allFileNames, "shuffleTaskFile");

				pthread_mutex_lock(&m->mutex_check_file_cache);
				//map< long, vector< vector<string>* > > fetch_content_local; // !global shuffle cache data map(fetch_content) will cause segmentation fault!
				map< long, vector< vector<string>* > >::iterator it = m->fetch_content_local.find(shuffleID);
				if(it == m->fetch_content_local.end())
				{
					// this shuffle has not  been cached, read it
					vector< vector<string>* > vvs;
					for(unsigned int i=0; i<allFileNames.size(); i++)
					{
							string content;
							readFile(dir+allFileNames[i], content);
							vector<string> *lines = new vector<string>();
							splitString(content, *lines, SHUFFLETASK_PARTITION_DELIMITATION);
							vvs.push_back(lines);
					}
					m->fetch_content_local[shuffleID] = vvs;
				}
				pthread_mutex_unlock(&m->mutex_check_file_cache);

				//organize send message
				string senMsg;
				for(unsigned int i=0; i<m->fetch_content_local[shuffleID].size()-1; i++)
					senMsg += (*(m->fetch_content_local[shuffleID][i]))[partitionID] + string(SHUFFLETASK_KV_DELIMITATION);
				senMsg += (*(m->fetch_content_local[shuffleID].back()))[partitionID];

				send(td->client_sockfd, senMsg);
			}
			close(td->client_sockfd);
		} else if(msgType == FILE_INFO || msgType > 999999) { // sunwaymrhelper file sending
			m->messageReceived(td->local_port, td->ip, msgType, msgContent);
			string reply = "0";
			send(td->client_sockfd, reply);
			close(td->client_sockfd);
		} else {
			string reply = "";
			send(td->client_sockfd, reply);
			close(td->client_sockfd);

			m->messageReceived(td->local_port, td->ip, msgType, msgContent);
		}
	} else {
		string reply = "";
		send(td->client_sockfd, reply);
		close(td->client_sockfd);
	}

	pthread_exit(NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq (%rdi), %r14
leaq 0x1d8(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rdi, 0x20(%rsp)
movl 0x30(%rdi), %edi
leaq 0x1c8(%rsp), %rsi
callq 0x5c25
leaq 0x1c8(%rsp), %rdi
movl $0x24, %esi
xorl %edx, %edx
callq 0x34a0
cmpq $-0x1, %rax
jne 0x6912
leaq 0xf0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x780a(%rip), %rdx      # 0xe0cb
leaq 0xe0(%rsp), %rdi
movq %rdx, %rsi
callq 0xc5ec
movq 0x20(%rsp), %rbx
movl 0x30(%rbx), %edi
leaq 0xe0(%rsp), %rsi
callq 0x793f
movl 0x30(%rbx), %edi
callq 0x36d0
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x690b
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x3390
xorl %edi, %edi
callq 0x3650
movq %rax, %r15
leaq 0xe0(%rsp), %rdi
leaq 0x1c8(%rsp), %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x33b0
movq 0xe0(%rsp), %rdi
callq 0x3570
movl %eax, %ebp
incq %r15
leaq 0x1a0(%rsp), %rdi
leaq 0x1c8(%rsp), %rsi
movq %r15, %rdx
movq $-0x1, %rcx
callq 0x33b0
cmpl $0x6, %ebp
je 0x6b7d
cmpl $0x5, %ebp
jne 0x6fc2
xorps %xmm0, %xmm0
movaps %xmm0, 0xc0(%rsp)
movq $0x0, 0xd0(%rsp)
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x799f(%rip), %rsi      # 0xe338
leaq 0x79ac(%rip), %rdx      # 0xe34c
movq %rsp, %rdi
callq 0xc5ec
leaq 0x1a0(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
movq %rsp, %rdx
callq 0x398c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x69db
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0xc0(%rsp), %rax
movq 0xc8(%rsp), %rcx
subq %rax, %rcx
cmpq $0x61, %rcx
jb 0x72bf
leaq 0x10(%rsp), %rcx
movq %rcx, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0xc556
movq 0xc0(%rsp), %rbx
movq 0x20(%rbx), %rdi
callq 0x3570
movl %eax, %ebp
movq 0x40(%rbx), %rdi
callq 0x3570
movl %eax, %r15d
movq 0x60(%rbx), %rdi
callq 0x3570
movl %eax, %r13d
leaq 0x30(%r14), %r12
movq %r12, %rdi
callq 0x34f0
testl %r13d, %r13d
jne 0x7141
leaq 0x58(%r14), %r13
leaq 0x50(%rsp), %rsi
movq %r13, %rdi
callq 0xcd40
addq $0x60, %r14
cmpq %r14, %rax
jne 0x6b16
movl $0x20, %edi
callq 0x3380
movq %rax, %r14
addq $0x10, %rax
movq %rax, (%r14)
movq $0x0, 0x8(%r14)
movb $0x0, 0x10(%r14)
leaq 0x190(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x180(%rsp), %rdi
callq 0xc556
leaq 0x180(%rsp), %rdi
movq %r14, %rsi
callq 0x46c8
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x6b06
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x50(%rsp), %rsi
movq %r13, %rdi
callq 0xbf22
movq %r14, (%rax)
movq %r12, %rdi
callq 0x3290
leaq 0x50(%rsp), %rsi
movq %r13, %rdi
callq 0xbf22
movq (%rax), %rsi
movslq %ebp, %rdx
movslq %r15d, %rcx
leaq 0x120(%rsp), %rdi
callq 0x33b0
movq %rsp, %rdi
leaq 0x120(%rsp), %r14
movq %r14, %rsi
callq 0x3450
movq (%r14), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0x7270
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x7270
xorps %xmm0, %xmm0
movaps %xmm0, 0x140(%rsp)
movq $0x0, 0x150(%rsp)
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x77aa(%rip), %rsi      # 0xe34f
leaq 0x77a4(%rip), %rdx      # 0xe350
movq %rsp, %rdi
callq 0xc5ec
leaq 0x1a0(%rsp), %rdi
leaq 0x140(%rsp), %rsi
movq %rsp, %rdx
callq 0x398c
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6be2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0x140(%rsp), %rbx
movq 0x148(%rsp), %rax
subq %rbx, %rax
cmpq $0x40, %rax
jne 0x7522
movq (%rbx), %rdi
callq 0x3430
movq %rax, 0x48(%rsp)
movq 0x20(%rbx), %rdi
callq 0x3570
movl %eax, %ebx
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0x772d(%rip), %rsi      # 0xe351
leaq 0x7734(%rip), %rdx      # 0xe35f
callq 0xc5ec
movq 0xc7b9(%rip), %rsi      # 0x133f0
leaq 0x50(%rsp), %rdi
callq 0x4e16
movq 0x48(%rsp), %rsi
leaq 0x120(%rsp), %rdi
callq 0x4e16
leaq 0x7706(%rip), %rsi      # 0xe360
leaq 0x50(%rsp), %rdi
callq 0x36c0
movq %rax, %r15
leaq 0x76f0(%rip), %rsi      # 0xe35e
leaq 0x120(%rsp), %rdi
callq 0x36c0
leaq 0xc0(%rsp), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xbebd
leaq 0x28(%rsp), %rdi
movq %rsp, %rsi
leaq 0xc0(%rsp), %rdx
callq 0xbebd
leaq 0xc0(%rsp), %rdi
leaq 0x28(%rsp), %r15
movq %r15, %rsi
callq 0x3450
movq (%r15), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6cd2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3390
xorps %xmm0, %xmm0
movaps %xmm0, 0x100(%rsp)
movq $0x0, 0x110(%rsp)
leaq 0x278(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x268(%rsp), %rdi
callq 0xc556
leaq 0x258(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x7641(%rip), %rsi      # 0xe36a
leaq 0x7649(%rip), %rdx      # 0xe379
leaq 0x248(%rsp), %rdi
callq 0xc5ec
leaq 0x268(%rsp), %rdi
leaq 0x100(%rsp), %rsi
leaq 0x248(%rsp), %rdx
callq 0x5396
movq 0x248(%rsp), %rdi
cmpq %r12, %rdi
je 0x6d77
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0x268(%rsp), %rdi
cmpq %r15, %rdi
je 0x6d94
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x30(%r14), %rdi
movq %rdi, 0x1c0(%rsp)
callq 0x34f0
leaq 0xb8(%r14), %rax
movq %rax, 0x98(%rsp)
movq 0xc8(%r14), %rax
testq %rax, %rax
je 0x6df2
addq $0xc0, %r14
movq 0x48(%rsp), %rcx
movq %r14, %rdx
xorl %esi, %esi
cmpq %rcx, 0x20(%rax)
setl %sil
cmovgeq %rax, %rdx
movq 0x10(%rax,%rsi,8), %rax
testq %rax, %rax
jne 0x6dcf
cmpq %r14, %rdx
je 0x6df2
cmpq 0x20(%rdx), %rcx
jge 0x6e55
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
movq 0x100(%rsp), %rax
cmpq %rax, 0x108(%rsp)
jne 0x72cc
leaq 0x48(%rsp), %rsi
movq 0x98(%rsp), %rdi
callq 0xc01a
leaq 0x70(%rsp), %rsi
movq %rax, %rdi
callq 0xc080
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x6e55
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x3390
movq 0x1c0(%rsp), %rdi
callq 0x3290
leaq 0x28(%rsp), %rcx
leaq 0x38(%rsp), %rax
movq %rax, (%rcx)
movq $0x0, 0x8(%rcx)
movb $0x0, 0x10(%rcx)
movslq %ebx, %r15
xorl %r13d, %r13d
leaq 0xb0(%rsp), %rbp
leaq 0x48(%rsp), %r12
leaq 0x70(%rsp), %r14
shlq $0x5, %r15
movq 0x98(%rsp), %rdi
movq %r12, %rsi
callq 0xc01a
movq 0x8(%rax), %rcx
subq (%rax), %rcx
movl %r13d, %r13d
sarq $0x3, %rcx
decq %rcx
cmpq %r13, %rcx
jbe 0x743f
movq 0x98(%rsp), %rdi
movq %r12, %rsi
callq 0xc01a
movq (%rax), %rax
movq (%rax,%r13,8), %rax
movq (%rax), %rbx
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq %r14, %rdi
leaq 0x748d(%rip), %rsi      # 0xe37f
leaq 0x748b(%rip), %rdx      # 0xe384
callq 0xc5ec
movq (%rbx,%r15), %rcx
movq 0x8(%rbx,%r15), %r8
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x33f0
movq %rbp, 0xa0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6f3f
movq %rdx, 0xa0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb0(%rsp)
jmp 0x6f46
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0xa8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
leaq 0x28(%rsp), %rdi
callq 0x3120
movq 0xa0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6f98
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6fba
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3390
incl %r13d
jmp 0x6e97
cmpl $0x1, %ebp
setne %al
cmpl $0xf4240, %ebp          # imm = 0xF4240
setl %cl
testb %cl, %al
jne 0x708b
movq 0x20(%rsp), %rax
movl 0x8(%rax), %r15d
leaq 0x218(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
leaq 0x208(%rsp), %rdi
callq 0xc556
movq (%r14), %rax
leaq 0x208(%rsp), %rdx
leaq 0x1a0(%rsp), %r8
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %ecx
callq *0x10(%rax)
movq 0x208(%rsp), %rdi
cmpq %r12, %rdi
je 0x7042
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x7333(%rip), %rsi      # 0xe385
leaq 0x732d(%rip), %rdx      # 0xe386
movq %rsp, %rdi
callq 0xc5ec
movq 0x20(%rsp), %rbx
movl 0x30(%rbx), %edi
movq %rsp, %rsi
callq 0x793f
movl 0x30(%rbx), %edi
callq 0x36d0
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x712f
jmp 0x753c
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x702f(%rip), %rdx      # 0xe0cb
movq %rsp, %rdi
movq %rdx, %rsi
callq 0xc5ec
movq 0x20(%rsp), %rbx
movl 0x30(%rbx), %edi
movq %rsp, %rsi
callq 0x793f
movl 0x30(%rbx), %edi
callq 0x36d0
movl 0x8(%rbx), %r15d
leaq 0x1f8(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
addq %rsi, %rdx
leaq 0x1e8(%rsp), %rdi
callq 0xc556
movq (%r14), %rax
leaq 0x1e8(%rsp), %rdx
leaq 0x1a0(%rsp), %r8
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %ecx
callq *0x10(%rax)
movq 0x1e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7122
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x3390
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x753c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x753c
leaq 0x88(%r14), %r13
leaq 0x50(%rsp), %rsi
movq %r13, %rdi
callq 0xd0dc
addq $0x90, %r14
cmpq %r14, %rax
jne 0x71ec
movl $0x18, %edi
callq 0x3380
movq %rax, %r14
leaq 0x170(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq %rax, -0x10(%rax)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x160(%rsp), %rdi
callq 0xc556
leaq 0x160(%rsp), %rdi
movq %r14, %rsi
callq 0x4936
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x71dc
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x50(%rsp), %rsi
movq %r13, %rdi
callq 0xbf9e
movq %r14, (%rax)
movq %r12, %rdi
callq 0x3290
addl %ebp, %r15d
cmpl %r15d, %ebp
jae 0x7270
movl %ebp, %r12d
movl %r15d, %ebx
movq %r12, %rbp
shlq $0x5, %rbp
orq $0x8, %rbp
leaq 0x50(%rsp), %r14
movq %rsp, %r15
movq %r13, %rdi
movq %r14, %rsi
callq 0xbf9e
movq (%rax), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x5, %rcx
cmpq %r12, %rcx
jbe 0x7270
movq %r13, %rdi
movq %r14, %rsi
callq 0xbf9e
movq (%rax), %rax
movq (%rax), %rax
movq -0x8(%rax,%rbp), %rsi
movq (%rax,%rbp), %rdx
movq %r15, %rdi
callq 0x3120
movq %r15, %rdi
leaq 0x70ee(%rip), %rsi      # 0xe34d
callq 0x36c0
incq %r12
addq $0x20, %rbp
cmpq %r12, %rbx
jne 0x7215
movq 0x20(%rsp), %rbx
movl 0x30(%rbx), %edi
movq %rsp, %rsi
callq 0x793f
movl 0x30(%rbx), %edi
callq 0x36d0
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x72a4
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3390
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x72bf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0xc0(%rsp), %rdi
jmp 0x7537
movl $0x1, %r15d
xorl %edx, %edx
leaq 0x228(%rsp), %r14
leaq 0x28(%rsp), %r12
leaq 0xa0(%rsp), %rbp
leaq 0x38(%rsp), %rcx
movq %rcx, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movb $0x0, 0x38(%rsp)
shlq $0x5, %rdx
addq %rax, %rdx
movq %r14, %rdi
leaq 0xc0(%rsp), %rsi
callq 0xbebd
movq %r14, %rdi
movq %r12, %rsi
callq 0x46c8
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rax
cmpq %rax, %rdi
je 0x7348
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x3390
movl $0x18, %edi
callq 0x3380
movq %rax, %r13
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, 0x118(%rsp)
leaq 0xb0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq %rbp, %rdi
leaq 0x6ff5(%rip), %rsi      # 0xe37a
leaq 0x6ff2(%rip), %rdx      # 0xe37e
callq 0xc5ec
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x398c
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x73c4
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0x78(%rsp), %rsi
cmpq 0x80(%rsp), %rsi
je 0x73e6
movq 0x118(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x78(%rsp)
jmp 0x73f8
leaq 0x70(%rsp), %rdi
leaq 0x118(%rsp), %rdx
callq 0xd478
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x7414
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3390
movl %r15d, %edx
movq 0x100(%rsp), %rax
movq 0x108(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
incl %r15d
cmpq %rdx, %rcx
ja 0x72e9
jmp 0x6e1c
leaq 0x48(%rsp), %rsi
movq 0x98(%rsp), %rdi
callq 0xc01a
movq 0x8(%rax), %rax
movq -0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%r15), %rsi
movq 0x8(%rax,%r15), %rdx
leaq 0x28(%rsp), %rdi
callq 0x3120
movq 0x20(%rsp), %rax
movl 0x30(%rax), %edi
leaq 0x28(%rsp), %rsi
callq 0x793f
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x749d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x100(%rsp), %rdi
callq 0xbc26
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x74cb
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x74ec
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7507
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3390
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7522
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0x20(%rsp), %rax
movl 0x30(%rax), %edi
callq 0x36d0
leaq 0x140(%rsp), %rdi
callq 0xbc26
leaq 0x1b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x755d
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x68fb
jmp 0x690b
jmp 0x75c6
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x759e
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x759e
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x75c9
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x75c9
jmp 0x75c6
jmp 0x75c6
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x76b8
movq 0x38(%rsp), %rsi
jmp 0x76ab
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x7639
movq 0xb0(%rsp), %rsi
jmp 0x762a
jmp 0x7636
movq %rax, %rbx
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rax
cmpq %rax, %rdi
je 0x7639
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x7639
jmp 0x7636
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x765a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x765a
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x76b8
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
jmp 0x76ae
movq %rax, %rbx
movq 0x248(%rsp), %rdi
cmpq %r12, %rdi
je 0x7696
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x7696
movq %rax, %rbx
movq 0x268(%rsp), %rdi
cmpq %r15, %rdi
je 0x76b8
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x76b8
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0xbc26
jmp 0x76ca
movq %rax, %rbx
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x76eb
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x10(%rsp), %r12
jmp 0x7759
movq %rax, %rbx
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x77d1
movq 0x170(%rsp), %rsi
jmp 0x773c
movq %rax, %rbx
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x77d1
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x77d1
jmp 0x77ce
jmp 0x77ce
jmp 0x77ce
jmp 0x77ce
jmp 0x77ce
movq %rax, %rbx
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x77a8
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x77a8
movq %rax, %rbx
movq 0x1e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x782f
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x782f
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7851
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x7851
jmp 0x77ce
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x786c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x786c
jmp 0x784e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x7838
jmp 0x78a6
jmp 0x7849
jmp 0x7889
jmp 0x7869
jmp 0x7889
movq %rax, %rbx
movq 0x208(%rsp), %rdi
cmpq %r12, %rdi
je 0x78a6
movq 0x218(%rsp), %rsi
jmp 0x783d
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x78a6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x78a6
jmp 0x7849
movq %rax, %rbx
jmp 0x78a6
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x788c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x788c
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7899
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x7899
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
jmp 0x78a1
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0xbc26
leaq 0x1b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x78ce
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x78ce
jmp 0x7907
movq %rax, %rbx
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x78f1
jmp 0x790a
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x790a
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0x790a
jmp 0x7907
jmp 0x7907
movq %rax, %rbx
movq 0x1c8(%rsp), %rdi
leaq 0x1d8(%rsp), %rax
cmpq %rax, %rdi
je 0x792f
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0x3390
movq %rbx, %rdi
callq 0x3640
nop