	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8400_set_dai_pll
_wm8400_set_dai_pll:                    ## @wm8400_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	%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
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	(%rdi), %r14
	movq	(%r14), %rbx
	cmpl	%edx, (%rbx)
	jne	LBB0_2
## %bb.1:
	xorl	%r15d, %r15d
	cmpl	%r12d, 4(%rbx)
	je	LBB0_7
LBB0_2:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_fll_factors
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_5
LBB0_4:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
LBB0_5:
	movl	%r12d, 4(%rbx)
	movl	%r13d, (%rbx)
	movq	_WM8400_POWER_MANAGEMENT_2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_wm8400_read
	movq	_WM8400_FLL_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_wm8400_write
	movq	_WM8400_FLL_CONTROL_1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_wm8400_read
	movq	_WM8400_FLL_OSC_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_wm8400_write
	xorl	%r15d, %r15d
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	movq	_WM8400_FLL_REF_FREQ@GOTPCREL(%rip), %rax
	movq	_WM8400_FLL_FRATIO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	notl	%esi
	movq	_WM8400_FLL_FRAC@GOTPCREL(%rip), %rax
	movl	-64(%rbp), %edi
	orl	(%rax), %edi
	movq	_WM8400_FLL_REF_FREQ_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-60(%rbp), %edx
	shll	%cl, %edx
	andl	%esi, %ebx
	orl	%ebx, %edi
	orl	%edi, %edx
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_wm8400_write
	movq	_WM8400_FLL_CONTROL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edx
	movq	%r14, %rdi
	callq	_wm8400_write
	movq	_WM8400_FLL_CONTROL_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edx
	movq	%r14, %rdi
	callq	_wm8400_write
	movq	_WM8400_FLL_CONTROL_4@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_wm8400_read
	movq	_WM8400_FLL_OUTDIV_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	-48(%rbp), %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_wm8400_write
LBB0_7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8400_POWER_MANAGEMENT_2,4,2  ## @WM8400_POWER_MANAGEMENT_2
	.comm	_WM8400_FLL_ENA,4,2             ## @WM8400_FLL_ENA
	.comm	_WM8400_FLL_CONTROL_1,4,2       ## @WM8400_FLL_CONTROL_1
	.comm	_WM8400_FLL_OSC_ENA,4,2         ## @WM8400_FLL_OSC_ENA
	.comm	_WM8400_FLL_REF_FREQ,4,2        ## @WM8400_FLL_REF_FREQ
	.comm	_WM8400_FLL_FRATIO_MASK,4,2     ## @WM8400_FLL_FRATIO_MASK
	.comm	_WM8400_FLL_FRAC,4,2            ## @WM8400_FLL_FRAC
	.comm	_WM8400_FLL_REF_FREQ_SHIFT,4,2  ## @WM8400_FLL_REF_FREQ_SHIFT
	.comm	_WM8400_FLL_CONTROL_2,4,2       ## @WM8400_FLL_CONTROL_2
	.comm	_WM8400_FLL_CONTROL_3,4,2       ## @WM8400_FLL_CONTROL_3
	.comm	_WM8400_FLL_CONTROL_4,4,2       ## @WM8400_FLL_CONTROL_4
	.comm	_WM8400_FLL_OUTDIV_MASK,4,2     ## @WM8400_FLL_OUTDIV_MASK
	.no_dead_strip	_wm8400_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 wm8400_set_dai_pll
_wm8400_set_dai_pll:                    ; @wm8400_set_dai_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	ldr	x19, [x0]
	ldr	x22, [x19]
	ldr	w8, [x22]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x22, #4]
	cmp	w8, w20
	b.eq	LBB0_7
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	bl	_fll_factors
	cbnz	w0, LBB0_8
	b	LBB0_5
LBB0_4:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_memset
LBB0_5:
	stp	w21, w20, [x22]
Lloh0:
	adrp	x21, _WM8400_POWER_MANAGEMENT_2@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WM8400_POWER_MANAGEMENT_2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_wm8400_read
Lloh2:
	adrp	x8, _WM8400_FLL_ENA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM8400_FLL_ENA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_wm8400_write
Lloh5:
	adrp	x22, _WM8400_FLL_CONTROL_1@GOTPAGE
Lloh6:
	ldr	x22, [x22, _WM8400_FLL_CONTROL_1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wm8400_read
Lloh7:
	adrp	x8, _WM8400_FLL_OSC_ENA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WM8400_FLL_OSC_ENA@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w21, w0, w8
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_wm8400_write
	cbz	w20, LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _WM8400_FLL_REF_FREQ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WM8400_FLL_REF_FREQ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _WM8400_FLL_FRATIO_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WM8400_FLL_FRATIO_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _WM8400_FLL_FRAC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WM8400_FLL_FRAC@GOTPAGEOFF]
	bic	w8, w21, w8
Lloh18:
	ldr	w9, [x9]
	ldp	w10, w11, [sp, #8]
	orr	w9, w10, w9
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _WM8400_FLL_REF_FREQ_SHIFT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WM8400_FLL_REF_FREQ_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	lsl	w9, w11, w9
	orr	w2, w8, w9
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wm8400_write
Lloh22:
	adrp	x8, _WM8400_FLL_CONTROL_2@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WM8400_FLL_CONTROL_2@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [sp, #16]
	mov	x0, x19
	bl	_wm8400_write
Lloh25:
	adrp	x8, _WM8400_FLL_CONTROL_3@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WM8400_FLL_CONTROL_3@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [sp, #20]
	mov	x0, x19
	bl	_wm8400_write
Lloh28:
	adrp	x20, _WM8400_FLL_CONTROL_4@GOTPAGE
Lloh29:
	ldr	x20, [x20, _WM8400_FLL_CONTROL_4@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_wm8400_read
Lloh30:
	adrp	x8, _WM8400_FLL_OUTDIV_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _WM8400_FLL_OUTDIV_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	w9, [sp, #24]
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_wm8400_write
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8400_POWER_MANAGEMENT_2,4,2  ; @WM8400_POWER_MANAGEMENT_2
	.comm	_WM8400_FLL_ENA,4,2             ; @WM8400_FLL_ENA
	.comm	_WM8400_FLL_CONTROL_1,4,2       ; @WM8400_FLL_CONTROL_1
	.comm	_WM8400_FLL_OSC_ENA,4,2         ; @WM8400_FLL_OSC_ENA
	.comm	_WM8400_FLL_REF_FREQ,4,2        ; @WM8400_FLL_REF_FREQ
	.comm	_WM8400_FLL_FRATIO_MASK,4,2     ; @WM8400_FLL_FRATIO_MASK
	.comm	_WM8400_FLL_FRAC,4,2            ; @WM8400_FLL_FRAC
	.comm	_WM8400_FLL_REF_FREQ_SHIFT,4,2  ; @WM8400_FLL_REF_FREQ_SHIFT
	.comm	_WM8400_FLL_CONTROL_2,4,2       ; @WM8400_FLL_CONTROL_2
	.comm	_WM8400_FLL_CONTROL_3,4,2       ; @WM8400_FLL_CONTROL_3
	.comm	_WM8400_FLL_CONTROL_4,4,2       ; @WM8400_FLL_CONTROL_4
	.comm	_WM8400_FLL_OUTDIV_MASK,4,2     ; @WM8400_FLL_OUTDIV_MASK
	.no_dead_strip	_wm8400_set_dai_pll
.subsections_via_symbols
