// File: /workspace/github_cpp_makefile_star2_O3/Doug0855[P]TigerZone/main.cpp
// Function: moveProtocol(Client&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, Game&, Game&, int&, int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int moveProtocol(Client &client, std::string &message_list, Game &game1, Game &game2, int &success1, int &success2, std::string OPPONENT_ID)
{
	/*
	This protocol is called whenever a move needs to be made.
	It takes a reference to both games being played and two success values.
	These success values are used to calculate the number of iterations needed in the processing loop
	*/
	std::string message_to_send;
	std::string message;
	values_t message_info;
	Adapter adapter;
	int runTime = 3;
	Tile tmpTile;

	message = getMesssage(client, message_list);
	std::cout << GREEN << "Server sent: " << RESET << message << std::endl;

	if ((success1 == -1 || success2 == -1) && message.compare(0,1,"M") == 0) //Need to make a move
		runTime = 2;
	else if ((success1 == -1 || success2 == -1) && message.compare(0,1,"G") == 0) //Need to get a game piece
		runTime = 1;
	else if (success1 == -1 && success2 == -1) //Do nothing
		runTime = 0;

	for (int i = 0; i < runTime; i++)
	{
		if (message.compare(0,1,"M") == 0)
		{
			std::cout<<"	SERVER ASKING FOR A MOVE"<<std::endl;
			message_info = adapter.translate(message);
			if (game1.getID() == "")
				game1.setID(message_info.gameId);
			if (message_info.gameId == game1.getID())
			{
				//std::cout << "sent our move for tile: " << message_info.tile_num <<  " and game: " << message_info.gameId << std::endl;
				tmpTile = Tile(message_info.tile_num);
				message_to_send = game1.makeMove(tmpTile, message_info.moveNumber);
			}
			else if (message_info.gameId == game2.getID())
			{
				//std::cout << "sent our move for tile: " << message_info.tile_num <<  " and game: " << message_info.gameId << std::endl;
				tmpTile = Tile(message_info.tile_num);
				message_to_send = game2.makeMove(tmpTile, message_info.moveNumber);
			}
			std::cout << RED << "	We sent: " << RESET << message_to_send << std::endl;
			client.sendMessage(message_to_send);
			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 MOVES INFORMATION" << std::endl;
			message_info = adapter.translate(message);
			if (message_info.gameId != game1.getID() && game2.getID() == "")
				game2.setID(message_info.gameId);
			if (message_info.forfeit == -1)
			{
				if (game2.getID() == message_info.gameId)
					success2 = -1;
				else if (game1.getID() == message_info.gameId)
					success1 = -1;
				if (success1 == -1 && success2 == -1)
					break;
			}
			else
			{
				if (message_info.playerId == OPPONENT_ID)
				{
					tmpTile = Tile(message_info.tile_num);
					int i = message_info.coordinates.first;
					int j = message_info.coordinates.second;
					int orientation = message_info.rotation;

					if (message_info.gameId == game1.getID())
					{
						//std::cout << "	Received opponent move for tile: " << message_info.tile_num <<  " in game: " << message_info.gameId << std::endl;
						//std::cout << "		tile placed at <" << i << ", " << j << "> " << "with rotation: " << orientation << std::endl;
						//std::cout << "		croc? " << message_info.croc << " tiger? " << message_info.tiger << " zone " << "[" <<message_info.tiger_spot.first << ", " << message_info.tiger_spot.second << "] " << std::endl;
						tmpTile = Tile(message_info.tile_num);
						game1.enemyMove(tmpTile, i, j, orientation, message_info.tiger, message_info.croc, message_info.tiger_spot);
					}
					else if (message_info.gameId == game2.getID())
					{
						//std::cout << "	Received opponent move for tile: " << message_info.tile_num <<  " in game: " << message_info.gameId << std::endl;
						//std::cout << "		tile placed at <" << i << ", " << j << "> :" << "with rotation: " << orientation << std::endl;
						//std::cout << "		croc? " << message_info.croc << " tiger? " << message_info.tiger << " zone " << "[" <<message_info.tiger_spot.first << ", " << message_info.tiger_spot.second << "] " << std::endl;
						//tmpTile = Tile(message_info.tile_num);
						//debugging std::cout << "DEBUG FLAG" << std::endl;
						game2.enemyMove(tmpTile, i, j, orientation, message_info.tiger, message_info.croc, message_info.tiger_spot);
						//debugging std::cout << "DEBUG FLAG 2" << std::endl;
					}
				}
			}
			if (i < runTime-1) //if it isn't the final message, display the message the server sent.
			{
				message = getMesssage(client, message_list);
				std::cout << GREEN << "Server sent: " << RESET << message << std::endl;
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x908, %rsp            # imm = 0x908
movq %r9, -0x58(%rbp)
movq %r8, -0x50(%rbp)
movq %rcx, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq %rsi, -0x1a0(%rbp)
movq %rdi, -0x90(%rbp)
leaq -0x2b0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0xa0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x210(%rbp), %rcx
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 -0x1f0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x1d0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movl $0x0, 0x14(%rcx)
leaq -0x760(%rbp), %rdi
callq 0x9e20
leaq -0x498(%rbp), %rdi
callq 0x166aa
leaq -0x198(%rbp), %rdi
movq -0x90(%rbp), %rsi
movq -0x1a0(%rbp), %rdx
callq 0x40d1
leaq -0xb0(%rbp), %rdi
leaq -0x198(%rbp), %r15
movq %r15, %rsi
callq 0x32b0
movq (%r15), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x42a1
callq 0x3200
movq 0x1ad20(%rip), %rdi     # 0x1efc8
leaq 0x13db3(%rip), %rsi     # 0x18062
movl $0x5, %edx
callq 0x3280
movq 0x1ad08(%rip), %rdi     # 0x1efc8
leaq 0x13dc3(%rip), %rsi     # 0x1808a
movl $0xd, %edx
callq 0x3280
movq 0x1acf0(%rip), %rdi     # 0x1efc8
leaq 0x13d8f(%rip), %rsi     # 0x1806e
movl $0x4, %edx
callq 0x3280
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movq 0x1acca(%rip), %r13     # 0x1efc8
movq %r13, %rdi
callq 0x3280
movq %rax, %rdi
callq 0x3120
movq -0x50(%rbp), %rax
cmpl $-0x1, (%rax)
movl $0x3, %ecx
je 0x54bb
movq -0x58(%rbp), %rax
cmpl $-0x1, (%rax)
je 0x54bb
movl $0xa0, %eax
leaq -0x260(%rbp), %rdx
addq %rax, %rdx
movq %rdx, -0x278(%rbp)
addq %r15, %rax
movq %rax, -0x280(%rbp)
movl $0x88, %edx
leaq -0x498(%rbp), %rax
leaq (%rax,%rdx), %rsi
movq %rsi, -0x80(%rbp)
addq %r15, %rdx
movq %rdx, -0x88(%rbp)
movl $0xb0, %edx
leaq (%rax,%rdx), %rsi
movq %rsi, -0x70(%rbp)
addq %r15, %rdx
movq %rdx, -0x78(%rbp)
movl $0xd0, %edx
addq %rdx, %rax
movq %rax, -0x60(%rbp)
addq %r15, %rdx
movq %rdx, -0x68(%rbp)
decl %ecx
movl %ecx, -0x1a4(%rbp)
leaq 0x80(%r15), %rax
movq %rax, -0x270(%rbp)
leaq 0x90(%r15), %rax
movq %rax, -0x268(%rbp)
movq -0x38(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x2d0(%rbp)
movq -0x40(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x2c8(%rbp)
leaq -0x290(%rbp), %r12
xorl %ebx, %ebx
movl $0x1, %edx
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
leaq 0x13ca6(%rip), %rcx     # 0x18098
callq 0x32d0
testl %eax, %eax
je 0x4690
movl $0x1, %edx
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
leaq 0x14176(%rip), %rcx     # 0x1858a
callq 0x32d0
testl %eax, %eax
jne 0x54b4
movl $0x17, %edx
movq %r13, %rdi
leaq 0x13c95(%rip), %rsi     # 0x180c5
callq 0x3280
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r13, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq -0x340(%rbp), %rax
movq %rax, -0x350(%rbp)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x350(%rbp), %r14
movq %r14, %rdi
callq 0x9cc4
movq %r15, %rdi
leaq -0x760(%rbp), %rsi
movq %r14, %rdx
callq 0xae14
movl -0x188(%rbp), %eax
movl %eax, -0x250(%rbp)
movups -0x198(%rbp), %xmm0
movaps %xmm0, -0x260(%rbp)
movq -0x248(%rbp), %rdi
movq -0x180(%rbp), %rax
movq %rax, -0x248(%rbp)
movups -0x178(%rbp), %xmm0
movaps %xmm0, -0x240(%rbp)
xorps %xmm0, %xmm0
leaq -0x180(%rbp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
testq %rdi, %rdi
je 0x44f9
callq 0x3200
movups -0x168(%rbp), %xmm0
movaps %xmm0, -0x230(%rbp)
leaq -0x220(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x32b0
leaq -0x200(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x32b0
leaq -0x1e0(%rbp), %rdi
movq -0x270(%rbp), %rsi
callq 0x32b0
movq -0x280(%rbp), %rcx
movl 0x8(%rcx), %eax
movq -0x278(%rbp), %rdx
movl %eax, 0x8(%rdx)
movq (%rcx), %rax
movq %rax, (%rdx)
movq -0x118(%rbp), %rdi
cmpq -0x268(%rbp), %rdi
je 0x456f
callq 0x3200
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x4587
callq 0x3200
movq -0x158(%rbp), %rdi
leaq -0x148(%rbp), %rax
cmpq %rax, %rdi
je 0x459f
callq 0x3200
movq -0x180(%rbp), %rdi
testq %rdi, %rdi
je 0x45b0
callq 0x3200
movq -0x350(%rbp), %rdi
leaq -0x340(%rbp), %rax
cmpq %rax, %rdi
je 0x45c8
callq 0x3200
leaq -0x188(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9cc4
movq -0x218(%rbp), %rdx
cmpq -0x190(%rbp), %rdx
jne 0x4624
movq -0x198(%rbp), %r14
testq %rdx, %rdx
je 0x4948
movq -0x220(%rbp), %rdi
movq %r14, %rsi
callq 0x3230
testl %eax, %eax
je 0x4948
movq %r12, %r14
movq %r13, %r12
movq %rbx, %r13
movq %r14, -0x2a0(%rbp)
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq -0x2a0(%rbp), %rbx
movq %rbx, %rdi
callq 0x9cc4
movq %rbx, %rdi
leaq 0x14139(%rip), %rsi     # 0x18795
callq 0x30b0
testl %eax, %eax
sete %al
movl %eax, -0x2c(%rbp)
movq -0x2a0(%rbp), %rdi
cmpq %r14, %rdi
je 0x467a
callq 0x3200
movq -0x198(%rbp), %r14
movq %r13, %rbx
movq %r12, %r13
movl -0x2c(%rbp), %r12d
jmp 0x494b
movl $0x19, %edx
movq %r13, %rdi
leaq 0x139fb(%rip), %rsi     # 0x1809a
callq 0x3280
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r13, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq -0x3a0(%rbp), %rax
movq %rax, -0x3b0(%rbp)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x3b0(%rbp), %r14
movq %r14, %rdi
callq 0x9cc4
movq %r15, %rdi
leaq -0x760(%rbp), %rsi
movq %r14, %rdx
callq 0xae14
movl -0x188(%rbp), %eax
movl %eax, -0x250(%rbp)
movups -0x198(%rbp), %xmm0
movaps %xmm0, -0x260(%rbp)
movq -0x248(%rbp), %rdi
movq -0x180(%rbp), %rax
movq %rax, -0x248(%rbp)
movups -0x178(%rbp), %xmm0
movaps %xmm0, -0x240(%rbp)
xorps %xmm0, %xmm0
leaq -0x180(%rbp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
testq %rdi, %rdi
je 0x4768
callq 0x3200
movups -0x168(%rbp), %xmm0
movaps %xmm0, -0x230(%rbp)
leaq -0x220(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x32b0
leaq -0x200(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x32b0
leaq -0x1e0(%rbp), %rdi
movq -0x270(%rbp), %rsi
callq 0x32b0
movq -0x280(%rbp), %rcx
movl 0x8(%rcx), %eax
movq -0x278(%rbp), %rdx
movl %eax, 0x8(%rdx)
movq (%rcx), %rax
movq %rax, (%rdx)
movq -0x118(%rbp), %rdi
cmpq -0x268(%rbp), %rdi
je 0x47de
callq 0x3200
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x47f6
callq 0x3200
movq -0x158(%rbp), %rdi
leaq -0x148(%rbp), %rax
cmpq %rax, %rdi
je 0x480e
callq 0x3200
movq -0x180(%rbp), %rdi
testq %rdi, %rdi
je 0x481f
callq 0x3200
movq -0x3b0(%rbp), %rdi
leaq -0x3a0(%rbp), %rax
cmpq %rax, %rdi
je 0x4837
callq 0x3200
leaq -0x188(%rbp), %r12
movq %r12, -0x198(%rbp)
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9cc4
movq %r15, %rdi
leaq 0x13f2f(%rip), %rsi     # 0x18795
callq 0x30b0
movl %eax, %r14d
movq -0x198(%rbp), %rdi
cmpq %r12, %rdi
je 0x487f
callq 0x3200
testl %r14d, %r14d
jne 0x48da
leaq -0x320(%rbp), %rax
movq %rax, -0x330(%rbp)
movq -0x220(%rbp), %rsi
movq -0x218(%rbp), %rdx
addq %rsi, %rdx
leaq -0x330(%rbp), %rdi
callq 0x9cc4
movq -0x2d0(%rbp), %rdi
leaq -0x330(%rbp), %rsi
callq 0x3140
movq -0x330(%rbp), %rdi
leaq -0x320(%rbp), %rax
cmpq %rax, %rdi
je 0x48da
callq 0x3200
leaq -0x188(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9cc4
movq -0x218(%rbp), %rdx
cmpq -0x190(%rbp), %rdx
jne 0x4939
movq -0x198(%rbp), %r14
testq %rdx, %rdx
je 0x4bba
movq -0x220(%rbp), %rdi
movq %r14, %rsi
callq 0x3230
testl %eax, %eax
sete %r12b
jmp 0x4bbd
movq -0x198(%rbp), %r14
xorl %r12d, %r12d
jmp 0x4bbd
xorl %r12d, %r12d
leaq -0x188(%rbp), %rax
cmpq %rax, %r14
je 0x495f
movq %r14, %rdi
callq 0x3200
testb %r12b, %r12b
leaq -0x290(%rbp), %r12
je 0x49c1
leaq -0x2e0(%rbp), %rax
movq %rax, -0x2f0(%rbp)
movq -0x220(%rbp), %rsi
movq -0x218(%rbp), %rdx
addq %rsi, %rdx
leaq -0x2f0(%rbp), %rdi
callq 0x9cc4
movq -0x2c8(%rbp), %rdi
leaq -0x2f0(%rbp), %rsi
callq 0x3140
movq -0x2f0(%rbp), %rdi
leaq -0x2e0(%rbp), %rax
cmpq %rax, %rdi
je 0x49c1
callq 0x3200
cmpl $-0x1, -0x1bc(%rbp)
je 0x4b57
movq -0x1d8(%rbp), %rdx
movq 0x10(%rbp), %rax
cmpq 0x8(%rax), %rdx
jne 0x53ef
testq %rdx, %rdx
je 0x49ff
movq (%rax), %rsi
movq -0x1e0(%rbp), %rdi
callq 0x3230
testl %eax, %eax
jne 0x53ef
movl -0x25c(%rbp), %esi
movq %r15, %rdi
callq 0x15560
movq -0x198(%rbp), %rax
movq -0x192(%rbp), %rcx
movq %rcx, -0x492(%rbp)
movq %rax, -0x498(%rbp)
leaq -0x488(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x3140
movq -0x168(%rbp), %rax
movq %rax, -0x468(%rbp)
leaq -0x460(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x3140
movq -0x140(%rbp), %rax
movq %rax, -0x440(%rbp)
leaq -0x438(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x3140
movq -0x118(%rbp), %rax
movq %rax, -0x418(%rbp)
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x3140
movq -0xf0(%rbp), %rax
movq %rax, -0x3f0(%rbp)
movq -0x78(%rbp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movq -0x70(%rbp), %rax
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x8ffa
movq %r15, %rdi
callq 0x16758
movl -0x258(%rbp), %r14d
movl -0x230(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x22c(%rbp), %r12d
leaq -0x188(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9cc4
movl %r14d, -0x48(%rbp)
movq -0x218(%rbp), %rdx
cmpq -0x190(%rbp), %rdx
movl %r12d, -0x44(%rbp)
jne 0x50e8
movq -0x198(%rbp), %r14
testq %rdx, %rdx
je 0x5197
movq -0x220(%rbp), %rdi
movq %r14, %rsi
callq 0x3230
testl %eax, %eax
sete %r12b
jmp 0x519a
leaq -0x188(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9cc4
movq -0x190(%rbp), %rdx
cmpq -0x218(%rbp), %rdx
jne 0x4dbd
movq -0x198(%rbp), %r14
testq %rdx, %rdx
je 0x50f7
movq -0x220(%rbp), %rsi
movq %r14, %rdi
callq 0x3230
testl %eax, %eax
sete %r12b
jmp 0x50fa
movb $0x1, %r12b
leaq -0x188(%rbp), %rax
cmpq %rax, %r14
je 0x4bd1
movq %r14, %rdi
callq 0x3200
testb %r12b, %r12b
je 0x4d59
movl -0x25c(%rbp), %esi
movq %r15, %rdi
callq 0x15560
leaq -0x290(%rbp), %r12
movq -0x198(%rbp), %rax
movq -0x192(%rbp), %rcx
movq %rcx, -0x492(%rbp)
movq %rax, -0x498(%rbp)
leaq -0x488(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x3140
movq -0x168(%rbp), %rax
movq %rax, -0x468(%rbp)
leaq -0x460(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x3140
movq -0x140(%rbp), %rax
movq %rax, -0x440(%rbp)
leaq -0x438(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x3140
movq -0x118(%rbp), %rax
movq %rax, -0x418(%rbp)
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x3140
movq -0xf0(%rbp), %rax
movq %rax, -0x3f0(%rbp)
movq -0x78(%rbp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movq -0x70(%rbp), %rax
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x8ffa
movq %r15, %rdi
callq 0x16758
leaq -0x668(%rbp), %rdi
leaq -0x498(%rbp), %rsi
callq 0x89fc
leaq -0x380(%rbp), %rax
movq %rax, -0x390(%rbp)
movq -0x200(%rbp), %rsi
movq -0x1f8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x390(%rbp), %r14
movq %r14, %rdi
callq 0x9cc4
movq %r15, %rdi
movq -0x38(%rbp), %rsi
leaq -0x668(%rbp), %rdx
movq %r14, %rcx
callq 0xd5c6
leaq -0x2c0(%rbp), %rdi
movq %r15, %rsi
callq 0x32b0
movq -0x198(%rbp), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x4d35
callq 0x3200
movq -0x390(%rbp), %rdi
leaq -0x380(%rbp), %rax
cmpq %rax, %rdi
je 0x4d4d
callq 0x3200
leaq -0x668(%rbp), %rdi
jmp 0x4f66
leaq -0x188(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9cc4
movq -0x218(%rbp), %rdx
cmpq -0x190(%rbp), %rdx
jne 0x4db1
movq -0x198(%rbp), %r14
testq %rdx, %rdx
je 0x4dcc
movq -0x220(%rbp), %rdi
movq %r14, %rsi
callq 0x3230
testl %eax, %eax
sete %r12b
jmp 0x4dcf
movq -0x198(%rbp), %r14
xorl %r12d, %r12d
jmp 0x4dcf
movq -0x198(%rbp), %r14
xorl %r12d, %r12d
jmp 0x50fa
movb $0x1, %r12b
leaq -0x188(%rbp), %rax
cmpq %rax, %r14
je 0x4de3
movq %r14, %rdi
callq 0x3200
testb %r12b, %r12b
leaq -0x290(%rbp), %r12
je 0x4f6b
movl -0x25c(%rbp), %esi
movq %r15, %rdi
callq 0x15560
movq -0x198(%rbp), %rax
movq -0x192(%rbp), %rcx
movq %rcx, -0x492(%rbp)
movq %rax, -0x498(%rbp)
leaq -0x488(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x3140
movq -0x168(%rbp), %rax
movq %rax, -0x468(%rbp)
leaq -0x460(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x3140
movq -0x140(%rbp), %rax
movq %rax, -0x440(%rbp)
leaq -0x438(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x3140
movq -0x118(%rbp), %rax
movq %rax, -0x418(%rbp)
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x3140
movq -0xf0(%rbp), %rax
movq %rax, -0x3f0(%rbp)
movq -0x78(%rbp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movq -0x70(%rbp), %rax
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x8ffa
movq %r15, %rdi
callq 0x16758
leaq -0x580(%rbp), %rdi
leaq -0x498(%rbp), %rsi
callq 0x89fc
leaq -0x360(%rbp), %rax
movq %rax, -0x370(%rbp)
movq -0x200(%rbp), %rsi
movq -0x1f8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x370(%rbp), %r14
movq %r14, %rdi
callq 0x9cc4
movq %r15, %rdi
movq -0x40(%rbp), %rsi
leaq -0x580(%rbp), %rdx
movq %r14, %rcx
callq 0xd5c6
leaq -0x2c0(%rbp), %rdi
movq %r15, %rsi
callq 0x32b0
movq -0x198(%rbp), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x4f47
callq 0x3200
movq -0x370(%rbp), %rdi
leaq -0x360(%rbp), %rax
cmpq %rax, %rdi
je 0x4f5f
callq 0x3200
leaq -0x580(%rbp), %rdi
callq 0x16758
movl $0x5, %edx
movq %r13, %rdi
leaq 0x1313a(%rip), %rsi     # 0x180b4
callq 0x3280
movl $0xa, %edx
movq %r13, %rdi
leaq 0x1312c(%rip), %rsi     # 0x180ba
callq 0x3280
movl $0x4, %edx
movq %r13, %rdi
leaq 0x130cc(%rip), %rsi     # 0x1806e
callq 0x3280
movq -0x2c0(%rbp), %rsi
movq -0x2b8(%rbp), %rdx
movq %r13, %rdi
callq 0x3280
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq -0x300(%rbp), %rax
movq %rax, -0x310(%rbp)
movq -0x2c0(%rbp), %rsi
movq -0x2b8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x310(%rbp), %rdi
callq 0x9cc4
movq -0x90(%rbp), %rdi
leaq -0x310(%rbp), %rsi
callq 0xf300
movq -0x310(%rbp), %rdi
leaq -0x300(%rbp), %rax
cmpq %rax, %rdi
je 0x503d
callq 0x3200
movq %r15, %rdi
movq -0x90(%rbp), %rsi
movq -0x1a0(%rbp), %rdx
callq 0x40d1
leaq -0xb0(%rbp), %rdi
movq %r15, %rsi
callq 0x32b0
movq -0x198(%rbp), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x507a
callq 0x3200
movl $0x5, %edx
movq %r13, %rdi
leaq 0x12fd9(%rip), %rsi     # 0x18062
callq 0x3280
movl $0xd, %edx
movq %r13, %rdi
leaq 0x12fed(%rip), %rsi     # 0x1808a
callq 0x3280
movl $0x4, %edx
movq %r13, %rdi
leaq 0x12fbd(%rip), %rsi     # 0x1806e
callq 0x3280
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movq %r13, %rdi
callq 0x3280
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3210
jmp 0x54a1
movq -0x198(%rbp), %r14
xorl %r12d, %r12d
jmp 0x519a
movb $0x1, %r12b
leaq -0x188(%rbp), %rax
cmpq %rax, %r14
je 0x510e
movq %r14, %rdi
callq 0x3200
testb %r12b, %r12b
je 0x5129
movq -0x58(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
leaq -0x290(%rbp), %r12
jmp 0x53ef
leaq -0x188(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9cc4
movq -0x190(%rbp), %rdx
cmpq -0x218(%rbp), %rdx
jne 0x5188
movq -0x198(%rbp), %r14
testq %rdx, %rdx
je 0x5347
movq -0x220(%rbp), %rsi
movq %r14, %rdi
callq 0x3230
testl %eax, %eax
sete %r12b
jmp 0x534a
movq -0x198(%rbp), %r14
xorl %r12d, %r12d
jmp 0x534a
movb $0x1, %r12b
leaq -0x188(%rbp), %rax
cmpq %rax, %r14
je 0x51ae
movq %r14, %rdi
callq 0x3200
testb %r12b, %r12b
je 0x52e3
movl -0x25c(%rbp), %esi
movq %r15, %rdi
callq 0x15560
leaq -0x290(%rbp), %r12
movq -0x198(%rbp), %rax
movq -0x192(%rbp), %rcx
movq %rcx, -0x492(%rbp)
movq %rax, -0x498(%rbp)
leaq -0x488(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x3140
movq -0x168(%rbp), %rax
movq %rax, -0x468(%rbp)
leaq -0x460(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x3140
movq -0x140(%rbp), %rax
movq %rax, -0x440(%rbp)
leaq -0x438(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x3140
movq -0x118(%rbp), %rax
movq %rax, -0x418(%rbp)
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x3140
movq -0xf0(%rbp), %rax
movq %rax, -0x3f0(%rbp)
movq -0x78(%rbp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movq -0x70(%rbp), %rax
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x8ffa
movq %r15, %rdi
callq 0x16758
leaq -0x930(%rbp), %rdi
leaq -0x498(%rbp), %rsi
callq 0x89fc
movzbl -0x1bf(%rbp), %r9d
movzbl -0x1c0(%rbp), %eax
movq -0x38(%rbp), %rdi
leaq -0x930(%rbp), %r14
movq %r14, %rsi
movl -0x2c(%rbp), %edx
movl -0x44(%rbp), %ecx
movl -0x48(%rbp), %r8d
pushq -0x228(%rbp)
pushq %rax
callq 0xd4f2
addq $0x10, %rsp
jmp 0x53e7
leaq -0x188(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9cc4
movq -0x218(%rbp), %rdx
cmpq -0x190(%rbp), %rdx
jne 0x533b
movq -0x198(%rbp), %r14
testq %rdx, %rdx
je 0x537a
movq -0x220(%rbp), %rdi
movq %r14, %rsi
callq 0x3230
testl %eax, %eax
sete %r12b
jmp 0x537d
movq -0x198(%rbp), %r14
xorl %r12d, %r12d
jmp 0x537d
movb $0x1, %r12b
leaq -0x188(%rbp), %rax
cmpq %rax, %r14
je 0x535e
movq %r14, %rdi
callq 0x3200
testb %r12b, %r12b
leaq -0x290(%rbp), %r12
je 0x53ef
movq -0x50(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
jmp 0x53ef
movb $0x1, %r12b
leaq -0x188(%rbp), %rax
cmpq %rax, %r14
je 0x5391
movq %r14, %rdi
callq 0x3200
testb %r12b, %r12b
leaq -0x290(%rbp), %r12
je 0x53ef
leaq -0x848(%rbp), %rdi
leaq -0x498(%rbp), %rsi
callq 0x89fc
movzbl -0x1bf(%rbp), %r9d
movzbl -0x1c0(%rbp), %eax
movq -0x40(%rbp), %rdi
leaq -0x848(%rbp), %r14
movq %r14, %rsi
movl -0x2c(%rbp), %edx
movl -0x44(%rbp), %ecx
movl -0x48(%rbp), %r8d
pushq -0x228(%rbp)
pushq %rax
callq 0xd4f2
addq $0x10, %rsp
movq %r14, %rdi
callq 0x16758
cmpl -0x1a4(%rbp), %ebx
jge 0x54b4
movq %r15, %rdi
movq -0x90(%rbp), %rsi
movq -0x1a0(%rbp), %rdx
callq 0x40d1
leaq -0xb0(%rbp), %rdi
movq %r15, %rsi
callq 0x32b0
movq -0x198(%rbp), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x5438
callq 0x3200
movl $0x5, %edx
movq %r13, %rdi
leaq 0x12c1b(%rip), %rsi     # 0x18062
callq 0x3280
movl $0xd, %edx
movq %r13, %rdi
leaq 0x12c2f(%rip), %rsi     # 0x1808a
callq 0x3280
movl $0x4, %edx
movq %r13, %rdi
leaq 0x12bff(%rip), %rsi     # 0x1806e
callq 0x3280
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movq %r13, %rdi
callq 0x3280
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
incl %ebx
jmp 0x43dd
leaq 0x12bd6(%rip), %rcx     # 0x18098
leaq -0xb0(%rbp), %rdi
movl $0x1, %edx
xorl %esi, %esi
callq 0x32d0
movl $0x2, %ecx
testl %eax, %eax
je 0x432d
movq -0x50(%rbp), %rax
cmpl $-0x1, (%rax)
je 0x54fd
movq -0x58(%rbp), %rax
cmpl $-0x1, (%rax)
movl $0x3, %ecx
jne 0x432d
leaq 0x13086(%rip), %rcx     # 0x1858a
leaq -0xb0(%rbp), %rdi
movl $0x1, %edx
xorl %esi, %esi
callq 0x32d0
movl $0x1, %ecx
testl %eax, %eax
je 0x432d
movq -0x58(%rbp), %rax
movl (%rax), %eax
movq -0x50(%rbp), %rcx
andl (%rcx), %eax
xorl %ecx, %ecx
cmpl $-0x1, %eax
setne %cl
leal (%rcx,%rcx,2), %ecx
jmp 0x432d
movq %rax, %rbx
leaq -0x848(%rbp), %rdi
jmp 0x56b4
movq %rax, %rbx
leaq -0x930(%rbp), %rdi
jmp 0x56b4
jmp 0x56bf
jmp 0x56bf
jmp 0x56bf
jmp 0x56bf
jmp 0x56bf
jmp 0x56bf
jmp 0x56bf
movq %rax, %rbx
movq -0x370(%rbp), %rdi
leaq -0x360(%rbp), %rax
cmpq %rax, %rdi
je 0x55a1
callq 0x3200
jmp 0x55a1
movq %rax, %rbx
leaq -0x580(%rbp), %rdi
jmp 0x56b4
jmp 0x56bf
jmp 0x56bf
jmp 0x56aa
jmp 0x56bf
movq %rax, %rbx
movq -0x2f0(%rbp), %rdi
leaq -0x2e0(%rbp), %rax
cmpq %rax, %rdi
je 0x56c2
jmp 0x569f
movq %rax, %rbx
movq -0x330(%rbp), %rdi
leaq -0x320(%rbp), %rax
cmpq %rax, %rdi
je 0x56c2
jmp 0x569f
movq %rax, %rbx
movq -0x198(%rbp), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x56c2
jmp 0x569f
movq %rax, %rbx
movq -0x390(%rbp), %rdi
leaq -0x380(%rbp), %rax
cmpq %rax, %rdi
je 0x563e
callq 0x3200
jmp 0x563e
movq %rax, %rbx
leaq -0x668(%rbp), %rdi
jmp 0x56b4
jmp 0x56bf
jmp 0x56bf
jmp 0x56bf
jmp 0x56aa
jmp 0x56bf
movq %rax, %rbx
movq -0x350(%rbp), %rdi
leaq -0x340(%rbp), %rax
cmpq %rax, %rdi
je 0x56c2
jmp 0x569f
jmp 0x56bf
jmp 0x56bf
movq %rax, %rbx
movq -0x310(%rbp), %rdi
leaq -0x300(%rbp), %rax
cmpq %rax, %rdi
je 0x56c2
jmp 0x569f
jmp 0x56bf
jmp 0x56bf
movq %rax, %rbx
movq -0x3b0(%rbp), %rdi
leaq -0x3a0(%rbp), %rax
cmpq %rax, %rdi
je 0x56c2
callq 0x3200
jmp 0x56c2
jmp 0x56bf
jmp 0x56aa
movq %rax, %rbx
leaq -0x198(%rbp), %rdi
callq 0x16758
jmp 0x56c2
jmp 0x56bf
jmp 0x56bf
movq %rax, %rbx
leaq -0x498(%rbp), %rdi
callq 0x16758
jmp 0x56d3
movq %rax, %rbx
leaq -0x760(%rbp), %rdi
callq 0x9ec6
jmp 0x56e4
movq %rax, %rbx
movq -0x1e0(%rbp), %rdi
leaq -0x1d0(%rbp), %rax
cmpq %rax, %rdi
je 0x56fc
callq 0x3200
movq -0x200(%rbp), %rdi
leaq -0x1f0(%rbp), %rax
cmpq %rax, %rdi
je 0x5714
callq 0x3200
movq -0x220(%rbp), %rdi
leaq -0x210(%rbp), %rax
cmpq %rax, %rdi
je 0x572c
callq 0x3200
movq -0x248(%rbp), %rdi
testq %rdi, %rdi
je 0x573d
callq 0x3200
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x5755
callq 0x3200
movq -0x2c0(%rbp), %rdi
leaq -0x2b0(%rbp), %rax
cmpq %rax, %rdi
je 0x576d
callq 0x3200
movq %rbx, %rdi
callq 0x33f0