// File: /workspace/github_cpp_makefile_star2_O1/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 0xd60d(%rip), %rcx      # 0x18583
movl $0x8, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x32d0
testl %eax, %eax
je 0xb06f
leaq 0xd5f8(%rip), %rcx      # 0x1858c
movl $0x3, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x32d0
testl %eax, %eax
je 0xb0ac
leaq 0xd298(%rip), %rcx      # 0x1824a
movl $0x5, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x32d0
testl %eax, %eax
je 0xb0e9
leaq 0xd5c0(%rip), %rcx      # 0x18590
movl $0x4, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x32d0
testl %eax, %eax
je 0xb168
leaq 0xd5a7(%rip), %rcx      # 0x18595
movl $0x4, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x32d0
testl %eax, %eax
je 0xb1a2
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 0xb23b
movq %rcx, 0x40(%rbx)
movq -0x88(%rbp), %rax
movq %rax, 0x50(%rbx)
jmp 0xb242
leaq -0x148(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x158(%rbp), %rdi
callq 0x9da8
leaq -0x158(%rbp), %rdx
movq %rbx, %rdi
callq 0xb360
movq -0x158(%rbp), %rdi
jmp 0xb1da
leaq -0x128(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x138(%rbp), %rdi
callq 0x9da8
leaq -0x138(%rbp), %rdx
movq %rbx, %rdi
callq 0xb7ca
movq -0x138(%rbp), %rdi
jmp 0xb1da
leaq -0x168(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x178(%rbp), %rdi
callq 0x9da8
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 0xb1da
leaq -0x108(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x118(%rbp), %rdi
callq 0x9da8
leaq -0x118(%rbp), %rdx
movq %rbx, %rdi
callq 0xbb74
movq -0x118(%rbp), %rdi
jmp 0xb1da
leaq -0xe8(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0xf8(%rbp), %rdi
callq 0x9da8
leaq -0xf8(%rbp), %rdx
movq %rbx, %rdi
callq 0xbede
movq -0xf8(%rbp), %rdi
cmpq %r12, %rdi
leaq -0x68(%rbp), %r14
je 0xb1e8
callq 0x3200
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0xb1f6
callq 0x3200
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0xb204
callq 0x3200
movq -0x98(%rbp), %rdi
cmpq %r15, %rdi
je 0xb215
callq 0x3200
movq -0xc0(%rbp), %rdi
testq %rdi, %rdi
je 0xb226
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 0xb289
movq %rcx, 0x60(%rbx)
movq -0x68(%rbp), %rax
movq %rax, 0x70(%rbx)
jmp 0xb290
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 0xb2d3
movq %rcx, 0x80(%rbx)
movq -0x48(%rbp), %rax
movq %rax, 0x90(%rbx)
jmp 0xb2db
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 0xb1e8
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
jmp 0xb33d
movq %rax, %rbx
movq -0x118(%rbp), %rdi
jmp 0xb33d
movq %rax, %rbx
movq -0x138(%rbp), %rdi
jmp 0xb33d
movq %rax, %rbx
movq -0x158(%rbp), %rdi
cmpq %r12, %rdi
je 0xb34c
callq 0x3200
jmp 0xb34c
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x8ca0
movq %rbx, %rdi
callq 0x33f0