// File: /workspace/github_cpp_makefile_star2_O1/muzuka[P]Cards-Against-Humanity-Online/Server.cpp
// Function: parseAnswer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<Card, std::allocator<Card>>&)
int parseAnswer(string message, vector<Card> &answers) {
	char* messageDiv[2]; // [0] has first half, [1] has content
	char* getCommand[2]; // [0] has command, [1] has source
	splitString(messageDiv, (char*)message.c_str(), "\n");
	splitString(getCommand, messageDiv[0], " ");
	
	if(strcmp((const char*)getCommand[0], "ANSWER") == 0 || strcmp((const char*)getCommand[0], "NSWER") == 0) {
		players[getPlayerIndex(string(getCommand[1]))].takeCard(string(messageDiv[1]));
		answers.push_back(Card(string(messageDiv[1]), string(getCommand[1])));
		return 1;
	}
	else {
		return -1;
	}
	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rsi, %rbx
movq (%rdi), %rsi
leaq 0x24e2(%rip), %rdx      # 0x80b5
leaq -0xd0(%rbp), %r14
movq %r14, %rdi
callq 0x52e5
movq (%r14), %rsi
leaq 0x2557(%rip), %rdx      # 0x8143
leaq -0xc0(%rbp), %r14
movq %r14, %rdi
callq 0x52e5
movq (%r14), %r14
leaq 0x24e8(%rip), %rsi      # 0x80ed
movq %r14, %rdi
callq 0x2290
testl %eax, %eax
je 0x5c2f
leaq 0x24d6(%rip), %rsi      # 0x80ee
movq %r14, %rdi
callq 0x2290
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x5dca
movq -0xb8(%rbp), %r14
leaq -0xb0(%rbp), %rdi
leaq -0x118(%rbp), %rdx
movq %r14, %rsi
callq 0x68de
leaq -0xb0(%rbp), %rdi
callq 0x64f2
movl %eax, %r13d
movq 0x59d6(%rip), %r12      # 0xb638
movq -0xc8(%rbp), %r15
leaq -0x90(%rbp), %rdi
leaq -0x29(%rbp), %rdx
movq %r15, %rsi
callq 0x68de
movslq %r13d, %rax
imulq $0x58, %rax, %rax
addq %rax, %r12
leaq -0x160(%rbp), %rdi
leaq -0x90(%rbp), %rdx
movq %r12, %rsi
callq 0x2d18
leaq -0x128(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5cbb
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x150(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5cda
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5cf3
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0xa0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d12
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x70(%rbp), %rdi
leaq -0x29(%rbp), %rdx
movq %r15, %rsi
callq 0x68de
leaq -0x50(%rbp), %rdi
leaq -0x2a(%rbp), %rdx
movq %r14, %rsi
callq 0x68de
leaq -0x118(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x285c
leaq -0x118(%rbp), %rsi
movq %rbx, %rdi
callq 0x7438
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d74
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x108(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d93
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5dac
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5dc5
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2230
movl $0x1, %eax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x118(%rbp), %rdi
callq 0x30b0
jmp 0x5df0
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e0e
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x5e0e
movq %rax, %rbx
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e6a
movq -0x60(%rbp), %rsi
jmp 0x5e5d
jmp 0x5e67
movq %rax, %rbx
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e46
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x5e46
jmp 0x5e43
movq %rax, %rbx
leaq -0xa0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e6a
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x5e6a
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2320