	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8753_set_dai_pll
_wm8753_set_dai_pll:                    ## @wm8753_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
	movq	_WM8753_PLL1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	%esi, %r15d
	jg	LBB0_2
## %bb.1:
	movl	%esi, %r14d
	movq	_WM8753_PLL2@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jl	LBB0_2
## %bb.3:
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	(%rdi), %rdi
	xorl	%ebx, %ebx
	cmpl	%r14d, %r15d
	setne	%bl
	movq	_WM8753_CLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_wm8753_read_reg_cache
	leal	65519(,%rbx,8), %ecx
	shlq	$2, %rbx
	andl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	cmpl	%r14d, %r15d
	sete	%al
	leal	8(,%rax,8), %r14d
	shll	$3, %r13d
	leaq	-56(%rbp), %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_pll_factors
	movl	-56(%rbp), %eax
	movl	-52(%rbp), %edx
	shll	$5, %eax
	shrl	$18, %edx
	andl	$15, %edx
	orl	%eax, %edx
	movq	_WM8753_PLL1CTL2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_wm8753_write
	movl	-52(%rbp), %edx
	shrl	$9, %edx
	andl	$511, %edx                      ## imm = 0x1FF
	movq	_WM8753_PLL1CTL3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_wm8753_write
	movl	$511, %edx                      ## imm = 0x1FF
	andl	-52(%rbp), %edx
	movq	_WM8753_PLL1CTL4@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_wm8753_write
	movq	_WM8753_PLL1CTL1@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movl	-48(%rbp), %edx
	shll	$3, %edx
	orl	$39, %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_wm8753_write
	movq	_WM8753_CLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	orl	%r14d, %edx
	movq	%r15, %rdi
	jmp	LBB0_7
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	movq	_WM8753_PLL1CTL1@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$38, %edx
	callq	_wm8753_write
	movq	_WM8753_CLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_7:
	callq	_wm8753_write
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8753_PLL1,4,2                ## @WM8753_PLL1
	.comm	_WM8753_PLL2,4,2                ## @WM8753_PLL2
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_WM8753_CLOCK,8,3               ## @WM8753_CLOCK
	.comm	_WM8753_PLL1CTL1,8,3            ## @WM8753_PLL1CTL1
	.comm	_WM8753_PLL1CTL2,8,3            ## @WM8753_PLL1CTL2
	.comm	_WM8753_PLL1CTL3,8,3            ## @WM8753_PLL1CTL3
	.comm	_WM8753_PLL1CTL4,8,3            ## @WM8753_PLL1CTL4
	.no_dead_strip	_wm8753_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 wm8753_set_dai_pll
_wm8753_set_dai_pll:                    ; @wm8753_set_dai_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _WM8753_PLL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8753_PLL1@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x8, _WM8753_PLL2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM8753_PLL2@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w26, w1
	ccmp	w8, w1, #8, le
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	ldr	x19, [x0]
Lloh9:
	adrp	x24, _WM8753_CLOCK@GOTPAGE
Lloh10:
	ldr	x24, [x24, _WM8753_CLOCK@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x19
	bl	_wm8753_read_reg_cache
	mov	w8, #65527
	mov	w9, #65519
	cmp	w26, w23
	csel	w8, w9, w8, eq
	cset	w9, ne
	lsl	x25, x9, #2
	and	w20, w0, w8
	cbz	w21, LBB0_5
; %bb.3:
	cbz	w22, LBB0_5
; %bb.4:
	mov	w8, #8
	mov	w9, #16
	cmp	w26, w23
	csel	w23, w9, w8, eq
	lsl	w1, w22, #3
	mov	x0, sp
	mov	x2, x21
	bl	_pll_factors
	ldp	w8, w9, [sp]
	lsl	w2, w8, #5
	bfxil	w2, w9, #18, #4
Lloh11:
	adrp	x8, _WM8753_PLL1CTL2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM8753_PLL1CTL2@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x25
	mov	x0, x19
	bl	_wm8753_write
	ldr	w8, [sp, #4]
	ubfx	w2, w8, #9, #9
Lloh14:
	adrp	x8, _WM8753_PLL1CTL3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WM8753_PLL1CTL3@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, x25
	mov	x0, x19
	bl	_wm8753_write
	ldr	w8, [sp, #4]
	and	w2, w8, #0x1ff
Lloh17:
	adrp	x8, _WM8753_PLL1CTL4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WM8753_PLL1CTL4@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x1, x8, x25
	mov	x0, x19
	bl	_wm8753_write
Lloh20:
	adrp	x8, _WM8753_PLL1CTL1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WM8753_PLL1CTL1@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x1, x8, x25
	ldr	w8, [sp, #8]
	mov	w9, #39
	orr	w2, w9, w8, lsl #3
	mov	x0, x19
	bl	_wm8753_write
	ldr	x1, [x24]
	orr	w2, w20, w23
	mov	x0, x19
	b	LBB0_6
LBB0_5:
Lloh23:
	adrp	x8, _WM8753_PLL1CTL1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WM8753_PLL1CTL1@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	add	x1, x8, x25
	mov	x0, x19
	mov	w2, #38
	bl	_wm8753_write
	ldr	x1, [x24]
	mov	x0, x19
	mov	x2, x20
LBB0_6:
	bl	_wm8753_write
	mov	w0, #0
LBB0_7:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8753_PLL1,4,2                ; @WM8753_PLL1
	.comm	_WM8753_PLL2,4,2                ; @WM8753_PLL2
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_WM8753_CLOCK,8,3               ; @WM8753_CLOCK
	.comm	_WM8753_PLL1CTL1,8,3            ; @WM8753_PLL1CTL1
	.comm	_WM8753_PLL1CTL2,8,3            ; @WM8753_PLL1CTL2
	.comm	_WM8753_PLL1CTL3,8,3            ; @WM8753_PLL1CTL3
	.comm	_WM8753_PLL1CTL4,8,3            ; @WM8753_PLL1CTL4
	.no_dead_strip	_wm8753_set_dai_pll
.subsections_via_symbols
