	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx23885_set_audclk_freq
_cx23885_set_audclk_freq:               ## @cx23885_set_audclk_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_state
	movq	%rax, %r15
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	jne	LBB0_3
## %bb.1:
	movq	_CX25840_AUDIO_SERIAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r15)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$2296, %esi                     ## imm = 0x8F8
	movl	$134317692, %edx                ## imm = 0x801867C
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$2304, %esi                     ## imm = 0x900
	movl	$134303658, %edx                ## imm = 0x8014FAA
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$2308, %esi                     ## imm = 0x904
	movl	$134303658, %edx                ## imm = 0x8014FAA
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$2316, %esi                     ## imm = 0x90C
	movl	$134303658, %edx                ## imm = 0x8014FAA
	callq	_cx25840_write4
LBB0_3:
	movl	%r14d, 8(%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX25840_AUDIO_SERIAL,8,3       ## @CX25840_AUDIO_SERIAL
	.no_dead_strip	_cx23885_set_audclk_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx23885_set_audclk_freq
_cx23885_set_audclk_freq:               ; @cx23885_set_audclk_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	x19, x1
	mov	x20, x0
	bl	_i2c_get_clientdata
	bl	_to_state
	mov	x21, x0
	mov	w8, #48000
	cmp	w19, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _CX25840_AUDIO_SERIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CX25840_AUDIO_SERIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #2296
	mov	w2, #34428
	movk	w2, #2049, lsl #16
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #2304
	mov	w2, #20394
	movk	w2, #2049, lsl #16
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #2308
	mov	w2, #20394
	movk	w2, #2049, lsl #16
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #2316
	mov	w2, #20394
	movk	w2, #2049, lsl #16
	bl	_cx25840_write4
LBB0_3:
	str	w19, [x21, #8]
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CX25840_AUDIO_SERIAL,8,3       ; @CX25840_AUDIO_SERIAL
	.no_dead_strip	_cx23885_set_audclk_freq
.subsections_via_symbols
