// File: /workspace/github_cpp_makefile_star2_O3/muzuka[P]Cards-Against-Humanity-Online/Client.cpp
// Function: parseNotify(char**)
int parseNotify(char* notifyMessage[]) {
	if(strcmp((const char*)notifyMessage[0], "CP:") == 0) {
		setJudge(strcmp(self.getName().c_str(), (const char*)notifyMessage[1]) == 0, string(notifyMessage[1]));
	}
	else if(strcmp((const char*)notifyMessage[0], "winner:") == 0) {
		if(strcmp(self.getName().c_str(), (const char*)notifyMessage[1]) == 0) {
			printf("You have won this round!\n");
			self.addPoint();
		}
	}
	else if(strcmp((const char*)notifyMessage[0], "players:") == 0) {
		printf("Receiving %d answers from %s.\n", atoi(notifyMessage[1]), notifyMessage[1]);
		if (atoi(notifyMessage[1]) == 0) {
			printf("No more players.\nQuitting now.\n");
			exit(EXIT_FAILURE);
		}
		return atoi(notifyMessage[1]);
	}
	else if(strcmp((const char*)notifyMessage[0], "quit:") == 0) {
		exit(EXIT_FAILURE);
	}
	else {
		return -1;
	}
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq (%rdi), %r14
leaq 0xca2(%rip), %rsi       # 0x7258
movq %r14, %rdi
callq 0x21f0
testl %eax, %eax
je 0x6611
leaq 0xc93(%rip), %rsi       # 0x725c
movq %r14, %rdi
callq 0x21f0
testl %eax, %eax
je 0x6692
leaq 0xc84(%rip), %rsi       # 0x7264
movq %r14, %rdi
callq 0x21f0
testl %eax, %eax
je 0x66f3
leaq 0xc95(%rip), %rsi       # 0x728c
movq %r14, %rdi
callq 0x21f0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x6721
jmp 0x673a
leaq 0x3d88(%rip), %rsi      # 0xa3a0
leaq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0x2a6e
movq (%r14), %rdi
movq 0x8(%rbx), %r14
movq %r14, %rsi
callq 0x21f0
movl %eax, %ebx
leaq -0x60(%rbp), %rdi
leaq -0x19(%rbp), %rdx
movq %r14, %rsi
callq 0x68ea
xorl %edi, %edi
testl %ebx, %ebx
sete %dil
leaq -0x60(%rbp), %rsi
callq 0x6786
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x666f
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2180
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6688
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2180
movl $0x1, %ebx
jmp 0x6721
leaq 0x3d07(%rip), %rsi      # 0xa3a0
leaq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0x2a6e
movq (%r14), %r14
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x21f0
movl %eax, %r15d
leaq -0x30(%rbp), %rax
cmpq %rax, %r14
je 0x66cf
movq -0x30(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2180
movl $0x1, %ebx
testl %r15d, %r15d
jne 0x6721
leaq 0x1114(%rip), %rdi      # 0x77f4
callq 0x2220
leaq 0x3cb4(%rip), %rdi      # 0xa3a0
callq 0x2ac2
jmp 0x6721
movq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x2240
leaq 0xb67(%rip), %rdi       # 0x726d
movl %eax, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2040
movq 0x8(%rbx), %rdi
callq 0x2240
movl %eax, %ebx
testl %eax, %eax
je 0x672e
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10a0(%rip), %rdi      # 0x77d5
callq 0x2220
movl $0x1, %edi
callq 0x21b0
movq %rax, %rbx
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6765
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2180
jmp 0x6765
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x677e
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2270