	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sonicvibes_set_adc_rate
_snd_sonicvibes_set_adc_rate:           ## @snd_sonicvibes_set_adc_rate
	.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
	movq	%rdi, %r14
	movl	$48000, %eax                    ## imm = 0xBB80
	xorl	%edx, %edx
	divl	%esi
	cmpl	$8, %eax
	movl	$8, %ebx
	cmovbl	%eax, %ebx
	movw	$-17536, %ax                    ## imm = 0xBB80
	xorl	%edx, %edx
	divw	%bx
	movzwl	%ax, %eax
	movb	$16, %r15b
	cmpl	%esi, %eax
	je	LBB0_2
## %bb.1:
	movl	%esi, %ecx
	movq	_SV_IREG_ADC_PLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_snd_sonicvibes_setpll
	xorl	%r15d, %r15d
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_SV_IREG_ADC_ALT_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shlb	$4, %bl
	addb	$-16, %bl
	movzbl	%bl, %edx
	movq	%r14, %rdi
	callq	_snd_sonicvibes_out1
	movq	_SV_IREG_ADC_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	callq	_snd_sonicvibes_out1
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SV_IREG_ADC_PLL,4,2            ## @SV_IREG_ADC_PLL
	.comm	_SV_IREG_ADC_ALT_RATE,4,2       ## @SV_IREG_ADC_ALT_RATE
	.comm	_SV_IREG_ADC_CLOCK,4,2          ## @SV_IREG_ADC_CLOCK
	.no_dead_strip	_snd_sonicvibes_set_adc_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_sonicvibes_set_adc_rate
_snd_sonicvibes_set_adc_rate:           ; @snd_sonicvibes_set_adc_rate
	.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, x0
	mov	w8, #48000
	udiv	w9, w8, w1
	mov	w10, #8
	cmp	w9, #8
	csel	w21, w9, w10, lo
	udiv	w8, w8, w21
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #16
	b	LBB0_3
LBB0_2:
	mov	x2, x1
Lloh0:
	adrp	x8, _SV_IREG_ADC_PLL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SV_IREG_ADC_PLL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_sonicvibes_setpll
	mov	w20, #0
LBB0_3:
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _SV_IREG_ADC_ALT_RATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SV_IREG_ADC_ALT_RATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	lsl	w8, w21, #4
	sub	w8, w8, #16
	and	w2, w8, #0xf0
	mov	x0, x19
	bl	_snd_sonicvibes_out1
Lloh6:
	adrp	x8, _SV_IREG_ADC_CLOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SV_IREG_ADC_CLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_sonicvibes_out1
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SV_IREG_ADC_PLL,4,2            ; @SV_IREG_ADC_PLL
	.comm	_SV_IREG_ADC_ALT_RATE,4,2       ; @SV_IREG_ADC_ALT_RATE
	.comm	_SV_IREG_ADC_CLOCK,4,2          ; @SV_IREG_ADC_CLOCK
	.no_dead_strip	_snd_sonicvibes_set_adc_rate
.subsections_via_symbols
