// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rdi, %rbx
movq 0x58(%rdi), %r14
callq 0x18960
movq 0x58(%rbx), %rax
movabsq $0x100000000, %rcx      # imm = 0x100000000
movq %rcx, 0xf84(%rax)
leaq 0x2dfba(%rip), %rdx     # 0x5434f
movq 0x42404(%rip), %rcx     # 0x687a0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x18370
leaq 0x2be35(%rip), %rdx     # 0x521e2
movq %rbx, %rdi
movl $0x1, %esi
xorl %ecx, %ecx
callq 0x18370
movq 0x422e5(%rip), %r15     # 0x686a8
cmpl $0x0, (%r15)
je 0x263f4
leaq 0x2dfc6(%rip), %rdx     # 0x54396
movq 0x426d9(%rip), %rcx     # 0x68ab0
movq %rbx, %rdi
movl $0x3, %esi
callq 0x18370
leaq 0x2dfb4(%rip), %rdx     # 0x5439f
movq 0x424d6(%rip), %rcx     # 0x688c8
jmp 0x26438
leaq 0x2df64(%rip), %rdx     # 0x5435f
movq 0x42af6(%rip), %rcx     # 0x68ef8
movq %rbx, %rdi
movl $0x2, %esi
callq 0x18370
leaq 0x2df5a(%rip), %rdx     # 0x54370
movq 0x42083(%rip), %rcx     # 0x684a0
movq %rbx, %rdi
movl $0x3, %esi
callq 0x18370
leaq 0x2df54(%rip), %rdx     # 0x54385
movq 0x42898(%rip), %rcx     # 0x68cd0
movq %rbx, %rdi
movl $0x4, %esi
callq 0x18370
cmpl $0x0, (%r15)
je 0x2645f
movups 0x2df55(%rip), %xmm0    # 0x543a7
movaps %xmm0, (%rsp)
movw $0x64, 0x10(%rsp)
jmp 0x2647c
movabsq $0x656c6449202020, %rax # imm = 0x656C6449202020
movq %rax, 0x7(%rsp)
movabsq $0x2020203a65746f56, %rax # imm = 0x2020203A65746F56
movq %rax, (%rsp)
movq %rsp, %rdx
movq %rbx, %rdi
movl $0x6, %esi
xorl %ecx, %ecx
callq 0x18370
cmpl $0x0, (%r15)
je 0x264f4
movq 0x58(%rbx), %rax
movl 0x1108(%rax), %eax
testb $0x40, %al
jne 0x264bb
testb %al, %al
js 0x264d0
movups 0x2df40(%rip), %xmm0    # 0x543ed
movaps %xmm0, (%rsp)
movl $0x646574, 0xf(%rsp)    # imm = 0x646574
jmp 0x264e2
movups 0x2df06(%rip), %xmm0    # 0x543c8
movaps %xmm0, (%rsp)
movl $0x534559, 0xf(%rsp)    # imm = 0x534559
jmp 0x264e2
movups 0x2df04(%rip), %xmm0    # 0x543db
movaps %xmm0, (%rsp)
movw $0x4f, 0x10(%rsp)
movq %rsp, %rdx
movq %rbx, %rdi
movl $0x8, %esi
xorl %ecx, %ecx
callq 0x18370
movl $0x0, 0xf88(%r14)
movq %rbx, %rdi
callq 0x196b0
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
retq