// File: /workspace/github_c_makefile_star2_O0/QwazyWabbitWOS[P]lmctf60/g_cmds.c
// Function: Cmd_Refcommands_f
void Cmd_Refcommands_f(edict_t *ent)
{
	if (!ISREF(ent)) {
		gi.cprintf(ent, PRINT_HIGH, "Referee-only command\n");
		return;
	}

	char buf[0x2000]; //QW// resized unnecessarily large buffer.
	memset(&buf[0], 0, sizeof(buf));

	strcat(buf, "\nReferee, commands:\n");
	strcat(buf, "  gotomap                          Change the map\n");
	strcat(buf, "  users                            List players\n");
	strcat(buf, "  kick <id>                        Kick player by their client ID\n");
	strcat(buf, "  pingalert <floor> <ceiling>      Notify ref if a player is outside this range\n");
	strcat(buf, "  togglefastswitch                 Turn on/off fast weapon switching\n");
	strcat(buf, "  refmenu                          Open the menu in the hud\n");
	strcat(buf, "  startmatch                       Start the match on the current map\n");
	strcat(buf, "  stopmatch                        Stop the current match\n");
	strcat(buf, "  pausematch                       Pause the current match\n");
	strcat(buf, "  lock                             Toggle the team lock\n");
	strcat(buf, "  setpassword <password>           Set a password on server. blank password unsets it\n");
	strcat(buf, "  changemap <mapname>              Change to the selected map\n");
	strcat(buf, "  settimelimit <minutes>           Set the match timelimit in minutes\n");

	gi.cprintf(ent, PRINT_HIGH, buf);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2010, %rsp           # imm = 0x2010
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1108(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0x30d09
movq 0x51914(%rip), %rax     # 0x82600
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rdi
movl $0x2, %esi
leaq 0x407ea(%rip), %rdx     # 0x714ea
movb $0x0, %al
callq *%rcx
jmp 0x30e45
leaq -0x2010(%rbp), %rdi
xorl %esi, %esi
movl $0x2000, %edx           # imm = 0x2000
callq 0x188f0
leaq -0x2010(%rbp), %rdi
leaq 0x417ef(%rip), %rsi     # 0x72519
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x417f1(%rip), %rsi     # 0x7252e
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x41811(%rip), %rsi     # 0x72561
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x4182f(%rip), %rsi     # 0x72592
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x4185f(%rip), %rsi     # 0x725d5
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x4189d(%rip), %rsi     # 0x72626
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x418d0(%rip), %rsi     # 0x7266c
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x418fa(%rip), %rsi     # 0x726a9
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x4192e(%rip), %rsi     # 0x726f0
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x41956(%rip), %rsi     # 0x7272b
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x4197f(%rip), %rsi     # 0x72767
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x419a5(%rip), %rsi     # 0x727a0
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x419e9(%rip), %rsi     # 0x727f7
callq 0x19880
leaq -0x2010(%rbp), %rdi
leaq 0x41a15(%rip), %rsi     # 0x72836
callq 0x19880
movq 0x517d3(%rip), %rax     # 0x82600
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rdi
leaq -0x2010(%rbp), %rdx
movl $0x2, %esi
movb $0x0, %al
callq *%rcx
addq $0x2010, %rsp           # imm = 0x2010
popq %rbp
retq
nop