	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8960_set_dai_pll
_wm8960_set_dai_pll:                    ## @wm8960_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	testl	%edx, %edx
	je	LBB0_8
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.2:
	leaq	_wm8960_set_dai_pll.pll_div(%rip), %rax
	movl	%edx, %edi
	movl	%ecx, %esi
	movq	%rax, %rdx
	callq	_pll_factors
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	_WM8960_CLOCK1@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_soc_read
	andl	$-2, %eax
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_snd_soc_write
	movq	_WM8960_POWER2@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_soc_read
	andl	$-2, %eax
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_snd_soc_write
	movq	_WM8960_PLL1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_snd_soc_read
	andl	$-64, %eax
	movl	_wm8960_set_dai_pll.pll_div(%rip), %r14d
	shll	$4, %r14d
	orl	%eax, %r14d
	orl	_wm8960_set_dai_pll.pll_div+4(%rip), %r14d
	movl	_wm8960_set_dai_pll.pll_div+8(%rip), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	orl	$32, %r14d
	movq	_WM8960_PLL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shrl	$18, %edx
	andl	$63, %edx
	movq	%r15, %rdi
	callq	_snd_soc_write
	movq	_WM8960_PLL3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	_wm8960_set_dai_pll.pll_div+8(%rip), %edx
	shrl	$9, %edx
	andl	$511, %edx                      ## imm = 0x1FF
	movq	%r15, %rdi
	callq	_snd_soc_write
	movq	_WM8960_PLL4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$511, %edx                      ## imm = 0x1FF
	andl	_wm8960_set_dai_pll.pll_div+8(%rip), %edx
	movq	%r15, %rdi
	callq	_snd_soc_write
LBB0_5:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_snd_soc_write
	movl	(%r13), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_soc_read
	orl	$1, %eax
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_snd_soc_write
	movl	$250, %edi
	callq	_msleep
	movl	(%r12), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_soc_read
	orl	$1, %eax
	jmp	LBB0_6
LBB0_8:
	movq	_WM8960_CLOCK1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_soc_read
	andl	$-2, %eax
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_snd_soc_write
	movq	_WM8960_POWER2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_soc_read
	andl	$-2, %eax
LBB0_6:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_snd_soc_write
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_wm8960_set_dai_pll.pll_div,12,2 ## @wm8960_set_dai_pll.pll_div
	.comm	_WM8960_CLOCK1,4,2              ## @WM8960_CLOCK1
	.comm	_WM8960_POWER2,4,2              ## @WM8960_POWER2
	.comm	_WM8960_PLL1,4,2                ## @WM8960_PLL1
	.comm	_WM8960_PLL2,4,2                ## @WM8960_PLL2
	.comm	_WM8960_PLL3,4,2                ## @WM8960_PLL3
	.comm	_WM8960_PLL4,4,2                ## @WM8960_PLL4
	.no_dead_strip	_wm8960_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 wm8960_set_dai_pll
_wm8960_set_dai_pll:                    ; @wm8960_set_dai_pll
	.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
	ldr	x19, [x0]
	cbz	w2, LBB0_6
; %bb.1:
	cbz	w3, LBB0_6
; %bb.2:
Lloh0:
	adrp	x20, _wm8960_set_dai_pll.pll_div@PAGE
Lloh1:
	add	x20, x20, _wm8960_set_dai_pll.pll_div@PAGEOFF
	mov	x0, x2
	mov	x1, x3
	mov	x2, x20
	bl	_pll_factors
	cbnz	w0, LBB0_8
; %bb.3:
Lloh2:
	adrp	x22, _WM8960_CLOCK1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WM8960_CLOCK1@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_snd_soc_read
	and	w2, w0, #0xfffffffe
	mov	x0, x19
	mov	x1, x21
	bl	_snd_soc_write
Lloh4:
	adrp	x23, _WM8960_POWER2@GOTPAGE
Lloh5:
	ldr	x23, [x23, _WM8960_POWER2@GOTPAGEOFF]
	ldr	w21, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_snd_soc_read
	and	w2, w0, #0xfffffffe
	mov	x0, x19
	mov	x1, x21
	bl	_snd_soc_write
Lloh6:
	adrp	x24, _WM8960_PLL1@GOTPAGE
Lloh7:
	ldr	x24, [x24, _WM8960_PLL1@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_snd_soc_read
	and	w8, w0, #0xffffffc0
	ldp	w9, w10, [x20]
	orr	w8, w8, w9, lsl #4
	orr	w21, w8, w10
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_5
; %bb.4:
	orr	w21, w21, #0x20
Lloh8:
	adrp	x9, _WM8960_PLL2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WM8960_PLL2@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	ubfx	w2, w8, #18, #6
	mov	x0, x19
	bl	_snd_soc_write
Lloh11:
	adrp	x8, _WM8960_PLL3@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM8960_PLL3@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	adrp	x20, _wm8960_set_dai_pll.pll_div@PAGE+8
	ldr	w8, [x20, _wm8960_set_dai_pll.pll_div@PAGEOFF+8]
	ubfx	w2, w8, #9, #9
	mov	x0, x19
	bl	_snd_soc_write
Lloh14:
	adrp	x8, _WM8960_PLL4@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WM8960_PLL4@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w8, [x20, _wm8960_set_dai_pll.pll_div@PAGEOFF+8]
	and	w2, w8, #0x1ff
	mov	x0, x19
	bl	_snd_soc_write
LBB0_5:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_snd_soc_write
	ldr	w20, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_read
	orr	w2, w0, #0x1
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_write
	mov	w0, #250
	bl	_msleep
	ldr	w20, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_read
	orr	w2, w0, #0x1
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _WM8960_CLOCK1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WM8960_CLOCK1@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_read
	and	w2, w0, #0xfffffffe
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_write
Lloh20:
	adrp	x8, _WM8960_POWER2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WM8960_POWER2@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_read
	and	w2, w0, #0xfffffffe
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_write
	mov	w0, #0
LBB0_8:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_wm8960_set_dai_pll.pll_div,12,2 ; @wm8960_set_dai_pll.pll_div
	.comm	_WM8960_CLOCK1,4,2              ; @WM8960_CLOCK1
	.comm	_WM8960_POWER2,4,2              ; @WM8960_POWER2
	.comm	_WM8960_PLL1,4,2                ; @WM8960_PLL1
	.comm	_WM8960_PLL2,4,2                ; @WM8960_PLL2
	.comm	_WM8960_PLL3,4,2                ; @WM8960_PLL3
	.comm	_WM8960_PLL4,4,2                ; @WM8960_PLL4
	.no_dead_strip	_wm8960_set_dai_pll
.subsections_via_symbols
