// File: /workspace/github_cpp_makefile_star2_O2/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 0x4a4b(%rip), %eax      # 0x950c
cmpl $0x74, %eax
je 0x4b5e
cmpl $0x61, %eax
jne 0x4df2
leaq 0x4a26(%rip), %r13      # 0x9500
xorl %r12d, %r12d
leaq 0x48cc(%rip), %rbx      # 0x93b0
leaq -0xf0(%rbp), %r14
leaq -0x48(%rbp), %r15
movslq 0x4896(%rip), %rax      # 0x938c
cmpq %rax, %r12
jge 0x4c10
movl (%r13), %edx
decl %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2994
movq %r15, %rdi
pushq $0x6e
popq %rsi
movq %r14, %rdx
callq 0x4efd
movq %r14, %rdi
callq 0x2d46
movq %rbx, %rdi
callq 0x2950
movq -0x48(%rbp), %rsi
movl %eax, %edi
pushq $0x64
popq %rdx
pushq $0x1
popq %rcx
callq 0x20c0
movl %eax, 0x466b(%rip)      # 0x91b0
testl %eax, %eax
jle 0x4e04
movq %r15, %rdi
callq 0x22e8
incq %r12
addq $0x4, %r13
jmp 0x4aef
movl 0x4828(%rip), %eax      # 0x938c
cmpl $0x3, %eax
je 0x4ce7
cmpl $0x2, %eax
je 0x4c1c
cmpl $0x1, %eax
jne 0x4df2
leaq 0x482a(%rip), %rsi      # 0x93b0
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x2c0a
movslq 0x4967(%rip), %rax      # 0x9500
movq (%rbx), %rcx
imulq $0x48, %rax, %rax
leaq (%rcx,%rax), %rsi
addq $-0x48, %rsi
leaq 0x48f1(%rip), %rdi      # 0x94a0
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2c42
leaq 0x47a4(%rip), %rsi      # 0x9368
leaq -0xa8(%rbp), %rbx
movq %rbx, %rdi
callq 0x21f0
leaq 0x48c6(%rip), %rdx      # 0x94a0
leaq -0x48(%rbp), %rdi
pushq $0x5f
popq %rcx
movq %rbx, %rsi
callq 0x45e1
leaq 0x4920(%rip), %rdi      # 0x9510
leaq -0x48(%rbp), %rbx
movq %rbx, %rsi
callq 0x21b0
movq %rbx, %rdi
callq 0x22e8
leaq -0xa8(%rbp), %rdi
jmp 0x4de1
movb $0x1, 0x458a(%rip)      # 0x91a1
jmp 0x4df2
leaq 0x478d(%rip), %rsi      # 0x93b0
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x2c0a
movslq 0x48ca(%rip), %rax      # 0x9500
movq (%rbx), %rcx
imulq $0x48, %rax, %rax
leaq (%rcx,%rax), %rsi
addq $-0x48, %rsi
leaq 0x4854(%rip), %rdi      # 0x94a0
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2c42
leaq 0x474f(%rip), %rsi      # 0x93b0
movq %rbx, %rdi
callq 0x2c0a
movslq 0x4894(%rip), %rax      # 0x9504
movq (%rbx), %rcx
imulq $0x48, %rax, %rax
leaq (%rcx,%rax), %rsi
addq $-0x48, %rsi
leaq 0x483a(%rip), %rdi      # 0x94c0
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2c42
leaq 0x46cd(%rip), %rsi      # 0x9368
leaq -0x88(%rbp), %rbx
movq %rbx, %rdi
callq 0x21f0
leaq 0x47ef(%rip), %rdx      # 0x94a0
leaq -0x48(%rbp), %rdi
pushq $0x5f
popq %rcx
movq %rbx, %rsi
callq 0x45e1
leaq 0x4849(%rip), %rdi      # 0x9510
leaq -0x48(%rbp), %rbx
movq %rbx, %rsi
callq 0x21b0
movq %rbx, %rdi
callq 0x22e8
leaq -0x88(%rbp), %rdi
jmp 0x4de1
leaq 0x46c2(%rip), %rsi      # 0x93b0
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x2c0a
movslq 0x47ff(%rip), %rax      # 0x9500
movq (%rbx), %rcx
imulq $0x48, %rax, %rax
leaq (%rcx,%rax), %rsi
addq $-0x48, %rsi
leaq 0x4789(%rip), %rdi      # 0x94a0
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2c42
leaq 0x4684(%rip), %rsi      # 0x93b0
movq %rbx, %rdi
callq 0x2c0a
movslq 0x47c9(%rip), %rax      # 0x9504
movq (%rbx), %rcx
imulq $0x48, %rax, %rax
leaq (%rcx,%rax), %rsi
addq $-0x48, %rsi
leaq 0x476f(%rip), %rdi      # 0x94c0
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2c42
leaq 0x464a(%rip), %rsi      # 0x93b0
movq %rbx, %rdi
callq 0x2c0a
movslq 0x4793(%rip), %rax      # 0x9508
movq (%rbx), %rcx
imulq $0x48, %rax, %rax
leaq (%rcx,%rax), %rsi
addq $-0x48, %rsi
leaq 0x4755(%rip), %rdi      # 0x94e0
callq 0x20e0
leaq -0x48(%rbp), %rdi
callq 0x2c42
leaq 0x45c8(%rip), %rsi      # 0x9368
leaq -0x68(%rbp), %rbx
movq %rbx, %rdi
callq 0x21f0
leaq 0x46ed(%rip), %rdx      # 0x94a0
leaq -0x48(%rbp), %rdi
pushq $0x5f
popq %rcx
movq %rbx, %rsi
callq 0x45e1
leaq 0x4747(%rip), %rdi      # 0x9510
leaq -0x48(%rbp), %rbx
movq %rbx, %rsi
callq 0x21b0
movq %rbx, %rdi
callq 0x22e8
leaq -0x68(%rbp), %rdi
callq 0x22e8
movq 0x4723(%rip), %rdi      # 0x9510
callq 0x2230
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x19b4(%rip), %rdi      # 0x67bf
callq 0x2230
pushq $0x1
popq %rdi
callq 0x21a0
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
jmp 0x4e69
jmp 0x4e43
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
jmp 0x4e69
jmp 0x4e43
jmp 0x4e43
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
jmp 0x4e69
jmp 0x4e43
jmp 0x4e43
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x2c42
jmp 0x4e6e
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
callq 0x2d46
jmp 0x4e6e
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x22e8
movq %rbx, %rdi
callq 0x2280