	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25840_set_audclk_freq
_cx25840_set_audclk_freq:               ## @cx25840_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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
	movq	(%rax), %rax
	movq	_CX25840_AUDIO_SERIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.10:
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	je	LBB0_17
## %bb.11:
	cmpl	$44100, %r14d                   ## imm = 0xAC44
	je	LBB0_15
## %bb.12:
	cmpl	$32000, %r14d                   ## imm = 0x7D00
	jne	LBB0_21
## %bb.13:
	movq	%rbx, %rdi
	movl	$264, %esi                      ## imm = 0x108
	movl	$503841807, %edx                ## imm = 0x1E08040F
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$19531881, %edx                 ## imm = 0x12A0869
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$295, %esi                      ## imm = 0x127
	movl	$84, %edx
	callq	_cx25840_write
	movq	%r15, %rdi
	callq	_is_cx2583x
	testl	%eax, %eax
	jne	LBB0_21
## %bb.14:
	movl	$134348800, %r12d               ## imm = 0x8020000
	movl	$134283264, %edx                ## imm = 0x8010000
	jmp	LBB0_19
LBB0_1:
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	je	LBB0_8
## %bb.2:
	cmpl	$44100, %r14d                   ## imm = 0xAC44
	je	LBB0_6
## %bb.3:
	cmpl	$32000, %r14d                   ## imm = 0x7D00
	jne	LBB0_21
## %bb.4:
	movq	%rbx, %rdi
	movl	$264, %esi                      ## imm = 0x108
	movl	$268829711, %edx                ## imm = 0x1006040F
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$29047278, %edx                 ## imm = 0x1BB39EE
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$295, %esi                      ## imm = 0x127
	movl	$80, %edx
	callq	_cx25840_write
	movq	%r15, %rdi
	callq	_is_cx2583x
	testl	%eax, %eax
	jne	LBB0_21
## %bb.5:
	movl	$134346623, %r12d               ## imm = 0x801F77F
	jmp	LBB0_20
LBB0_17:
	movq	%rbx, %rdi
	movl	$264, %esi                      ## imm = 0x108
	movl	$403309583, %edx                ## imm = 0x180A040F
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$10016485, %edx                 ## imm = 0x98D6E5
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$295, %esi                      ## imm = 0x127
	movl	$80, %edx
	callq	_cx25840_write
	movq	%r15, %rdi
	callq	_is_cx2583x
	testl	%eax, %eax
	jne	LBB0_21
## %bb.18:
	movl	$134305109, %r12d               ## imm = 0x8015555
	movl	$134316032, %edx                ## imm = 0x8018000
	jmp	LBB0_19
LBB0_15:
	movq	%rbx, %rdi
	movl	$264, %esi                      ## imm = 0x108
	movl	$403244047, %edx                ## imm = 0x1809040F
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$15494102, %edx                 ## imm = 0xEC6BD6
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$295, %esi                      ## imm = 0x127
	movl	$80, %edx
	callq	_cx25840_write
	movq	%r15, %rdi
	callq	_is_cx2583x
	testl	%eax, %eax
	jne	LBB0_21
## %bb.16:
	movl	$134312837, %r12d               ## imm = 0x8017385
	movl	$134308045, %edx                ## imm = 0x80160CD
LBB0_19:
	movq	%rbx, %rdi
	movl	$2296, %esi                     ## imm = 0x8F8
	callq	_cx25840_write4
	jmp	LBB0_20
LBB0_8:
	movq	%rbx, %rdi
	movl	$264, %esi                      ## imm = 0x108
	movl	$269091855, %edx                ## imm = 0x100A040F
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$10016485, %edx                 ## imm = 0x98D6E5
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$295, %esi                      ## imm = 0x127
	movl	$80, %edx
	callq	_cx25840_write
	movq	%r15, %rdi
	callq	_is_cx2583x
	testl	%eax, %eax
	jne	LBB0_21
## %bb.9:
	movl	$134303658, %r12d               ## imm = 0x8014FAA
	jmp	LBB0_20
LBB0_6:
	movq	%rbx, %rdi
	movl	$264, %esi                      ## imm = 0x108
	movl	$269026319, %edx                ## imm = 0x1009040F
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$15494102, %edx                 ## imm = 0xEC6BD6
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$295, %esi                      ## imm = 0x127
	movl	$80, %edx
	callq	_cx25840_write
	movq	%r15, %rdi
	callq	_is_cx2583x
	testl	%eax, %eax
	jne	LBB0_21
## %bb.7:
	movl	$134311257, %r12d               ## imm = 0x8016D59
LBB0_20:
	movq	%rbx, %rdi
	movl	$2304, %esi                     ## imm = 0x900
	movl	%r12d, %edx
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$2308, %esi                     ## imm = 0x904
	movl	%r12d, %edx
	callq	_cx25840_write4
	movq	%rbx, %rdi
	movl	$2316, %esi                     ## imm = 0x90C
	movl	%r12d, %edx
	callq	_cx25840_write4
