// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x210, %rsp            # imm = 0x210
movq %rdi, -0x8(%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
movl $0x1, %esi
leaq 0x54808(%rip), %rdx     # 0x6f3a4
movq 0x67bfd(%rip), %rcx     # 0x827a0
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x2, %esi
leaq 0x5461a(%rip), %rdx     # 0x6f1d2
xorl %eax, %eax
movl %eax, %ecx
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x3, %esi
leaq 0x547e6(%rip), %rdx     # 0x6f3b7
movq 0x67d80(%rip), %rcx     # 0x82958
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x4, %esi
leaq 0x547d5(%rip), %rdx     # 0x6f3c2
movq 0x6805c(%rip), %rcx     # 0x82c50
callq 0x183b0
leaq -0x210(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1110(%rax), %edx
leaq 0x547bd(%rip), %rsi     # 0x6f3d2
movb $0x0, %al
callq 0x19940
movq -0x8(%rbp), %rdi
leaq -0x210(%rbp), %rdx
movl $0x5, %esi
movq 0x6823d(%rip), %rcx     # 0x82e70
callq 0x183b0
leaq -0x210(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1114(%rax), %edx
leaq 0x54797(%rip), %rsi     # 0x6f3eb
movb $0x0, %al
callq 0x19940
movq -0x8(%rbp), %rdi
leaq -0x210(%rbp), %rdx
movl $0x6, %esi
movq 0x67a76(%rip), %rcx     # 0x826e8
callq 0x183b0
movb $0x0, %al
callq 0x192e0
cmpl $0x0, %eax
je 0x1aca1
movq -0x8(%rbp), %rdi
movl $0x7, %esi
leaq 0x54771(%rip), %rdx     # 0x6f404
movq 0x67b4e(%rip), %rcx     # 0x827e8
callq 0x183b0
jmp 0x1acbd
movq -0x8(%rbp), %rdi
movl $0x7, %esi
leaq 0x5475e(%rip), %rdx     # 0x6f40f
movq 0x68028(%rip), %rcx     # 0x82ce0
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0x8, %esi
leaq 0x5474e(%rip), %rdx     # 0x6f41b
movq 0x67b94(%rip), %rcx     # 0x82868
callq 0x183b0
movb $0x0, %al
callq 0x18160
cmpl $0x0, %eax
je 0x1ad03
movq -0x8(%rbp), %rdi
movl $0x9, %esi
leaq 0x54732(%rip), %rdx     # 0x6f427
movq 0x67b54(%rip), %rcx     # 0x82850
callq 0x183b0
jmp 0x1ad1f
movq -0x8(%rbp), %rdi
movl $0x9, %esi
leaq 0x54723(%rip), %rdx     # 0x6f436
movq 0x67b36(%rip), %rcx     # 0x82850
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0xa, %esi
leaq 0x54713(%rip), %rdx     # 0x6f442
movq 0x67ffa(%rip), %rcx     # 0x82d30
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0xb, %esi
leaq 0x54709(%rip), %rdx     # 0x6f454
movq 0x67b36(%rip), %rcx     # 0x82888
callq 0x183b0
movq -0x8(%rbp), %rdi
movl $0xc, %esi
leaq 0x54700(%rip), %rdx     # 0x6f467
movq 0x67982(%rip), %rcx     # 0x826f0
callq 0x183b0
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1108(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x1ada5
movq -0x8(%rbp), %rdi
movl $0xd, %esi
leaq 0x546db(%rip), %rdx     # 0x6f474
movq 0x67d80(%rip), %rcx     # 0x82b20
callq 0x183b0
movq -0x8(%rbp), %rdi
callq 0x19900
addq $0x210, %rsp            # imm = 0x210
popq %rbp
retq
nopw (%rax,%rax)