// File: /workspace/github_c_makefile_star2_O0/QwazyWabbitWOS[P]lmctf60/g_vote.c
// Function: Vote_Menu
void Vote_Menu (edict_t *ent)             //Vampire -- voting menu
{
	gclient_t	*cl;
	char text[MAX_INFO_STRING];

	cl = ent->client;

	Menu_Free(ent);
	ent->client->menu = MENU_LOCAL;
	ent->client->menuselect = 1;

	Menu_Set(ent, 0, "LMCTF Vote Menu", Main_Menu);
	Menu_Set(ent, 1, "------------------", NULL);
	if (!VoteStarted)
	{
		Menu_Set(ent, 2, "Skip to next map", Vote_Skip_Level);
		Menu_Set(ent, 3, "Jump to specific map", Vote_Jump_Level);
		Menu_Set(ent, 4, "Referee a player", Vote_Ref_Player);
	}
	else
	{
		Menu_Set(ent, 3, "Vote YES", Vote_YES);
		Menu_Set(ent, 4, "Vote NO", Vote_NO);
	}
	if (VoteStarted)
		sprintf(text, "Vote:     Started");
	else
		sprintf(text, "Vote:     Idle");
	Menu_Set(ent, 6, text, NULL);
	if (VoteStarted)
	{
		if (ent->client->ctf.extra_flags & CTF_EXTRAFLAGS_VOTE_YES)
			sprintf(text, "You have voted YES");
		else if (ent->client->ctf.extra_flags & CTF_EXTRAFLAGS_VOTE_NO)
			sprintf(text, "You have voted NO");
		else
			sprintf(text, "You have not voted");
		Menu_Set(ent, 8, text, NULL);
	}

	cl->menuselect = 0;
		
	Menu_Draw (ent);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x210, %rsp            # imm = 0x210
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x18a00
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl $0x0, 0xf84(%rax)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl $0x1, 0xf88(%rax)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
leaq 0x46382(%rip), %rdx     # 0x71357
movq 0x577c4(%rip), %rcx     # 0x827a0
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
leaq 0x441e1(%rip), %rdx     # 0x6f1d2
xorl %eax, %eax
movl %eax, %ecx
callq 0x183b0
movq 0x576a7(%rip), %rax     # 0x826a8
cmpl $0x0, (%rax)
jne 0x2b05c
movq -0x8(%rbp), %rdi
movl $0x2, %esi
leaq 0x46351(%rip), %rdx     # 0x71367
movq 0x57edb(%rip), %rcx     # 0x82ef8
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x3, %esi
leaq 0x46346(%rip), %rdx     # 0x71378
movq 0x57467(%rip), %rcx     # 0x824a0
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x4, %esi
leaq 0x4633f(%rip), %rdx     # 0x7138d
movq 0x57c7b(%rip), %rcx     # 0x82cd0
callq 0x183b0
jmp 0x2b094
movq -0x8(%rbp), %rdi
movl $0x3, %esi
leaq 0x46332(%rip), %rdx     # 0x7139e
movq 0x57a3d(%rip), %rcx     # 0x82ab0
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x4, %esi
leaq 0x4631f(%rip), %rdx     # 0x713a7
movq 0x57839(%rip), %rcx     # 0x828c8
callq 0x183b0
movq 0x5760d(%rip), %rax     # 0x826a8
cmpl $0x0, (%rax)
je 0x2b0b7
leaq -0x210(%rbp), %rdi
leaq 0x46301(%rip), %rsi     # 0x713af
movb $0x0, %al
callq 0x19940
jmp 0x2b0cc
leaq -0x210(%rbp), %rdi
leaq 0x462fc(%rip), %rsi     # 0x713c1
movb $0x0, %al
callq 0x19940
movq -0x8(%rbp), %rdi
leaq -0x210(%rbp), %rdx
movl $0x6, %esi
xorl %eax, %eax
movl %eax, %ecx
callq 0x183b0
movq 0x575bc(%rip), %rax     # 0x826a8
cmpl $0x0, (%rax)
je 0x2b181
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1108(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x2b122
leaq -0x210(%rbp), %rdi
leaq 0x462b7(%rip), %rsi     # 0x713d0
movb $0x0, %al
callq 0x19940
jmp 0x2b168
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1108(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x2b151
leaq -0x210(%rbp), %rdi
leaq 0x4629b(%rip), %rsi     # 0x713e3
movb $0x0, %al
callq 0x19940
jmp 0x2b166
leaq -0x210(%rbp), %rdi
leaq 0x46296(%rip), %rsi     # 0x713f5
movb $0x0, %al
callq 0x19940
jmp 0x2b168
movq -0x8(%rbp), %rdi
leaq -0x210(%rbp), %rdx
movl $0x8, %esi
xorl %eax, %eax
movl %eax, %ecx
callq 0x183b0
movq -0x10(%rbp), %rax
movl $0x0, 0xf88(%rax)
movq -0x8(%rbp), %rdi
callq 0x19900
addq $0x210, %rsp            # imm = 0x210
popq %rbp
retq
nopw %cs:(%rax,%rax)