	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_audio_set_path         ## -- Begin function cx25840_audio_set_path
	.p2align	4, 0x90
_cx25840_audio_set_path:                ## @cx25840_audio_set_path
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	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
	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
	movq	(%rbx), %rax
	movq	_CX25840_AUDIO_SERIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$16846866, %eax                 ## imm = 0x1011012
	movl	$520501360, %edx                ## imm = 0x1F063870
	cmovel	%eax, %edx
	movq	%r14, %rdi
	movl	$2256, %esi                     ## imm = 0x8D0
	callq	_cx25840_write4
LBB0_2:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_set_audclk_freq
	movq	%rbx, %rdi
	callq	_is_cx2583x
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rax
	movq	_CX25840_AUDIO_SERIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	$2051, %esi                     ## imm = 0x803
	movl	$-17, %edx
	movl	$16, %ecx
	callq	_cx25840_and_or
LBB0_5:
	movq	%r14, %rdi
	movl	$2064, %esi                     ## imm = 0x810
	movl	$-2, %edx
	xorl	%ecx, %ecx
	callq	_cx25840_and_or
	movq	%rbx, %rdi
	callq	_is_cx2388x
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_is_cx231xx
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	movl	$2051, %esi                     ## imm = 0x803
	movl	$-17, %edx
	movl	$16, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cx25840_and_or                 ## TAILCALL
	.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_audio_set_path         ; -- Begin function cx25840_audio_set_path
	.p2align	2
_cx25840_audio_set_path:                ; @cx25840_audio_set_path
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_i2c_get_clientdata
	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
	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
Lloh0:
	adrp	x8, _CX25840_AUDIO_SERIAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX25840_AUDIO_SERIAL@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	mov	w8, #14448
	movk	w8, #7942, lsl #16
	mov	w9, #4114
	movk	w9, #257, lsl #16
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #2256
	bl	_cx25840_write4
LBB0_2:
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_set_audclk_freq
	mov	x0, x20
	bl	_is_cx2583x
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _CX25840_AUDIO_SERIAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CX25840_AUDIO_SERIAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	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, x19
	mov	w1, #2064
	mov	w2, #-2
	mov	w3, #0
	bl	_cx25840_and_or
	mov	x0, x20
	bl	_is_cx2388x
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_is_cx231xx
	cbz	x0, LBB0_3
LBB0_8:
	mov	x0, x19
	mov	w1, #2051
	mov	w2, #-17
	mov	w3, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cx25840_and_or
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CX25840_AUDIO_SERIAL,8,3       ; @CX25840_AUDIO_SERIAL
.subsections_via_symbols
