	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_audclk_freq
_set_audclk_freq:                       ## @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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	$32000, %esi                    ## imm = 0x7D00
	je	LBB0_4
## %bb.1:
	cmpl	$44100, %r14d                   ## imm = 0xAC44
	je	LBB0_4
## %bb.2:
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	jne	LBB0_3
LBB0_4:
	movq	(%rbx), %rax
	movq	_CX18_AV_AUDIO_SERIAL2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_11
## %bb.5:
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	je	LBB0_10
## %bb.6:
	cmpl	$44100, %r14d                   ## imm = 0xAC44
	je	LBB0_9
## %bb.7:
	cmpl	$32000, %r14d                   ## imm = 0x7D00
	jne	LBB0_18
## %bb.8:
	movq	%rbx, %rdi
	movl	$264, %esi                      ## imm = 0x108
	movl	$537723919, %edx                ## imm = 0x200D040F
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$268, %esi                      ## imm = 0x10C
	movl	$2876158, %edx                  ## imm = 0x2BE2FE
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$24540172, %edx                 ## imm = 0x176740C
	callq	_cx18_av_write4
	movl	$-1609748744, -44(%rbp)         ## 4-byte Folded Spill
                                        ## imm = 0xA00D2EF8
	movl	$287322111, %r12d               ## imm = 0x11202FFF
	movl	$96, %r13d
	movl	$134346623, %r15d               ## imm = 0x801F77F
	jmp	LBB0_17
LBB0_11:
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	je	LBB0_16
## %bb.12:
	cmpl	$44100, %r14d                   ## imm = 0xAC44
	je	LBB0_15
## %bb.13:
	cmpl	$32000, %r14d                   ## imm = 0x7D00
	jne	LBB0_18
## %bb.14:
	movq	%rbx, %rdi
	movl	$264, %esi                      ## imm = 0x108
	movl	$806159375, %edx                ## imm = 0x300D040F
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$268, %esi                      ## imm = 0x10C
	movl	$2876158, %edx                  ## imm = 0x2BE2FE
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$24540172, %edx                 ## imm = 0x176740C
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$2296, %esi                     ## imm = 0x8F8
	movl	$134283264, %edx                ## imm = 0x8010000
	callq	_cx18_av_write4
	movl	$-1609748744, -44(%rbp)         ## 4-byte Folded Spill
                                        ## imm = 0xA00D2EF8
	movl	$287318015, %r12d               ## imm = 0x11201FFF
	movl	$112, %r13d
	movl	$134348800, %r15d               ## imm = 0x8020000
	jmp	LBB0_17
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_10:
	movq	%rbx, %rdi
	movl	$264, %esi                      ## imm = 0x108
	movl	$370017295, %edx                ## imm = 0x160E040F
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$268, %esi                      ## imm = 0x10C
	movl	$2876158, %edx                  ## imm = 0x2BE2FE
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$5384109, %edx                  ## imm = 0x5227AD
	callq	_cx18_av_write4
	movl	$-1609460744, -44(%rbp)         ## 4-byte Folded Spill
                                        ## imm = 0xA01193F8
	movl	$287334399, %r12d               ## imm = 0x11205FFF
	movl	$86, %r13d
	movl	$134303658, %r15d               ## imm = 0x8014FAA
	jmp	LBB0_17
LBB0_9:
	movq	%rbx, %rdi
	movl	$264, %esi                      ## imm = 0x108
	movl	$403571727, %edx                ## imm = 0x180E040F
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$268, %esi                      ## imm = 0x10C
	movl	$2876158, %edx                  ## imm = 0x2BE2FE
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$6463986, %edx                  ## imm = 0x62A1F2
	callq	_cx18_av_write4
	movl	$-1608692744, -44(%rbp)         ## 4-byte Folded Spill
                                        ## imm = 0xA01D4BF8
	movl	$287347455, %r12d               ## imm = 0x112092FF
	movl	$88, %r13d
	movl	$134311257, %r15d               ## imm = 0x8016D59
	jmp	LBB0_17
