// File: /workspace/github_c_makefile_star2_O0/QwazyWabbitWOS[P]lmctf60/g_menu.c
// Function: Main_Menu
void Main_Menu (edict_t *ent)
{
	gclient_t	*cl;

	cl = ent->client;

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

	Menu_Set(ent, 0, "LM CTF Option Menu", Help_Menu);
	Menu_Set(ent, 1, "------------------", NULL);
//-bat
//put back in
//#ifdef OLDOBSERVERCODE
	//if (ctf_validateplayer(ent, CTF_TEAM_OBSERVER))
	if(ent->client->ctf.teamnum ==  CTF_TEAM_OBSERVER ||
		ent->client->ctf.teamnum ==  CTF_TEAM_OBSERVER_RED ||
		ent->client->ctf.teamnum ==  CTF_TEAM_OBSERVER_BLUE)
			Menu_Set(ent, 3, "Observer Options", Obs_Main_Menu);
	else
	{
		Menu_Set(ent, 3, "Become Observer", Observe_Exec);
		Menu_Set(ent, 4, "Change Team", Change_Team_Exec);
	}
//#else
//	Menu_Set(ent, 4, "Change Team", Change_Team_Exec);
//#endif
	Menu_Set(ent, 5, "Change Skin", Skin_Menu);
	Menu_Set(ent, 6, "Radio Sounds", Radio_Menu);
	Menu_Set(ent, 7, "Voice Sounds", Voice_Menu);
	if (!((int)ctfflags->value & CTF_VOTEMENU_OFF))
		Menu_Set(ent, 8, "Voting Menu", Vote_Menu);              //Vampire -- voting menu
	if (cl->ctf.extra_flags & CTF_EXTRAFLAGS_REFEREE)
		Menu_Set(ent, 9, "Referee Menu", Ref_Main_Menu);
	Menu_Set(ent, 10, "Help", Help_Menu);

	cl->menuselect = 0;

	Menu_Draw (ent);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
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 0x54bfe(%rip), %rdx     # 0x6f000
movq 0x68407(%rip), %rcx     # 0x82810
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
leaq 0x54db4(%rip), %rdx     # 0x6f1d2
xorl %eax, %eax
movl %eax, %ecx
callq 0x183b0
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
cmpl $-0x1, 0x1100(%rax)
je 0x1a45a
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
cmpl $-0x3, 0x1100(%rax)
je 0x1a45a
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
cmpl $-0x2, 0x1100(%rax)
jne 0x1a478
movq -0x8(%rbp), %rdi
movl $0x3, %esi
leaq 0x54e9c(%rip), %rdx     # 0x6f306
movq 0x681af(%rip), %rcx     # 0x82620
callq 0x183b0
jmp 0x1a4b0
movq -0x8(%rbp), %rdi
movl $0x3, %esi
leaq 0x54b8b(%rip), %rdx     # 0x6f013
movq 0x68039(%rip), %rcx     # 0x824c8
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x4, %esi
leaq 0x54b7f(%rip), %rdx     # 0x6f023
movq 0x6886d(%rip), %rcx     # 0x82d18
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x5, %esi
leaq 0x54b6f(%rip), %rdx     # 0x6f02f
movq 0x68511(%rip), %rcx     # 0x829d8
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x6, %esi
leaq 0x54bb6(%rip), %rdx     # 0x6f092
movq 0x68ae5(%rip), %rcx     # 0x82fc8
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x7, %esi
leaq 0x54e1f(%rip), %rdx     # 0x6f317
movq 0x686e9(%rip), %rcx     # 0x82be8
callq 0x183b0
movq 0x6864d(%rip), %rax     # 0x82b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
jne 0x1a539
movq -0x8(%rbp), %rdi
movl $0x8, %esi
leaq 0x54df7(%rip), %rdx     # 0x6f324
movq 0x6876c(%rip), %rcx     # 0x82ca0
callq 0x183b0
movq -0x10(%rbp), %rax
movl 0x1108(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x1a567
movq -0x8(%rbp), %rdi
movl $0x9, %esi
leaq 0x54e4f(%rip), %rdx     # 0x6f3aa
movq 0x6858e(%rip), %rcx     # 0x82af0
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0xa, %esi
leaq 0x54ef8(%rip), %rdx     # 0x6f46f
movq 0x68292(%rip), %rcx     # 0x82810
callq 0x183b0
movq -0x10(%rbp), %rax
movl $0x0, 0xf88(%rax)
movq -0x8(%rbp), %rdi
callq 0x19900
addq $0x10, %rsp
popq %rbp
retq