	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs4270_set_dai_sysclk
_cs4270_set_dai_sysclk:                 ## @cs4270_set_dai_sysclk
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movl	%edx, (%rax)
	movq	_NUM_MCLK_RATIOS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movl	$-1, %r13d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_cs4270_mode_ratios@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	(%rcx,%r15,4)
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_snd_pcm_rate_to_rate_bit
	movq	_NUM_MCLK_RATIOS@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	orl	%eax, %r14d
	cmpl	%r13d, %ebx
	cmovbl	%ebx, %r13d
	cmpl	%r12d, %ebx
	cmoval	%ebx, %r12d
	incq	%r15
	movl	(%rcx), %eax
	cmpq	%rax, %r15
	jb	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movl	$-1, %r13d
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
LBB0_4:
	movq	_SNDRV_PCM_RATE_KNOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r14d, %eax
	je	LBB0_5
## %bb.6:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 12(%rcx)
	movl	%r13d, 16(%rcx)
	movl	%r12d, 20(%rcx)
	movl	%eax, (%rcx)
	movl	%r13d, 4(%rcx)
	movl	%r12d, 8(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_MCLK_RATIOS,4,2            ## @NUM_MCLK_RATIOS
	.comm	_cs4270_mode_ratios,8,3         ## @cs4270_mode_ratios
	.comm	_SNDRV_PCM_RATE_KNOT,4,2        ## @SNDRV_PCM_RATE_KNOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not find a valid sample rate\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cs4270_set_dai_sysclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs4270_set_dai_sysclk
_cs4270_set_dai_sysclk:                 ; @cs4270_set_dai_sysclk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x22, [x0, #24]
	ldr	x8, [x22, #8]
	str	w2, [x8]
Lloh0:
	adrp	x26, _NUM_MCLK_RATIOS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NUM_MCLK_RATIOS@GOTPAGEOFF]
	ldr	w8, [x26]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x27, #0
	mov	w23, #0
	mov	w25, #0
	mov	w24, #-1
Lloh2:
	adrp	x28, _cs4270_mode_ratios@GOTPAGE
Lloh3:
	ldr	x28, [x28, _cs4270_mode_ratios@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldr	w8, [x8, x27, lsl #2]
	udiv	w21, w20, w8
	mov	x0, x21
	bl	_snd_pcm_rate_to_rate_bit
	orr	w25, w0, w25
	cmp	w21, w24
	csel	w24, w21, w24, lo
	cmp	w21, w23
	csel	w23, w21, w23, hi
	add	x27, x27, #1
	ldr	w8, [x26]
	cmp	x27, x8
	b.lo	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w25, #0
	mov	w23, #0
	mov	w24, #-1
LBB0_4:
Lloh4:
	adrp	x8, _SNDRV_PCM_RATE_KNOT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SNDRV_PCM_RATE_KNOT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bics	w8, w25, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #0
	stp	w24, w23, [x19, #16]
	stp	w8, w24, [x19]
	stp	w23, w8, [x19, #8]
	b	LBB0_7
LBB0_6:
	ldr	w0, [x22]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_MCLK_RATIOS,4,2            ; @NUM_MCLK_RATIOS
	.comm	_cs4270_mode_ratios,8,3         ; @cs4270_mode_ratios
	.comm	_SNDRV_PCM_RATE_KNOT,4,2        ; @SNDRV_PCM_RATE_KNOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not find a valid sample rate\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cs4270_set_dai_sysclk
.subsections_via_symbols
