// File: /workspace/github_c_makefile_star2_O1/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 0x2a409
movq 0x3f218(%rip), %rax     # 0x69600
movq 0x10(%rax), %rcx
leaq 0x2b153(%rip), %rdx     # 0x55546
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 0x2c124(%rip), %xmm0    # 0x5655d
movups %xmm0, (%rsp,%rax)
movq %r14, %rdi
callq 0x18680
movups 0x2c126(%rip), %xmm0    # 0x56572
movups %xmm0, (%rsp,%rax)
movups 0x2c12b(%rip), %xmm0    # 0x56582
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2c12f(%rip), %xmm0    # 0x56592
movups %xmm0, 0x20(%rsp,%rax)
movl $0xa7061, 0x2f(%rsp,%rax) # imm = 0xA7061
movq %r14, %rdi
callq 0x18680
movups 0x2c126(%rip), %xmm0    # 0x565a5
movups %xmm0, (%rsp,%rax)
movups 0x2c12b(%rip), %xmm0    # 0x565b5
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2c12f(%rip), %xmm0    # 0x565c5
movups %xmm0, 0x20(%rsp,%rax)
movb $0x0, 0x30(%rsp,%rax)
movq %r14, %rdi
callq 0x18680
leaq (%rsp,%rax), %rdi
leaq 0x2c123(%rip), %rsi     # 0x565d6
movl $0x43, %edx
callq 0x18c80
movq %r14, %rdi
callq 0x18680
leaq (%rsp,%rax), %rdi
leaq 0x2c149(%rip), %rsi     # 0x56619
movl $0x51, %edx
callq 0x18c80
movq %r14, %rdi
callq 0x18680
leaq (%rsp,%rax), %rdi
leaq 0x2c17d(%rip), %rsi     # 0x5666a
movl $0x46, %edx
callq 0x18c80
movq %r14, %rdi
callq 0x18680
movups 0x2c1aa(%rip), %xmm0    # 0x566b0
movups %xmm0, (%rsp,%rax)
movups 0x2c1af(%rip), %xmm0    # 0x566c0
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2c1b3(%rip), %xmm0    # 0x566d0
movups %xmm0, 0x20(%rsp,%rax)
movups 0x2c1b4(%rip), %xmm0    # 0x566dd
movups %xmm0, 0x2d(%rsp,%rax)
movq %r14, %rdi
callq 0x18680
leaq (%rsp,%rax), %rdi
leaq 0x2c1ac(%rip), %rsi     # 0x566ed
movl $0x47, %edx
callq 0x18c80
movq %r14, %rdi
callq 0x18680
movups 0x2c1da(%rip), %xmm0    # 0x56734
movups %xmm0, (%rsp,%rax)
movups 0x2c1df(%rip), %xmm0    # 0x56744
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2c1e3(%rip), %xmm0    # 0x56754
movups %xmm0, 0x20(%rsp,%rax)
movups 0x2c1e2(%rip), %xmm0    # 0x5675f
movups %xmm0, 0x2b(%rsp,%rax)
movq %r14, %rdi
callq 0x18680
movups 0x2c1de(%rip), %xmm0    # 0x5676f
movups %xmm0, (%rsp,%rax)
movups 0x2c1e3(%rip), %xmm0    # 0x5677f
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2c1e7(%rip), %xmm0    # 0x5678f
movups %xmm0, 0x20(%rsp,%rax)
movups 0x2c1e7(%rip), %xmm0    # 0x5679b
movups %xmm0, 0x2c(%rsp,%rax)
movq %r14, %rdi
callq 0x18680
movups 0x2c1e3(%rip), %xmm0    # 0x567ab
movups %xmm0, (%rsp,%rax)
movups 0x2c1e8(%rip), %xmm0    # 0x567bb
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2c1ec(%rip), %xmm0    # 0x567cb
movups %xmm0, 0x20(%rsp,%rax)
movups 0x2c1e9(%rip), %xmm0    # 0x567d4
movups %xmm0, 0x29(%rsp,%rax)
movq %r14, %rdi
callq 0x18680
leaq (%rsp,%rax), %rdi
leaq 0x2c1e1(%rip), %rsi     # 0x567e4
movl $0x57, %edx
callq 0x18c80
movq %r14, %rdi
callq 0x18680
movups 0x2c21f(%rip), %xmm0    # 0x5683b
movups %xmm0, (%rsp,%rax)
movups 0x2c224(%rip), %xmm0    # 0x5684b
movups %xmm0, 0x10(%rsp,%rax)
movups 0x2c228(%rip), %xmm0    # 0x5685b
movups %xmm0, 0x20(%rsp,%rax)
movups 0x2c22b(%rip), %xmm0    # 0x5686a
movups %xmm0, 0x2f(%rsp,%rax)
movq %r14, %rdi
callq 0x18680
leaq (%rsp,%rax), %rdi
leaq 0x2c223(%rip), %rsi     # 0x5687a
movl $0x47, %edx
callq 0x18c80
movq 0x3ef98(%rip), %rcx     # 0x69600
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