	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_av_audio_set_path         ## -- Begin function cx18_av_audio_set_path
	.p2align	4, 0x90
_cx18_av_audio_set_path:                ## @cx18_av_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, %rbx
	movl	$2051, %esi                     ## imm = 0x803
	callq	_cx18_av_read
	andl	$-17, %eax
	movq	%rbx, %rdi
	movl	$2051, %esi                     ## imm = 0x803
	movl	%eax, %edx
	movl	%eax, %ecx
	movl	$31, %r8d
	callq	_cx18_av_write_expect
	movq	%rbx, %rdi
	movl	$2064, %esi                     ## imm = 0x810
	callq	_cx18_av_read
	orl	$1, %eax
	movq	%rbx, %rdi
	movl	$2064, %esi                     ## imm = 0x810
	movl	%eax, %edx
	movl	%eax, %ecx
	movl	$15, %r8d
	callq	_cx18_av_write_expect
	movq	%rbx, %rdi
	movl	$2259, %esi                     ## imm = 0x8D3
	movl	$31, %edx
	callq	_cx18_av_write
	movq	(%rbx), %rax
	movq	_CX18_AV_AUDIO_SERIAL2@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	movl	$520501360, %eax                ## imm = 0x1F063870
	movl	$16846866, %edx                 ## imm = 0x1011012
	cmovgl	%eax, %edx
	movq	%rbx, %rdi
	movl	$2256, %esi                     ## imm = 0x8D0
	callq	_cx18_av_write4
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_set_audclk_freq
	movq	%rbx, %rdi
	movl	$2064, %esi                     ## imm = 0x810
	callq	_cx18_av_read
	andl	$-2, %eax
	movq	%rbx, %rdi
	movl	$2064, %esi                     ## imm = 0x810
	movl	%eax, %edx
	movl	%eax, %ecx
	movl	$15, %r8d
	callq	_cx18_av_write_expect
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jle	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$2051, %esi                     ## imm = 0x803
	callq	_cx18_av_read
	orl	$16, %eax
	movq	%rbx, %rdi
	movl	$2051, %esi                     ## imm = 0x803
	movl	%eax, %edx
	movl	%eax, %ecx
	movl	$31, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cx18_av_write_expect           ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX18_AV_AUDIO_SERIAL2,8,3      ## @CX18_AV_AUDIO_SERIAL2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_av_audio_set_path         ; -- Begin function cx18_av_audio_set_path
	.p2align	2
_cx18_av_audio_set_path:                ; @cx18_av_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
	mov	w1, #2051
	bl	_cx18_av_read
	and	w2, w0, #0xffffffef
	mov	x0, x19
	mov	w1, #2051
	mov	x3, x2
	mov	w4, #31
	bl	_cx18_av_write_expect
	mov	x0, x19
	mov	w1, #2064
	bl	_cx18_av_read
	orr	w2, w0, #0x1
	mov	x0, x19
	mov	w1, #2064
	mov	x3, x2
	mov	w4, #15
	bl	_cx18_av_write_expect
	mov	x0, x19
	mov	w1, #2259
	mov	w2, #31
	bl	_cx18_av_write
Lloh0:
	adrp	x20, _CX18_AV_AUDIO_SERIAL2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CX18_AV_AUDIO_SERIAL2@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	mov	w8, #4114
	movk	w8, #257, lsl #16
	mov	w9, #14448
	movk	w9, #7942, lsl #16
	csel	w2, w9, w8, gt
	mov	x0, x19
	mov	w1, #2256
	bl	_cx18_av_write4
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_set_audclk_freq
	mov	x0, x19
	mov	w1, #2064
	bl	_cx18_av_read
	and	w2, w0, #0xfffffffe
	mov	x0, x19
	mov	w1, #2064
	mov	x3, x2
	mov	w4, #15
	bl	_cx18_av_write_expect
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #2051
	bl	_cx18_av_read
	orr	w2, w0, #0x10
	mov	x0, x19
	mov	w1, #2051
	mov	x3, x2
	mov	w4, #31
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cx18_av_write_expect
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CX18_AV_AUDIO_SERIAL2,8,3      ; @CX18_AV_AUDIO_SERIAL2
.subsections_via_symbols
