// File: /workspace/github_c_makefile_star2_O0/QwazyWabbitWOS[P]lmctf60/g_cmds.c
// Function: Cmd_Radio_f
void Cmd_Radio_f (edict_t *ent)
{
	char *p;

	p = gi.args();

	if (p[0]=='0' || !strcmp(p, "off"))
	{
		ent->client->ctf.extra_flags  &= ~(CTF_EXTRAFLAGS_RADIO_TEXT | CTF_EXTRAFLAGS_RADIO_SOUND);
		ctf_SafePrint(ent, PRINT_HIGH, "Your radio is now off.\n");
	}
	else if (p[0]=='1' || !strcmp(p, "on"))
	{
		ent->client->ctf.extra_flags  &= ~(CTF_EXTRAFLAGS_RADIO_TEXT | CTF_EXTRAFLAGS_RADIO_SOUND);
		ent->client->ctf.extra_flags  |= CTF_EXTRAFLAGS_RADIO_SOUND;
		ctf_SafePrint(ent, PRINT_HIGH, "Your radio is now on for sound.\n");
	}
	else if (p[0]=='2' || !strcmp(p, "text"))
	{
		ent->client->ctf.extra_flags  &= ~(CTF_EXTRAFLAGS_RADIO_TEXT | CTF_EXTRAFLAGS_RADIO_SOUND);
		ent->client->ctf.extra_flags  |= CTF_EXTRAFLAGS_RADIO_TEXT;
		ctf_SafePrint(ent, PRINT_HIGH, "Your radio is now text.\n");
	}
	else if (p[0]=='3' || !strcmp(p, "both"))
	{
		ent->client->ctf.extra_flags  &= ~(CTF_EXTRAFLAGS_RADIO_TEXT | CTF_EXTRAFLAGS_RADIO_SOUND);
		ent->client->ctf.extra_flags  |= CTF_EXTRAFLAGS_RADIO_TEXT | CTF_EXTRAFLAGS_RADIO_SOUND;
		ctf_SafePrint(ent, PRINT_HIGH, "Your radio is now on for text and sound.\n");
	}
	else
		ctf_SafePrint(ent, PRINT_HIGH, "Format: radio <off/text/on/both>\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq 0x531ed(%rip), %rax     # 0x82600
callq *0x148(%rax)
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x30, %eax
je 0x2f43e
movq -0x10(%rbp), %rdi
leaq 0x42b75(%rip), %rsi     # 0x71fa9
callq 0x18bf0
cmpl $0x0, %eax
jne 0x2f46f
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1108(%rax), %ecx
andl $-0x31, %ecx
movl %ecx, 0x1108(%rax)
movq -0x8(%rbp), %rdi
movl $0x2, %esi
leaq 0x42b48(%rip), %rdx     # 0x71fad
callq 0x18f20
jmp 0x2f5bf
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x31, %eax
je 0x2f490
movq -0x10(%rbp), %rdi
leaq 0x47625(%rip), %rsi     # 0x76aab
callq 0x18bf0
cmpl $0x0, %eax
jne 0x2f4d8
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1108(%rax), %ecx
andl $-0x31, %ecx
movl %ecx, 0x1108(%rax)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1108(%rax), %ecx
orl $0x20, %ecx
movl %ecx, 0x1108(%rax)
movq -0x8(%rbp), %rdi
movl $0x2, %esi
leaq 0x42af7(%rip), %rdx     # 0x71fc5
callq 0x18f20
jmp 0x2f5bd
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x32, %eax
je 0x2f4f9
movq -0x10(%rbp), %rdi
leaq 0x42af7(%rip), %rsi     # 0x71fe6
callq 0x18bf0
cmpl $0x0, %eax
jne 0x2f53e
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1108(%rax), %ecx
andl $-0x31, %ecx
movl %ecx, 0x1108(%rax)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1108(%rax), %ecx
orl $0x10, %ecx
movl %ecx, 0x1108(%rax)
movq -0x8(%rbp), %rdi
movl $0x2, %esi
leaq 0x42ab4(%rip), %rdx     # 0x71feb
callq 0x18f20
jmp 0x2f5bb
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x33, %eax
je 0x2f55f
movq -0x10(%rbp), %rdi
leaq 0x42aaf(%rip), %rsi     # 0x72004
callq 0x18bf0
cmpl $0x0, %eax
jne 0x2f5a4
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1108(%rax), %ecx
andl $-0x31, %ecx
movl %ecx, 0x1108(%rax)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x1108(%rax), %ecx
orl $0x30, %ecx
movl %ecx, 0x1108(%rax)
movq -0x8(%rbp), %rdi
movl $0x2, %esi
leaq 0x42a6c(%rip), %rdx     # 0x72009
callq 0x18f20
jmp 0x2f5b9
movq -0x8(%rbp), %rdi
movl $0x2, %esi
leaq 0x42a7f(%rip), %rdx     # 0x72033
callq 0x18f20
jmp 0x2f5bb
jmp 0x2f5bd
jmp 0x2f5bf
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)