LBB0_16:
	movq	%rbx, %rdi
	movl	$264, %esi                      ## imm = 0x108
	movl	$537723919, %edx                ## imm = 0x200D040F
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$268, %esi                      ## imm = 0x10C
	movl	$2876158, %edx                  ## imm = 0x2BE2FE
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$24540172, %edx                 ## imm = 0x176740C
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$2296, %esi                     ## imm = 0x8F8
	movl	$134316032, %edx                ## imm = 0x8018000
	callq	_cx18_av_write4
	movl	$-1609460744, -44(%rbp)         ## 4-byte Folded Spill
                                        ## imm = 0xA01193F8
	movl	$287326207, %r12d               ## imm = 0x11203FFF
	movl	$96, %r13d
	movl	$134305109, %r15d               ## imm = 0x8015555
	jmp	LBB0_17
LBB0_15:
	movq	%rbx, %rdi
	movl	$264, %esi                      ## imm = 0x108
	movl	$604898319, %edx                ## imm = 0x240E040F
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$268, %esi                      ## imm = 0x10C
	movl	$2876158, %edx                  ## imm = 0x2BE2FE
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$6463986, %edx                  ## imm = 0x62A1F2
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$2296, %esi                     ## imm = 0x8F8
	movl	$134308045, %edx                ## imm = 0x80160CD
	callq	_cx18_av_write4
	movl	$-1608692744, -44(%rbp)         ## 4-byte Folded Spill
                                        ## imm = 0xA01D4BF8
	movl	$287334911, %r12d               ## imm = 0x112061FF
	movl	$100, %r13d
	movl	$134312837, %r15d               ## imm = 0x8017385
LBB0_17:
	movq	%rbx, %rdi
	movl	$2304, %esi                     ## imm = 0x900
	movl	%r15d, %edx
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$2308, %esi                     ## imm = 0x904
	movl	%r15d, %edx
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$2316, %esi                     ## imm = 0x90C
	movl	%r15d, %edx
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$295, %esi                      ## imm = 0x127
	movl	%r13d, %edx
	callq	_cx18_av_write
	movq	%rbx, %rdi
	movl	$300, %esi                      ## imm = 0x12C
	movl	%r12d, %edx
	callq	_cx18_av_write4
	movq	%rbx, %rdi
	movl	$296, %esi                      ## imm = 0x128
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_cx18_av_write4
LBB0_18:
	movl	%r14d, 8(%rbx)
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CX18_AV_AUDIO_SERIAL2,8,3      ## @CX18_AV_AUDIO_SERIAL2
	.no_dead_strip	_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 set_audclk_freq
_set_audclk_freq:                       ; @set_audclk_freq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	w8, #32000
	cmp	w1, w8
	mov	w8, #44100
	ccmp	w1, w8, #4, ne
	mov	w8, #48000
	ccmp	w1, w8, #4, ne
	b.ne	LBB0_10
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CX18_AV_AUDIO_SERIAL2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CX18_AV_AUDIO_SERIAL2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.2:
	mov	w8, #48000
	cmp	w19, w8
	b.eq	LBB0_11
; %bb.3:
	mov	w8, #44100
	cmp	w19, w8
	b.eq	LBB0_12
; %bb.4:
	mov	w8, #32000
	cmp	w19, w8
	b.ne	LBB0_16
; %bb.5:
	mov	w21, #12024
	movk	w21, #40973, lsl #16
	mov	x0, x20
	mov	w1, #264
	mov	w2, #1039
	movk	w2, #8205, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #268
	mov	w2, #58110
	movk	w2, #43, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #272
	mov	w2, #29708
	movk	w2, #374, lsl #16
	bl	_cx18_av_write4
	mov	w8, #8191
	movk	w8, #4384, lsl #16
	add	w23, w8, #1, lsl #12            ; =4096
	mov	w24, #96
	mov	w22, #63359
	movk	w22, #2049, lsl #16
	b	LBB0_15
LBB0_6:
	mov	w8, #48000
	cmp	w19, w8
	b.eq	LBB0_13
; %bb.7:
	mov	w8, #44100
	cmp	w19, w8
	b.eq	LBB0_14
