	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8940_set_dai_pll
_wm8940_set_dai_pll:                    ## @wm8940_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	(%rdi), %r15
	movq	_WM8940_POWER1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_snd_soc_read
	movl	(%r12), %esi
	andl	$479, %eax                      ## imm = 0x1DF
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	shll	$2, %ebx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_pll_factors
	movq	_pll_div@GOTPCREL(%rip), %rbx
	movl	4(%rbx), %eax
	shll	$4, %eax
	orl	8(%rbx), %eax
	movl	%eax, %edx
	orl	$64, %edx
	cmpl	$0, (%rbx)
	movq	_WM8940_PLLN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmovel	%eax, %edx
	movq	%r15, %rdi
	callq	_snd_soc_write
	movq	_WM8940_PLLK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	sarl	$18, %edx
	movq	%r15, %rdi
	callq	_snd_soc_write
	movq	_WM8940_PLLK2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	shrl	$9, %edx
	andl	$511, %edx                      ## imm = 0x1FF
	movq	%r15, %rdi
	callq	_snd_soc_write
	movq	_WM8940_PLLK3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$511, %edx                      ## imm = 0x1FF
	andl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_snd_soc_write
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_snd_soc_read
	movl	(%r12), %esi
	orl	$32, %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	movq	_WM8940_CLOCK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_snd_soc_read
	movl	(%rbx), %esi
	orl	$256, %eax                      ## imm = 0x100
	movq	%r15, %rdi
	movl	%eax, %edx
	jmp	LBB0_4
LBB0_2:
	movq	_WM8940_CLOCK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_snd_soc_read
	movl	(%rbx), %esi
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_snd_soc_write
	movq	_WM8940_PLLN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$128, %edx
LBB0_4:
	callq	_snd_soc_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8940_POWER1,4,2              ## @WM8940_POWER1
	.comm	_WM8940_CLOCK,4,2               ## @WM8940_CLOCK
	.comm	_WM8940_PLLN,4,2                ## @WM8940_PLLN
	.comm	_pll_div,12,2                   ## @pll_div
	.comm	_WM8940_PLLK1,4,2               ## @WM8940_PLLK1
	.comm	_WM8940_PLLK2,4,2               ## @WM8940_PLLK2
	.comm	_WM8940_PLLK3,4,2               ## @WM8940_PLLK3
	.no_dead_strip	_wm8940_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 wm8940_set_dai_pll
_wm8940_set_dai_pll:                    ; @wm8940_set_dai_pll
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x20, x2
	ldr	x19, [x0]
Lloh0:
	adrp	x22, _WM8940_POWER1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WM8940_POWER1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	w1, [x22]
	mov	w8, #479
	and	w2, w0, w8
	mov	x0, x19
	bl	_snd_soc_write
	cbz	w20, LBB0_3
; %bb.1:
	cbz	w21, LBB0_3
; %bb.2:
	lsl	w0, w21, #2
	mov	x1, x20
	bl	_pll_factors
Lloh2:
	adrp	x20, _pll_div@GOTPAGE
Lloh3:
	ldr	x20, [x20, _pll_div@GOTPAGEOFF]
Lloh4:
	adrp	x8, _WM8940_PLLN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WM8940_PLLN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldp	w8, w9, [x20]
	ldr	w10, [x20, #8]
	orr	w9, w10, w9, lsl #4
	orr	w10, w9, #0x40
	cmp	w8, #0
	csel	w2, w9, w10, eq
	mov	x0, x19
	bl	_snd_soc_write
Lloh7:
	adrp	x8, _WM8940_PLLK1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WM8940_PLLK1@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w8, [x20]
	asr	w2, w8, #18
	mov	x0, x19
	bl	_snd_soc_write
Lloh10:
	adrp	x8, _WM8940_PLLK2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WM8940_PLLK2@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w8, [x20]
	ubfx	w2, w8, #9, #9
	mov	x0, x19
	bl	_snd_soc_write
Lloh13:
	adrp	x8, _WM8940_PLLK3@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WM8940_PLLK3@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w8, [x20]
	and	w2, w8, #0x1ff
	mov	x0, x19
	bl	_snd_soc_write
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	w1, [x22]
	orr	w2, w0, #0x20
	mov	x0, x19
	bl	_snd_soc_write
Lloh16:
	adrp	x20, _WM8940_CLOCK@GOTPAGE
Lloh17:
	ldr	x20, [x20, _WM8940_CLOCK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	w1, [x20]
	orr	w2, w0, #0x100
	mov	x0, x19
	b	LBB0_4
LBB0_3:
Lloh18:
	adrp	x20, _WM8940_CLOCK@GOTPAGE
Lloh19:
	ldr	x20, [x20, _WM8940_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	x8, _WM8940_PLLN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WM8940_PLLN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #128
LBB0_4:
	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
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8940_POWER1,4,2              ; @WM8940_POWER1
	.comm	_WM8940_CLOCK,4,2               ; @WM8940_CLOCK
	.comm	_WM8940_PLLN,4,2                ; @WM8940_PLLN
	.comm	_pll_div,12,2                   ; @pll_div
	.comm	_WM8940_PLLK1,4,2               ; @WM8940_PLLK1
	.comm	_WM8940_PLLK2,4,2               ; @WM8940_PLLK2
	.comm	_WM8940_PLLK3,4,2               ; @WM8940_PLLK3
	.no_dead_strip	_wm8940_set_dai_pll
.subsections_via_symbols
