	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sonicvibes_set_dac_rate
_snd_sonicvibes_set_dac_rate:           ## @snd_sonicvibes_set_dac_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	shll	$16, %esi
	movq	_SV_FULLRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	addl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	$65535, %ebx                    ## imm = 0xFFFF
	cmovbl	%eax, %ebx
	callq	_spin_lock_irqsave
	movq	_SV_IREG_PCM_RATE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	shrl	$8, %edx
	movq	%r14, %rdi
	callq	_snd_sonicvibes_out1
	movq	_SV_IREG_PCM_RATE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_snd_sonicvibes_out1
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SV_FULLRATE,4,2                ## @SV_FULLRATE
	.comm	_SV_IREG_PCM_RATE_HIGH,4,2      ## @SV_IREG_PCM_RATE_HIGH
	.comm	_SV_IREG_PCM_RATE_LOW,4,2       ## @SV_IREG_PCM_RATE_LOW
	.no_dead_strip	_snd_sonicvibes_set_dac_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_dac_rate
_snd_sonicvibes_set_dac_rate:           ; @snd_sonicvibes_set_dac_rate
	.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
Lloh0:
	adrp	x8, _SV_FULLRATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SV_FULLRATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	add	w9, w9, w1, lsl #16
	udiv	w8, w9, w8
	mov	w9, #65535
	cmp	w8, w9
	csel	w20, w8, w9, lo
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _SV_IREG_PCM_RATE_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SV_IREG_PCM_RATE_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	lsr	w2, w20, #8
	mov	x0, x19
	bl	_snd_sonicvibes_out1
Lloh6:
	adrp	x8, _SV_IREG_PCM_RATE_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SV_IREG_PCM_RATE_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_sonicvibes_out1
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SV_FULLRATE,4,2                ; @SV_FULLRATE
	.comm	_SV_IREG_PCM_RATE_HIGH,4,2      ; @SV_IREG_PCM_RATE_HIGH
	.comm	_SV_IREG_PCM_RATE_LOW,4,2       ; @SV_IREG_PCM_RATE_LOW
	.no_dead_strip	_snd_sonicvibes_set_dac_rate
.subsections_via_symbols
