// File: /workspace/github_cpp_makefile_star2_O3/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 0x2507(%rip), %rdx      # 0x80b5
leaq -0xd0(%rbp), %r14
movq %r14, %rdi
callq 0x52ba
movq (%r14), %rsi
leaq 0x257c(%rip), %rdx      # 0x8143
leaq -0xc0(%rbp), %r14
movq %r14, %rdi
callq 0x52ba
movq (%r14), %r14
leaq 0x250d(%rip), %rsi      # 0x80ed
movq %r14, %rdi
callq 0x2290
testl %eax, %eax
je 0x5c0a
leaq 0x24fb(%rip), %rsi      # 0x80ee
movq %r14, %rdi
callq 0x2290
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x5da5
movq -0xb8(%rbp), %r14
leaq -0xb0(%rbp), %rdi
leaq -0x118(%rbp), %rdx
movq %r14, %rsi
callq 0x6894
leaq -0xb0(%rbp), %rdi
callq 0x64c1
movl %eax, %r13d
movq 0x59fb(%rip), %r12      # 0xb638
movq -0xc8(%rbp), %r15
leaq -0x90(%rbp), %rdi
leaq -0x29(%rbp), %rdx
movq %r15, %rsi
callq 0x6894
movslq %r13d, %rax
imulq $0x58, %rax, %rax
addq %rax, %r12
leaq -0x160(%rbp), %rdi
leaq -0x90(%rbp), %rdx
movq %r12, %rsi
callq 0x2d0a
leaq -0x128(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c96
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x150(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5cb5
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5cce
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0xa0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ced
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x70(%rbp), %rdi
leaq -0x29(%rbp), %rdx
movq %r15, %rsi
callq 0x6894
leaq -0x50(%rbp), %rdi
leaq -0x2a(%rbp), %rdx
movq %r14, %rsi
callq 0x6894
leaq -0x118(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x285c
leaq -0x118(%rbp), %rsi
movq %rbx, %rdi
callq 0x73f2
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d4f
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x108(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d6e
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d87
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5da0
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 0x306e
jmp 0x5dcb
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5de9
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x5de9
movq %rax, %rbx
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e45
movq -0x60(%rbp), %rsi
jmp 0x5e38
jmp 0x5e42
movq %rax, %rbx
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e21
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x5e21
jmp 0x5e1e
movq %rax, %rbx
leaq -0xa0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e45
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x5e45
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2320