// File: 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
subq $0x240, %rsp            # imm = 0x240
movsbl 0x701a(%rip), %eax      # 0xe58c
cmpl $0x74, %eax
jne 0x7a04
movl 0x6e8b(%rip), %eax      # 0xe40c
movl %eax, -0x1d4(%rbp)
subl $0x1, %eax
je 0x75b3
jmp 0x758e
movl -0x1d4(%rbp), %eax
subl $0x2, %eax
je 0x76a8
jmp 0x759f
movl -0x1d4(%rbp), %eax
subl $0x3, %eax
je 0x781a
jmp 0x79fd
leaq 0x6e76(%rip), %rsi      # 0xe430
leaq -0x18(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
callq 0x3130
movq -0x1e0(%rbp), %rdi
movl 0x6fa9(%rip), %eax      # 0xe580
decl %eax
movslq %eax, %rsi
callq 0x32b0
movq %rax, %rsi
leaq 0x6f35(%rip), %rdi      # 0xe520
callq 0x2050
jmp 0x75f2
leaq -0x18(%rbp), %rdi
callq 0x31b0
leaq 0x6de6(%rip), %rsi      # 0xe3e8
leaq -0x68(%rbp), %rdi
movq %rdi, -0x1e8(%rbp)
callq 0x2100
movq -0x1e8(%rbp), %rsi
leaq 0x6f00(%rip), %rdx      # 0xe520
leaq -0x48(%rbp), %rdi
movl $0x5f, %ecx
callq 0x6cd0
jmp 0x7630
leaq 0x6f59(%rip), %rdi      # 0xe590
leaq -0x48(%rbp), %rsi
callq 0x2280
leaq -0x48(%rbp), %rdi
callq 0x23e8
leaq -0x68(%rbp), %rdi
callq 0x23e8
leaq 0x6f37(%rip), %rdi      # 0xe590
callq 0x20f0
movq %rax, %rsi
leaq 0x2c8a(%rip), %rdi      # 0xa2f2
movb $0x0, %al
callq 0x2060
jmp 0x79ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x31b0
jmp 0x7b5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x23e8
jmp 0x7b5a
leaq 0x6d81(%rip), %rsi      # 0xe430
leaq -0x80(%rbp), %rdi
movq %rdi, -0x1f0(%rbp)
callq 0x3130
movq -0x1f0(%rbp), %rdi
movl 0x6eb4(%rip), %eax      # 0xe580
decl %eax
movslq %eax, %rsi
callq 0x32b0
movq %rax, %rsi
leaq 0x6e40(%rip), %rdi      # 0xe520
callq 0x2050
jmp 0x76e7
leaq -0x80(%rbp), %rdi
callq 0x31b0
leaq 0x6d39(%rip), %rsi      # 0xe430
leaq -0x98(%rbp), %rdi
movq %rdi, -0x1f8(%rbp)
callq 0x3130
movq -0x1f8(%rbp), %rdi
movl 0x6e6d(%rip), %eax      # 0xe584
decl %eax
movslq %eax, %rsi
callq 0x32b0
movq %rax, %rsi
leaq 0x6e15(%rip), %rdi      # 0xe540
callq 0x2050
jmp 0x7732
leaq -0x98(%rbp), %rdi
callq 0x31b0
leaq 0x6ca3(%rip), %rsi      # 0xe3e8
leaq -0xd8(%rbp), %rdi
movq %rdi, -0x200(%rbp)
callq 0x2100
movq -0x200(%rbp), %rsi
leaq 0x6dba(%rip), %rdx      # 0xe520
leaq -0xb8(%rbp), %rdi
movl $0x5f, %ecx
callq 0x6cd0
jmp 0x7779
leaq 0x6e10(%rip), %rdi      # 0xe590
leaq -0xb8(%rbp), %rsi
callq 0x2280
leaq -0xb8(%rbp), %rdi
callq 0x23e8
leaq -0xd8(%rbp), %rdi
callq 0x23e8
leaq 0x6de5(%rip), %rdi      # 0xe590
callq 0x20f0
movq %rax, %rsi
leaq 0x2b38(%rip), %rdi      # 0xa2f2
movb $0x0, %al
callq 0x2060
jmp 0x79ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x31b0
jmp 0x7b5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x31b0
jmp 0x7b5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x23e8
jmp 0x7b5a
leaq 0x6c0f(%rip), %rsi      # 0xe430
leaq -0xf0(%rbp), %rdi
movq %rdi, -0x208(%rbp)
callq 0x3130
movq -0x208(%rbp), %rdi
movl 0x6d3f(%rip), %eax      # 0xe580
decl %eax
movslq %eax, %rsi
callq 0x32b0
movq %rax, %rsi
leaq 0x6ccb(%rip), %rdi      # 0xe520
callq 0x2050
jmp 0x785c
leaq -0xf0(%rbp), %rdi
callq 0x31b0
leaq 0x6bc1(%rip), %rsi      # 0xe430
leaq -0x108(%rbp), %rdi
movq %rdi, -0x210(%rbp)
callq 0x3130
movq -0x210(%rbp), %rdi
movl 0x6cf5(%rip), %eax      # 0xe584
decl %eax
movslq %eax, %rsi
callq 0x32b0
movq %rax, %rsi
leaq 0x6c9d(%rip), %rdi      # 0xe540
callq 0x2050
jmp 0x78aa
leaq -0x108(%rbp), %rdi
callq 0x31b0
leaq 0x6b73(%rip), %rsi      # 0xe430
leaq -0x120(%rbp), %rdi
movq %rdi, -0x218(%rbp)
callq 0x3130
movq -0x218(%rbp), %rdi
movl 0x6cab(%rip), %eax      # 0xe588
decl %eax
movslq %eax, %rsi
callq 0x32b0
movq %rax, %rsi
leaq 0x6c6f(%rip), %rdi      # 0xe560
callq 0x2050
jmp 0x78f8
leaq -0x120(%rbp), %rdi
callq 0x31b0
leaq 0x6add(%rip), %rsi      # 0xe3e8
leaq -0x160(%rbp), %rdi
movq %rdi, -0x220(%rbp)
callq 0x2100
movq -0x220(%rbp), %rsi
leaq 0x6bf4(%rip), %rdx      # 0xe520
leaq -0x140(%rbp), %rdi
movl $0x5f, %ecx
callq 0x6cd0
jmp 0x793f
leaq 0x6c4a(%rip), %rdi      # 0xe590
leaq -0x140(%rbp), %rsi
callq 0x2280
leaq -0x140(%rbp), %rdi
callq 0x23e8
leaq -0x160(%rbp), %rdi
callq 0x23e8
leaq 0x6c1f(%rip), %rdi      # 0xe590
callq 0x20f0
movq %rax, %rsi
leaq 0x2972(%rip), %rdi      # 0xa2f2
movb $0x0, %al
callq 0x2060
jmp 0x79ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x31b0
jmp 0x7b5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x108(%rbp), %rdi
callq 0x31b0
jmp 0x7b5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x31b0
jmp 0x7b5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x160(%rbp), %rdi
callq 0x23e8
jmp 0x7b5a
jmp 0x79ff
jmp 0x7b51
movsbl 0x6b81(%rip), %eax      # 0xe58c
cmpl $0x61, %eax
jne 0x7b4f
movl $0x0, -0x164(%rbp)
movl -0x164(%rbp), %eax
cmpl 0x69e2(%rip), %eax      # 0xe40c
jge 0x7b48
movslq -0x164(%rbp), %rcx
leaq 0x6b42(%rip), %rax      # 0xe580
movl (%rax,%rcx,4), %edx
decl %edx
leaq 0x69e6(%rip), %rsi      # 0xe430
leaq -0x1d0(%rbp), %rdi
movq %rdi, -0x228(%rbp)
callq 0x2d60
movq -0x228(%rbp), %rdx
leaq -0x188(%rbp), %rdi
movl $0x6e, %esi
callq 0x7c20
jmp 0x7a77
leaq -0x1d0(%rbp), %rdi
callq 0x3460
leaq 0x69a6(%rip), %rdi      # 0xe430
callq 0x2c80
movl %eax, -0x22c(%rbp)
jmp 0x7a97
leaq -0x188(%rbp), %rdi
callq 0x20f0
movl -0x22c(%rbp), %edi
movq %rax, %rsi
movl $0x64, %edx
movl $0x1, %ecx
callq 0x2120
movq %rax, -0x238(%rbp)
jmp 0x7ac4
movq -0x238(%rbp), %rax
movl %eax, 0x675f(%rip)      # 0xe230
cmpl $0x0, 0x6758(%rip)      # 0xe230
jg 0x7b28
leaq 0x2a53(%rip), %rdi      # 0xa534
xorl %eax, %eax
callq 0x2060
jmp 0x7aea
movl $0x1, %edi
callq 0x2270
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x1d0(%rbp), %rdi
callq 0x3460
jmp 0x7b5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x188(%rbp), %rdi
callq 0x23e8
jmp 0x7b5a
leaq -0x188(%rbp), %rdi
callq 0x23e8
movl -0x164(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x164(%rbp)
jmp 0x7a1e
movb $0x1, 0x66d2(%rip)      # 0xe221
jmp 0x7b51
addq $0x240, %rsp            # imm = 0x240
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x2360
nopw %cs:(%rax,%rax)