; %bb.8:
	mov	w8, #32000
	cmp	w19, w8
	b.ne	LBB0_16
; %bb.9:
	mov	w21, #12024
	movk	w21, #40973, lsl #16
	mov	w23, #8191
	movk	w23, #4384, lsl #16
	mov	x0, x20
	mov	w1, #264
	mov	w2, #1039
	movk	w2, #12301, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #268
	mov	w2, #58110
	movk	w2, #43, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #272
	mov	w2, #29708
	movk	w2, #374, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #2296
	mov	w2, #134283264
	bl	_cx18_av_write4
	mov	w24, #112
	mov	w22, #134348800
	b	LBB0_15
LBB0_10:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_11:
	mov	w21, #37880
	movk	w21, #40977, lsl #16
	mov	w22, #20394
	movk	w22, #2049, lsl #16
	mov	x0, x20
	mov	w1, #264
	mov	w2, #1039
	movk	w2, #5646, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #268
	mov	w2, #58110
	movk	w2, #43, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #272
	mov	w2, #10157
	movk	w2, #82, lsl #16
	bl	_cx18_av_write4
	mov	w8, #8191
	movk	w8, #4384, lsl #16
	orr	w23, w8, #0x4000
	mov	w24, #86
	b	LBB0_15
LBB0_12:
	mov	w21, #19448
	movk	w21, #40989, lsl #16
	mov	x0, x20
	mov	w1, #264
	mov	w2, #1039
	movk	w2, #6158, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #268
	mov	w2, #58110
	movk	w2, #43, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #272
	mov	w2, #41458
	movk	w2, #98, lsl #16
	bl	_cx18_av_write4
	mov	w8, #24781
	movk	w8, #2049, lsl #16
	add	w22, w8, #3212
	mov	w23, #37631
	movk	w23, #4384, lsl #16
	mov	w24, #88
	b	LBB0_15
LBB0_13:
	mov	w21, #37880
	movk	w21, #40977, lsl #16
	mov	x0, x20
	mov	w1, #264
	mov	w2, #1039
	movk	w2, #8205, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #268
	mov	w2, #58110
	movk	w2, #43, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #272
	mov	w2, #29708
	movk	w2, #374, lsl #16
	bl	_cx18_av_write4
	mov	w8, #29573
	movk	w8, #2049, lsl #16
	add	w2, w8, #3195
	mov	x0, x20
	mov	w1, #2296
	bl	_cx18_av_write4
	mov	w8, #20394
	movk	w8, #2049, lsl #16
	add	w22, w8, #1451
	mov	w8, #8191
	movk	w8, #4384, lsl #16
	orr	w23, w8, #0x2000
	mov	w24, #96
	b	LBB0_15
LBB0_14:
	mov	w21, #19448
	movk	w21, #40989, lsl #16
	mov	w22, #29573
	movk	w22, #2049, lsl #16
	mov	x0, x20
	mov	w1, #264
	mov	w2, #1039
	movk	w2, #9230, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #268
	mov	w2, #58110
	movk	w2, #43, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #272
	mov	w2, #41458
	movk	w2, #98, lsl #16
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #2296
	mov	w2, #24781
	movk	w2, #2049, lsl #16
	bl	_cx18_av_write4
	mov	w23, #25087
	movk	w23, #4384, lsl #16
	mov	w24, #100
LBB0_15:
	mov	x0, x20
	mov	w1, #2304
	mov	x2, x22
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #2308
	mov	x2, x22
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #2316
	mov	x2, x22
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #295
	mov	x2, x24
	bl	_cx18_av_write
	mov	x0, x20
	mov	w1, #300
	mov	x2, x23
	bl	_cx18_av_write4
	mov	x0, x20
	mov	w1, #296
	mov	x2, x21
	bl	_cx18_av_write4
LBB0_16:
	mov	w0, #0
	str	w19, [x20, #8]
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CX18_AV_AUDIO_SERIAL2,8,3      ; @CX18_AV_AUDIO_SERIAL2
	.no_dead_strip	_set_audclk_freq
.subsections_via_symbols
