	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8350_set_dai_sysclk
_wm8350_set_dai_sysclk:                 ## @wm8350_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
	movl	%ecx, %r14d
	movl	%esi, %r12d
	movq	(%rdi), %rbx
	movq	(%rbx), %r15
	leal	-128(%r12), %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.3:
	movq	_WM8350_CLOCK_CONTROL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8350_MCLK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_wm8350_set_bits
	movq	_WM8350_FLL_CONTROL_4@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_wm8350_codec_read
	movq	_WM8350_FLL_CLK_SRC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r13), %esi
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_wm8350_codec_write
	jmp	LBB0_4
LBB0_1:
	cmpl	$132, %r12d
	jne	LBB0_4
## %bb.2:
	movq	_WM8350_CLOCK_CONTROL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8350_MCLK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_wm8350_clear_bits
LBB0_4:
	movq	_WM8350_MCLK_DIR_OUT@GOTPCREL(%rip), %rax
	movq	_WM8350_CLOCK_CONTROL_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_WM8350_MCLK_DIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%r14d, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_wm8350_set_bits
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	callq	_wm8350_clear_bits
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8350_CLOCK_CONTROL_1,4,2     ## @WM8350_CLOCK_CONTROL_1
	.comm	_WM8350_MCLK_SEL,4,2            ## @WM8350_MCLK_SEL
	.comm	_WM8350_FLL_CONTROL_4,4,2       ## @WM8350_FLL_CONTROL_4
	.comm	_WM8350_FLL_CLK_SRC_MASK,4,2    ## @WM8350_FLL_CLK_SRC_MASK
	.comm	_WM8350_MCLK_DIR_OUT,4,2        ## @WM8350_MCLK_DIR_OUT
	.comm	_WM8350_CLOCK_CONTROL_2,4,2     ## @WM8350_CLOCK_CONTROL_2
	.comm	_WM8350_MCLK_DIR,4,2            ## @WM8350_MCLK_DIR
	.no_dead_strip	_wm8350_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 wm8350_set_dai_sysclk
_wm8350_set_dai_sysclk:                 ; @wm8350_set_dai_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	x20, x3
	mov	x21, x1
	ldr	x22, [x0]
	ldr	x19, [x22]
	sub	w8, w1, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _WM8350_CLOCK_CONTROL_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8350_CLOCK_CONTROL_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _WM8350_MCLK_SEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM8350_MCLK_SEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wm8350_set_bits
Lloh6:
	adrp	x23, _WM8350_FLL_CONTROL_4@GOTPAGE
Lloh7:
	ldr	x23, [x23, _WM8350_FLL_CONTROL_4@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_wm8350_codec_read
Lloh8:
	adrp	x8, _WM8350_FLL_CLK_SRC_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM8350_FLL_CLK_SRC_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w1, [x23]
	orr	w2, w8, w21
	mov	x0, x22
	bl	_wm8350_codec_write
	b	LBB0_4
LBB0_2:
	cmp	w21, #132
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _WM8350_CLOCK_CONTROL_1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM8350_CLOCK_CONTROL_1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _WM8350_MCLK_SEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WM8350_MCLK_SEL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wm8350_clear_bits
LBB0_4:
Lloh17:
	adrp	x8, _WM8350_MCLK_DIR_OUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WM8350_MCLK_DIR_OUT@GOTPAGEOFF]
Lloh19:
	adrp	x9, _WM8350_CLOCK_CONTROL_2@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WM8350_CLOCK_CONTROL_2@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w1, [x9]
Lloh23:
	adrp	x9, _WM8350_MCLK_DIR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _WM8350_MCLK_DIR@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x9]
	mov	x0, x19
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:
	bl	_wm8350_set_bits
	b	LBB0_7
LBB0_6:
	bl	_wm8350_clear_bits
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8350_CLOCK_CONTROL_1,4,2     ; @WM8350_CLOCK_CONTROL_1
	.comm	_WM8350_MCLK_SEL,4,2            ; @WM8350_MCLK_SEL
	.comm	_WM8350_FLL_CONTROL_4,4,2       ; @WM8350_FLL_CONTROL_4
	.comm	_WM8350_FLL_CLK_SRC_MASK,4,2    ; @WM8350_FLL_CLK_SRC_MASK
	.comm	_WM8350_MCLK_DIR_OUT,4,2        ; @WM8350_MCLK_DIR_OUT
	.comm	_WM8350_CLOCK_CONTROL_2,4,2     ; @WM8350_CLOCK_CONTROL_2
	.comm	_WM8350_MCLK_DIR,4,2            ; @WM8350_MCLK_DIR
	.no_dead_strip	_wm8350_set_dai_sysclk
.subsections_via_symbols
