	.file	"extr_firedtv-avc.c_avc_write.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"FCP command write failed\n"
.LC1:
	.string	"FCP response timed out\n"
	.text
	.p2align 4
	.type	avc_write, @function
avc_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, 6
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	DWORD PTR [rdi], 0
.L5:
	mov	edi, DWORD PTR avc_debug[rip]
	call	unlikely@PLT
	test	rax, rax
	jne	.L12
.L2:
	mov	rax, QWORD PTR 24[rbx]
	mov	ecx, DWORD PTR 12[rbx]
	mov	rdi, rbx
	mov	edx, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR FCP_COMMAND_REGISTER[rip]
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	mov	edi, 200
	call	msecs_to_jiffies@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rbx]
	mov	edx, eax
	call	wait_event_timeout@PLT
	test	rax, rax
	jne	.L1
	sub	ebp, 1
	jne	.L5
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	neg	r12d
.L1:
	mov	eax, r12d
	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
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR 16[rbx]
	call	debug_fcp@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	avc_write, .-avc_write
	.comm	avc_debug,4,4
	.comm	FCP_COMMAND_REGISTER,4,4
	.comm	ETIMEDOUT,4,4
	.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_firedtv-avc.c_avc_write.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FCP command write failed\012\000"
	.align	2
.LC1:
	.ascii	"FCP response timed out\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	avc_write, %function
avc_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r6, #6
	ldr	r8, .L14
	ldr	r7, .L14+4
	str	r3, [r0]
.L5:
	ldr	r0, [r8]
	bl	unlikely
	cmp	r0, #0
	bne	.L12
.L2:
	ldr	r2, [r4, #20]
	mov	r0, r4
	ldr	r5, [r2]
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #16]
	ldr	r1, [r7]
	blx	r5
	subs	r5, r0, #0
	bne	.L13
	mov	r0, #200
	ldr	r9, [r4, #8]
	ldr	r10, [r4]
	bl	msecs_to_jiffies
	mov	r1, r10
	mov	r2, r0
	mov	r0, r9
	bl	wait_event_timeout
	cmp	r0, #0
	bne	.L1
	subs	r6, r6, #1
	bne	.L5
	ldr	r0, [r4, #4]
	ldr	r1, .L14+8
	bl	dev_err
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r5, r0, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r1, [r4, #12]
	ldr	r0, [r4, #16]
	bl	debug_fcp
	b	.L2
.L13:
	ldr	r0, [r4, #4]
	ldr	r1, .L14+16
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	avc_debug
	.word	FCP_COMMAND_REGISTER
	.word	.LC1
	.word	ETIMEDOUT
	.word	.LC0
	.size	avc_write, .-avc_write
	.comm	avc_debug,4,4
	.comm	FCP_COMMAND_REGISTER,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
