	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8523_set_dai_sysclk
_wm8523_set_dai_sysclk:                 ## @wm8523_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	8(%r15), %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, (%r13)
	movq	$0, 16(%r13)
	movq	_lrclk_ratios@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_20
## %bb.1:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	movq	(%rbx), %rcx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	xorl	%edx, %edx
	divl	(%rcx,%r14,4)
	movl	%eax, %ebx
	cmpl	$47999, %eax                    ## imm = 0xBB7F
	jg	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$22049, %ebx                    ## imm = 0x5621
	jg	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$8000, %ebx                     ## imm = 0x1F40
	je	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$11025, %ebx                    ## imm = 0x2B11
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$16000, %ebx                    ## imm = 0x3E80
	je	LBB0_18
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$95999, %ebx                    ## imm = 0x176FF
	jg	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$48000, %ebx                    ## imm = 0xBB80
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$64000, %ebx                    ## imm = 0xFA00
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$88200, %ebx                    ## imm = 0x15888
	je	LBB0_18
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$22050, %ebx                    ## imm = 0x5622
	je	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$32000, %ebx                    ## imm = 0x7D00
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$44100, %ebx                    ## imm = 0xAC44
	je	LBB0_18
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$96000, %ebx                    ## imm = 0x17700
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$192000, %ebx                   ## imm = 0x2EE00
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$176400, %ebx                   ## imm = 0x2B110
	jne	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	movq	8(%r13), %rax
	movl	%ebx, (%rax,%r14,4)
	incq	16(%r13)
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	%r12, %rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jl	LBB0_2
	jmp	LBB0_20
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	jmp	LBB0_19
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpq	$0, 16(%r13)
	cmovnel	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lrclk_ratios,8,3               ## @lrclk_ratios
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Supported sample rate: %dHz\n"

L_.str.1:                               ## @.str.1
	.asciz	"Skipping sample rate: %dHz\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wm8523_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 wm8523_set_dai_sysclk
_wm8523_set_dai_sysclk:                 ; @wm8523_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, x2
	ldr	x24, [x0]
	ldr	x23, [x24, #8]
	str	w2, [x23]
	str	xzr, [x23, #16]
Lloh0:
	adrp	x25, _lrclk_ratios@GOTPAGE
Lloh1:
	ldr	x25, [x25, _lrclk_ratios@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x26, #0
	mov	w27, #47999
	mov	w28, #22049
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	mov	w21, #30463
	movk	w21, #1, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w8, [x8, x26, lsl #2]
	udiv	w22, w19, w8
	cmp	w22, w27
	b.gt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, w28
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #8000
	cmp	w22, w8
	mov	w8, #11025
	ccmp	w22, w8, #4, ne
	mov	w8, #16000
	ccmp	w22, w8, #4, ne
	b.eq	LBB0_10
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, w21
	b.gt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #48000
	cmp	w22, w8
	mov	w8, #64000
	ccmp	w22, w8, #4, ne
	mov	w8, #22664
	movk	w8, #1, lsl #16
	ccmp	w22, w8, #4, ne
	b.eq	LBB0_10
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #22050
	cmp	w22, w8
	mov	w8, #32000
	ccmp	w22, w8, #4, ne
	mov	w8, #44100
	ccmp	w22, w8, #4, ne
	b.eq	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #30464
	movk	w8, #1, lsl #16
	cmp	w22, w8
	mov	w8, #60928
	movk	w8, #2, lsl #16
	ccmp	w22, w8, #4, ne
	mov	w8, #45328
	movk	w8, #2, lsl #16
	ccmp	w22, w8, #4, ne
	b.ne	LBB0_8
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	mov	x1, x20
	mov	x2, x22
	bl	_dev_dbg
	ldp	x8, x9, [x23, #8]
	str	w22, [x8, x26, lsl #2]
	add	x8, x9, #1
	str	x8, [x23, #16]
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	x26, w0, sxtw
	b.lt	LBB0_2
LBB0_12:
	ldr	x8, [x23, #16]
Lloh6:
	adrp	x9, _EINVAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w0, wzr, w9, ne
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_lrclk_ratios,8,3               ; @lrclk_ratios
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Supported sample rate: %dHz\n"

l_.str.1:                               ; @.str.1
	.asciz	"Skipping sample rate: %dHz\n"

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