	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8961_set_sysclk
_wm8961_set_sysclk:                     ## @wm8961_set_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
	movl	%edx, %r14d
	movq	(%rdi), %rbx
	movq	8(%rbx), %r12
	movq	_WM8961_CLOCKING1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_snd_soc_read
	cmpl	$33000001, %r14d                ## imm = 0x1F78A41
	jb	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	cmpl	$16500001, %r14d                ## imm = 0xFBC521
	jb	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	movq	_WM8961_MCLKDIV@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	shrl	%r14d
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	movq	_WM8961_MCLKDIV@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
LBB0_5:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	movl	%r14d, (%r12)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8961_CLOCKING1,4,2           ## @WM8961_CLOCKING1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MCLK must be <33MHz\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Using MCLK/2 for %dHz MCLK\n"

	.comm	_WM8961_MCLKDIV,4,2             ## @WM8961_MCLKDIV
L_.str.2:                               ## @.str.2
	.asciz	"Using MCLK/1 for %dHz MCLK\n"

	.no_dead_strip	_wm8961_set_sysclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8961_set_sysclk
_wm8961_set_sysclk:                     ; @wm8961_set_sysclk
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	ldr	x20, [x0]
	ldr	x22, [x20, #8]
Lloh0:
	adrp	x23, _WM8961_CLOCKING1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WM8961_CLOCKING1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_snd_soc_read
	mov	w8, #35393
	movk	w8, #503, lsl #16
	cmp	w19, w8
	b.lo	LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x21, x0
	ldr	w0, [x20]
	mov	w8, #50465
	movk	w8, #251, lsl #16
	cmp	w19, w8
	b.lo	LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
Lloh9:
	adrp	x8, _WM8961_MCLKDIV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WM8961_MCLKDIV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w2, w8, w21
	lsr	w19, w19, #1
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
Lloh14:
	adrp	x8, _WM8961_MCLKDIV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WM8961_MCLKDIV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w2, w8, w21
LBB0_5:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_snd_soc_write
	mov	w0, #0
	str	w19, [x22]
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8961_CLOCKING1,4,2           ; @WM8961_CLOCKING1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MCLK must be <33MHz\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Using MCLK/2 for %dHz MCLK\n"

	.comm	_WM8961_MCLKDIV,4,2             ; @WM8961_MCLKDIV
l_.str.2:                               ; @.str.2
	.asciz	"Using MCLK/1 for %dHz MCLK\n"

	.no_dead_strip	_wm8961_set_sysclk
.subsections_via_symbols
