	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sonicvibes_hw_constraint_dac_rate
_snd_sonicvibes_hw_constraint_dac_rate: ## @snd_sonicvibes_hw_constraint_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_hw_param_interval
	movl	(%rax), %ebx
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_hw_param_interval
	cmpl	4(%rax), %ebx
	jne	LBB0_5
## %bb.1:
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_hw_param_interval
	movl	(%rax), %edi
	movl	$48000, %eax                    ## imm = 0xBB80
	xorl	%edx, %edx
	divl	%edi
	cmpl	$8, %eax
	movl	$8, %ecx
	cmovbl	%eax, %ecx
	movw	$-17536, %ax                    ## imm = 0xBB80
	xorl	%edx, %edx
	divw	%cx
	movzwl	%ax, %eax
	cmpl	%eax, %edi
	jne	LBB0_3
## %bb.2:
	movl	%edi, (%r12)
	movl	$1, %eax
	jmp	LBB0_4
LBB0_3:
	leaq	-44(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	callq	_snd_sonicvibes_pll
	movq	_SV_REFFREQUENCY@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leal	15(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	andl	$-16, %eax
	subl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_snd_BUG_ON
	movq	_SV_ADCMULT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leal	511(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	andl	$-512, %eax                     ## imm = 0xFE00
	subl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_snd_BUG_ON
	movl	(%r15), %eax
	leal	15(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$4, %ecx
	movl	-36(%rbp), %eax
	addl	$2, %eax
	imull	%ecx, %eax
	imull	-44(%rbp), %eax
	movl	%eax, (%r12)
	movl	(%r14), %eax
	leal	511(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$9, %ecx
	movl	-40(%rbp), %eax
	addl	$2, %eax
	imull	%ecx, %eax
LBB0_4:
	movl	%eax, 4(%r12)
LBB0_5:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ## @SNDRV_PCM_HW_PARAM_RATE
	.comm	_SV_REFFREQUENCY,4,2            ## @SV_REFFREQUENCY
	.comm	_SV_ADCMULT,4,2                 ## @SV_ADCMULT
	.no_dead_strip	_snd_sonicvibes_hw_constraint_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_hw_constraint_dac_rate
_snd_sonicvibes_hw_constraint_dac_rate: ; @snd_sonicvibes_hw_constraint_dac_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_hw_param_interval
	ldr	w21, [x0]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hw_param_interval
	ldr	w8, [x0, #4]
	cmp	w21, w8
	b.ne	LBB0_5
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hw_param_interval
	ldr	w0, [x0]
	mov	w8, #48000
	udiv	w9, w8, w0
	mov	w10, #8
	cmp	w9, #8
	csel	w9, w9, w10, lo
	udiv	w8, w8, w9
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	str	w0, [x19]
	mov	w8, #1
	b	LBB0_4
LBB0_3:
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	bl	_snd_sonicvibes_pll
Lloh2:
	adrp	x20, _SV_REFFREQUENCY@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SV_REFFREQUENCY@GOTPAGEOFF]
	ldr	w8, [x20]
	negs	w9, w8
	and	w9, w9, #0xf
	and	w8, w8, #0xf
	csneg	w0, w8, w9, mi
	bl	_snd_BUG_ON
Lloh4:
	adrp	x21, _SV_ADCMULT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SV_ADCMULT@GOTPAGEOFF]
	ldr	w8, [x21]
	negs	w9, w8
	and	w9, w9, #0x1ff
	and	w8, w8, #0x1ff
	csneg	w0, w8, w9, mi
	bl	_snd_BUG_ON
	ldr	w8, [x20]
	add	w9, w8, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #4
	ldr	w9, [sp, #4]
	add	w9, w9, #2
	mul	w8, w9, w8
	ldr	w9, [sp, #12]
	mul	w8, w8, w9
	str	w8, [x19]
	ldr	w8, [x21]
	add	w9, w8, #511
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #9
	ldr	w9, [sp, #8]
	add	w9, w9, #2
	mul	w8, w9, w8
LBB0_4:
	str	w8, [x19, #4]
LBB0_5:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ; @SNDRV_PCM_HW_PARAM_RATE
	.comm	_SV_REFFREQUENCY,4,2            ; @SV_REFFREQUENCY
	.comm	_SV_ADCMULT,4,2                 ; @SV_ADCMULT
	.no_dead_strip	_snd_sonicvibes_hw_constraint_dac_rate
.subsections_via_symbols
