// File: /workspace/github_cpp_makefile_star2_O3/muzuka[P]Cards-Against-Humanity-Online/Client.cpp
// Function: processInput()
void processInput() {
	if (answer == 't') {
		switch (blackCard.numOfAnswers) {
			case 1:
				ans[0] = self.getHand()[num[0] - 1].content;
				testAnswer = substitute(blackCard.content, ans, '_');
				printf("%s\n", testAnswer.c_str());
				break;
			case 2:
				ans[0] = self.getHand()[num[0] - 1].content;
				ans[1] = self.getHand()[num[1] - 1].content;
				testAnswer = substitute(blackCard.content, ans, '_');
				printf("%s\n", testAnswer.c_str());
				break;
			case 3:
				ans[0] = self.getHand()[num[0] - 1].content;
				ans[1] = self.getHand()[num[1] - 1].content;
				ans[2] = self.getHand()[num[2] - 1].content;
				testAnswer = substitute(blackCard.content, ans, '_');
				printf("%s\n", testAnswer.c_str());
				break;
			default:
				break;
		}
	}
	else if(answer == 'a') {
		for (int i = 0; i < blackCard.numOfAnswers; i++) {
			string messageAnswer = composeSENDMessage('n', self.takeCard(num[i]-1));
			bytesSent = send(self.getSocket(), (char*)messageAnswer.c_str(), 100, 1);
			if (bytesSent <= 0) {
				printf("Couldn't send answer.\n");
				exit(EXIT_FAILURE);
			}
		}
		inputValid = true;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movzbl 0x48cb(%rip), %eax      # 0xa4fc
cmpl $0x74, %eax
je 0x5d38
cmpl $0x61, %eax
jne 0x6058
cmpl $0x0, 0x4732(%rip)      # 0xa37c
jle 0x5d2c
leaq 0x4899(%rip), %r13      # 0xa4f0
xorl %r12d, %r12d
leaq 0x473f(%rip), %rbx      # 0xa3a0
leaq -0xf0(%rbp), %r14
leaq -0x48(%rbp), %r15
movl (%r13), %edx
decl %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ae8
movq %r15, %rdi
movl $0x6e, %esi
movq %r14, %rdx
callq 0x624f
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x5caf
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x5cd1
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2aa4
movq -0x48(%rbp), %rsi
movl $0x64, %edx
movl %eax, %edi
movl $0x1, %ecx
callq 0x20c0
movl %eax, 0x44ac(%rip)      # 0xa1a0
testl %eax, %eax
jle 0x606a
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5d15
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
incq %r12
movslq 0x465d(%rip), %rax      # 0xa37c
addq $0x4, %r13
cmpq %rax, %r12
jl 0x5c6c
movb $0x1, 0x445e(%rip)      # 0xa191
jmp 0x6058
movl 0x463e(%rip), %eax      # 0xa37c
cmpl $0x3, %eax
je 0x5f1d
cmpl $0x2, %eax
je 0x5e21
cmpl $0x1, %eax
jne 0x6058
leaq 0x4640(%rip), %rsi      # 0xa3a0
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x2efc
movslq 0x477d(%rip), %rax      # 0xa4f0
movq (%rbx), %rcx
leaq (%rax,%rax,8), %rax
leaq (%rcx,%rax,8), %rsi
addq $-0x48, %rsi
leaq 0x4707(%rip), %rdi      # 0xa490
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2f34
leaq -0x98(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x45af(%rip), %rsi      # 0xa358
movq 0x45b0(%rip), %rdx      # 0xa360
addq %rsi, %rdx
leaq -0xa8(%rbp), %rbx
movq %rbx, %rdi
callq 0x30fa
leaq 0x46c7(%rip), %rdx      # 0xa490
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
movl $0x5f, %ecx
callq 0x550f
leaq 0x471f(%rip), %rdi      # 0xa500
leaq -0x48(%rbp), %rbx
movq %rbx, %rsi
callq 0x21c0
movq (%rbx), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5e05
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0xa8(%rbp), %rdi
cmpq %r14, %rdi
je 0x604c
movq -0x98(%rbp), %rsi
jmp 0x6044
leaq 0x4578(%rip), %rsi      # 0xa3a0
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x2efc
movslq 0x46b5(%rip), %rax      # 0xa4f0
movq (%rbx), %rcx
leaq (%rax,%rax,8), %rax
leaq (%rcx,%rax,8), %rsi
addq $-0x48, %rsi
leaq 0x463f(%rip), %rdi      # 0xa490
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2f34
leaq 0x453a(%rip), %rsi      # 0xa3a0
movq %rbx, %rdi
callq 0x2efc
movslq 0x467f(%rip), %rax      # 0xa4f4
movq (%rbx), %rcx
leaq (%rax,%rax,8), %rax
leaq (%rcx,%rax,8), %rsi
addq $-0x48, %rsi
leaq 0x4625(%rip), %rdi      # 0xa4b0
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2f34
leaq -0x78(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x44b0(%rip), %rsi      # 0xa358
movq 0x44b1(%rip), %rdx      # 0xa360
addq %rsi, %rdx
leaq -0x88(%rbp), %rbx
movq %rbx, %rdi
callq 0x30fa
leaq 0x45c8(%rip), %rdx      # 0xa490
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
movl $0x5f, %ecx
callq 0x550f
leaq 0x4620(%rip), %rdi      # 0xa500
leaq -0x48(%rbp), %rbx
movq %rbx, %rsi
callq 0x21c0
movq (%rbx), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5f04
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0x88(%rbp), %rdi
cmpq %r14, %rdi
je 0x604c
movq -0x78(%rbp), %rsi
jmp 0x6044
leaq 0x447c(%rip), %rsi      # 0xa3a0
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x2efc
movslq 0x45b9(%rip), %rax      # 0xa4f0
movq (%rbx), %rcx
leaq (%rax,%rax,8), %rax
leaq (%rcx,%rax,8), %rsi
addq $-0x48, %rsi
leaq 0x4543(%rip), %rdi      # 0xa490
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2f34
leaq 0x443e(%rip), %rsi      # 0xa3a0
movq %rbx, %rdi
callq 0x2efc
movslq 0x4583(%rip), %rax      # 0xa4f4
movq (%rbx), %rcx
leaq (%rax,%rax,8), %rax
leaq (%rcx,%rax,8), %rsi
addq $-0x48, %rsi
leaq 0x4529(%rip), %rdi      # 0xa4b0
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2f34
leaq 0x4404(%rip), %rsi      # 0xa3a0
movq %rbx, %rdi
callq 0x2efc
movslq 0x454d(%rip), %rax      # 0xa4f8
movq (%rbx), %rcx
leaq (%rax,%rax,8), %rax
leaq (%rcx,%rax,8), %rsi
addq $-0x48, %rsi
leaq 0x450f(%rip), %rdi      # 0xa4d0
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2f34
leaq -0x58(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x437a(%rip), %rsi      # 0xa358
movq 0x437b(%rip), %rdx      # 0xa360
addq %rsi, %rdx
leaq -0x68(%rbp), %rbx
movq %rbx, %rdi
callq 0x30fa
leaq 0x4495(%rip), %rdx      # 0xa490
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
movl $0x5f, %ecx
callq 0x550f
leaq 0x44ed(%rip), %rdi      # 0xa500
leaq -0x48(%rbp), %rbx
movq %rbx, %rsi
callq 0x21c0
movq (%rbx), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x6037
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x604c
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2180
movq 0x44ad(%rip), %rdi      # 0xa500
callq 0x2220
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x174e(%rip), %rdi      # 0x77bf
callq 0x2220
movl $0x1, %edi
callq 0x21b0
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x6104
movq -0x58(%rbp), %rsi
jmp 0x60fc
jmp 0x60c9
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r14, %rdi
je 0x6104
movq -0x78(%rbp), %rsi
jmp 0x60fc
jmp 0x60c9
jmp 0x60c9
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r14, %rdi
je 0x6104
movq -0x98(%rbp), %rsi
jmp 0x60fc
jmp 0x60c9
jmp 0x60c9
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x2f34
jmp 0x6104
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
callq 0x304e
jmp 0x6104
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x6104
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2270