	.file	"extr_mvumi.c_mvumi_send_command.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"firmware not ready.\n"
.LC1:
	.string	"no free tag.\n"
	.text
	.p2align 4
	.type	mvumi_send_command, @function
mvumi_send_command:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR FW_STATE_STARTED[rip]
	cmp	QWORD PTR [rdi], rax
	setne	dil
	movzx	edi, dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L10
	lea	r13, 28[rbx]
	mov	rdi, r13
	call	tag_is_empty@PLT
	test	rax, rax
	jne	.L11
	mov	rsi, rsp
	mov	rdi, rbx
	call	mvumi_get_ib_list_entry@PLT
	mov	r14, QWORD PTR 8[rbp]
	mov	rsi, r13
	mov	rdi, rbx
	call	tag_get_one@PLT
	mov	QWORD PTR [r14], rax
	movsx	rax, DWORD PTR 24[rbx]
	lea	edx, 1[rax]
	mov	DWORD PTR 24[rbx], edx
	mov	rdx, QWORD PTR 8[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR 16[rbp], rax
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR [rax+rdx*8], rbp
	movsx	rax, DWORD PTR 8[r12]
	lea	r13d, 20[0+rax*4]
	mov	eax, DWORD PTR 8[rbx]
	test	DWORD PTR HS_CAPABILITY_SUPPORT_DYN_SRC[rip], eax
	je	.L5
	mov	edi, DWORD PTR 0[rbp]
	mov	rbx, QWORD PTR [rsp]
	shr	r13d, 2
	and	r13d, 4095
	call	lower_32_bits@PLT
	mov	edi, eax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	QWORD PTR 16[rbx], rax
	call	upper_32_bits@PLT
	mov	edi, eax
	call	cpu_to_le32@PLT
	mov	DWORD PTR [rbx], r13d
	mov	QWORD PTR 8[rbx], rax
.L6:
	mov	eax, DWORD PTR MV_QUEUE_COMMAND_RESULT_SENT[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, QWORD PTR 32[rbx]
	lea	rsi, .LC1[rip]
	call	dev_dbg@PLT
	mov	eax, DWORD PTR MV_QUEUE_COMMAND_RESULT_NO_RESOURCE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 32[rbx]
	lea	rsi, .LC0[rip]
	call	dev_dbg@PLT
	mov	eax, DWORD PTR MV_QUEUE_COMMAND_RESULT_NO_RESOURCE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r13d
	mov	rsi, r12
	call	memcpy@PLT
	jmp	.L6
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mvumi_send_command, .-mvumi_send_command
	.comm	MV_QUEUE_COMMAND_RESULT_SENT,4,4
	.comm	MV_QUEUE_COMMAND_RESULT_NO_RESOURCE,4,4
	.comm	HS_CAPABILITY_SUPPORT_DYN_SRC,4,4
	.comm	FW_STATE_STARTED,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_mvumi.c_mvumi_send_command.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"firmware not ready.\012\000"
	.align	2
.LC1:
	.ascii	"no free tag.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mvumi_send_command, %function
mvumi_send_command:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L13
	mov	r4, r0
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r2, .L13+4
	subs	r0, r0, r3
	movne	r0, #1
	sub	sp, sp, #12
	mov	r5, r1
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldr	r7, [r1, #4]
	bl	unlikely
	cmp	r0, #0
	bne	.L10
	add	r6, r4, #16
	mov	r0, r6
	bl	tag_is_empty
	cmp	r0, #0
	bne	.L11
	mov	r1, sp
	mov	r0, r4
	bl	mvumi_get_ib_list_entry
	mov	r1, r6
	mov	r0, r4
	ldr	r6, [r5, #4]
	bl	tag_get_one
	ldr	r2, .L13+8
	ldr	r3, [r4, #12]
	ldr	ip, [r4, #4]
	ldr	r2, [r2]
	ldr	r1, [r5, #4]
	tst	ip, r2
	str	r0, [r6]
	ldr	r2, [r7, #4]
	add	r0, r3, #1
	str	r0, [r4, #12]
	ldr	ip, [r1]
	ldr	r0, [r4, #8]
	add	r2, r2, #2
	str	r3, [r1, #8]
	lsl	r4, r2, #2
	str	r3, [r5, #8]
	str	r5, [r0, ip, lsl #2]
	beq	.L5
	ldr	r0, [r5]
	ldr	r6, [sp]
	bl	lower_32_bits
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [r5]
	str	r3, [r6, #8]
	bl	upper_32_bits
	bl	cpu_to_le32
	ldr	r2, .L13+12
	str	r0, [r6, #4]
	and	r2, r2, r4, lsr #2
	str	r2, [r6]
.L6:
	ldr	r3, .L13+16
	ldr	r0, [r3]
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	ldr	r0, [r4, #20]
	ldr	r1, .L13+20
	bl	dev_dbg
	ldr	r3, .L13+24
	ldr	r0, [r3]
	b	.L1
.L10:
	ldr	r0, [r4, #20]
	ldr	r1, .L13+28
	bl	dev_dbg
	ldr	r3, .L13+24
	ldr	r0, [r3]
	b	.L1
.L5:
	mov	r2, r4
	mov	r1, r7
	ldr	r0, [sp]
	bl	memcpy
	b	.L6
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	FW_STATE_STARTED
	.word	.LC2
	.word	HS_CAPABILITY_SUPPORT_DYN_SRC
	.word	4095
	.word	MV_QUEUE_COMMAND_RESULT_SENT
	.word	.LC1
	.word	MV_QUEUE_COMMAND_RESULT_NO_RESOURCE
	.word	.LC0
	.size	mvumi_send_command, .-mvumi_send_command
	.comm	MV_QUEUE_COMMAND_RESULT_SENT,4,4
	.comm	MV_QUEUE_COMMAND_RESULT_NO_RESOURCE,4,4
	.comm	HS_CAPABILITY_SUPPORT_DYN_SRC,4,4
	.comm	FW_STATE_STARTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
