// File: /workspace/github_cpp_makefile_star2_O1/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 0xc7b(%rip), %rsi       # 0x7258
movq %r14, %rdi
callq 0x21f0
testl %eax, %eax
je 0x6638
leaq 0xc6c(%rip), %rsi       # 0x725c
movq %r14, %rdi
callq 0x21f0
testl %eax, %eax
je 0x66b9
leaq 0xc5d(%rip), %rsi       # 0x7264
movq %r14, %rdi
callq 0x21f0
testl %eax, %eax
je 0x671a
leaq 0xc6e(%rip), %rsi       # 0x728c
movq %r14, %rdi
callq 0x21f0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x6748
jmp 0x6761
leaq 0x3d61(%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 0x6910
xorl %edi, %edi
testl %ebx, %ebx
sete %dil
leaq -0x60(%rbp), %rsi
callq 0x67ad
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6696
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2180
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x66af
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2180
movl $0x1, %ebx
jmp 0x6748
leaq 0x3ce0(%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 0x66f6
movq -0x30(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2180
movl $0x1, %ebx
testl %r15d, %r15d
jne 0x6748
leaq 0x10ed(%rip), %rdi      # 0x77f4
callq 0x2220
leaq 0x3c8d(%rip), %rdi      # 0xa3a0
callq 0x2ac2
jmp 0x6748
movq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x2240
leaq 0xb40(%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 0x6755
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1079(%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 0x678c
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2180
jmp 0x678c
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x67a5
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2270