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

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

	gitem_t *quad;
	quad = FindItem("Quad Damage");
	Menu_Set(ent, 1, "Server Settings", Ref_Main_Menu);
	Menu_Set(ent, 2, "---------------", NULL);
	sprintf(text, "Timelimit:           %3d", (int)timelimit->value);
	Menu_Set(ent, 3, text, Ref_Timelimit_Menu);
	sprintf(text, "Fraglimit:           %3d", (int)fraglimit->value);
	Menu_Set(ent, 4, text, Ref_Fraglimit_Menu);
	sprintf(text, "DMFlags:           %5d", ((unsigned short)dmflags->value));
	Menu_Set(ent, 5, text, Ref_DMFlags_Menu);
	sprintf(text, "CTFFlags:          %5d", ((unsigned short)ctfflags->value));
	Menu_Set(ent, 6, text, Ref_CTFFlags_Menu);
	sprintf(text, "Fast Weap Switch:  %5d", ((unsigned short)fastswitch->value));
	Menu_Set(ent, 7, text, NULL);
	sprintf(text, "Teams Locked:      %5d", (game.teamslocked) ? 1 : 0);
	Menu_Set(ent, 8, text, NULL);
	cvar_t *svp = gi.cvar("sv_password","",0);
	if (svp && strlen(svp->string) > 0) {
		sprintf(text, "sv_password: %s", svp->string);
	} else {
		sprintf(text, "password: %s", password->string);
	}
	Menu_Set(ent, 9, text, NULL);
	if (ent->client->ctf.extra_flags & CTF_EXTRAFLAGS_RCON)
		Menu_Set(ent, 10, "Clear password (RCON)", ClearPassword_Exec);
	if (quad) {
		sprintf(text, "Quad Time: %i", quad->quantity);
		Menu_Set(ent, 11, text, NULL);
	}


	Menu_Draw (ent);
}

// Assembly:
pushq %rbp
pushq %r15
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 0x33bf8(%rip), %rdi     # 0x4e797
callq 0x18a80
movq %rax, %r14
leaq 0x33824(%rip), %rdx     # 0x4e3d2
movq 0x4bf3b(%rip), %rcx     # 0x66af0
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x183a0
leaq 0x3361e(%rip), %rdx     # 0x4e1e5
pushq $0x2
popq %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x183a0
movq 0x4bad5(%rip), %rax     # 0x666b0
movq (%rax), %rax
cvttss2si 0x20(%rax), %edx
leaq 0x33bb9(%rip), %rsi     # 0x4e7a3
movq %rsp, %r15
movq %r15, %rdi
xorl %eax, %eax
callq 0x198c0
movq 0x4c32a(%rip), %rcx     # 0x66f28
pushq $0x3
popq %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x183a0
movq 0x4c1ed(%rip), %rax     # 0x66e00
movq (%rax), %rax
cvttss2si 0x20(%rax), %edx
leaq 0x33b9a(%rip), %rsi     # 0x4e7bc
movq %r15, %rdi
xorl %eax, %eax
callq 0x198c0
movq 0x4b995(%rip), %rcx     # 0x665c8
pushq $0x4
popq %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x183a0
movq 0x4b9d0(%rip), %rax     # 0x66618
movq (%rax), %rax
cvttss2si 0x20(%rax), %edx
movl $0xffff, %ebp           # imm = 0xFFFF
andl %ebp, %edx
leaq 0x33b77(%rip), %rsi     # 0x4e7d5
movq %r15, %rdi
xorl %eax, %eax
callq 0x198c0
movq 0x4bab1(%rip), %rcx     # 0x66720
pushq $0x5
popq %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x183a0
movq 0x4bed4(%rip), %rax     # 0x66b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %edx
andl %ebp, %edx
leaq 0x33b57(%rip), %rsi     # 0x4e7ec
movq %r15, %rdi
xorl %eax, %eax
callq 0x198c0
movq 0x4baa2(%rip), %rcx     # 0x66748
pushq $0x6
popq %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x183a0
movq 0x4bee5(%rip), %rax     # 0x66ba0
movq (%rax), %rax
cvttss2si 0x20(%rax), %edx
andl %ebp, %edx
leaq 0x33b37(%rip), %rsi     # 0x4e803
movq %r15, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0x7
popq %rsi
movq %rbx, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x183a0
movq 0x4c053(%rip), %rax     # 0x66d40
xorl %edx, %edx
cmpl $0x0, 0x624(%rax)
setne %dl
leaq 0x33b1a(%rip), %rsi     # 0x4e81a
movq %r15, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0x8
popq %rsi
movq %rbx, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x183a0
movq 0x4b8df(%rip), %rax     # 0x66600
leaq 0x33b09(%rip), %rdi     # 0x4e831
leaq 0x35216(%rip), %rsi     # 0x4ff45
xorl %edx, %edx
callq *0x120(%rax)
testq %rax, %rax
je 0x1ad4e
movq 0x8(%rax), %rdx
cmpb $0x0, (%rdx)
je 0x1ad4e
leaq 0x33af1(%rip), %rsi     # 0x4e83d
jmp 0x1ad63
movq 0x4bb03(%rip), %rax     # 0x66858
movq (%rax), %rax
movq 0x8(%rax), %rdx
leaq 0x33add(%rip), %rsi     # 0x4e840
movq %rsp, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0x9
popq %rsi
movq %rsp, %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x183a0
movq 0x58(%rbx), %rax
testb $0x4, 0x1108(%rax)
je 0x1ada3
leaq 0x33abc(%rip), %rdx     # 0x4e84d
movq 0x4c1e8(%rip), %rcx     # 0x66f80
pushq $0xa
popq %rsi
movq %rbx, %rdi
callq 0x183a0
testq %r14, %r14
je 0x1add0
movl 0x5c(%r14), %edx
leaq 0x33ab0(%rip), %rsi     # 0x4e863
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x198c0
pushq $0xb
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x183a0
movq %rbx, %rdi
callq 0x19880
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
popq %r15
popq %rbp
retq