// File: /workspace/github_cpp_makefile_star2_O3/Doug0855[P]TigerZone/main.cpp
// Function: matchProtocol(Client&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void matchProtocol(Client &client, std::string &message_list)
{ //This protocol is called once for each match.
	Adapter adapter;
	values_t message_info;
	int number_of_tiles, game1_success, game2_success;
	int count = 0;
	bool lastMessage = true;
	std::string OPPONENT_ID;
	std::string message = getMesssage(client, message_list);
	std::cout << GREEN << "Server sent: " << RESET << message << std::endl;
	Tile tile1;
	TileStack tStack;

	while (lastMessage) //while Game is not over
	{
		if (message.compare(0,1,"Y") == 0) //getting opponent player id
		{
			std::cout << "	OPPONENT PLAYER INFO" << std::endl;
			//message_info = adapter.translate(message);
			//OPPONENT_ID = message_info.playerId; 					//use opponent player id
			OPPONENT_ID = message.substr(24, std::string::npos-24);
			std::cout << "	Opponent ID is: " << OPPONENT_ID << std::endl;
			message = getMesssage(client, message_list);
			std::cout << GREEN << "Server sent: " << RESET << message << std::endl;
		}
		else if (message.compare(0,1,"S") == 0) //getting starting tile information
		{
			std::cout << "	STARTING TILE INFO " << std::endl;
			message_info = adapter.translate(message);
			tile1 = Tile(message_info.tile_num); //getting first tile
			message = getMesssage(client, message_list);
			std::cout << GREEN << "Server sent: " << RESET << message << std::endl;
		}
		else if (message.compare(0,1,"T") == 0) //get tile stack
		{
			std::cout << "	TILE STACK INFO" << std::endl;
			message_info = adapter.translate(message);
			number_of_tiles = message_info.number_of_tiles; //gettting the number of tiles
			tStack = TileStack(message_info.tile_stack); //getting tile stack
			message = getMesssage(client, message_list);
			std::cout << GREEN << "Server sent: " << RESET << message << std::endl;
		}
		else if (message.compare(0,1,"M") == 0)
		{
			std::cout << "	MATCH BEGINS SOON" << std::endl;
			message_info = adapter.translate(message);
			//use planning time
			Player ai, opponent;
			Game game1("", ai, opponent, tStack, tile1, std::pair<int,int> (72,72));
			Game game2("", opponent, ai, tStack, tile1, std::pair<int,int> (72,72));
			game1_success = 0;
			game2_success = 0;
			for (int i = 0; i < number_of_tiles; i++)
			{
				std::cout<<"	Running moveProtocol: Game success for game 1 and 2 are " << game1_success << " and " << game2_success << std::endl;
				moveProtocol(client, message_list, game1, game2, game1_success, game2_success, OPPONENT_ID); //client, message_list, game1 and game2
				if (game1_success == -1 && game2_success == -1)
				{
					break;
				}
					//move must return a value to break from for loop in case of forfeit
				//std::cout<<"Running moveProtocol second time."<<std::endl;
				//moveProtocol(client, message_list, game1, game2, game1_success, game2_success); //client, message_list, game1 and game2
			}
			message = getMesssage(client, message_list);
			std::cout << GREEN << "Server sent: " << RESET << message << std::endl;
		}
		else if (message.compare(0,1,"G") == 0)
		{
			std::cout << "	GAME OVER MESSAGE RECEIVED #" << count << std::endl;
			count++;
			if (count == 2)
				lastMessage = false;
			else
			{
				message = getMesssage(client, message_list);
				std::cout << GREEN << "Server sent: " << RESET << message << std::endl;
			}
		}
		else //hopefully this is never reached
		{
			std::cout << "	ERROR: previous message could not be processed correctly. Message skipped!" << std::endl;
			std::cout << "		ERROR message: " << message << std::endl;
			message = getMesssage(client, message_list);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x8a8, %rsp            # imm = 0x8A8
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x6f8(%rbp), %rdi
callq 0x9e20
leaq -0x260(%rbp), %rcx
xorl %eax, %eax
movq %rax, -0x18(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rcx)
movups %xmm0, -0x38(%rcx)
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x240(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x220(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movl $0x0, 0x14(%rcx)
leaq -0xa0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x60(%rbp), %rdi
movq %r14, -0x38(%rbp)
movq %r14, %rsi
movq %rbx, -0x30(%rbp)
movq %rbx, %rdx
callq 0x40d1
movq 0x197b3(%rip), %rdi     # 0x1efc8
leaq 0x12846(%rip), %rsi     # 0x18062
movl $0x5, %edx
callq 0x3280
movq 0x1979b(%rip), %rdi     # 0x1efc8
leaq 0x12856(%rip), %rsi     # 0x1808a
movl $0xd, %edx
callq 0x3280
movq 0x19783(%rip), %rdi     # 0x1efc8
leaq 0x12822(%rip), %rsi     # 0x1806e
movl $0x4, %edx
callq 0x3280
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq 0x19763(%rip), %r15     # 0x1efc8
movq %r15, %rdi
callq 0x3280
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq -0x560(%rbp), %rdi
callq 0x166aa
leaq -0x200(%rbp), %rdi
callq 0x14b84
leaq -0x198(%rbp), %r12
movl $0xa0, %eax
leaq -0x2b0(%rbp), %rcx
addq %rax, %rcx
movq %rcx, -0x78(%rbp)
addq %r12, %rax
movq %rax, -0x80(%rbp)
movl $0x88, %ecx
leaq -0x560(%rbp), %rax
leaq (%rax,%rcx), %rdx
movq %rdx, -0x1c0(%rbp)
addq %r12, %rcx
movq %rcx, -0x1c8(%rbp)
movl $0xb0, %ecx
leaq (%rax,%rcx), %rdx
movq %rdx, -0x1b0(%rbp)
addq %r12, %rcx
movq %rcx, -0x1b8(%rbp)
movl $0xd0, %ecx
addq %rcx, %rax
movq %rax, -0x1a0(%rbp)
addq %r12, %rcx
movq %rcx, -0x1a8(%rbp)
leaq 0x80(%r12), %rax
movq %rax, -0x70(%rbp)
leaq 0x90(%r12), %rax
movq %rax, -0x68(%rbp)
leaq -0x60(%rbp), %r13
leaq -0x3c0(%rbp), %r14
movl $0x0, -0x3c(%rbp)
movl $0x1, %edx
movq %r13, %rdi
xorl %esi, %esi
leaq 0x1290b(%rip), %rcx     # 0x1826a
callq 0x32d0
testl %eax, %eax
je 0x5aa9
movl $0x1, %edx
movq %r13, %rdi
xorl %esi, %esi
leaq 0x128e3(%rip), %rcx     # 0x18260
callq 0x32d0
testl %eax, %eax
je 0x5c11
movl $0x1, %edx
movq %r13, %rdi
xorl %esi, %esi
leaq 0x12c01(%rip), %rcx     # 0x1859c
callq 0x32d0
testl %eax, %eax
je 0x63f0
movl $0x1, %edx
movq %r13, %rdi
xorl %esi, %esi
leaq 0x126df(%rip), %rcx     # 0x18098
callq 0x32d0
testl %eax, %eax
je 0x5f39
movl $0x1, %edx
movq %r13, %rdi
xorl %esi, %esi
leaq 0x12bb3(%rip), %rcx     # 0x1858a
callq 0x32d0
testl %eax, %eax
je 0x6688
movl $0x4b, %edx
movq %r15, %rdi
leaq 0x127a9(%rip), %rsi     # 0x1819c
callq 0x3280
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
movl $0x11, %edx
movq %r15, %rdi
leaq 0x127ba(%rip), %rsi     # 0x181e8
callq 0x3280
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
movq %r12, %rdi
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x40d1
movq %r13, %rdi
movq %r12, %rsi
callq 0x32b0
movq -0x198(%rbp), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x594e
callq 0x3200
jmp 0x594e
movl $0x15, %edx
movq %r15, %rdi
leaq 0x12625(%rip), %rsi     # 0x180dd
callq 0x3280
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
movl $0x18, %edx
movq %r12, %rdi
movq %r13, %rsi
movq $-0x19, %rcx
callq 0x3240
leaq -0xb0(%rbp), %rdi
movq %r12, %rsi
callq 0x32b0
movq -0x198(%rbp), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x5b22
callq 0x3200
movl $0x11, %edx
movq %r15, %rdi
leaq 0x125c2(%rip), %rsi     # 0x180f3
callq 0x3280
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
movq %r12, %rdi
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x40d1
movq %r13, %rdi
movq %r12, %rsi
callq 0x32b0
movq -0x198(%rbp), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x5ba9
callq 0x3200
movl $0x5, %edx
movq %r15, %rdi
leaq 0x124aa(%rip), %rsi     # 0x18062
callq 0x3280
movl $0xd, %edx
movq %r15, %rdi
leaq 0x124be(%rip), %rsi     # 0x1808a
callq 0x3280
movl $0x4, %edx
movq %r15, %rdi
leaq 0x1248e(%rip), %rsi     # 0x1806e
callq 0x3280
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3210
jmp 0x5f21
movl $0x14, %edx
movq %r15, %rdi
leaq 0x124e5(%rip), %rsi     # 0x18105
callq 0x3280
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq -0x360(%rbp), %rax
movq %rax, -0x370(%rbp)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
addq %rsi, %rdx
leaq -0x370(%rbp), %rbx
movq %rbx, %rdi
callq 0x9cc4
movq %r12, %rdi
leaq -0x6f8(%rbp), %rsi
movq %rbx, %rdx
callq 0xae14
movl -0x188(%rbp), %eax
movl %eax, -0x2a0(%rbp)
movups -0x198(%rbp), %xmm0
movaps %xmm0, -0x2b0(%rbp)
movq -0x298(%rbp), %rdi
movq -0x180(%rbp), %rax
movq %rax, -0x298(%rbp)
movups -0x178(%rbp), %xmm0
movaps %xmm0, -0x290(%rbp)
xorps %xmm0, %xmm0
leaq -0x188(%rbp), %rax
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
testq %rdi, %rdi
je 0x5ce3
callq 0x3200
movups -0x168(%rbp), %xmm0
movaps %xmm0, -0x280(%rbp)
leaq -0x270(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x32b0
leaq -0x250(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x32b0
leaq -0x230(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x32b0
movq -0x80(%rbp), %rcx
movl 0x8(%rcx), %eax
movq -0x78(%rbp), %rdx
movl %eax, 0x8(%rdx)
movq (%rcx), %rax
movq %rax, (%rdx)
movq -0x118(%rbp), %rdi
cmpq -0x68(%rbp), %rdi
je 0x5d4d
callq 0x3200
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x5d65
callq 0x3200
movq -0x158(%rbp), %rdi
leaq -0x148(%rbp), %rax
cmpq %rax, %rdi
je 0x5d7d
callq 0x3200
movq -0x180(%rbp), %rdi
testq %rdi, %rdi
je 0x5d8e
callq 0x3200
movq -0x370(%rbp), %rdi
leaq -0x360(%rbp), %rax
cmpq %rax, %rdi
je 0x5da6
callq 0x3200
movl -0x2ac(%rbp), %esi
movq %r12, %rdi
callq 0x15560
movq -0x198(%rbp), %rax
movq -0x192(%rbp), %rcx
movq %rcx, -0x55a(%rbp)
movq %rax, -0x560(%rbp)
leaq -0x550(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x3140
movq -0x168(%rbp), %rax
movq %rax, -0x530(%rbp)
leaq -0x528(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x3140
movq -0x140(%rbp), %rax
movq %rax, -0x508(%rbp)
leaq -0x500(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x3140
movq -0x118(%rbp), %rax
movq %rax, -0x4e0(%rbp)
movq -0x1c0(%rbp), %rdi
movq -0x1c8(%rbp), %rsi
callq 0x3140
movq -0xf0(%rbp), %rax
movq %rax, -0x4b8(%rbp)
movq -0x1b8(%rbp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movq -0x1b0(%rbp), %rax
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
movq -0x1a0(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
callq 0x8ffa
movq %r12, %rdi
callq 0x16758
movq %r12, %rdi
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x40d1
movq %r13, %rdi
movq %r12, %rsi
callq 0x32b0
movq -0x198(%rbp), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x5ebe
callq 0x3200
movl $0x5, %edx
movq %r15, %rdi
leaq 0x12195(%rip), %rsi     # 0x18062
callq 0x3280
movl $0xd, %edx
movq %r15, %rdi
leaq 0x121a9(%rip), %rsi     # 0x1808a
callq 0x3280
movl $0x4, %edx
movq %r15, %rdi
leaq 0x12179(%rip), %rsi     # 0x1806e
callq 0x3280
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
jmp 0x594e
movl $0x12, %edx
movq %r15, %rdi
leaq 0x121e3(%rip), %rsi     # 0x1812b
callq 0x3280
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq -0x320(%rbp), %rax
movq %rax, -0x330(%rbp)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
addq %rsi, %rdx
leaq -0x330(%rbp), %rbx
movq %rbx, %rdi
callq 0x9cc4
movq %r12, %rdi
leaq -0x6f8(%rbp), %rsi
movq %rbx, %rdx
callq 0xae14
movl -0x188(%rbp), %eax
movl %eax, -0x2a0(%rbp)
movups -0x198(%rbp), %xmm0
movaps %xmm0, -0x2b0(%rbp)
movq -0x298(%rbp), %rdi
movq -0x180(%rbp), %rax
movq %rax, -0x298(%rbp)
movups -0x178(%rbp), %xmm0
movaps %xmm0, -0x290(%rbp)
xorps %xmm0, %xmm0
leaq -0x188(%rbp), %rax
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
testq %rdi, %rdi
je 0x600b
callq 0x3200
movups -0x168(%rbp), %xmm0
movaps %xmm0, -0x280(%rbp)
leaq -0x270(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x32b0
leaq -0x250(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x32b0
leaq -0x230(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x32b0
movq -0x80(%rbp), %rcx
movl 0x8(%rcx), %eax
movq -0x78(%rbp), %rdx
movl %eax, 0x8(%rdx)
movq (%rcx), %rax
movq %rax, (%rdx)
movq -0x118(%rbp), %rdi
cmpq -0x68(%rbp), %rdi
je 0x6075
callq 0x3200
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x608d
callq 0x3200
movq -0x158(%rbp), %rdi
leaq -0x148(%rbp), %rax
cmpq %rax, %rdi
je 0x60a5
callq 0x3200
movq -0x180(%rbp), %rdi
testq %rdi, %rdi
je 0x60b6
callq 0x3200
movq -0x330(%rbp), %rdi
leaq -0x320(%rbp), %rax
cmpq %rax, %rdi
je 0x60ce
callq 0x3200
leaq -0x310(%rbp), %rdi
callq 0x14adc
leaq -0x2f0(%rbp), %rdi
callq 0x14adc
leaq -0x1d8(%rbp), %rax
movq %rax, -0x1e8(%rbp)
leaq -0x1e8(%rbp), %rdi
leaq 0x12693(%rip), %rdx     # 0x18795
movq %rdx, %rsi
callq 0x9d62
leaq -0x400(%rbp), %rdi
leaq -0x310(%rbp), %rsi
callq 0x9a34
movl -0x2f8(%rbp), %eax
movl %eax, -0x3e8(%rbp)
leaq -0x3e0(%rbp), %rdi
leaq -0x2f0(%rbp), %rsi
callq 0x9a34
movl -0x2d8(%rbp), %eax
movl %eax, -0x3c8(%rbp)
movq %r14, %rdi
leaq -0x200(%rbp), %rsi
callq 0x9bb4
leaq -0x8c8(%rbp), %r13
movq %r13, %rdi
leaq -0x560(%rbp), %rsi
callq 0x89fc
movabsq $0x4800000048, %rax     # imm = 0x4800000048
movq %rax, (%rsp)
movq %r12, %rdi
leaq -0x1e8(%rbp), %rsi
leaq -0x400(%rbp), %rbx
movq %rbx, %rdx
movq %r14, %r12
leaq -0x3e0(%rbp), %r14
movq %r14, %rcx
movq %r12, %r8
movq %r13, %r9
callq 0xcc18
movq %r13, %rdi
callq 0x16758
movq %r12, %rdi
callq 0x14e26
movq %r14, %rdi
callq 0x14af0
movq %rbx, %rdi
callq 0x14af0
movq -0x1e8(%rbp), %rdi
leaq -0x1d8(%rbp), %rax
cmpq %rax, %rdi
je 0x61df
callq 0x3200
leaq -0x2c0(%rbp), %rax
movq %rax, -0x2d0(%rbp)
leaq -0x2d0(%rbp), %rbx
movq %rbx, %rdi
leaq 0x12597(%rip), %rdx     # 0x18795
movq %rdx, %rsi
callq 0x9d62
leaq -0x478(%rbp), %r14
leaq -0x7e0(%rbp), %r12
movq %r14, %rdi
leaq -0x2f0(%rbp), %rsi
callq 0x9a34
movl -0x2d8(%rbp), %eax
movl %eax, -0x460(%rbp)
leaq -0x3a8(%rbp), %rdi
leaq -0x310(%rbp), %rsi
callq 0x9a34
movl -0x2f8(%rbp), %eax
movl %eax, -0x390(%rbp)
leaq -0x388(%rbp), %rdi
leaq -0x200(%rbp), %rsi
callq 0x9bb4
movq %r12, %rdi
leaq -0x560(%rbp), %rsi
callq 0x89fc
movabsq $0x4800000048, %rax     # imm = 0x4800000048
movq %rax, (%rsp)
leaq -0x600(%rbp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
leaq -0x3a8(%rbp), %rbx
movq %rbx, %rcx
movq %r12, %r13
leaq -0x388(%rbp), %r12
movq %r12, %r8
movq %r13, %r9
callq 0xcc18
movq %r13, %rdi
callq 0x16758
movq %r12, %rdi
callq 0x14e26
movq %rbx, %rdi
callq 0x14af0
movq %r14, %rdi
callq 0x14af0
movq -0x2d0(%rbp), %rdi
leaq -0x2c0(%rbp), %rax
cmpq %rax, %rdi
je 0x62e2
callq 0x3200
xorl %eax, %eax
movl %eax, -0x8c(%rbp)
movl %eax, -0x88(%rbp)
cmpl $0x0, -0x84(%rbp)
leaq -0x3c0(%rbp), %r14
leaq -0x438(%rbp), %rbx
jg 0x6849
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x40d1
leaq -0x60(%rbp), %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0x32b0
movq -0x438(%rbp), %rdi
leaq -0x428(%rbp), %rax
cmpq %rax, %rdi
je 0x6342
callq 0x3200
movl $0x5, %edx
movq %r15, %rdi
leaq 0x11d11(%rip), %rsi     # 0x18062
callq 0x3280
leaq -0x198(%rbp), %r12
movl $0xd, %edx
movq %r15, %rdi
leaq 0x11d1e(%rip), %rsi     # 0x1808a
callq 0x3280
movl $0x4, %edx
movq %r15, %rdi
leaq 0x11cee(%rip), %rsi     # 0x1806e
callq 0x3280
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq -0x600(%rbp), %rdi
callq 0xcd68
movq %r12, %rdi
callq 0xcd68
leaq -0x2f0(%rbp), %rdi
callq 0x14af0
leaq -0x310(%rbp), %rdi
callq 0x14af0
jmp 0x594e
movl $0x10, %edx
movq %r15, %rdi
leaq 0x11d1b(%rip), %rsi     # 0x1811a
callq 0x3280
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq -0x340(%rbp), %rax
movq %rax, -0x350(%rbp)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
addq %rsi, %rdx
leaq -0x350(%rbp), %rbx
movq %rbx, %rdi
callq 0x9cc4
movq %r12, %rdi
leaq -0x6f8(%rbp), %rsi
movq %rbx, %rdx
callq 0xae14
movl -0x188(%rbp), %eax
movl %eax, -0x2a0(%rbp)
movups -0x198(%rbp), %xmm0
movaps %xmm0, -0x2b0(%rbp)
movq -0x298(%rbp), %rdi
movq -0x180(%rbp), %rax
movq %rax, -0x298(%rbp)
movups -0x178(%rbp), %xmm0
movaps %xmm0, -0x290(%rbp)
xorps %xmm0, %xmm0
leaq -0x188(%rbp), %rax
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
testq %rdi, %rdi
je 0x64c2
callq 0x3200
movups -0x168(%rbp), %xmm0
movaps %xmm0, -0x280(%rbp)
leaq -0x270(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x32b0
leaq -0x250(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x32b0
leaq -0x230(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x32b0
movq -0x80(%rbp), %rcx
movl 0x8(%rcx), %eax
movq -0x78(%rbp), %rdx
movl %eax, 0x8(%rdx)
movq (%rcx), %rax
movq %rax, (%rdx)
movq -0x118(%rbp), %rdi
cmpq -0x68(%rbp), %rdi
je 0x652c
callq 0x3200
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x6544
callq 0x3200
movq -0x158(%rbp), %rdi
leaq -0x148(%rbp), %rax
cmpq %rax, %rdi
je 0x655c
callq 0x3200
movq -0x180(%rbp), %rdi
testq %rdi, %rdi
je 0x656d
callq 0x3200
movq -0x350(%rbp), %rdi
leaq -0x340(%rbp), %rax
cmpq %rax, %rdi
je 0x6585
callq 0x3200
movl -0x2b0(%rbp), %eax
movl %eax, -0x84(%rbp)
leaq -0x418(%rbp), %rbx
movq %rbx, %rdi
leaq -0x298(%rbp), %rsi
callq 0x8bc4
movq %r12, %rdi
movq %rbx, %rsi
callq 0x14d58
leaq -0x200(%rbp), %rdi
movq %r12, %rsi
callq 0x955a
movq %r12, %rdi
callq 0x14e26
movq -0x418(%rbp), %rdi
testq %rdi, %rdi
je 0x65da
callq 0x3200
movq %r12, %rdi
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x40d1
movq %r13, %rdi
movq %r12, %rsi
callq 0x32b0
movq -0x198(%rbp), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x660d
callq 0x3200
movl $0x5, %edx
movq %r15, %rdi
leaq 0x11a46(%rip), %rsi     # 0x18062
callq 0x3280
movl $0xd, %edx
movq %r15, %rdi
leaq 0x11a5a(%rip), %rsi     # 0x1808a
callq 0x3280
movl $0x4, %edx
movq %r15, %rdi
leaq 0x11a2a(%rip), %rsi     # 0x1806e
callq 0x3280
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
jmp 0x594e
movl $0x1d, %edx
movq %r15, %rdi
leaq 0x11ae7(%rip), %rsi     # 0x1817e
callq 0x3280
movq %r15, %rdi
movl -0x3c(%rbp), %esi
callq 0x33c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
movl -0x3c(%rbp), %eax
incl %eax
movl %eax, -0x3c(%rbp)
cmpl $0x2, %eax
je 0x6790
movq %r12, %rdi
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x40d1
movq %r13, %rdi
movq %r12, %rsi
callq 0x32b0
movq -0x198(%rbp), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x6715
callq 0x3200
movl $0x5, %edx
movq %r15, %rdi
leaq 0x1193e(%rip), %rsi     # 0x18062
callq 0x3280
movl $0xd, %edx
movq %r15, %rdi
leaq 0x11952(%rip), %rsi     # 0x1808a
callq 0x3280
movl $0x4, %edx
movq %r15, %rdi
leaq 0x11922(%rip), %rsi     # 0x1806e
callq 0x3280
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
jmp 0x594e
leaq -0x200(%rbp), %rdi
callq 0x14e26
leaq -0x560(%rbp), %rdi
callq 0x16758
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x67ba
callq 0x3200
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x67d2
callq 0x3200
movq -0x230(%rbp), %rdi
leaq -0x220(%rbp), %rax
cmpq %rax, %rdi
je 0x67ea
callq 0x3200
movq -0x250(%rbp), %rdi
leaq -0x240(%rbp), %rax
cmpq %rax, %rdi
je 0x6802
callq 0x3200
movq -0x270(%rbp), %rdi
leaq -0x260(%rbp), %rax
cmpq %rax, %rdi
je 0x681a
callq 0x3200
movq -0x298(%rbp), %rdi
testq %rdi, %rdi
je 0x682b
callq 0x3200
leaq -0x6f8(%rbp), %rdi
callq 0x9ec6
addq $0x8a8, %rsp            # imm = 0x8A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18778(%rip), %rdi     # 0x1efc8
leaq 0x118e7(%rip), %rsi     # 0x1813e
movl $0x39, %edx
callq 0x3280
movq 0x18760(%rip), %rdi     # 0x1efc8
xorl %esi, %esi
callq 0x33c0
movq %rax, %rbx
leaq 0x118ff(%rip), %rsi     # 0x18178
movl $0x5, %edx
movq %rax, %rdi
callq 0x3280
movq %rbx, %rdi
xorl %esi, %esi
callq 0x33c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq -0x448(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x458(%rbp), %rbx
movq %rbx, %rdi
callq 0x9cc4
movq %rbx, (%rsp)
leaq -0x198(%rbp), %rdx
leaq -0x600(%rbp), %rcx
leaq -0x8c(%rbp), %r8
leaq -0x88(%rbp), %r9
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x41a6
movq %rax, %rbx
jmp 0x6b26
jmp 0x6941
movq %rax, %rbx
jmp 0x6b44
movq %rax, %rbx
movq -0x458(%rbp), %rdi
cmpq %r15, %rdi
je 0x6ad4
callq 0x3200
jmp 0x6ad4
movq %rax, %rbx
jmp 0x6b32
jmp 0x6b17
jmp 0x6b17
movq %rax, %rbx
leaq -0x198(%rbp), %rdi
callq 0x14e26
jmp 0x697d
movq %rax, %rbx
movq -0x350(%rbp), %rdi
leaq -0x340(%rbp), %rax
jmp 0x6abd
movq %rax, %rbx
movq -0x418(%rbp), %rdi
testq %rdi, %rdi
jne 0x6ac2
jmp 0x6b1a
jmp 0x6b17
jmp 0x6b17
jmp 0x6b17
jmp 0x6b17
jmp 0x6ad1
jmp 0x6ad1
movq %rax, %rbx
leaq -0x7e0(%rbp), %rdi
callq 0x16758
jmp 0x69c9
movq %rax, %rbx
jmp 0x69d5
movq %rax, %rbx
leaq -0x388(%rbp), %rdi
callq 0x14e26
leaq -0x3a8(%rbp), %rdi
callq 0x14af0
jmp 0x69e6
movq %rax, %rbx
leaq -0x478(%rbp), %rdi
callq 0x14af0
jmp 0x69f7
movq %rax, %rbx
movq -0x2d0(%rbp), %rdi
leaq -0x2c0(%rbp), %rax
cmpq %rax, %rdi
je 0x6ae0
callq 0x3200
jmp 0x6ae0
movq %rax, %rbx
jmp 0x6ae0
movq %rax, %rbx
leaq -0x8c8(%rbp), %rdi
callq 0x16758
jmp 0x6a39
movq %rax, %rbx
jmp 0x6a45
movq %rax, %rbx
leaq -0x3c0(%rbp), %rdi
callq 0x14e26
leaq -0x3e0(%rbp), %rdi
callq 0x14af0
jmp 0x6a56
movq %rax, %rbx
leaq -0x400(%rbp), %rdi
callq 0x14af0
jmp 0x6a67
movq %rax, %rbx
movq -0x1e8(%rbp), %rdi
leaq -0x1d8(%rbp), %rax
cmpq %rax, %rdi
je 0x6aec
callq 0x3200
jmp 0x6aec
movq %rax, %rbx
jmp 0x6aec
movq %rax, %rbx
jmp 0x6af8
jmp 0x6b17
jmp 0x6b17
movq %rax, %rbx
movq -0x330(%rbp), %rdi
leaq -0x320(%rbp), %rax
jmp 0x6abd
jmp 0x6b17
jmp 0x6b17
movq %rax, %rbx
movq -0x370(%rbp), %rdi
leaq -0x360(%rbp), %rax
cmpq %rax, %rdi
je 0x6b1a
callq 0x3200
jmp 0x6b1a
jmp 0x6b17
jmp 0x6b17
jmp 0x6b17
jmp 0x6b17
movq %rax, %rbx
leaq -0x600(%rbp), %rdi
callq 0xcd68
leaq -0x198(%rbp), %rdi
callq 0xcd68
leaq -0x2f0(%rbp), %rdi
callq 0x14af0
leaq -0x310(%rbp), %rdi
callq 0x14af0
jmp 0x6b1a
movq %rax, %rbx
leaq -0x198(%rbp), %rdi
callq 0x16758
jmp 0x6b1a
movq %rax, %rbx
leaq -0x200(%rbp), %rdi
callq 0x14e26
leaq -0x560(%rbp), %rdi
callq 0x16758
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6b44
callq 0x3200
leaq -0xa0(%rbp), %rax
movq -0xb0(%rbp), %rdi
cmpq %rax, %rdi
je 0x6b5c
callq 0x3200
leaq -0x2b0(%rbp), %rdi
callq 0x8b68
leaq -0x6f8(%rbp), %rdi
callq 0x9ec6
movq %rbx, %rdi
callq 0x33f0