	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8990_set_dai_pll
_wm8990_set_dai_pll:                    ## @wm8990_set_dai_pll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	testl	%edx, %edx
	je	LBB0_5
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.2:
	shll	$2, %ecx
	leaq	-32(%rbp), %rdi
	movl	%ecx, %esi
	callq	_pll_factors
	movq	_WM8990_POWER_MANAGEMENT_2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_soc_read
	movq	_WM8990_PLL_ENA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	movq	_WM8990_CLOCKING_2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_soc_read
	movl	(%r14), %esi
	movq	_WM8990_SYSCLK_SRC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	movq	_WM8990_PLL1@GOTPCREL(%rip), %rax
	movq	_WM8990_SDM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	-32(%rbp), %edx
	movl	(%rax), %esi
	xorl	%eax, %eax
	cmpq	$0, -24(%rbp)
	je	LBB0_4
## %bb.3:
	movq	_WM8990_PRESCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %edx
	movq	%rbx, %rdi
	callq	_snd_soc_write
	movq	_WM8990_PLL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-28(%rbp), %edx
	sarl	$8, %edx
	movq	%rbx, %rdi
	callq	_snd_soc_write
	movq	_WM8990_PLL3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-28(%rbp), %edx
	jmp	LBB0_6
LBB0_5:
	movq	_WM8990_POWER_MANAGEMENT_2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_soc_read
	movq	_WM8990_PLL_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
LBB0_6:
	movq	%rbx, %rdi
	callq	_snd_soc_write
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8990_POWER_MANAGEMENT_2,4,2  ## @WM8990_POWER_MANAGEMENT_2
	.comm	_WM8990_PLL_ENA,4,2             ## @WM8990_PLL_ENA
	.comm	_WM8990_CLOCKING_2,4,2          ## @WM8990_CLOCKING_2
	.comm	_WM8990_SYSCLK_SRC,4,2          ## @WM8990_SYSCLK_SRC
	.comm	_WM8990_PLL1,4,2                ## @WM8990_PLL1
	.comm	_WM8990_SDM,4,2                 ## @WM8990_SDM
	.comm	_WM8990_PRESCALE,4,2            ## @WM8990_PRESCALE
	.comm	_WM8990_PLL2,4,2                ## @WM8990_PLL2
	.comm	_WM8990_PLL3,4,2                ## @WM8990_PLL3
	.no_dead_strip	_wm8990_set_dai_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8990_set_dai_pll
_wm8990_set_dai_pll:                    ; @wm8990_set_dai_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	cbz	w2, LBB0_3
; %bb.1:
	cbz	w3, LBB0_3
; %bb.2:
	lsl	w1, w3, #2
	mov	x0, sp
	bl	_pll_factors
Lloh0:
	adrp	x20, _WM8990_POWER_MANAGEMENT_2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WM8990_POWER_MANAGEMENT_2@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
Lloh2:
	adrp	x8, _WM8990_PLL_ENA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM8990_PLL_ENA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_soc_write
Lloh5:
	adrp	x20, _WM8990_CLOCKING_2@GOTPAGE
Lloh6:
	ldr	x20, [x20, _WM8990_CLOCKING_2@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	w1, [x20]
Lloh7:
	adrp	x8, _WM8990_SYSCLK_SRC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WM8990_SYSCLK_SRC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_snd_soc_write
Lloh10:
	adrp	x8, _WM8990_PLL1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WM8990_PLL1@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w8, [sp]
Lloh13:
	adrp	x9, _WM8990_SDM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WM8990_SDM@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [sp, #8]
Lloh16:
	adrp	x10, _WM8990_PRESCALE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _WM8990_PRESCALE@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w8, w9
	mov	x0, x19
	bl	_snd_soc_write
Lloh19:
	adrp	x8, _WM8990_PLL2@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WM8990_PLL2@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w8, [sp, #4]
	asr	w2, w8, #8
	mov	x0, x19
	bl	_snd_soc_write
Lloh22:
	adrp	x8, _WM8990_PLL3@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WM8990_PLL3@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldrb	w2, [sp, #4]
	b	LBB0_4
LBB0_3:
Lloh25:
	adrp	x20, _WM8990_POWER_MANAGEMENT_2@GOTPAGE
Lloh26:
	ldr	x20, [x20, _WM8990_POWER_MANAGEMENT_2@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
Lloh27:
	adrp	x8, _WM8990_PLL_ENA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WM8990_PLL_ENA@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
LBB0_4:
	mov	x0, x19
	bl	_snd_soc_write
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8990_POWER_MANAGEMENT_2,4,2  ; @WM8990_POWER_MANAGEMENT_2
	.comm	_WM8990_PLL_ENA,4,2             ; @WM8990_PLL_ENA
	.comm	_WM8990_CLOCKING_2,4,2          ; @WM8990_CLOCKING_2
	.comm	_WM8990_SYSCLK_SRC,4,2          ; @WM8990_SYSCLK_SRC
	.comm	_WM8990_PLL1,4,2                ; @WM8990_PLL1
	.comm	_WM8990_SDM,4,2                 ; @WM8990_SDM
	.comm	_WM8990_PRESCALE,4,2            ; @WM8990_PRESCALE
	.comm	_WM8990_PLL2,4,2                ; @WM8990_PLL2
	.comm	_WM8990_PLL3,4,2                ; @WM8990_PLL3
	.no_dead_strip	_wm8990_set_dai_pll
.subsections_via_symbols
