// File: /workspace/github_c_makefile_star2_O3/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
movq 0x58(%rdi), %rax
xorl %r14d, %r14d
movq 0x4d34d(%rip), %r12     # 0x68600
movq 0xf90(%rax,%r14), %rdi
testq %rdi, %rdi
je 0x1b2d8
callq *0x110(%r12)
movq 0x58(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0xf90(%rax,%r14)
addq $0x10, %r14
cmpq $0x120, %r14            # imm = 0x120
jne 0x1b2b3
movq 0x58(%rbx), %rax
movabsq $0x100000000, %rcx      # imm = 0x100000000
movq %rcx, 0xf84(%rax)
leaq 0x37496(%rip), %rdi     # 0x52797
callq 0x189e0
movq %rax, %r14
movq 0x58(%rbx), %rax
movq 0xfa0(%rax), %rdi
testq %rdi, %rdi
je 0x1b321
callq *0x110(%r12)
leaq 0x370aa(%rip), %rdi     # 0x523d2
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfa0(%rcx)
movq 0x4d7b1(%rip), %rax     # 0x68af0
movq %rax, 0xfa8(%rcx)
movq 0xfb0(%rcx), %rdi
testq %rdi, %rdi
je 0x1b35a
callq *0x110(%r12)
leaq 0x36e84(%rip), %rdi     # 0x521e5
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfb0(%rcx)
movq $0x0, 0xfb8(%rcx)
movq 0x4d32d(%rip), %rax     # 0x686b0
movq (%rax), %rax
cvttss2si 0x20(%rax), %edx
leaq 0x37411(%rip), %rsi     # 0x527a3
movq %rsp, %rdi
xorl %eax, %eax
callq 0x196f0
movq 0x58(%rbx), %rax
movq 0xfc0(%rax), %rdi
testq %rdi, %rdi
je 0x1b3b4
callq *0x110(%r12)
movq %rsp, %r15
movq %r15, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfc0(%rcx)
movq 0x4db57(%rip), %rax     # 0x68f28
movq %rax, 0xfc8(%rcx)
movq 0x4da21(%rip), %rax     # 0x68e00
movq (%rax), %rax
cvttss2si 0x20(%rax), %edx
leaq 0x373ce(%rip), %rsi     # 0x527bc
movq %r15, %rdi
xorl %eax, %eax
callq 0x196f0
movq 0x58(%rbx), %rax
movq 0xfd0(%rax), %rdi
testq %rdi, %rdi
je 0x1b410
callq *0x110(%r12)
movq %rsp, %r15
movq %r15, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfd0(%rcx)
movq 0x4d19b(%rip), %rax     # 0x685c8
movq %rax, 0xfd8(%rcx)
movq 0x4d1dd(%rip), %rax     # 0x68618
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
movzwl %ax, %edx
leaq 0x37388(%rip), %rsi     # 0x527d5
movq %r15, %rdi
xorl %eax, %eax
callq 0x196f0
movq 0x58(%rbx), %rax
movq 0xfe0(%rax), %rdi
testq %rdi, %rdi
je 0x1b46f
callq *0x110(%r12)
movq %rsp, %r15
movq %r15, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xfe0(%rcx)
movq 0x4d294(%rip), %rax     # 0x68720
movq %rax, 0xfe8(%rcx)
movq 0x4d6be(%rip), %rax     # 0x68b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
movzwl %ax, %edx
leaq 0x37340(%rip), %rsi     # 0x527ec
movq %r15, %rdi
xorl %eax, %eax
callq 0x196f0
movq 0x58(%rbx), %rax
movq 0xff0(%rax), %rdi
testq %rdi, %rdi
je 0x1b4ce
callq *0x110(%r12)
movq %rsp, %r15
movq %r15, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0xff0(%rcx)
movq 0x4d25d(%rip), %rax     # 0x68748
movq %rax, 0xff8(%rcx)
movq 0x4d6a7(%rip), %rax     # 0x68ba0
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
movzwl %ax, %edx
leaq 0x372f8(%rip), %rsi     # 0x52803
movq %r15, %rdi
xorl %eax, %eax
callq 0x196f0
movq 0x58(%rbx), %rax
movq 0x1000(%rax), %rdi
testq %rdi, %rdi
je 0x1b52d
callq *0x110(%r12)
movq %rsp, %r15
movq %r15, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1000(%rcx)
movq $0x0, 0x1008(%rcx)
movq 0x4d7eb(%rip), %rax     # 0x68d40
xorl %edx, %edx
cmpl $0x0, 0x624(%rax)
setne %dl
leaq 0x372b2(%rip), %rsi     # 0x5281a
movq %r15, %rdi
xorl %eax, %eax
callq 0x196f0
movq 0x58(%rbx), %rax
movq 0x1010(%rax), %rdi
testq %rdi, %rdi
je 0x1b58a
callq *0x110(%r12)
movq %rsp, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1010(%rcx)
movq $0x0, 0x1018(%rcx)
leaq 0x37282(%rip), %rdi     # 0x52831
leaq 0x3898f(%rip), %rsi     # 0x53f45
xorl %edx, %edx
callq *0x120(%r12)
testq %rax, %rax
je 0x1b5d7
movq 0x8(%rax), %rdx
cmpb $0x0, (%rdx)
je 0x1b5d7
leaq 0x37268(%rip), %rsi     # 0x5283d
jmp 0x1b5ec
movq 0x4d27a(%rip), %rax     # 0x68858
movq (%rax), %rax
movq 0x8(%rax), %rdx
leaq 0x37254(%rip), %rsi     # 0x52840
movq %rsp, %rdi
xorl %eax, %eax
callq 0x196f0
movq 0x58(%rbx), %rax
movq 0x1020(%rax), %rdi
testq %rdi, %rdi
je 0x1b60e
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 0x1b66e
movq 0x1030(%rcx), %rdi
testq %rdi, %rdi
je 0x1b649
callq *0x110(%r12)
leaq 0x371fd(%rip), %rdi     # 0x5284d
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1030(%rcx)
movq 0x4d919(%rip), %rax     # 0x68f80
movq %rax, 0x1038(%rcx)
testq %r14, %r14
je 0x1b6be
movl 0x5c(%r14), %edx
leaq 0x371e5(%rip), %rsi     # 0x52863
movq %rsp, %rdi
xorl %eax, %eax
callq 0x196f0
movq 0x58(%rbx), %rax
movq 0x1040(%rax), %rdi
testq %rdi, %rdi
je 0x1b6a0
callq *0x110(%r12)
movq %rsp, %rdi
callq 0x18100
movq 0x58(%rbx), %rcx
movq %rax, 0x1040(%rcx)
movq $0x0, 0x1048(%rcx)
movq %rbx, %rdi
callq 0x196b0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r14
popq %r15
retq