// File: /workspace/github_cpp_makefile_star2_O3/Doug0855[P]TigerZone/Adapter.cpp
// Function: Adapter::parseStartingTile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
values_t Adapter::parseStartingTile(std::string message)
{
	std::string starting_tile, substr;
	values_t out;

	starting_tile = message.substr(17, message.find(" AT")-17); //get string where tile description starts until before " AT"
	out.tile_num = exprToTile(starting_tile);
	substr = message.substr(message.find("AT ")+3,message.find(" ", message.find("AT ")+3, 1)-message.find("AT ")-3); //get first string integer
	out.i =  stoi(substr);
	substr = message.erase(0, message.find(substr) + substr.length() + 1); //get string with last two integers
	out.j = stoi(substr.substr(0,substr.find(" ")));
	substr = substr.erase(0,substr.find(" ")+1); //get string with last int
	substr = substr.substr(0,std::string::npos); //get the last integer
	out.rotation = stoi(substr);
	return out;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r15
movq %rdi, %rbx
leaq -0x80(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x60(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x50(%rdi), %rcx
movq %rax, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
movq %rcx, 0x40(%rdi)
movq %rax, 0x48(%rdi)
movb %al, 0x50(%rdi)
leaq 0x70(%rdi), %rcx
movq %rcx, 0x60(%rdi)
movq %rax, 0x68(%rdi)
movb %al, 0x70(%rdi)
leaq 0x90(%rdi), %rcx
movq %rcx, 0x80(%rdi)
movq %rax, 0x88(%rdi)
movb %al, 0x90(%rdi)
movl $0x0, 0xa4(%rdi)
leaq 0xd2a2(%rip), %rsi      # 0x1859a
movl $0x3, %ecx
movq %rdx, %rdi
xorl %edx, %edx
callq 0x33e0
leaq -0x11(%rax), %rcx
leaq -0x50(%rbp), %rdi
movl $0x11, %edx
movq %r15, %rsi
callq 0x3240
leaq -0x90(%rbp), %rdi
leaq -0x50(%rbp), %r14
movq %r14, %rsi
callq 0x32b0
movq (%r14), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xb340
callq 0x3200
leaq -0x90(%rbp), %rsi
callq 0xa4c4
movl %eax, 0x4(%rbx)
leaq 0xd421(%rip), %r14      # 0x18777
movl $0x3, %ecx
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x33e0
leaq 0x3(%rax), %r12
movl $0x3, %ecx
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x33e0
leaq 0x3(%rax), %rdx
leaq 0xd346(%rip), %rsi      # 0x186cf
movl $0x1, %ecx
movq %r15, %rdi
callq 0x33e0
movq %rax, %r13
movl $0x3, %ecx
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x33e0
subq %rax, %r13
addq $-0x3, %r13
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x3240
leaq -0x70(%rbp), %rdi
leaq -0x50(%rbp), %r14
movq %r14, %rsi
callq 0x32b0
movq (%r14), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xb3e5
callq 0x3200
movq -0x70(%rbp), %r12
callq 0x3040
movq %rax, %r14
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movl $0x0, (%r14)
leaq -0x50(%rbp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x32e0
cmpq %r12, (%r13)
je 0xb60b
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0xb617
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0xb617
testl %ecx, %ecx
jne 0xb43d
movl -0x2c(%rbp), %ecx
movl %ecx, (%r14)
movl %eax, 0xc(%rbx)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rcx
movq %r15, %rdi
xorl %edx, %edx
callq 0x33e0
movq -0x68(%rbp), %rcx
leaq (%rax,%rcx), %rdx
incq %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x3070
leaq -0x70(%rbp), %rdi
movq %rax, %rsi
callq 0x3140
leaq 0xd255(%rip), %rsi      # 0x186cf
leaq -0x70(%rbp), %r15
movl $0x1, %ecx
movq %r15, %rdi
xorl %edx, %edx
callq 0x33e0
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x3240
movq -0x50(%rbp), %r15
movl (%r14), %r13d
movl $0x0, (%r14)
leaq -0x98(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x32e0
cmpq %r15, (%r12)
je 0xb623
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
leaq -0x80000000(%rax), %rcx
cmpq %rdx, %rcx
jb 0xb62f
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0xb62f
testl %ecx, %ecx
jne 0xb4fa
movl %r13d, (%r14)
movl %eax, 0x10(%rbx)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xb50f
callq 0x3200
leaq 0xd1b9(%rip), %rsi      # 0x186cf
leaq -0x70(%rbp), %r15
movl $0x1, %ecx
movq %r15, %rdi
xorl %edx, %edx
callq 0x33e0
leaq 0x1(%rax), %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x3070
leaq -0x70(%rbp), %rdi
movq %rax, %rsi
callq 0x3140
leaq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
xorl %edx, %edx
movq $-0x1, %rcx
callq 0x3240
leaq -0x70(%rbp), %rdi
leaq -0x50(%rbp), %r15
movq %r15, %rsi
callq 0x32b0
movq (%r15), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xb57a
callq 0x3200
movq -0x70(%rbp), %r15
movl (%r14), %r13d
movl $0x0, (%r14)
leaq -0x50(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x32e0
cmpq %r15, (%r12)
je 0xb63b
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0xb647
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0xb647
testl %ecx, %ecx
jne 0xb5cf
movl %r13d, (%r14)
movl %eax, 0x8(%rbx)
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xb5e4
callq 0x3200
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xb5f9
callq 0x3200
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xcd5e(%rip), %rdi      # 0x18370
callq 0x3150
leaq 0xcd52(%rip), %rdi      # 0x18370
callq 0x3320
leaq 0xcd46(%rip), %rdi      # 0x18370
callq 0x3150
leaq 0xcd3a(%rip), %rdi      # 0x18370
callq 0x3320
leaq 0xcd2e(%rip), %rdi      # 0x18370
callq 0x3150
leaq 0xcd22(%rip), %rdi      # 0x18370
callq 0x3320
jmp 0xb69a
jmp 0xb69a
jmp 0xb69a
jmp 0xb69a
movq %rax, %r15
cmpl $0x0, (%r14)
jne 0xb69d
movl %r13d, (%r14)
jmp 0xb69d
movq %rax, %r15
cmpl $0x0, (%r14)
jne 0xb675
movl %r13d, (%r14)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xb69d
callq 0x3200
jmp 0xb69d
movq %rax, %r15
cmpl $0x0, (%r14)
jne 0xb69d
movl -0x2c(%rbp), %eax
movl %eax, (%r14)
jmp 0xb69d
movq %rax, %r15
movq %rbx, %rdi
callq 0x8b68
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xb6b7
callq 0x3200
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xb6cc
callq 0x3200
movq %r15, %rdi
callq 0x33f0