	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8580_set_dai_pll
_wm8580_set_dai_pll:                    ## @wm8580_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	(%rdi), %r12
	movq	(%r12), %r14
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	cmpl	$128, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_3
## %bb.2:
	addq	$8, %r14
	movq	_WM8580_PWRDN2_PLLAPD@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_4:
	movq	_WM8580_PWRDN2_PLLBPD@GOTPCREL(%rip), %rax
	movl	$4, %ecx
LBB0_5:
	movl	(%rax), %ebx
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.6:
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.7:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_pll_factors
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movl	%r15d, (%r14)
	movl	%r13d, 4(%r14)
	movq	_WM8580_PWRDN2@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%r12, %rdi
	callq	_snd_soc_read
	movq	(%r15), %rsi
	orl	%ebx, %eax
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	movq	_WM8580_PLLA1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	addq	%r13, %rsi
	movl	$511, %edx                      ## imm = 0x1FF
	andl	-64(%rbp), %edx
	movq	%r12, %rdi
	callq	_snd_soc_write
	movq	_WM8580_PLLA2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movl	-64(%rbp), %edx
	shrl	$9, %edx
	andl	$511, %edx                      ## imm = 0x1FF
	movq	%r12, %rdi
	callq	_snd_soc_write
	movq	_WM8580_PLLA3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movl	-64(%rbp), %eax
	movl	-60(%rbp), %edx
	shrl	$18, %eax
	andl	$15, %eax
	shll	$4, %edx
	orl	%eax, %edx
	movq	%r12, %rdi
	callq	_snd_soc_write
	movq	_WM8580_PLLA4@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	callq	_snd_soc_read
	andl	$-28, %eax
	movl	-52(%rbp), %ecx
	movl	-48(%rbp), %edx
	addl	%ecx, %ecx
	shll	$3, %edx
	orl	-56(%rbp), %eax
	orl	%ecx, %edx
	orl	%eax, %edx
	addq	(%r14), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_snd_soc_write
	movq	(%r15), %rsi
	movq	%r12, %rdi
	callq	_snd_soc_read
	movq	(%r15), %rsi
	notl	%ebx
	andl	%eax, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_11:
	movl	%r15d, (%r14)
	movl	%r13d, 4(%r14)
	movq	_WM8580_PWRDN2@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%r12, %rdi
	callq	_snd_soc_read
	movq	(%r14), %rsi
	orl	%eax, %ebx
LBB0_9:
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_snd_soc_write
	xorl	%eax, %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8580_PWRDN2_PLLAPD,4,2       ## @WM8580_PWRDN2_PLLAPD
	.comm	_WM8580_PWRDN2_PLLBPD,4,2       ## @WM8580_PWRDN2_PLLBPD
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_WM8580_PWRDN2,8,3              ## @WM8580_PWRDN2
	.comm	_WM8580_PLLA1,8,3               ## @WM8580_PLLA1
	.comm	_WM8580_PLLA2,8,3               ## @WM8580_PLLA2
	.comm	_WM8580_PLLA3,8,3               ## @WM8580_PLLA3
	.comm	_WM8580_PLLA4,8,3               ## @WM8580_PLLA4
	.no_dead_strip	_wm8580_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 wm8580_set_dai_pll
_wm8580_set_dai_pll:                    ; @wm8580_set_dai_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x19, [x0]
	ldr	x24, [x19]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	cmp	w22, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w22, #129
	b.ne	LBB0_7
; %bb.2:
	mov	x23, #0
	add	x24, x24, #8
Lloh0:
	adrp	x8, _WM8580_PWRDN2_PLLAPD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8580_PWRDN2_PLLAPD@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	cbnz	w21, LBB0_4
	b	LBB0_8
LBB0_3:
Lloh3:
	adrp	x8, _WM8580_PWRDN2_PLLBPD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM8580_PWRDN2_PLLBPD@GOTPAGEOFF]
	mov	w23, #4
Lloh5:
	ldr	w22, [x8]
	cbz	w21, LBB0_8
LBB0_4:
	cbz	w20, LBB0_8
; %bb.5:
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x21
	bl	_pll_factors
	cbnz	w0, LBB0_10
; %bb.6:
	stp	w21, w20, [x24]
Lloh6:
	adrp	x20, _WM8580_PWRDN2@GOTPAGE
Lloh7:
	ldr	x20, [x20, _WM8580_PWRDN2@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	x1, [x20]
	orr	w2, w0, w22
	mov	x0, x19
	bl	_snd_soc_write
Lloh8:
	adrp	x8, _WM8580_PLLA1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM8580_PLLA1@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, x23
	ldr	w8, [sp, #8]
	and	w2, w8, #0x1ff
	mov	x0, x19
	bl	_snd_soc_write
Lloh11:
	adrp	x8, _WM8580_PLLA2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM8580_PLLA2@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x23
	ldr	w8, [sp, #8]
	ubfx	w2, w8, #9, #9
	mov	x0, x19
	bl	_snd_soc_write
Lloh14:
	adrp	x8, _WM8580_PLLA3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WM8580_PLLA3@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, x23
	ldp	w8, w9, [sp, #8]
	lsl	w2, w9, #4
	bfxil	w2, w8, #18, #4
	mov	x0, x19
	bl	_snd_soc_write
Lloh17:
	adrp	x21, _WM8580_PLLA4@GOTPAGE
Lloh18:
	ldr	x21, [x21, _WM8580_PLLA4@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, x23
	mov	x0, x19
	bl	_snd_soc_read
	mov	w8, #-28
	and	w8, w0, w8
	ldp	w9, w10, [sp, #16]
	ldr	w11, [sp, #24]
	orr	w8, w8, w9
	orr	w8, w8, w10, lsl #1
	orr	w2, w8, w11, lsl #3
	ldr	x8, [x21]
	add	x1, x8, x23
	mov	x0, x19
	bl	_snd_soc_write
	ldr	x1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	x1, [x20]
	bic	w2, w0, w22
	b	LBB0_9
LBB0_7:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	stp	w21, w20, [x24]
Lloh22:
	adrp	x20, _WM8580_PWRDN2@GOTPAGE
Lloh23:
	ldr	x20, [x20, _WM8580_PWRDN2@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	x1, [x20]
	orr	w2, w0, w22
LBB0_9:
	mov	x0, x19
	bl	_snd_soc_write
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8580_PWRDN2_PLLAPD,4,2       ; @WM8580_PWRDN2_PLLAPD
	.comm	_WM8580_PWRDN2_PLLBPD,4,2       ; @WM8580_PWRDN2_PLLBPD
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_WM8580_PWRDN2,8,3              ; @WM8580_PWRDN2
	.comm	_WM8580_PLLA1,8,3               ; @WM8580_PLLA1
	.comm	_WM8580_PLLA2,8,3               ; @WM8580_PLLA2
	.comm	_WM8580_PLLA3,8,3               ; @WM8580_PLLA3
	.comm	_WM8580_PLLA4,8,3               ; @WM8580_PLLA4
	.no_dead_strip	_wm8580_set_dai_pll
.subsections_via_symbols
