// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
xorl %r14d, %r14d
movq 0x4e364(%rip), %r12     # 0x69600
movq 0x58(%rbx), %rax
movq 0xf90(%rax,%r14), %rdi
testq %rdi, %rdi
je 0x1b2c5
callq *0x110(%r12)
movq 0x58(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0xf90(%rax,%r14)
addq $0x10, %r14
cmpq $0x120, %r14            # imm = 0x120
jne 0x1b29c
movq 0x58(%rbx), %rax
movabsq $0x100000000, %rcx      # imm = 0x100000000
movq %rcx, 0xf84(%rax)
leaq 0x384a9(%rip), %rdi     # 0x53797
callq 0x189e0
movq %rax, %r14
movq 0x58(%rbx), %rax
movq 0xfa0(%rax), %rdi
testq %rdi, %rdi
je 0x1b30e
callq *0x110(%r12)
leaq 0x380bd(%rip), %rdi     # 0x533d2
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfa0(%rcx)
movq 0x4e7c4(%rip), %rax     # 0x69af0
movq %rax, 0xfa8(%rcx)
movq 0xfb0(%rcx), %rdi
testq %rdi, %rdi
je 0x1b347
callq *0x110(%r12)
leaq 0x37e97(%rip), %rdi     # 0x531e5
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfb0(%rcx)
movq $0x0, 0xfb8(%rcx)
movq 0x4e340(%rip), %rax     # 0x696b0
movq (%rax), %rax
cvttss2si 0x20(%rax), %edx
leaq 0x38424(%rip), %rsi     # 0x537a3
movq %rsp, %rdi
xorl %eax, %eax
callq 0x19700
movq 0x58(%rbx), %rax
movq 0xfc0(%rax), %rdi
testq %rdi, %rdi
je 0x1b3a1
callq *0x110(%r12)
movq %rsp, %r15
movq %r15, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfc0(%rcx)
movq 0x4eb6a(%rip), %rax     # 0x69f28
movq %rax, 0xfc8(%rcx)
movq 0x4ea34(%rip), %rax     # 0x69e00
movq (%rax), %rax
cvttss2si 0x20(%rax), %edx
leaq 0x383e1(%rip), %rsi     # 0x537bc
movq %r15, %rdi
xorl %eax, %eax
callq 0x19700
movq 0x58(%rbx), %rax
movq 0xfd0(%rax), %rdi
testq %rdi, %rdi
je 0x1b3fd
callq *0x110(%r12)
movq %rsp, %r15
movq %r15, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfd0(%rcx)
movq 0x4e1ae(%rip), %rax     # 0x695c8
movq %rax, 0xfd8(%rcx)
movq 0x4e1f0(%rip), %rax     # 0x69618
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
movzwl %ax, %edx
leaq 0x3839b(%rip), %rsi     # 0x537d5
movq %r15, %rdi
xorl %eax, %eax
callq 0x19700
movq 0x58(%rbx), %rax
movq 0xfe0(%rax), %rdi
testq %rdi, %rdi
je 0x1b45c
callq *0x110(%r12)
movq %rsp, %r15
movq %r15, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfe0(%rcx)
movq 0x4e2a7(%rip), %rax     # 0x69720
movq %rax, 0xfe8(%rcx)
movq 0x4e6d1(%rip), %rax     # 0x69b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
movzwl %ax, %edx
leaq 0x38353(%rip), %rsi     # 0x537ec
movq %r15, %rdi
xorl %eax, %eax
callq 0x19700
movq 0x58(%rbx), %rax
movq 0xff0(%rax), %rdi
testq %rdi, %rdi
je 0x1b4bb
callq *0x110(%r12)
movq %rsp, %r15
movq %r15, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xff0(%rcx)
movq 0x4e270(%rip), %rax     # 0x69748
movq %rax, 0xff8(%rcx)
movq 0x4e6ba(%rip), %rax     # 0x69ba0
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
movzwl %ax, %edx
leaq 0x3830b(%rip), %rsi     # 0x53803
movq %r15, %rdi
xorl %eax, %eax
callq 0x19700
movq 0x58(%rbx), %rax
movq 0x1000(%rax), %rdi
testq %rdi, %rdi
je 0x1b51a
callq *0x110(%r12)
movq %rsp, %r15
movq %r15, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1000(%rcx)
movq $0x0, 0x1008(%rcx)
movq 0x4e7fe(%rip), %rax     # 0x69d40
xorl %edx, %edx
cmpl $0x0, 0x624(%rax)
setne %dl
leaq 0x382c5(%rip), %rsi     # 0x5381a
movq %r15, %rdi
xorl %eax, %eax
callq 0x19700
movq 0x58(%rbx), %rax
movq 0x1010(%rax), %rdi
testq %rdi, %rdi
je 0x1b577
callq *0x110(%r12)
movq %rsp, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1010(%rcx)
movq $0x0, 0x1018(%rcx)
leaq 0x38295(%rip), %rdi     # 0x53831
leaq 0x39962(%rip), %rsi     # 0x54f05
xorl %edx, %edx
callq *0x120(%r12)
testq %rax, %rax
je 0x1b5c4
movq 0x8(%rax), %rdx
cmpb $0x0, (%rdx)
je 0x1b5c4
leaq 0x3827b(%rip), %rsi     # 0x5383d
jmp 0x1b5d9
movq 0x4e28d(%rip), %rax     # 0x69858
movq (%rax), %rax
movq 0x8(%rax), %rdx
leaq 0x38267(%rip), %rsi     # 0x53840
movq %rsp, %rdi
xorl %eax, %eax
callq 0x19700
movq 0x58(%rbx), %rax
movq 0x1020(%rax), %rdi
testq %rdi, %rdi
je 0x1b5fb
callq *0x110(%r12)
movq %rsp, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1020(%rcx)
movq $0x0, 0x1028(%rcx)
testb $0x4, 0x1108(%rcx)
je 0x1b65b
movq 0x1030(%rcx), %rdi
testq %rdi, %rdi
je 0x1b636
callq *0x110(%r12)
leaq 0x38210(%rip), %rdi     # 0x5384d
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1030(%rcx)
movq 0x4e92c(%rip), %rax     # 0x69f80
movq %rax, 0x1038(%rcx)
testq %r14, %r14
je 0x1b6ab
movl 0x5c(%r14), %edx
leaq 0x381f8(%rip), %rsi     # 0x53863
movq %rsp, %rdi
xorl %eax, %eax
callq 0x19700
movq 0x58(%rbx), %rax
movq 0x1040(%rax), %rdi
testq %rdi, %rdi
je 0x1b68d
callq *0x110(%r12)
movq %rsp, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1040(%rcx)
movq $0x0, 0x1048(%rcx)
movq %rbx, %rdi
callq 0x196c0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r14
popq %r15
retq