// File: /workspace/github_c_makefile_star2_O0/QwazyWabbitWOS[P]lmctf60/g_cmds.c
// Function: Cmd_Ctfhelp_f
void Cmd_Ctfhelp_f (edict_t *ent)
{
	char	*s1, *s2, *s3, *s4, *s5, *s6, *s7, *s8, *s9, *s10, *s11;
	char message[MAX_INFO_STRING];

#ifdef WEAP_BALANCE_OK
	if ((int)ctfflags->value & CTF_WEAP_BALANCE)
		s1 = "ON : Balanced Weapons";
	else
		s1 = "OFF: Normal Balance";
#else
		s1 = "OFF: Normal Balance";
#endif

	if ((int)ctfflags->value & CTF_ALLOW_INVULN)
		s2 = "ON : Invulnerability Enabled";
	else
		s2 = "OFF: Invulnerability Disabled";

	if ((int)ctfflags->value & CTF_TEAM_RESET)
		s3 = "ON : Teams reset every level";
	else
		s3 = "OFF: Teams do not reset";

	if ((int)ctfflags->value & CTF_TEAM_NOSWITCH)
		s4 = "ON : Team command disabled";
	else
		s4 = "OFF: Team command enabled";

	if ((int)ctfflags->value & CTF_OFFHAND_HOOK)
		s5 = "ON : Offhand Hook Enabled";
	else
		s5 = "OFF: Offhand Hook Disabled";

#ifdef NOVOICE_OK
	if ((int)ctfflags->value & CTF_NOVOICE)
		s6 = "ON : Voice Commands Disabled";
	else
		s6 = "OFF: Voice Commands Enabled";
#else
		s6 = "OFF: Voice Commands Enabled";
#endif

	if ((int)ctfflags->value & CTF_NO_GRAP_DAMAGE)
		s7 = "ON : No Grapple Damage";
	else
		s7 = "OFF: Grapple Damage Enabled";

	if ((int)ctfflags->value & CTF_TEAM_NOTEAMS)
		s8 = "ON : Teams Disabled";
	else
		s8 = "OFF: Teams Enabled";

	if ((int)ctfflags->value & CTF_FLAGS_NOFLAGS)
		s9 = "ON : Flags Disabled";
	else
		s9 = "OFF: Flags Enabled";

	if ((int)ctfflags->value & CTF_SCORE_BALANCE)
		s10 = "ON : Balance Enabled";
	else
		s10 = "OFF: Balance Disabled";

	if ((int)ctfflags->value & CTF_TEAM_ARMOR_PROTECT)
		s11 = "ON : Team Armor Protect Enabled";
	else
		s11 = "OFF: Team Armor Protect Disabled";


	sprintf (message, "ctfflags:\n   %s\n   %s\n   %s\n   %s\n   %s\n   %s\n   %s\n   %s\n   %s\n   %s\n   %s\n\n",
		s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11);
	ctf_SafePrint(ent, PRINT_HIGH, message);

	if ((int)ctfflags->value & CTF_OFFHAND_HOOK)
	{
		ctf_SafePrint(ent, PRINT_HIGH, "The following commands are available:\n"
			"   cmd ctfmenu\n"
			"   cmd play_team\n"
			"   cmd team <red/blue>\n"
			"   cmd flagstatus\n"
			"   cmd id\n"
			"   cmd position\n"
			"	+hook\n"
			"   -hook\n"
			"   radiomenu\n"
			"   radio <off/text/on/both>\n");
	}
	else
	{
		ctf_SafePrint(ent, PRINT_HIGH, "The following commands are available:\n"
			"   cmd ctfmenu\n"
			"   cmd play_team\n"
			"   cmd team <red/blue>\n"
			"   cmd flagstatus\n"
			"   cmd id\n"
			"   cmd position\n"
			"   radiomenu\n"
			"   radio <off/text/on/both>\n");
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x2a0, %rsp            # imm = 0x2A0
movq %rdi, -0x28(%rbp)
leaq 0x437d9(%rip), %rax     # 0x718f6
movq %rax, -0x30(%rbp)
movq 0x54a30(%rip), %rax     # 0x82b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x2e145
leaq 0x437cb(%rip), %rax     # 0x7190a
movq %rax, -0x38(%rbp)
jmp 0x2e150
leaq 0x437db(%rip), %rax     # 0x71927
movq %rax, -0x38(%rbp)
movq 0x54a01(%rip), %rax     # 0x82b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x2e174
leaq 0x437d7(%rip), %rax     # 0x71945
movq %rax, -0x40(%rbp)
jmp 0x2e17f
leaq 0x437e7(%rip), %rax     # 0x71962
movq %rax, -0x40(%rbp)
movq 0x549d2(%rip), %rax     # 0x82b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x2e1a3
leaq 0x437dd(%rip), %rax     # 0x7197a
movq %rax, -0x48(%rbp)
jmp 0x2e1ae
leaq 0x437eb(%rip), %rax     # 0x71995
movq %rax, -0x48(%rbp)
movq 0x549a3(%rip), %rax     # 0x82b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x2e1d2
leaq 0x437e3(%rip), %rax     # 0x719af
movq %rax, -0x50(%rbp)
jmp 0x2e1dd
leaq 0x437f0(%rip), %rax     # 0x719c9
movq %rax, -0x50(%rbp)
leaq 0x43800(%rip), %rax     # 0x719e4
movq %rax, -0x58(%rbp)
movq 0x54969(%rip), %rax     # 0x82b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x2e20c
leaq 0x437fa(%rip), %rax     # 0x71a00
movq %rax, -0x60(%rbp)
jmp 0x2e217
leaq 0x43804(%rip), %rax     # 0x71a17
movq %rax, -0x60(%rbp)
movq 0x5493a(%rip), %rax     # 0x82b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x2e23d
leaq 0x437fc(%rip), %rax     # 0x71a33
movq %rax, -0x68(%rbp)
jmp 0x2e248
leaq 0x43803(%rip), %rax     # 0x71a47
movq %rax, -0x68(%rbp)
movq 0x54909(%rip), %rax     # 0x82b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x2e26e
leaq 0x437f2(%rip), %rax     # 0x71a5a
movq %rax, -0x70(%rbp)
jmp 0x2e279
leaq 0x437f9(%rip), %rax     # 0x71a6e
movq %rax, -0x70(%rbp)
movq 0x548d8(%rip), %rax     # 0x82b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x2e29f
leaq 0x437e8(%rip), %rax     # 0x71a81
movq %rax, -0x78(%rbp)
jmp 0x2e2aa
leaq 0x437f0(%rip), %rax     # 0x71a96
movq %rax, -0x78(%rbp)
movq 0x548a7(%rip), %rax     # 0x82b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x2e2d0
leaq 0x437e2(%rip), %rax     # 0x71aac
movq %rax, -0x80(%rbp)
jmp 0x2e2db
leaq 0x437f5(%rip), %rax     # 0x71acc
movq %rax, -0x80(%rbp)
leaq -0x280(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x48(%rbp), %r9
movq -0x50(%rbp), %r12
movq -0x58(%rbp), %r15
movq -0x60(%rbp), %r14
movq -0x68(%rbp), %rbx
movq -0x70(%rbp), %r11
movq -0x78(%rbp), %r10
movq -0x80(%rbp), %rax
leaq 0x437d8(%rip), %rsi     # 0x71aed
movq %r12, (%rsp)
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
movq %r11, 0x20(%rsp)
movq %r10, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movb $0x0, %al
callq 0x19940
movq -0x28(%rbp), %rdi
leaq -0x280(%rbp), %rdx
movl $0x2, %esi
callq 0x18f20
movq 0x547fe(%rip), %rax     # 0x82b58
movq (%rax), %rax
cvttss2si 0x20(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x2e381
movq -0x28(%rbp), %rdi
movl $0x2, %esi
leaq 0x437c1(%rip), %rdx     # 0x71b3b
callq 0x18f20
jmp 0x2e396
movq -0x28(%rbp), %rdi
movl $0x2, %esi
leaq 0x4386d(%rip), %rdx     # 0x71bfe
callq 0x18f20
addq $0x2a0, %rsp            # imm = 0x2A0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)