// File: /workspace/github_c_makefile_star2_O2/QwazyWabbitWOS[P]lmctf60/g_menu.c
// Function: Ref_Main_Menu
void Ref_Main_Menu (edict_t *ent)
{
	char text[MAX_INFO_STRING];

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


	Menu_Set(ent, 1, "LMCTF Referee Menu", Main_Menu);
	Menu_Set(ent, 2, "------------------", NULL);
	Menu_Set(ent, 3, "Change Map", Ref_Map_Menu);
	Menu_Set(ent, 4, "Server Settings", Ref_Settings_Menu);
	sprintf(text, "Ping Floor:          %3d", ent->client->ctf.pingalertfloor);
	Menu_Set(ent, 5, text, Ref_PingFloor_Menu);
	sprintf(text, "Ping Ceiling:        %3d", ent->client->ctf.pingalertceiling);
	Menu_Set(ent, 6, text, Ref_PingCeiling_Menu);
	if (Match_Mode())
		Menu_Set(ent, 7, "Stop Match", Ref_End_Match);
	else
		Menu_Set(ent, 7, "Start Match", Ref_Match_Menu);
	Menu_Set(ent, 8, "Kick Player", Ref_Kick_Menu);

	if (GamePaused())
		Menu_Set(ent, 9, "Continue Match", RefTogglePause);
	else
		Menu_Set(ent, 9, "Pause Match", RefTogglePause);
	Menu_Set(ent, 10, "Practice Settings", Ref_Practice_Menu);
	Menu_Set(ent, 11, "Toggle Fast Switch", Cmd_ToggleFastSwitch_f);
	Menu_Set(ent, 12, "Referee Help", Ref_Help_Menu);

	if (ent->client->ctf.extra_flags & CTF_EXTRAFLAGS_RCON)
		Menu_Set(ent, 13, "Save Config (RCON)", SaveServer_Exec);

	Menu_Draw (ent);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
callq 0x189e0
movq 0x58(%rbx), %rax
movabsq $0x100000000, %rcx      # imm = 0x100000000
movq %rcx, 0xf84(%rax)
leaq 0x33da6(%rip), %rdx     # 0x4e3b4
movq 0x4c18b(%rip), %rcx     # 0x667a0
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x183a0
leaq 0x33bbb(%rip), %rdx     # 0x4e1e2
pushq $0x2
popq %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x183a0
leaq 0x33d8c(%rip), %rdx     # 0x4e3c7
movq 0x4c316(%rip), %rcx     # 0x66958
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x183a0
leaq 0x33d7e(%rip), %rdx     # 0x4e3d2
movq 0x4c5f5(%rip), %rcx     # 0x66c50
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x183a0
movq 0x58(%rbx), %rax
movl 0x1110(%rax), %edx
leaq 0x33d6b(%rip), %rsi     # 0x4e3e2
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
movq 0x4c7e5(%rip), %rcx     # 0x66e70
pushq $0x5
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x183a0
movq 0x58(%rbx), %rax
movl 0x1114(%rax), %edx
leaq 0x33d51(%rip), %rsi     # 0x4e3fb
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
movq 0x4c02d(%rip), %rcx     # 0x666e8
pushq $0x6
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x183a0
xorl %eax, %eax
callq 0x19280
testl %eax, %eax
je 0x1a6e4
leaq 0x33d39(%rip), %rdx     # 0x4e414
movq 0x4c106(%rip), %rcx     # 0x667e8
jmp 0x1a6f2
leaq 0x33d34(%rip), %rdx     # 0x4e41f
movq 0x4c5ee(%rip), %rcx     # 0x66ce0
pushq $0x7
popq %rsi
movq %rbx, %rdi
callq 0x183a0
leaq 0x33d27(%rip), %rdx     # 0x4e42b
movq 0x4c15d(%rip), %rcx     # 0x66868
pushq $0x8
popq %rsi
movq %rbx, %rdi
callq 0x183a0
xorl %eax, %eax
callq 0x18160
testl %eax, %eax
leaq 0x33d20(%rip), %rax     # 0x4e446
leaq 0x33d0a(%rip), %rdx     # 0x4e437
cmoveq %rax, %rdx
movq 0x4c118(%rip), %rcx     # 0x66850
pushq $0x9
popq %rsi
movq %rbx, %rdi
callq 0x183a0
leaq 0x33d08(%rip), %rdx     # 0x4e452
movq 0x4c5df(%rip), %rcx     # 0x66d30
pushq $0xa
popq %rsi
movq %rbx, %rdi
callq 0x183a0
leaq 0x33d01(%rip), %rdx     # 0x4e464
movq 0x4c11e(%rip), %rcx     # 0x66888
pushq $0xb
popq %rsi
movq %rbx, %rdi
callq 0x183a0
leaq 0x33cfb(%rip), %rdx     # 0x4e477
movq 0x4bf6d(%rip), %rcx     # 0x666f0
pushq $0xc
popq %rsi
movq %rbx, %rdi
callq 0x183a0
movq 0x58(%rbx), %rax
testb $0x4, 0x1108(%rax)
je 0x1a7b4
leaq 0x33ce2(%rip), %rdx     # 0x4e484
movq 0x4c377(%rip), %rcx     # 0x66b20
pushq $0xd
popq %rsi
movq %rbx, %rdi
callq 0x183a0
movq %rbx, %rdi
callq 0x19880
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
retq