// File: /workspace/github_cpp_makefile_star2_O1/Doug0855[P]TigerZone/Adapter.cpp
// Function: Adapter::parseMakeMove(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
values_t Adapter::parseMakeMove(std::string message)
{
  std::istringstream buffer(message);
  std::istream_iterator<std::string> beg(buffer), end;

  std::vector<std::string> messageWords(beg,end);   //Put all the words from the message into a vector

  std::string gameId = messageWords[5];       // Get the gameId from the string
  std::string tileType = messageWords[messageWords.size()-1]; //get the tileType that we are about to place
  std::string moveNum = messageWords[messageWords.size()-3];  //get the move number

  values_t out;
  out.gameId = gameId;
  out.tile_num = exprToTile(tileType);
  out.moveNumber = moveNum;

  return out;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rdi, %rbx
leaq -0x2e0(%rbp), %r14
movq %r14, %rdi
movq %rdx, %rsi
movl $0x8, %edx
callq 0x33b0
leaq -0x100(%rbp), %rdi
movq %r14, %rsi
callq 0xc716
xorl %eax, %eax
leaq -0xb8(%rbp), %r15
movq %rax, -0x18(%r15)
movq %r15, -0x10(%r15)
movq %rax, -0x8(%r15)
movb %al, (%r15)
movb %al, 0x10(%r15)
movq -0x100(%rbp), %rax
movq -0xf8(%rbp), %rsi
leaq -0x128(%rbp), %rdi
movq %rax, -0x8(%rdi)
leaq -0x118(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0xf0(%rbp), %rdx
addq %rsi, %rdx
callq 0x9da8
movb -0xd8(%rbp), %al
movb %al, -0x108(%rbp)
movq -0xd0(%rbp), %rax
movq -0xc8(%rbp), %rsi
leaq -0x158(%rbp), %rdi
movq %rax, -0x8(%rdi)
leaq -0x148(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0xc0(%rbp), %rdx
addq %rsi, %rdx
callq 0x9da8
movb -0xa8(%rbp), %al
leaq -0x160(%rbp), %rdx
movb %al, 0x28(%rdx)
leaq -0x60(%rbp), %rdi
leaq -0x130(%rbp), %rsi
leaq -0x48(%rbp), %rcx
callq 0xc768
movq -0x158(%rbp), %rdi
cmpq %r13, %rdi
je 0xbc75
callq 0x3200
movq -0x128(%rbp), %rdi
cmpq %r12, %rdi
je 0xbc86
callq 0x3200
movq -0x60(%rbp), %rax
leaq -0x38(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq 0xa0(%rax), %rsi
movq 0xa8(%rax), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x9da8
movq -0x58(%rbp), %rax
leaq -0x90(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x20(%rax), %rsi
movq -0x18(%rax), %rdx
addq %rsi, %rdx
leaq -0xa0(%rbp), %rdi
callq 0x9da8
movq -0x58(%rbp), %rax
leaq -0x70(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x60(%rax), %rsi
movq -0x58(%rax), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x9da8
leaq 0x40(%rbx), %rdi
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)
leaq -0x48(%rbp), %rsi
callq 0x3140
leaq 0x60(%rbx), %r14
leaq -0xa0(%rbp), %rsi
callq 0xa5ba
movl %eax, 0x4(%rbx)
leaq -0x80(%rbp), %rsi
movq %r14, %rdi
callq 0x3140
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0xbd81
callq 0x3200
movq -0xa0(%rbp), %rdi
cmpq %r13, %rdi
leaq -0x38(%rbp), %r14
je 0xbd96
callq 0x3200
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0xbda4
callq 0x3200
leaq -0x60(%rbp), %rdi
callq 0xc6c8
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0xbdbe
callq 0x3200
leaq -0xe8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbdd3
callq 0x3200
movq 0x131e6(%rip), %rsi     # 0x1efc0
leaq -0x2e0(%rbp), %rdi
callq 0x3300
leaq -0x268(%rbp), %rdi
callq 0x30d0
movq %rbx, %rax
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0xbe65
movq %rax, %r14
jmp 0xbe76
movq %rax, %r14
jmp 0xbe88
movq %rax, %r14
movq -0x158(%rbp), %rdi
cmpq %r13, %rdi
je 0xbe2f
callq 0x3200
jmp 0xbe2f
movq %rax, %r14
movq -0x128(%rbp), %rdi
cmpq %r12, %rdi
je 0xbe91
callq 0x3200
jmp 0xbe91
movq %rax, %r14
jmp 0xbe91
movq %rax, %r14
jmp 0xbeb7
movq %rax, %r14
movq %rbx, %rdi
callq 0x8ca0
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0xbe65
callq 0x3200
movq -0xa0(%rbp), %rdi
cmpq %r13, %rdi
je 0xbe76
callq 0x3200
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xbe88
callq 0x3200
leaq -0x60(%rbp), %rdi
callq 0xc6c8
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0xbea2
callq 0x3200
leaq -0xe8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbeb7
callq 0x3200
movq 0x13102(%rip), %rsi     # 0x1efc0
leaq -0x2e0(%rbp), %rdi
callq 0x3300
leaq -0x268(%rbp), %rdi
callq 0x30d0
movq %r14, %rdi
callq 0x33f0