	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_s_clock_freq           ## -- Begin function cx25840_s_clock_freq
	.p2align	4, 0x90
_cx25840_s_clock_freq:                  ## @cx25840_s_clock_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_state
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_is_cx2583x
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$2064, %esi                     ## imm = 0x810
	movl	$-2, %edx
	movl	$1, %ecx
	callq	_cx25840_and_or
LBB0_2:
	movq	(%rbx), %rax
	movq	_CX25840_AUDIO_SERIAL@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$2051, %esi                     ## imm = 0x803
	movl	$-17, %edx
	xorl	%ecx, %ecx
	callq	_cx25840_and_or
	movq	%r14, %rdi
	movl	$2259, %esi                     ## imm = 0x8D3
	movl	$31, %edx
	callq	_cx25840_write
LBB0_4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_set_audclk_freq
	movl	%eax, %r15d
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	$2051, %esi                     ## imm = 0x803
	movl	$-17, %edx
	movl	$16, %ecx
	callq	_cx25840_and_or
LBB0_6:
	movq	%rbx, %rdi
	callq	_is_cx2583x
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	$2064, %esi                     ## imm = 0x810
	movl	$-2, %edx
	xorl	%ecx, %ecx
	callq	_cx25840_and_or
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX25840_AUDIO_SERIAL,8,3       ## @CX25840_AUDIO_SERIAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_s_clock_freq           ; -- Begin function cx25840_s_clock_freq
	.p2align	2
_cx25840_s_clock_freq:                  ; @cx25840_s_clock_freq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	mov	x0, x20
	bl	_to_state
	mov	x20, x0
	bl	_is_cx2583x
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #2064
	mov	w2, #-2
	mov	w3, #1
	bl	_cx25840_and_or
LBB0_2:
	ldr	x8, [x20]
Lloh0:
	adrp	x22, _CX25840_AUDIO_SERIAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CX25840_AUDIO_SERIAL@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #2051
	mov	w2, #-17
	mov	w3, #0
	bl	_cx25840_and_or
	mov	x0, x19
	mov	w1, #2259
	mov	w2, #31
	bl	_cx25840_write
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_set_audclk_freq
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #2051
	mov	w2, #-17
	mov	w3, #16
	bl	_cx25840_and_or
LBB0_6:
	mov	x0, x20
	bl	_is_cx2583x
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #2064
	mov	w2, #-2
	mov	w3, #0
	bl	_cx25840_and_or
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CX25840_AUDIO_SERIAL,8,3       ; @CX25840_AUDIO_SERIAL
.subsections_via_symbols
