	.file	"extr_cx25840-audio.c_cx25840_s_clock_freq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cx25840_s_clock_freq
	.type	cx25840_s_clock_freq, @function
cx25840_s_clock_freq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	v4l2_get_subdevdata@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	to_state@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	is_cx2583x@PLT
	test	eax, eax
	je	.L8
.L2:
	mov	rax, QWORD PTR CX25840_AUDIO_SERIAL[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L3
	mov	edx, -17
	mov	esi, 2051
	mov	rdi, r12
	xor	ecx, ecx
	call	cx25840_and_or@PLT
	mov	edx, 31
	mov	esi, 2259
	mov	rdi, r12
	call	cx25840_write@PLT
.L3:
	mov	esi, r13d
	mov	rdi, r12
	call	set_audclk_freq@PLT
	mov	r13d, eax
	mov	rax, QWORD PTR CX25840_AUDIO_SERIAL[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L4
	mov	ecx, 16
	mov	edx, -17
	mov	esi, 2051
	mov	rdi, r12
	call	cx25840_and_or@PLT
.L4:
	mov	rdi, rbp
	call	is_cx2583x@PLT
	test	eax, eax
	je	.L9
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ecx, 1
	mov	edx, -2
	mov	esi, 2064
	mov	rdi, r12
	call	cx25840_and_or@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r12
	xor	ecx, ecx
	mov	edx, -2
	mov	esi, 2064
	call	cx25840_and_or@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cx25840_s_clock_freq, .-cx25840_s_clock_freq
	.comm	CX25840_AUDIO_SERIAL,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_cx25840-audio.c_cx25840_s_clock_freq.c"
	.text
	.align	2
	.global	cx25840_s_clock_freq
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx25840_s_clock_freq, %function
cx25840_s_clock_freq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r6, r1
	bl	v4l2_get_subdevdata
	mov	r4, r0
	mov	r0, r5
	bl	to_state
	mov	r5, r0
	bl	is_cx2583x
	cmp	r0, #0
	beq	.L8
.L2:
	ldr	r7, .L10
	ldr	r2, [r5]
	ldr	r3, [r7]
	cmp	r2, r3
	beq	.L3
	mvn	r2, #16
	ldr	r1, .L10+4
	mov	r3, #0
	mov	r0, r4
	bl	cx25840_and_or
	mov	r2, #31
	mov	r0, r4
	ldr	r1, .L10+8
	bl	cx25840_write
.L3:
	mov	r1, r6
	mov	r0, r4
	bl	set_audclk_freq
	ldr	r3, [r7]
	ldr	r2, [r5]
	mov	r6, r0
	cmp	r2, r3
	beq	.L4
	mov	r3, #16
	mvn	r2, #16
	mov	r0, r4
	ldr	r1, .L10+4
	bl	cx25840_and_or
.L4:
	mov	r0, r5
	bl	is_cx2583x
	subs	r3, r0, #0
	beq	.L9
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r3, #1
	mvn	r2, #1
	mov	r1, #2064
	mov	r0, r4
	bl	cx25840_and_or
	b	.L2
.L9:
	mov	r0, r4
	mvn	r2, #1
	mov	r1, #2064
	bl	cx25840_and_or
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	CX25840_AUDIO_SERIAL
	.word	2051
	.word	2259
	.size	cx25840_s_clock_freq, .-cx25840_s_clock_freq
	.comm	CX25840_AUDIO_SERIAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
