	.file	"extr_cmd.c_Cmd_ExecuteString.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Cmd_ExecuteString
	.type	Cmd_ExecuteString, @function
Cmd_ExecuteString:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	Cmd_TokenizeString@PLT
	xor	eax, eax
	call	Cmd_Argc@PLT
	test	eax, eax
	je	.L1
	mov	rbx, QWORD PTR cmd_functions[rip]
	lea	rbp, cmd_functions[rip]
	test	rbx, rbx
	jne	.L4
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rbp, 8[rbx]
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	je	.L8
.L4:
	mov	rax, QWORD PTR cmd_argv[rip]
	mov	esi, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR [rax]
	call	Q_stricmp@PLT
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR cmd_functions[rip]
	mov	QWORD PTR cmd_functions[rip], rbx
	mov	QWORD PTR 8[rbx], rax
	test	rdx, rdx
	je	.L8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	rdx
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR com_sv_running[rip]
	test	rax, rax
	je	.L13
	cmp	QWORD PTR [rax], 0
	je	.L13
.L16:
	xor	eax, eax
	call	SV_GameCommand@PLT
	test	rax, rax
	je	.L14
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	eax, eax
	call	Cvar_Command@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR com_cl_running[rip]
	test	rax, rax
	je	.L9
	cmp	QWORD PTR [rax], 0
	jne	.L31
	mov	rdx, QWORD PTR com_sv_running[rip]
	test	rdx, rdx
	je	.L13
	cmp	QWORD PTR [rdx], 0
	jne	.L16
.L12:
	cmp	QWORD PTR [rax], 0
	jne	.L32
.L13:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	CL_ForwardCommandToServer@PLT
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	xor	eax, eax
	call	CL_GameCommand@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR com_sv_running[rip]
	test	rax, rax
	je	.L14
	cmp	QWORD PTR [rax], 0
	jne	.L16
.L14:
	mov	rax, QWORD PTR com_cl_running[rip]
	test	rax, rax
	jne	.L12
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L32:
	xor	eax, eax
	call	UI_GameCommand@PLT
	test	rax, rax
	je	.L13
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	Cmd_ExecuteString, .-Cmd_ExecuteString
	.comm	com_sv_running,8,8
	.comm	com_cl_running,8,8
	.comm	cmd_functions,8,8
	.comm	cmd_argv,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cmd.c_Cmd_ExecuteString.c"
	.text
	.align	2
	.global	Cmd_ExecuteString
	.syntax unified
	.arm
	.fpu softvfp
	.type	Cmd_ExecuteString, %function
Cmd_ExecuteString:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r0
	bl	Cmd_TokenizeString
	bl	Cmd_Argc
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r7, .L41
	ldr	r4, [r7]
	cmp	r4, #0
	movne	r5, r7
	ldrne	r6, .L41+4
	bne	.L4
	b	.L8
.L7:
	add	r5, r4, #4
	ldr	r4, [r4, #4]
	cmp	r4, #0
	beq	.L8
.L4:
	ldr	r3, [r6]
	ldr	r1, [r4, #8]
	ldr	r0, [r3]
	bl	Q_stricmp
	cmp	r0, #0
	bne	.L7
	ldr	r2, [r4, #4]
	ldr	r3, [r4]
	str	r2, [r5]
	ldr	r2, [r7]
	cmp	r3, #0
	str	r2, [r4, #4]
	str	r4, [r7]
	beq	.L8
	pop	{r4, r5, r6, r7, r8, lr}
	bx	r3
.L8:
	bl	Cvar_Command
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r4, .L41+8
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L9
	ldr	r2, [r3]
	cmp	r2, #0
	bne	.L39
	ldr	r2, .L41+12
	ldr	r2, [r2]
	cmp	r2, #0
	beq	.L13
	ldr	r2, [r2]
	cmp	r2, #0
	bne	.L16
.L12:
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L40
.L13:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, lr}
	b	CL_ForwardCommandToServer
.L39:
	bl	CL_GameCommand
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L41+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
.L14:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L12
	b	.L13
.L9:
	ldr	r3, .L41+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
.L16:
	bl	SV_GameCommand
	cmp	r0, #0
	beq	.L14
	pop	{r4, r5, r6, r7, r8, pc}
.L40:
	bl	UI_GameCommand
	cmp	r0, #0
	beq	.L13
	pop	{r4, r5, r6, r7, r8, pc}
.L42:
	.align	2
.L41:
	.word	cmd_functions
	.word	cmd_argv
	.word	com_cl_running
	.word	com_sv_running
	.size	Cmd_ExecuteString, .-Cmd_ExecuteString
	.comm	com_sv_running,4,4
	.comm	com_cl_running,4,4
	.comm	cmd_functions,4,4
	.comm	cmd_argv,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
