// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
subq $0x2008, %rsp           # imm = 0x2008
movq %rdi, %rbx
movq 0x58(%rdi), %rax
testb $0x2, 0x1108(%rax)
jne 0x2a231
movq 0x3e3f0(%rip), %rax     # 0x68600
movq 0x10(%rax), %rcx
leaq 0x2a34b(%rip), %rdx     # 0x54566
movq %rbx, %rdi
movl $0x2, %esi
xorl %eax, %eax
addq $0x2008, %rsp           # imm = 0x2008
popq %rbx
popq %r14
jmpq *%rcx
movq %rsp, %r14
movl $0x2000, %edx           # imm = 0x2000
movq %r14, %rdi
xorl %esi, %esi
callq 0x18880
movq %r14, %rdi
callq 0x18680
movabsq $0xa3a73646e616d, %rcx  # imm = 0xA3A73646E616D
movq %rcx, 0xd(%rsp,%rax)
movups 0x2b31c(%rip), %xmm0    # 0x5557d
movups %xmm0, (%rsp,%rax)
movq %r14, %rdi
callq 0x18680
movups 0x2b31e(%rip), %xmm0    # 0x55592
movups %xmm0, (%rsp,%rax)
movups 0x2b323(%rip), %xmm0    # 0x555a2
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2b327(%rip), %xmm0    # 0x555b2
movups %xmm0, 0x20(%rsp,%rax)
movl $0xa7061, 0x2f(%rsp,%rax) # imm = 0xA7061
movq %r14, %rdi
callq 0x18680
movups 0x2b31e(%rip), %xmm0    # 0x555c5
movups %xmm0, (%rsp,%rax)
movups 0x2b323(%rip), %xmm0    # 0x555d5
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2b327(%rip), %xmm0    # 0x555e5
movups %xmm0, 0x20(%rsp,%rax)
movb $0x0, 0x30(%rsp,%rax)
movq %r14, %rdi
callq 0x18680
leaq (%rsp,%rax), %rdi
leaq 0x2b31b(%rip), %rsi     # 0x555f6
movl $0x43, %edx
callq 0x18c80
movq %r14, %rdi
callq 0x18680
leaq (%rsp,%rax), %rdi
leaq 0x2b341(%rip), %rsi     # 0x55639
movl $0x51, %edx
callq 0x18c80
movq %r14, %rdi
callq 0x18680
leaq (%rsp,%rax), %rdi
leaq 0x2b375(%rip), %rsi     # 0x5568a
movl $0x46, %edx
callq 0x18c80
movq %r14, %rdi
callq 0x18680
movups 0x2b3a2(%rip), %xmm0    # 0x556d0
movups %xmm0, (%rsp,%rax)
movups 0x2b3a7(%rip), %xmm0    # 0x556e0
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2b3ab(%rip), %xmm0    # 0x556f0
movups %xmm0, 0x20(%rsp,%rax)
movups 0x2b3ac(%rip), %xmm0    # 0x556fd
movups %xmm0, 0x2d(%rsp,%rax)
movq %r14, %rdi
callq 0x18680
leaq (%rsp,%rax), %rdi
leaq 0x2b3a4(%rip), %rsi     # 0x5570d
movl $0x47, %edx
callq 0x18c80
movq %r14, %rdi
callq 0x18680
movups 0x2b3d2(%rip), %xmm0    # 0x55754
movups %xmm0, (%rsp,%rax)
movups 0x2b3d7(%rip), %xmm0    # 0x55764
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2b3db(%rip), %xmm0    # 0x55774
movups %xmm0, 0x20(%rsp,%rax)
movups 0x2b3da(%rip), %xmm0    # 0x5577f
movups %xmm0, 0x2b(%rsp,%rax)
movq %r14, %rdi
callq 0x18680
movups 0x2b3d6(%rip), %xmm0    # 0x5578f
movups %xmm0, (%rsp,%rax)
movups 0x2b3db(%rip), %xmm0    # 0x5579f
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2b3df(%rip), %xmm0    # 0x557af
movups %xmm0, 0x20(%rsp,%rax)
movups 0x2b3df(%rip), %xmm0    # 0x557bb
movups %xmm0, 0x2c(%rsp,%rax)
movq %r14, %rdi
callq 0x18680
movups 0x2b3db(%rip), %xmm0    # 0x557cb
movups %xmm0, (%rsp,%rax)
movups 0x2b3e0(%rip), %xmm0    # 0x557db
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2b3e4(%rip), %xmm0    # 0x557eb
movups %xmm0, 0x20(%rsp,%rax)
movups 0x2b3e1(%rip), %xmm0    # 0x557f4
movups %xmm0, 0x29(%rsp,%rax)
movq %r14, %rdi
callq 0x18680
leaq (%rsp,%rax), %rdi
leaq 0x2b3d9(%rip), %rsi     # 0x55804
movl $0x57, %edx
callq 0x18c80
movq %r14, %rdi
callq 0x18680
movups 0x2b417(%rip), %xmm0    # 0x5585b
movups %xmm0, (%rsp,%rax)
movups 0x2b41c(%rip), %xmm0    # 0x5586b
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2b420(%rip), %xmm0    # 0x5587b
movups %xmm0, 0x20(%rsp,%rax)
movups 0x2b423(%rip), %xmm0    # 0x5588a
movups %xmm0, 0x2f(%rsp,%rax)
movq %r14, %rdi
callq 0x18680
leaq (%rsp,%rax), %rdi
leaq 0x2b41b(%rip), %rsi     # 0x5589a
movl $0x47, %edx
callq 0x18c80
movq 0x3e170(%rip), %rcx     # 0x68600
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
xorl %eax, %eax
callq *0x10(%rcx)
addq $0x2008, %rsp           # imm = 0x2008
popq %rbx
popq %r14
retq