// File: /workspace/github_cpp_makefile_star2_O1/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 0xd1ac(%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 0xb436
callq 0x3200
leaq -0x90(%rbp), %rsi
callq 0xa5ba
movl %eax, 0x4(%rbx)
leaq 0xd32b(%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 0xd250(%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 0xb4db
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 0xb701
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0xb70d
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0xb70d
testl %ecx, %ecx
jne 0xb533
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 0xd15f(%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 0xb719
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
leaq -0x80000000(%rax), %rcx
cmpq %rdx, %rcx
jb 0xb725
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0xb725
testl %ecx, %ecx
jne 0xb5f0
movl %r13d, (%r14)
movl %eax, 0x10(%rbx)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xb605
callq 0x3200
leaq 0xd0c3(%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 0xb670
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 0xb731
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0xb73d
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0xb73d
testl %ecx, %ecx
jne 0xb6c5
movl %r13d, (%r14)
movl %eax, 0x8(%rbx)
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xb6da
callq 0x3200
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xb6ef
callq 0x3200
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xcc68(%rip), %rdi      # 0x18370
callq 0x3150
leaq 0xcc5c(%rip), %rdi      # 0x18370
callq 0x3320
leaq 0xcc50(%rip), %rdi      # 0x18370
callq 0x3150
leaq 0xcc44(%rip), %rdi      # 0x18370
callq 0x3320
leaq 0xcc38(%rip), %rdi      # 0x18370
callq 0x3150
leaq 0xcc2c(%rip), %rdi      # 0x18370
callq 0x3320
jmp 0xb790
jmp 0xb790
jmp 0xb790
jmp 0xb790
movq %rax, %r15
cmpl $0x0, (%r14)
jne 0xb793
movl %r13d, (%r14)
jmp 0xb793
movq %rax, %r15
cmpl $0x0, (%r14)
jne 0xb76b
movl %r13d, (%r14)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xb793
callq 0x3200
jmp 0xb793
movq %rax, %r15
cmpl $0x0, (%r14)
jne 0xb793
movl -0x2c(%rbp), %eax
movl %eax, (%r14)
jmp 0xb793
movq %rax, %r15
movq %rbx, %rdi
callq 0x8ca0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xb7ad
callq 0x3200
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xb7c2
callq 0x3200
movq %r15, %rdi
callq 0x33f0