// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x58(%rdi), %rax
xorl %r14d, %r14d
movq 0x4e54f(%rip), %r12     # 0x68600
movq %rax, (%rsp)
movq 0xf90(%rax,%r14), %rdi
testq %rdi, %rdi
je 0x1a0da
callq *0x110(%r12)
movq 0x58(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0xf90(%rax,%r14)
addq $0x10, %r14
cmpq $0x120, %r14            # imm = 0x120
jne 0x1a0b5
movq 0x58(%rbx), %rax
movabsq $0x100000000, %rcx      # imm = 0x100000000
movq %rcx, 0xf84(%rax)
movq 0xf90(%rax), %rdi
testq %rdi, %rdi
je 0x1a110
callq *0x110(%r12)
leaq 0x37ef9(%rip), %rdi     # 0x52010
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xf90(%rcx)
movq 0x4e6e2(%rip), %rax     # 0x68810
movq %rax, 0xf98(%rcx)
movq 0xfa0(%rcx), %rdi
testq %rdi, %rdi
je 0x1a149
callq *0x110(%r12)
leaq 0x38092(%rip), %rdi     # 0x521e2
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfa0(%rcx)
movq $0x0, 0xfa8(%rcx)
cmpl $-0x3, 0x1100(%rcx)
movq 0xfc0(%rcx), %rdi
jb 0x1a197
movq 0x4e49e(%rip), %rbp     # 0x68620
movl $0xfc8, %r13d           # imm = 0xFC8
movl $0xfc0, %r15d           # imm = 0xFC0
leaq 0x38181(%rip), %r14     # 0x52316
jmp 0x1a1ea
testq %rdi, %rdi
je 0x1a1a4
callq *0x110(%r12)
leaq 0x37e78(%rip), %rdi     # 0x52023
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfc0(%rcx)
movq 0x4e306(%rip), %rax     # 0x684c8
movq %rax, 0xfc8(%rcx)
movq 0xfd0(%rcx), %rdi
movq 0x4eb41(%rip), %rbp     # 0x68d18
movl $0xfd8, %r13d           # imm = 0xFD8
movl $0xfd0, %r15d           # imm = 0xFD0
leaq 0x37e49(%rip), %r14     # 0x52033
testq %rdi, %rdi
je 0x1a1f7
callq *0x110(%r12)
movq %r14, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, (%rcx,%r15)
movq %rbp, (%rcx,%r13)
movq 0xfe0(%rcx), %rdi
testq %rdi, %rdi
je 0x1a21f
callq *0x110(%r12)
leaq 0x37e19(%rip), %rdi     # 0x5203f
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfe0(%rcx)
movq 0x4e79b(%rip), %rax     # 0x689d8
movq %rax, 0xfe8(%rcx)
movq 0xff0(%rcx), %rdi
testq %rdi, %rdi
movq (%rsp), %r14
je 0x1a25c
callq *0x110(%r12)
leaq 0x37e3f(%rip), %rdi     # 0x520a2
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xff0(%rcx)
movq 0x4ed4e(%rip), %rax     # 0x68fc8
movq %rax, 0xff8(%rcx)
movq 0x1000(%rcx), %rdi
testq %rdi, %rdi
je 0x1a295
callq *0x110(%r12)
leaq 0x3808b(%rip), %rdi     # 0x52327
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1000(%rcx)
movq 0x4e935(%rip), %rax     # 0x68be8
movq %rax, 0x1008(%rcx)
movq 0x4e897(%rip), %rax     # 0x68b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
testw %ax, %ax
js 0x1a307
movq 0x1010(%rcx), %rdi
testq %rdi, %rdi
je 0x1a2e2
callq *0x110(%r12)
leaq 0x3804b(%rip), %rdi     # 0x52334
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1010(%rcx)
movq 0x4e9a0(%rip), %rax     # 0x68ca0
movq %rax, 0x1018(%rcx)
testb $0x2, 0x1108(%r14)
je 0x1a34a
movq 0x1020(%rcx), %rdi
testq %rdi, %rdi
je 0x1a325
callq *0x110(%r12)
leaq 0x3808e(%rip), %rdi     # 0x523ba
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1020(%rcx)
movq 0x4e7ad(%rip), %rax     # 0x68af0
movq %rax, 0x1028(%rcx)
movq 0x1030(%rcx), %rdi
testq %rdi, %rdi
je 0x1a35e
callq *0x110(%r12)
leaq 0x3811a(%rip), %rdi     # 0x5247f
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1030(%rcx)
movq 0x4e494(%rip), %rax     # 0x68810
movq %rax, 0x1038(%rcx)
movl $0x0, 0xf88(%r14)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x196b0