// File: 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
subq $0x1e0, %rsp            # imm = 0x1E0
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x188(%rbp)
callq 0x3170
movq -0x188(%rbp), %rdi
movq %rax, %rsi
leaq 0x4fda(%rip), %rdx      # 0xd09e
callq 0x76f0
leaq -0x40(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq 0x52ab(%rip), %rdx      # 0xd383
callq 0x76f0
movq -0x40(%rbp), %rdi
leaq 0x5245(%rip), %rsi      # 0xd32d
callq 0x33b0
cmpl $0x0, %eax
je 0x810b
movq -0x40(%rbp), %rdi
leaq 0x5231(%rip), %rsi      # 0xd32e
callq 0x33b0
cmpl $0x0, %eax
jne 0x840e
movq -0x38(%rbp), %rax
movq %rax, -0x198(%rbp)
leaq -0xa9(%rbp), %rdi
movq %rdi, -0x190(%rbp)
callq 0x3450
movq -0x198(%rbp), %rsi
movq -0x190(%rbp), %rdx
leaq -0xa8(%rbp), %rdi
callq 0x8ef0
jmp 0x8145
leaq -0xa8(%rbp), %rdi
callq 0x8b00
movl %eax, -0x19c(%rbp)
jmp 0x8159
movl -0x19c(%rbp), %eax
movslq %eax, %rsi
leaq 0xa56f(%rip), %rdi      # 0x126d8
callq 0x9010
movq %rax, -0x1b8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq -0xe1(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
callq 0x3450
movq -0x1b0(%rbp), %rsi
movq -0x1a8(%rbp), %rdx
leaq -0xe0(%rbp), %rdi
callq 0x8ef0
jmp 0x81af
movq -0x1b8(%rbp), %rsi
leaq -0x88(%rbp), %rdi
leaq -0xe0(%rbp), %rdx
callq 0x3f40
jmp 0x81cb
leaq -0x88(%rbp), %rdi
callq 0x4460
leaq -0xe0(%rbp), %rdi
callq 0x31f0
leaq -0xe1(%rbp), %rdi
callq 0x3300
leaq -0xa8(%rbp), %rdi
callq 0x31f0
leaq -0xa9(%rbp), %rdi
callq 0x3300
movq -0x18(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x1c8(%rbp)
leaq -0x151(%rbp), %rdi
movq %rdi, -0x1c0(%rbp)
callq 0x3450
movq -0x1c8(%rbp), %rsi
movq -0x1c0(%rbp), %rdx
leaq -0x150(%rbp), %rdi
callq 0x8ef0
jmp 0x824c
movq -0x38(%rbp), %rax
movq %rax, -0x1e0(%rbp)
leaq -0x179(%rbp), %rdi
movq %rdi, -0x1d8(%rbp)
callq 0x3450
movq -0x1e0(%rbp), %rsi
movq -0x1d8(%rbp), %rdx
leaq -0x178(%rbp), %rdi
callq 0x8ef0
jmp 0x8286
leaq -0x130(%rbp), %rdi
leaq -0x150(%rbp), %rsi
leaq -0x178(%rbp), %rdx
callq 0x3970
jmp 0x82a2
movq -0x1d0(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0x92b0
jmp 0x82b7
leaq -0x130(%rbp), %rdi
callq 0x4460
leaq -0x178(%rbp), %rdi
callq 0x31f0
leaq -0x179(%rbp), %rdi
callq 0x3300
leaq -0x150(%rbp), %rdi
callq 0x31f0
leaq -0x151(%rbp), %rdi
callq 0x3300
movl $0x1, -0x4(%rbp)
jmp 0x8415
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0x8371
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0x8365
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0x8359
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x31f0
leaq -0xe1(%rbp), %rdi
callq 0x3300
leaq -0xa8(%rbp), %rdi
callq 0x31f0
leaq -0xa9(%rbp), %rdi
callq 0x3300
jmp 0x8421
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0x8400
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0x83e8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0x83dc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
leaq -0x130(%rbp), %rdi
callq 0x4460
leaq -0x178(%rbp), %rdi
callq 0x31f0
leaq -0x179(%rbp), %rdi
callq 0x3300
leaq -0x150(%rbp), %rdi
callq 0x31f0
leaq -0x151(%rbp), %rdi
callq 0x3300
jmp 0x8421
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbp
retq
movq -0xb8(%rbp), %rdi
callq 0x3440
nopl (%rax)