// File: /workspace/github_cpp_makefile_star2_O1/dentiny[P]HTTP-Cache-Proxy/Proxy.cpp
// Function: Proxy::handleRequest(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void handleRequest(int client_id, int client_fd, const std::string & client_ip)
	{
		int server_fd = -1;
		Request request;

		try
		{
			// try to accept the request,
			// if an error occurs, throw the exception
			try
			{
				request = acceptRequest(client_fd);

				// record request to log
				std::string log_content = std::to_string(client_id) + ": " + request.httpAction + " from " + client_ip + " @ " + request.request_time;
				logger.log(log_content);
			}
			catch(std::exception & e)
			{
				throw e;
			}

			// try to connect server, and get the server fd
			// if an error occurs, throw the exception
			try
			{
				connectServer(request, server_fd);	
			}
			catch(std::exception & e)
			{
				throw e;
			}

			// handle specific http request
			try
			{
				std::string httpAction = request.httpAction;

				// record request to log, applied to GET, POST and CONNECT
				std::string log_content = std::to_string(client_id) + ": Requesting " + request.first_line + " from " + request.url;
				logger.log(log_content);

				if(httpAction == "CONNECT")
				{
					handleConnect(client_id, client_fd, server_fd, request);

					// write tunnel status to log
					std::string log_content = std::to_string(client_id) + ": Tunnel closed";
					logger.log(log_content); 
				}
				else if(httpAction == "GET")
				{
					// for GET http action, check caching first
					// if get return value true,
					// (1) either the cache is valid, has been sent by cache
					// (2) or the cache is invalid, needs to update the cache and resend it to client
					// anyway, the response has been sent to the client
					try
					{
						bool cacheValid = checkCaching(client_id, client_fd, server_fd, request);
						if(!cacheValid)
						{
							handleGetPost(client_id, client_fd, server_fd, request);
						}
					}
					catch(std::exception & e)
					{
						throw e;
					}
				}
				else if(httpAction == "POST")
				{
					std::cout << "begin post action" << std::endl;
					handleGetPost(client_id, client_fd, server_fd, request);
				}	
				else
				{
					throw ProxyException("Unknown HTTP request category");
				}

				// release client and server fd
				close(server_fd);
				close(client_fd);
			}
			catch(std::exception & e)
			{
				throw e;
			}
		}

		// when an exception happens, write the exception into log and quit the thread
		catch(std::exception & e)
		{
			// write exception into log
			std::string errMsg(e.what());
			std::string log_content = std::to_string(client_id) + ": ERROR " + errMsg;
			logger.log(log_content);

			// close the allocated resource
			close(client_fd);
			if(server_fd != -1) close(server_fd);
			return;
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rcx, %rbx
movl %edx, 0x74(%rsp)
movl %esi, %ebp
movq %rdi, %rsi
movl $0xffffffff, (%rsp)     # imm = 0xFFFFFFFF
leaq 0x1e0(%rsp), %rax
movq %rax, -0x10(%rax)
xorl %ecx, %ecx
movq %rcx, -0x8(%rax)
movb %cl, (%rax)
leaq 0x200(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rcx, -0x8(%rax)
movb %cl, (%rax)
leaq 0x220(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rcx, -0x8(%rax)
movb %cl, (%rax)
leaq 0x240(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rcx, -0x8(%rax)
movb %cl, (%rax)
leaq 0x260(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rcx, -0x8(%rax)
movb %cl, (%rax)
leaq 0x280(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rcx, -0x8(%rax)
movb %cl, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %rcx, 0x20(%rax)
leaq 0xf8(%rsp), %rdi
movq %rsi, 0x48(%rsp)
movl %ebp, 0x4(%rsp)
callq 0x52b2
leaq 0x1d0(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0x54dc
leaq 0xf8(%rsp), %rdi
callq 0x555a
movl %ebp, %r15d
negl %r15d
cmovsl %ebp, %r15d
movl $0x1, %r14d
cmpl $0xa, %r15d
jb 0x42b1
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x42a8
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x42ae
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x42b1
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x4275
addl $-0x3, %r14d
jmp 0x42b1
addl $-0x2, %r14d
jmp 0x42b1
decl %r14d
movl %ebp, %r12d
shrl $0x1f, %r12d
leal (%r14,%r12), %esi
leaq 0xc8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xb8(%rsp), %rdi
movl $0x2d, %edx
callq 0x3390
movl %r12d, %r13d
leaq 0xb8(%rsp), %rbp
movq (%rbp), %rdi
addq %r13, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x71bb
leaq 0x903a(%rip), %rsi      # 0xd338
movq %rbp, %rdi
callq 0x3550
leaq 0xa8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4336
movq %rdx, 0x98(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa8(%rsp)
jmp 0x433d
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x98(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
callq 0x30e0
leaq 0x88(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x439e
movq %rdx, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x43a4
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x78(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8d43(%rip), %rsi      # 0xd10a
callq 0x3550
leaq 0x38(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x43f3
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x43f9
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x30e0
leaq 0x18(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4448
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x444e
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8ca0(%rip), %rsi      # 0xd111
callq 0x3550
leaq 0x60(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x449d
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x44a3
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x50(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x1d0(%rsp), %rsi
movq 0x1d8(%rsp), %rdx
callq 0x30e0
leaq 0x108(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4504
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x450b
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x100(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x4542
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x455e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x457a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x459c
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x45b9
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x45de
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x48(%rsp), %rax
leaq 0x8(%rax), %rbx
leaq 0xf8(%rsp), %rsi
movq %rbx, %rdi
callq 0x5714
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4614
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3340
leaq 0x1d0(%rsp), %rsi
movq %rsp, %rdx
movq 0x48(%rsp), %rdi
callq 0x57c8
leaq 0xf8(%rsp), %rdi
movq %r14, (%rdi)
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
addq %rsi, %rdx
callq 0x3d22
movl $0x1, %r14d
cmpl $0xa, %r15d
jb 0x46a2
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x4699
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x469f
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x46a2
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x4666
addl $-0x3, %r14d
jmp 0x46a2
addl $-0x2, %r14d
jmp 0x46a2
decl %r14d
leal (%r14,%r12), %esi
leaq 0x98(%rsp), %rdi
movq %rbp, (%rdi)
movl $0x2d, %edx
callq 0x3390
leaq 0x98(%rsp), %rbp
movq (%rbp), %rdi
addq %r13, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x71bb
leaq 0x8a39(%rip), %rsi      # 0xd115
movq %rbp, %rdi
callq 0x3550
leaq 0x88(%rsp), %rsi
movq %rsi, 0x78(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movl 0x74(%rsp), %ebp
leaq 0x108(%rsp), %r14
je 0x471e
movq %rdx, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x4724
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x78(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x1f0(%rsp), %rsi
movq 0x1f8(%rsp), %rdx
callq 0x30e0
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x477d
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x4783
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8964(%rip), %rsi      # 0xd10a
callq 0x3550
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47d3
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x47d9
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x230(%rsp), %rsi
movq 0x238(%rsp), %rdx
callq 0x30e0
leaq 0x60(%rsp), %rsi
movq %rsi, 0x50(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4832
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x4838
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x486c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4888
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x48aa
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x48cf
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3340
leaq 0x50(%rsp), %rsi
movq %rbx, %rdi
callq 0x5714
leaq 0x8840(%rip), %rsi      # 0xd123
leaq 0xf8(%rsp), %rdi
callq 0x30d0
testl %eax, %eax
je 0x4996
leaq 0x883c(%rip), %rsi      # 0xd13b
leaq 0xf8(%rsp), %rdi
callq 0x30d0
testl %eax, %eax
je 0x4a02
leaq 0x8824(%rip), %rsi      # 0xd13f
leaq 0xf8(%rsp), %rdi
callq 0x30d0
testl %eax, %eax
jne 0x4b8b
movq 0xd689(%rip), %rbx      # 0x11fc0
leaq 0x8806(%rip), %rsi      # 0xd144
movl $0x11, %edx
movq %rbx, %rdi
callq 0x3380
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3310
movsbl %al, %esi
movq 0xd657(%rip), %rdi      # 0x11fc0
callq 0x3030
movq %rax, %rdi
callq 0x3230
movl (%rsp), %ecx
leaq 0x1d0(%rsp), %r8
movq 0x48(%rsp), %rdi
movl 0x4(%rsp), %esi
movl %ebp, %edx
callq 0x6a16
jmp 0x4b24
movl (%rsp), %ecx
leaq 0x1d0(%rsp), %r8
movq 0x48(%rsp), %rdi
movl 0x4(%rsp), %esi
movl %ebp, %edx
callq 0x59e4
movl $0x1, %r14d
cmpl $0xa, %r15d
jb 0x4a4e
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x4a45
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x4a4b
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x4a4e
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x49cf
addl $-0x3, %r14d
jmp 0x4a4e
movl (%rsp), %ecx
leaq 0x1d0(%rsp), %r8
movq 0x48(%rsp), %rdi
movl 0x4(%rsp), %esi
movl %ebp, %edx
callq 0x5e04
testb %al, %al
jne 0x4b24
movl (%rsp), %ecx
leaq 0x1d0(%rsp), %r8
movq 0x48(%rsp), %rdi
movl 0x4(%rsp), %esi
movl %ebp, %edx
callq 0x6a16
jmp 0x4b24
addl $-0x2, %r14d
jmp 0x4a4e
decl %r14d
addl %r14d, %r12d
leaq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
movq %rax, (%rdi)
movq %r12, %rsi
movl $0x2d, %edx
callq 0x3390
leaq 0x28(%rsp), %r12
addq (%r12), %r13
movq %r13, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x71bb
leaq 0x86a2(%rip), %rsi      # 0xd12b
movq %r12, %rdi
callq 0x3550
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x108(%rsp), %r14
je 0x4ac1
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4ac7
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4afb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3340
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x5714
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4b24
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3340
movl (%rsp), %edi
callq 0x3560
movl %ebp, %edi
callq 0x3560
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x4b4f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4b6c
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3340
leaq 0x1d0(%rsp), %rdi
callq 0x555a
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x28, %edi
callq 0x31a0
movq %rax, %rbx
leaq 0xe8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x85ab(%rip), %rsi      # 0xd156
leaq 0x85c1(%rip), %rdx      # 0xd173
leaq 0xd8(%rsp), %rdi
callq 0x3c86
movb $0x1, %bpl
leaq 0xd8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6aa8
xorl %ebp, %ebp
leaq 0xd12d(%rip), %rsi      # 0x11d08
leaq 0x1f10(%rip), %rdx      # 0x6af2
movq %rbx, %rdi
callq 0x34e0
jmp 0x513a
movq %rdx, %r12
movq %rax, %r15
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4c1d
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x4c1d
movq %rdx, %r12
movq %rax, %r15
movb $0x1, %bpl
testb %bpl, %bpl
je 0x4f6e
movq %rbx, %rdi
callq 0x3250
jmp 0x4f6e
movq %rdx, %r12
movq %rax, %r15
cmpl $0x1, %r12d
jne 0x4f6e
movq %r15, %rdi
callq 0x3130
movl $0x8, %edi
callq 0x31a0
movq 0xd35c(%rip), %rcx      # 0x11fb8
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0xd366(%rip), %rsi      # 0x11fd0
movq 0xd37f(%rip), %rdx      # 0x11ff0
movq %rax, %rdi
callq 0x34e0
jmp 0x513a
movq %rdx, %r12
movq %rax, %r15
callq 0x34c0
jmp 0x4f6e
movq %rdx, %r12
movq %rax, %r15
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4f6e
movq 0x18(%rsp), %rsi
jmp 0x4ccc
movq %rdx, %r12
movq %rax, %r15
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4f6e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x4f6e
jmp 0x4f68
movq %rdx, %r12
movq %rax, %r15
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4d08
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x4d08
movq %rdx, %r12
movq %rax, %r15
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4d2c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x4d2c
movq %rdx, %r12
movq %rax, %r15
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x4d56
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x4d56
movq %rdx, %r12
movq %rax, %r15
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x4f8a
movq 0xa8(%rsp), %rsi
jmp 0x4f82
movq %rdx, %r12
movq %rax, %r15
jmp 0x4f8a
movq %rdx, %r12
movq %rax, %r15
jmp 0x4faf
movq %rdx, %r12
movq %rax, %r15
cmpl $0x1, %r12d
jne 0x4fb9
movq %r15, %rdi
callq 0x3130
movl $0x8, %edi
callq 0x31a0
movq 0xd1fd(%rip), %rcx      # 0x11fb8
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0xd207(%rip), %rsi      # 0x11fd0
movq 0xd220(%rip), %rdx      # 0x11ff0
movq %rax, %rdi
callq 0x34e0
jmp 0x513a
movq %rdx, %r12
movq %rax, %r15
callq 0x34c0
jmp 0x4fb9
movq %rdx, %r12
movq %rax, %r15
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4f16
movq 0x108(%rsp), %rsi
jmp 0x4eef
movq %rdx, %r12
movq %rax, %r15
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x4e3b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x4e3b
movq %rdx, %r12
movq %rax, %r15
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4e5f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x4e5f
movq %rdx, %r12
movq %rax, %r15
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4e83
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x4e83
movq %rdx, %r12
movq %rax, %r15
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x4ead
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x4ead
movq %rdx, %r12
movq %rax, %r15
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4ed2
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x4ed2
movq %rdx, %r12
movq %rax, %r15
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x4f16
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x4f16
jmp 0x4f10
movq %rdx, %r12
movq %rax, %r15
leaq 0xf8(%rsp), %rdi
callq 0x555a
jmp 0x4f16
movq %rdx, %r12
movq %rax, %r15
cmpl $0x1, %r12d
jne 0x4fb9
movq %r15, %rdi
callq 0x3130
movl $0x8, %edi
callq 0x31a0
movq 0xd07f(%rip), %rcx      # 0x11fb8
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0xd089(%rip), %rsi      # 0x11fd0
movq 0xd0a2(%rip), %rdx      # 0x11ff0
movq %rax, %rdi
callq 0x34e0
jmp 0x513a
movq %rdx, %r12
movq %rax, %r15
callq 0x34c0
jmp 0x4fb9
movq %rdx, %r12
movq %rax, %r15
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x4f8a
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x4faf
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3340
cmpl $0x1, %r12d
je 0x5104
cmpl $0x1, %r12d
jne 0x51d4
movq %r15, %rdi
callq 0x3130
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
leaq 0xf8(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movq %rax, %rsi
callq 0x39dc
leaq 0x28(%rsp), %rdi
movl 0x4(%rsp), %esi
callq 0x5671
leaq 0x8176(%rip), %rsi      # 0xd174
leaq 0x28(%rsp), %rdi
callq 0x3550
leaq 0x18(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x502f
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x5035
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x50(%rsp), %rdi
leaq 0xf8(%rsp), %rdx
callq 0x5617
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x507a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3340
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5095
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x48(%rsp), %rdi
addq $0x8, %rdi
leaq 0x50(%rsp), %rsi
callq 0x5714
movl 0x74(%rsp), %edi
callq 0x3560
movl (%rsp), %edi
cmpl $-0x1, %edi
je 0x50be
callq 0x3560
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x50d9
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3340
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x50fa
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3340
callq 0x34c0
jmp 0x4b6c
movq %r15, %rdi
callq 0x3130
movl $0x8, %edi
callq 0x31a0
movq 0xce9b(%rip), %rcx      # 0x11fb8
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0xcea5(%rip), %rsi      # 0x11fd0
movq 0xcebe(%rip), %rdx      # 0x11ff0
movq %rax, %rdi
callq 0x34e0
movq %rdx, %r12
movq %rax, %r15
callq 0x34c0
jmp 0x4fb9
movq %rax, %r15
jmp 0x51d4
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5171
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x5171
movq %rax, %r15
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x51ae
movq 0x38(%rsp), %rsi
jmp 0x51a6
movq %rax, %r15
jmp 0x51ae
movq %rax, %r15
jmp 0x51cf
movq %rax, %r15
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x51ae
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3340
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x51cf
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3340
callq 0x34c0
leaq 0x1d0(%rsp), %rdi
callq 0x555a
movq %r15, %rdi
callq 0x3510
movq %rax, %rdi
callq 0x3d16
nop