LBB0_21:
	movl	%r14d, 8(%r15)
	xorl	%eax, %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
	.no_dead_strip	_cx25840_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 cx25840_set_audclk_freq
_cx25840_set_audclk_freq:               ; @cx25840_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
	ldr	x8, [x0]
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_6
; %bb.1:
	mov	w8, #48000
	cmp	w19, w8
	b.eq	LBB0_11
; %bb.2:
	mov	w8, #44100
	cmp	w19, w8
	b.eq	LBB0_13
; %bb.3:
	mov	w8, #32000
	cmp	w19, w8
	b.ne	LBB0_21
; %bb.4:
	mov	x0, x20
	mov	w1, #264
	mov	w2, #1039
	movk	w2, #7688, lsl #16
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #272
	mov	w2, #2153
	movk	w2, #298, lsl #16
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #295
	mov	w2, #84
	bl	_cx25840_write
	mov	x0, x21
	bl	_is_cx2583x
	cbnz	w0, LBB0_21
; %bb.5:
	mov	w22, #134348800
	mov	w2, #134283264
	b	LBB0_15
LBB0_6:
	mov	w8, #48000
	cmp	w19, w8
	b.eq	LBB0_16
; %bb.7:
	mov	w8, #44100
	cmp	w19, w8
	b.eq	LBB0_18
; %bb.8:
	mov	w8, #32000
	cmp	w19, w8
	b.ne	LBB0_21
; %bb.9:
	mov	x0, x20
	mov	w1, #264
	mov	w2, #1039
	movk	w2, #4102, lsl #16
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #272
	mov	w2, #14830
	movk	w2, #443, lsl #16
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #295
	mov	w2, #80
	bl	_cx25840_write
	mov	x0, x21
	bl	_is_cx2583x
	cbnz	w0, LBB0_21
; %bb.10:
	mov	w22, #63359
	movk	w22, #2049, lsl #16
	b	LBB0_20
LBB0_11:
	mov	w8, #1039
	movk	w8, #6153, lsl #16
	add	w2, w8, #16, lsl #12            ; =65536
	mov	x0, x20
	mov	w1, #264
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #272
	mov	w2, #55013
	movk	w2, #152, lsl #16
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #295
	mov	w2, #80
	bl	_cx25840_write
	mov	x0, x21
	bl	_is_cx2583x
	cbnz	w0, LBB0_21
; %bb.12:
	mov	w8, #20394
	movk	w8, #2049, lsl #16
	add	w22, w8, #1451
	mov	w8, #29573
	movk	w8, #2049, lsl #16
	add	w2, w8, #3195
	b	LBB0_15
LBB0_13:
	mov	x0, x20
	mov	w1, #264
	mov	w2, #1039
	movk	w2, #6153, lsl #16
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #272
	mov	w2, #27606
	movk	w2, #236, lsl #16
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #295
	mov	w2, #80
	bl	_cx25840_write
	mov	x0, x21
	bl	_is_cx2583x
	cbnz	w0, LBB0_21
; %bb.14:
	mov	w22, #29573
	movk	w22, #2049, lsl #16
	mov	w2, #24781
	movk	w2, #2049, lsl #16
LBB0_15:
	mov	x0, x20
	mov	w1, #2296
	bl	_cx25840_write4
	b	LBB0_20
LBB0_16:
	mov	w8, #1039
	movk	w8, #4102, lsl #16
	add	w2, w8, #64, lsl #12            ; =262144
	mov	x0, x20
	mov	w1, #264
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #272
	mov	w2, #55013
	movk	w2, #152, lsl #16
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #295
	mov	w2, #80
	bl	_cx25840_write
	mov	x0, x21
	bl	_is_cx2583x
	cbnz	w0, LBB0_21
; %bb.17:
	mov	w22, #20394
	movk	w22, #2049, lsl #16
	b	LBB0_20
LBB0_18:
	mov	w8, #1039
	movk	w8, #4102, lsl #16
	add	w2, w8, #48, lsl #12            ; =196608
	mov	x0, x20
	mov	w1, #264
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #272
	mov	w2, #27606
	movk	w2, #236, lsl #16
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #295
	mov	w2, #80
	bl	_cx25840_write
	mov	x0, x21
	bl	_is_cx2583x
	cbnz	w0, LBB0_21
; %bb.19:
	mov	w8, #24781
	movk	w8, #2049, lsl #16
	add	w22, w8, #3212
LBB0_20:
	mov	x0, x20
	mov	w1, #2304
	mov	x2, x22
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #2308
	mov	x2, x22
	bl	_cx25840_write4
	mov	x0, x20
	mov	w1, #2316
	mov	x2, x22
	bl	_cx25840_write4
LBB0_21:
	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	_cx25840_set_audclk_freq
.subsections_via_symbols
