// File: /workspace/github_cpp_makefile_star2_O1/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 0x48a4(%rip), %eax      # 0xa4fc
cmpl $0x74, %eax
je 0x5d5f
cmpl $0x61, %eax
jne 0x607f
cmpl $0x0, 0x470b(%rip)      # 0xa37c
jle 0x5d53
leaq 0x4872(%rip), %r13      # 0xa4f0
xorl %r12d, %r12d
leaq 0x4718(%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 0x6276
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x5cd6
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x5cf8
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, 0x4485(%rip)      # 0xa1a0
testl %eax, %eax
jle 0x6091
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5d3c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
incq %r12
movslq 0x4636(%rip), %rax      # 0xa37c
addq $0x4, %r13
cmpq %rax, %r12
jl 0x5c93
movb $0x1, 0x4437(%rip)      # 0xa191
jmp 0x607f
movl 0x4617(%rip), %eax      # 0xa37c
cmpl $0x3, %eax
je 0x5f44
cmpl $0x2, %eax
je 0x5e48
cmpl $0x1, %eax
jne 0x607f
leaq 0x4619(%rip), %rsi      # 0xa3a0
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x2f3e
movslq 0x4756(%rip), %rax      # 0xa4f0
movq (%rbx), %rcx
leaq (%rax,%rax,8), %rax
leaq (%rcx,%rax,8), %rsi
addq $-0x48, %rsi
leaq 0x46e0(%rip), %rdi      # 0xa490
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2f76
leaq -0x98(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x4588(%rip), %rsi      # 0xa358
movq 0x4589(%rip), %rdx      # 0xa360
addq %rsi, %rdx
leaq -0xa8(%rbp), %rbx
movq %rbx, %rdi
callq 0x313c
leaq 0x46a0(%rip), %rdx      # 0xa490
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
movl $0x5f, %ecx
callq 0x5549
leaq 0x46f8(%rip), %rdi      # 0xa500
leaq -0x48(%rbp), %rbx
movq %rbx, %rsi
callq 0x21c0
movq (%rbx), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5e2c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0xa8(%rbp), %rdi
cmpq %r14, %rdi
je 0x6073
movq -0x98(%rbp), %rsi
jmp 0x606b
leaq 0x4551(%rip), %rsi      # 0xa3a0
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x2f3e
movslq 0x468e(%rip), %rax      # 0xa4f0
movq (%rbx), %rcx
leaq (%rax,%rax,8), %rax
leaq (%rcx,%rax,8), %rsi
addq $-0x48, %rsi
leaq 0x4618(%rip), %rdi      # 0xa490
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2f76
leaq 0x4513(%rip), %rsi      # 0xa3a0
movq %rbx, %rdi
callq 0x2f3e
movslq 0x4658(%rip), %rax      # 0xa4f4
movq (%rbx), %rcx
leaq (%rax,%rax,8), %rax
leaq (%rcx,%rax,8), %rsi
addq $-0x48, %rsi
leaq 0x45fe(%rip), %rdi      # 0xa4b0
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2f76
leaq -0x78(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x4489(%rip), %rsi      # 0xa358
movq 0x448a(%rip), %rdx      # 0xa360
addq %rsi, %rdx
leaq -0x88(%rbp), %rbx
movq %rbx, %rdi
callq 0x313c
leaq 0x45a1(%rip), %rdx      # 0xa490
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
movl $0x5f, %ecx
callq 0x5549
leaq 0x45f9(%rip), %rdi      # 0xa500
leaq -0x48(%rbp), %rbx
movq %rbx, %rsi
callq 0x21c0
movq (%rbx), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5f2b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0x88(%rbp), %rdi
cmpq %r14, %rdi
je 0x6073
movq -0x78(%rbp), %rsi
jmp 0x606b
leaq 0x4455(%rip), %rsi      # 0xa3a0
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x2f3e
movslq 0x4592(%rip), %rax      # 0xa4f0
movq (%rbx), %rcx
leaq (%rax,%rax,8), %rax
leaq (%rcx,%rax,8), %rsi
addq $-0x48, %rsi
leaq 0x451c(%rip), %rdi      # 0xa490
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2f76
leaq 0x4417(%rip), %rsi      # 0xa3a0
movq %rbx, %rdi
callq 0x2f3e
movslq 0x455c(%rip), %rax      # 0xa4f4
movq (%rbx), %rcx
leaq (%rax,%rax,8), %rax
leaq (%rcx,%rax,8), %rsi
addq $-0x48, %rsi
leaq 0x4502(%rip), %rdi      # 0xa4b0
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2f76
leaq 0x43dd(%rip), %rsi      # 0xa3a0
movq %rbx, %rdi
callq 0x2f3e
movslq 0x4526(%rip), %rax      # 0xa4f8
movq (%rbx), %rcx
leaq (%rax,%rax,8), %rax
leaq (%rcx,%rax,8), %rsi
addq $-0x48, %rsi
leaq 0x44e8(%rip), %rdi      # 0xa4d0
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2f76
leaq -0x58(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x4353(%rip), %rsi      # 0xa358
movq 0x4354(%rip), %rdx      # 0xa360
addq %rsi, %rdx
leaq -0x68(%rbp), %rbx
movq %rbx, %rdi
callq 0x313c
leaq 0x446e(%rip), %rdx      # 0xa490
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
movl $0x5f, %ecx
callq 0x5549
leaq 0x44c6(%rip), %rdi      # 0xa500
leaq -0x48(%rbp), %rbx
movq %rbx, %rsi
callq 0x21c0
movq (%rbx), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x605e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x6073
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2180
movq 0x4486(%rip), %rdi      # 0xa500
callq 0x2220
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1727(%rip), %rdi      # 0x77bf
callq 0x2220
movl $0x1, %edi
callq 0x21b0
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x612b
movq -0x58(%rbp), %rsi
jmp 0x6123
jmp 0x60f0
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r14, %rdi
je 0x612b
movq -0x78(%rbp), %rsi
jmp 0x6123
jmp 0x60f0
jmp 0x60f0
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r14, %rdi
je 0x612b
movq -0x98(%rbp), %rsi
jmp 0x6123
jmp 0x60f0
jmp 0x60f0
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x2f76
jmp 0x612b
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
callq 0x3090
jmp 0x612b
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x612b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2270