	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8510_set_dai_pll
_wm8510_set_dai_pll:                    ## @wm8510_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.3:
	shll	$2, %ecx
	movl	%ecx, %edi
	movl	%edx, %esi
	callq	_pll_factors
	movq	_WM8510_PLLN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pll_div@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	shll	$4, %edx
	orl	4(%r14), %edx
	movq	%rbx, %rdi
	callq	_snd_soc_write
	movq	_WM8510_PLLK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	sarl	$18, %edx
	movq	%rbx, %rdi
	callq	_snd_soc_write
	movq	_WM8510_PLLK2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	shrl	$9, %edx
	andl	$511, %edx                      ## imm = 0x1FF
	movq	%rbx, %rdi
	callq	_snd_soc_write
	movq	_WM8510_PLLK3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$511, %edx                      ## imm = 0x1FF
	andl	8(%r14), %edx
	movq	%rbx, %rdi
	callq	_snd_soc_write
	movq	_WM8510_POWER1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_soc_read
	movl	(%r14), %esi
	orl	$32, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	movq	_WM8510_CLOCK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_soc_read
	movl	(%r14), %esi
	orl	$256, %eax                      ## imm = 0x100
	jmp	LBB0_4
LBB0_2:
	movq	_WM8510_CLOCK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_soc_read
	movl	(%r14), %esi
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_snd_soc_write
	movq	_WM8510_POWER1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_soc_read
	movl	(%r14), %esi
	andl	$479, %eax                      ## imm = 0x1DF
LBB0_4:
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8510_CLOCK,4,2               ## @WM8510_CLOCK
	.comm	_WM8510_POWER1,4,2              ## @WM8510_POWER1
	.comm	_WM8510_PLLN,4,2                ## @WM8510_PLLN
	.comm	_pll_div,12,2                   ## @pll_div
	.comm	_WM8510_PLLK1,4,2               ## @WM8510_PLLK1
	.comm	_WM8510_PLLK2,4,2               ## @WM8510_PLLK2
	.comm	_WM8510_PLLK3,4,2               ## @WM8510_PLLK3
	.no_dead_strip	_wm8510_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 wm8510_set_dai_pll
_wm8510_set_dai_pll:                    ; @wm8510_set_dai_pll
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	w0, w3, #2
	mov	x1, x2
	bl	_pll_factors
Lloh0:
	adrp	x8, _WM8510_PLLN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8510_PLLN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x20, _pll_div@GOTPAGE
Lloh4:
	ldr	x20, [x20, _pll_div@GOTPAGEOFF]
	ldp	w8, w9, [x20]
	orr	w2, w9, w8, lsl #4
	mov	x0, x19
	bl	_snd_soc_write
Lloh5:
	adrp	x8, _WM8510_PLLK1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WM8510_PLLK1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	asr	w2, w8, #18
	mov	x0, x19
	bl	_snd_soc_write
Lloh8:
	adrp	x8, _WM8510_PLLK2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM8510_PLLK2@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ubfx	w2, w8, #9, #9
	mov	x0, x19
	bl	_snd_soc_write
Lloh11:
	adrp	x8, _WM8510_PLLK3@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM8510_PLLK3@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	and	w2, w8, #0x1ff
	mov	x0, x19
	bl	_snd_soc_write
Lloh14:
	adrp	x20, _WM8510_POWER1@GOTPAGE
Lloh15:
	ldr	x20, [x20, _WM8510_POWER1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	w1, [x20]
	orr	w2, w0, #0x20
	mov	x0, x19
	bl	_snd_soc_write
Lloh16:
	adrp	x20, _WM8510_CLOCK@GOTPAGE
Lloh17:
	ldr	x20, [x20, _WM8510_CLOCK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	w1, [x20]
	orr	w2, w0, #0x100
	b	LBB0_4
LBB0_3:
Lloh18:
	adrp	x20, _WM8510_CLOCK@GOTPAGE
Lloh19:
	ldr	x20, [x20, _WM8510_CLOCK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	w1, [x20]
	and	w2, w0, #0xff
	mov	x0, x19
	bl	_snd_soc_write
Lloh20:
	adrp	x20, _WM8510_POWER1@GOTPAGE
Lloh21:
	ldr	x20, [x20, _WM8510_POWER1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	w1, [x20]
	mov	w8, #479
	and	w2, w0, w8
LBB0_4:
	mov	x0, x19
	bl	_snd_soc_write
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8510_CLOCK,4,2               ; @WM8510_CLOCK
	.comm	_WM8510_POWER1,4,2              ; @WM8510_POWER1
	.comm	_WM8510_PLLN,4,2                ; @WM8510_PLLN
	.comm	_pll_div,12,2                   ; @pll_div
	.comm	_WM8510_PLLK1,4,2               ; @WM8510_PLLK1
	.comm	_WM8510_PLLK2,4,2               ; @WM8510_PLLK2
	.comm	_WM8510_PLLK3,4,2               ; @WM8510_PLLK3
	.no_dead_strip	_wm8510_set_dai_pll
.subsections_via_symbols
