// File: /workspace/github_cpp_makefile_star2_O3/Doug0855[P]TigerZone/Adapter.cpp
// Function: Adapter::translate(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
values_t Adapter::translate(std::string message)
{
	values_t output;
	if (message.compare(0,8,"STARTING") == 0) //STARTING TILE IS <tile> AT <x> <y> <orientation>
	{
		return parseStartingTile(message);
	}
	if (message.compare(0,3,"THE") == 0) //THE REMAINING <number_tiles> TILES ARE [ <tiles> ]
	{
	  return parseTileStack(message);
	}
	if (message.compare(0,5,"MATCH") == 0) // MATCH BEGINS IN <timeplan> SECONDS
	{
	  return parseMatch(message);
	}
	if (message.compare(0,4,"MAKE") == 0) // MAKE YOUR MOVE IN GAME <gid> WITHIN <timemove> SECOND: MOVE <#> PLACE <tile>
	{
	  return parseMakeMove(message);
	}
	if (message.compare(0,4,"GAME") == 0) // INITIAL ACCESS TO A GAME MESSAGE
	{
	  return parseGameMove(message);
	}
	return output;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdx, %r14
movq %rdi, %rbx
leaq -0x88(%rbp), %r15
xorl %eax, %eax
movq %rax, -0x18(%r15)
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%r15)
movups %xmm0, -0x38(%r15)
movq %r15, -0x10(%r15)
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq -0x68(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x48(%rbp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
movl $0x0, 0x14(%r13)
leaq 0xd703(%rip), %rcx      # 0x18583
movl $0x8, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x32d0
testl %eax, %eax
je 0xaf79
leaq 0xd6ee(%rip), %rcx      # 0x1858c
movl $0x3, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x32d0
testl %eax, %eax
je 0xafb6
leaq 0xd38e(%rip), %rcx      # 0x1824a
movl $0x5, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x32d0
testl %eax, %eax
je 0xaff3
leaq 0xd6b6(%rip), %rcx      # 0x18590
movl $0x4, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x32d0
testl %eax, %eax
je 0xb072
leaq 0xd69d(%rip), %rcx      # 0x18595
movl $0x4, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x32d0
testl %eax, %eax
je 0xb0ac
leaq -0xc0(%rbp), %rcx
movl -0x8(%rcx), %eax
movl %eax, 0x10(%rbx)
movups -0x18(%rcx), %xmm0
movups %xmm0, (%rbx)
movq (%rcx), %rax
movq %rax, 0x18(%rbx)
movq 0x8(%rcx), %rax
movq %rax, 0x20(%rbx)
movq 0x10(%rcx), %rax
movq %rax, 0x28(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq $0x0, 0x10(%rcx)
movups 0x18(%rcx), %xmm0
movups %xmm0, 0x30(%rbx)
leaq 0x50(%rbx), %rax
movq %rax, 0x40(%rbx)
movq 0x28(%rcx), %rcx
cmpq %r15, %rcx
je 0xb145
movq %rcx, 0x40(%rbx)
movq -0x88(%rbp), %rax
movq %rax, 0x50(%rbx)
jmp 0xb14c
leaq -0x148(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x158(%rbp), %rdi
callq 0x9cc4
leaq -0x158(%rbp), %rdx
movq %rbx, %rdi
callq 0xb26a
movq -0x158(%rbp), %rdi
jmp 0xb0e4
leaq -0x128(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x138(%rbp), %rdi
callq 0x9cc4
leaq -0x138(%rbp), %rdx
movq %rbx, %rdi
callq 0xb6d4
movq -0x138(%rbp), %rdi
jmp 0xb0e4
leaq -0x168(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x178(%rbp), %rdi
callq 0x9cc4
leaq 0x50(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rbx)
movups %xmm0, 0x18(%rbx)
xorl %ecx, %ecx
movq %rcx, 0x38(%rbx)
movq %rax, 0x40(%rbx)
movq %rcx, 0x48(%rbx)
movb %cl, 0x50(%rbx)
leaq 0x70(%rbx), %rax
movq %rax, 0x60(%rbx)
movq %rcx, 0x68(%rbx)
movb %cl, 0x70(%rbx)
leaq 0x90(%rbx), %rax
movq %rax, 0x80(%rbx)
movq %rcx, 0x88(%rbx)
movb %cl, 0x90(%rbx)
movl $0x0, 0xa4(%rbx)
movq -0x178(%rbp), %rdi
jmp 0xb0e4
leaq -0x108(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x118(%rbp), %rdi
callq 0x9cc4
leaq -0x118(%rbp), %rdx
movq %rbx, %rdi
callq 0xba7e
movq -0x118(%rbp), %rdi
jmp 0xb0e4
leaq -0xe8(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0xf8(%rbp), %rdi
callq 0x9cc4
leaq -0xf8(%rbp), %rdx
movq %rbx, %rdi
callq 0xbde8
movq -0xf8(%rbp), %rdi
cmpq %r12, %rdi
leaq -0x68(%rbp), %r14
je 0xb0f2
callq 0x3200
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0xb100
callq 0x3200
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0xb10e
callq 0x3200
movq -0x98(%rbp), %rdi
cmpq %r15, %rdi
je 0xb11f
callq 0x3200
movq -0xc0(%rbp), %rdi
testq %rdi, %rdi
je 0xb130
callq 0x3200
movq %rbx, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movups (%r15), %xmm0
movups %xmm0, (%rax)
leaq -0x68(%rbp), %r14
movq -0x90(%rbp), %rax
movq %rax, 0x48(%rbx)
movq %r15, -0x98(%rbp)
movq $0x0, -0x90(%rbp)
movb $0x0, -0x88(%rbp)
leaq 0x70(%rbx), %rax
movq %rax, 0x60(%rbx)
movq -0x78(%rbp), %rcx
cmpq %r14, %rcx
je 0xb193
movq %rcx, 0x60(%rbx)
movq -0x68(%rbp), %rax
movq %rax, 0x70(%rbx)
jmp 0xb19a
movups (%r14), %xmm0
movups %xmm0, (%rax)
movq -0x70(%rbp), %rax
movq %rax, 0x68(%rbx)
movq %r14, -0x78(%rbp)
movq $0x0, -0x70(%rbp)
movb $0x0, -0x68(%rbp)
leaq 0x90(%rbx), %rax
movq %rax, 0x80(%rbx)
movq -0x58(%rbp), %rcx
cmpq %r13, %rcx
je 0xb1dd
movq %rcx, 0x80(%rbx)
movq -0x48(%rbp), %rax
movq %rax, 0x90(%rbx)
jmp 0xb1e5
movups (%r13), %xmm0
movups %xmm0, (%rax)
movq -0x50(%rbp), %rax
movq %rax, 0x88(%rbx)
movq %r13, -0x58(%rbp)
movq $0x0, -0x50(%rbp)
movb $0x0, -0x48(%rbp)
movl -0x30(%rbp), %eax
movl %eax, 0xa8(%rbx)
movq -0x38(%rbp), %rax
movq %rax, 0xa0(%rbx)
jmp 0xb0f2
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
jmp 0xb247
movq %rax, %rbx
movq -0x118(%rbp), %rdi
jmp 0xb247
movq %rax, %rbx
movq -0x138(%rbp), %rdi
jmp 0xb247
movq %rax, %rbx
movq -0x158(%rbp), %rdi
cmpq %r12, %rdi
je 0xb256
callq 0x3200
jmp 0xb256
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x8b68
movq %rbx, %rdi
callq 0x33f0