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

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

	sprintf(text, "CTFFlags:            %d", ((unsigned short)ctfflags->value));
	Menu_Set(ent, 0, text, Ref_Settings_Menu);
	Menu_Set(ent, 1, "----------------", NULL);
#ifdef WEAP_BALANCE_OK
	sprintf(text, "Weapon Balance       %s", CTFFLAG(CTF_WEAP_BALANCE));
	Menu_Set(ent, 2, text, CTFFlags_Exec);
#endif
	sprintf(text, "Allow Invuln         %s", CTFFLAG(CTF_ALLOW_INVULN));
	Menu_Set(ent, 3, text, CTFFlags_Exec);
	sprintf(text, "Team Reset           %s", CTFFLAG(CTF_TEAM_RESET));
	Menu_Set(ent, 4, text, CTFFlags_Exec);
	sprintf(text, "Team No Switch       %s", CTFFLAG(CTF_TEAM_NOSWITCH));
	Menu_Set(ent, 5, text, CTFFlags_Exec);
	sprintf(text, "Offhand Hook         %s", CTFFLAG(CTF_OFFHAND_HOOK));
#ifdef NOVOICE_OK
	Menu_Set(ent, 6, text, CTFFlags_Exec);
	sprintf(text, "No Voice             %s", CTFFLAG(CTF_NOVOICE));
#endif
	Menu_Set(ent, 7, text, CTFFlags_Exec);
	sprintf(text, "No Grapple Damage    %s", CTFFLAG(CTF_NO_GRAP_DAMAGE));
	Menu_Set(ent, 8, text, CTFFlags_Exec);
	sprintf(text, "No Teams             %s", CTFFLAG(CTF_TEAM_NOTEAMS));
	Menu_Set(ent, 9, text, CTFFlags_Exec);
	sprintf(text, "No Flags             %s", CTFFLAG(CTF_FLAGS_NOFLAGS));
	Menu_Set(ent, 10, text, CTFFlags_Exec);
	sprintf(text, "Score Balance        %s", CTFFLAG(CTF_SCORE_BALANCE));
	Menu_Set(ent, 11, text, CTFFlags_Exec);
	sprintf(text, "Team Armor Protect   %s", CTFFLAG(CTF_TEAM_ARMOR_PROTECT));
	Menu_Set(ent, 12, text, CTFFlags_Exec);

	//-bat
	sprintf(text, "Random Map List      %s", CTFFLAG(CTF_RANDOM_MAPS));
	Menu_Set(ent, 14, text, CTFFlags_Exec);
	sprintf(text, "Random Quad Respawn  %s", CTFFLAG(CTF_RANDOM_QUAD));
	Menu_Set(ent, 15, text, CTFFlags_Exec);
	sprintf(text, "Random Death Msgs    %s", CTFFLAG(CTF_RANDOM_DEATH_MSG));
	Menu_Set(ent, 16, text, CTFFlags_Exec);


	Menu_Draw (ent);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
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)
movq 0x4ad77(%rip), %r13     # 0x66b58
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
movzwl %ax, %edx
leaq 0x32c1c(%rip), %rsi     # 0x4ea10
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
movq 0x4ae48(%rip), %rcx     # 0x66c50
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x183a0
leaq 0x323c8(%rip), %rdx     # 0x4e1e4
pushq $0x1
popq %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x183a0
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
testb $0x2, %al
leaq 0x32a69(%rip), %rbp     # 0x4e8a4
leaq 0x32a5f(%rip), %r15     # 0x4e8a1
movq %r15, %rdx
cmoveq %rbp, %rdx
leaq 0x32bd8(%rip), %rsi     # 0x4ea28
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
movq 0x4a9cf(%rip), %r12     # 0x66830
pushq $0x3
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x183a0
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
testb $0x4, %al
movq %r15, %rdx
cmoveq %rbp, %rdx
leaq 0x32bb5(%rip), %rsi     # 0x4ea40
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0x4
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x183a0
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
testb $0x8, %al
movq %r15, %rdx
cmoveq %rbp, %rdx
leaq 0x32b99(%rip), %rsi     # 0x4ea58
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0x5
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x183a0
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
testb $0x10, %al
movq %r15, %rdx
cmoveq %rbp, %rdx
leaq 0x32b7d(%rip), %rsi     # 0x4ea70
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0x7
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x183a0
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
testb $0x40, %al
movq %r15, %rdx
cmoveq %rbp, %rdx
leaq 0x32b61(%rip), %rsi     # 0x4ea88
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0x8
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x183a0
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
testb %al, %al
movq %r15, %rdx
cmovnsq %rbp, %rdx
leaq 0x32b45(%rip), %rsi     # 0x4eaa0
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0x9
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x183a0
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
btl $0x8, %eax
movq %r15, %rdx
cmovaeq %rbp, %rdx
leaq 0x32b27(%rip), %rsi     # 0x4eab8
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0xa
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x183a0
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
btl $0x9, %eax
movq %r15, %rdx
cmovaeq %rbp, %rdx
leaq 0x32b09(%rip), %rsi     # 0x4ead0
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0xb
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x183a0
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
btl $0xa, %eax
movq %r15, %rdx
cmovaeq %rbp, %rdx
leaq 0x32aeb(%rip), %rsi     # 0x4eae8
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0xc
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x183a0
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
btl $0xc, %eax
movq %r15, %rdx
cmovaeq %rbp, %rdx
leaq 0x32acd(%rip), %rsi     # 0x4eb00
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0xe
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x183a0
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
btl $0xd, %eax
movq %r15, %rdx
cmovaeq %rbp, %rdx
leaq 0x32aaf(%rip), %rsi     # 0x4eb18
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0xf
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x183a0
movq (%r13), %rax
cvttss2si 0x20(%rax), %eax
btl $0xe, %eax
cmovaeq %rbp, %r15
leaq 0x32a94(%rip), %rsi     # 0x4eb30
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x198c0
pushq $0x10
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x183a0
movq %rbx, %rdi
callq 0x19880
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq