	.file	"extr_cx23885-video.c_cx23885_set_freq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cx23885_set_freq, @function
cx23885_set_freq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rax, QWORD PTR UNSET[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	cmp	QWORD PTR [rdi], rax
	mov	rbp, rdi
	sete	dil
	movzx	edi, dil
	call	unlikely@PLT
	test	rax, rax
	je	.L2
.L6:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	edi, edi
	cmp	QWORD PTR [r12], 0
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L6
	lea	r13, 8[rbp]
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 8[r12]
	mov	rcx, r12
	mov	rdi, rbp
	mov	edx, DWORD PTR s_frequency[rip]
	mov	esi, DWORD PTR tuner[rip]
	mov	DWORD PTR 12[rbp], eax
	call	call_all@PLT
	mov	edi, 10
	call	msleep@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cx23885_set_freq, .-cx23885_set_freq
	.comm	tuner,4,4
	.comm	s_frequency,4,4
	.comm	UNSET,8,8
	.comm	EINVAL,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_cx23885-video.c_cx23885_set_freq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx23885_set_freq, %function
cx23885_set_freq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, [r3]
	mov	r5, r0
	ldr	r0, [r0]
	mov	r6, r1
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	beq	.L2
.L6:
	ldr	r3, .L8+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r6]
	subs	r0, r0, #0
	movne	r0, #1
	bl	unlikely
	subs	r4, r0, #0
	bne	.L6
	add	r7, r5, #4
	mov	r0, r7
	bl	mutex_lock
	ldr	r3, [r6, #4]
	ldr	r2, .L8+8
	ldr	r1, .L8+12
	ldr	r2, [r2]
	ldr	r1, [r1]
	str	r3, [r5, #8]
	mov	r0, r5
	mov	r3, r6
	bl	call_all
	mov	r0, #10
	bl	msleep
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	UNSET
	.word	EINVAL
	.word	s_frequency
	.word	tuner
	.size	cx23885_set_freq, .-cx23885_set_freq
	.comm	tuner,4,4
	.comm	s_frequency,4,4
	.comm	UNSET,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
