	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8350_set_fll
_wm8350_set_fll:                        ## @wm8350_set_fll
	.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
	movq	(%rdi), %r13
	movq	(%r13), %r12
	movq	8(%r13), %r14
	cmpl	%edx, (%r12)
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	%ecx, 4(%r12)
	je	LBB0_7
LBB0_2:
	movl	%ecx, %r15d
	movq	_WM8350_POWER_MGMT_4@GOTPCREL(%rip), %rax
	movl	%edx, %ebx
	movl	(%rax), %esi
	movq	_WM8350_FLL_ENA@GOTPCREL(%rip), %rax
	movq	_WM8350_FLL_OSC_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_wm8350_clear_bits
	movl	%ebx, %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.4:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdi
	movl	%eax, %r12d
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_fll_factors
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	movl	-56(%rbp), %r8d
	movl	-52(%rbp), %r9d
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ebx
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r15d, %ecx
	pushq	%rbx
	pushq	%rax
	callq	_dev_dbg
	addq	$16, %rsp
	movq	_WM8350_FLL_CONTROL_1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_wm8350_codec_read
	movq	_WM8350_FLL_OUTDIV_MASK@GOTPCREL(%rip), %rcx
	movq	_WM8350_FLL_RSP_RATE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	andl	$-49233, %edi                   ## imm = 0xFFFF3FAF
	movl	(%rbx), %esi
	movl	-48(%rbp), %edx
	shll	$8, %edx
	orl	%edi, %edx
	orl	$80, %edx
	movq	%r13, %rdi
	callq	_wm8350_codec_write
	movq	_WM8350_FLL_CONTROL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %eax
	shll	$11, %eax
	movq	_WM8350_FLL_N_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	-56(%rbp), %edx
	orl	%eax, %edx
	movq	%r13, %rdi
	callq	_wm8350_codec_write
	movq	_WM8350_FLL_CONTROL_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edx
	movq	%r13, %rdi
	callq	_wm8350_codec_write
	movq	_WM8350_FLL_CONTROL_4@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_wm8350_codec_read
	movq	_WM8350_FLL_FRAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_WM8350_FLL_SLOW_LOCK_REF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %edi
	orl	%ecx, %edi
	notl	%edi
	andl	%eax, %edi
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	cmovel	%eax, %ecx
	movl	(%rbx), %esi
	xorl	%ebx, %ebx
	cmpl	$8, -44(%rbp)
	cmovnel	%ebx, %edx
	orl	%ecx, %edx
	orl	%edi, %edx
	movq	%r13, %rdi
	callq	_wm8350_codec_write
	movq	_WM8350_POWER_MGMT_4@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_WM8350_FLL_OSC_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_wm8350_set_bits
	movl	(%r14), %esi
	movq	_WM8350_FLL_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_wm8350_set_bits
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rax)
	movl	%r12d, (%rax)
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8350_POWER_MGMT_4,4,2        ## @WM8350_POWER_MGMT_4
	.comm	_WM8350_FLL_ENA,4,2             ## @WM8350_FLL_ENA
	.comm	_WM8350_FLL_OSC_ENA,4,2         ## @WM8350_FLL_OSC_ENA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FLL in %u FLL out %u N 0x%x K 0x%x div %d ratio %d"

	.comm	_WM8350_FLL_CONTROL_1,4,2       ## @WM8350_FLL_CONTROL_1
	.comm	_WM8350_FLL_OUTDIV_MASK,4,2     ## @WM8350_FLL_OUTDIV_MASK
	.comm	_WM8350_FLL_RSP_RATE_MASK,4,2   ## @WM8350_FLL_RSP_RATE_MASK
	.comm	_WM8350_FLL_CONTROL_2,4,2       ## @WM8350_FLL_CONTROL_2
	.comm	_WM8350_FLL_N_MASK,4,2          ## @WM8350_FLL_N_MASK
	.comm	_WM8350_FLL_CONTROL_3,4,2       ## @WM8350_FLL_CONTROL_3
	.comm	_WM8350_FLL_CONTROL_4,4,2       ## @WM8350_FLL_CONTROL_4
	.comm	_WM8350_FLL_FRAC,4,2            ## @WM8350_FLL_FRAC
	.comm	_WM8350_FLL_SLOW_LOCK_REF,4,2   ## @WM8350_FLL_SLOW_LOCK_REF
	.no_dead_strip	_wm8350_set_fll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8350_set_fll
_wm8350_set_fll:                        ; @wm8350_set_fll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x2
	ldr	x22, [x0]
	ldp	x23, x21, [x22]
	ldr	w8, [x23]
	cmp	w8, w2
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x23, #4]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_7
LBB0_3:
Lloh0:
	adrp	x24, _WM8350_POWER_MGMT_4@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WM8350_POWER_MGMT_4@GOTPAGEOFF]
Lloh2:
	adrp	x25, _WM8350_FLL_ENA@GOTPAGE
Lloh3:
	ldr	x25, [x25, _WM8350_FLL_ENA@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w8, [x25]
Lloh4:
	adrp	x26, _WM8350_FLL_OSC_ENA@GOTPAGE
Lloh5:
	ldr	x26, [x26, _WM8350_FLL_OSC_ENA@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_wm8350_clear_bits
	mov	w0, #0
	cbz	w19, LBB0_7
; %bb.4:
	cbz	w20, LBB0_7
; %bb.5:
	mov	x0, sp
	mov	x1, x19
	mov	x2, x20
	bl	_fll_factors
	tbnz	w0, #31, LBB0_7
; %bb.6:
	ldr	w0, [x21]
	ldp	w4, w5, [sp]
	ldp	w6, w7, [sp, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_dev_dbg
Lloh8:
	adrp	x27, _WM8350_FLL_CONTROL_1@GOTPAGE
Lloh9:
	ldr	x27, [x27, _WM8350_FLL_CONTROL_1@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x22
	bl	_wm8350_codec_read
Lloh10:
	adrp	x8, _WM8350_FLL_OUTDIV_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WM8350_FLL_OUTDIV_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _WM8350_FLL_RSP_RATE_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WM8350_FLL_RSP_RATE_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
	and	w8, w8, #0xffff3fff
	ldr	w1, [x27]
	ldr	w9, [sp, #8]
	orr	w8, w8, w9, lsl #8
	mov	w9, #80
	orr	w2, w8, w9
	mov	x0, x22
	bl	_wm8350_codec_write
Lloh16:
	adrp	x8, _WM8350_FLL_CONTROL_2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WM8350_FLL_CONTROL_2@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w8, [sp, #12]
	ldr	w9, [sp]
Lloh19:
	adrp	x10, _WM8350_FLL_N_MASK@GOTPAGE
Lloh20:
	ldr	x10, [x10, _WM8350_FLL_N_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w2, w9, w8, lsl #11
	mov	x0, x22
	bl	_wm8350_codec_write
Lloh22:
	adrp	x8, _WM8350_FLL_CONTROL_3@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WM8350_FLL_CONTROL_3@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [sp, #4]
	mov	x0, x22
	bl	_wm8350_codec_write
Lloh25:
	adrp	x27, _WM8350_FLL_CONTROL_4@GOTPAGE
Lloh26:
	ldr	x27, [x27, _WM8350_FLL_CONTROL_4@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x22
	bl	_wm8350_codec_read
Lloh27:
	adrp	x8, _WM8350_FLL_FRAC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WM8350_FLL_FRAC@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _WM8350_FLL_SLOW_LOCK_REF@GOTPAGE
Lloh31:
	ldr	x9, [x9, _WM8350_FLL_SLOW_LOCK_REF@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w10, w0, w10
	ldr	w1, [x27]
	ldr	w11, [sp, #4]
	ldr	w12, [sp, #12]
	cmp	w11, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w10
	cmp	w12, #8
	csel	w9, w9, wzr, eq
	orr	w2, w8, w9
	mov	x0, x22
	bl	_wm8350_codec_write
	ldr	w1, [x24]
	ldr	w2, [x26]
	mov	x0, x21
	bl	_wm8350_set_bits
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x21
	bl	_wm8350_set_bits
	mov	w0, #0
	stp	w19, w20, [x23]
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8350_POWER_MGMT_4,4,2        ; @WM8350_POWER_MGMT_4
	.comm	_WM8350_FLL_ENA,4,2             ; @WM8350_FLL_ENA
	.comm	_WM8350_FLL_OSC_ENA,4,2         ; @WM8350_FLL_OSC_ENA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FLL in %u FLL out %u N 0x%x K 0x%x div %d ratio %d"

	.comm	_WM8350_FLL_CONTROL_1,4,2       ; @WM8350_FLL_CONTROL_1
	.comm	_WM8350_FLL_OUTDIV_MASK,4,2     ; @WM8350_FLL_OUTDIV_MASK
	.comm	_WM8350_FLL_RSP_RATE_MASK,4,2   ; @WM8350_FLL_RSP_RATE_MASK
	.comm	_WM8350_FLL_CONTROL_2,4,2       ; @WM8350_FLL_CONTROL_2
	.comm	_WM8350_FLL_N_MASK,4,2          ; @WM8350_FLL_N_MASK
	.comm	_WM8350_FLL_CONTROL_3,4,2       ; @WM8350_FLL_CONTROL_3
	.comm	_WM8350_FLL_CONTROL_4,4,2       ; @WM8350_FLL_CONTROL_4
	.comm	_WM8350_FLL_FRAC,4,2            ; @WM8350_FLL_FRAC
	.comm	_WM8350_FLL_SLOW_LOCK_REF,4,2   ; @WM8350_FLL_SLOW_LOCK_REF
	.no_dead_strip	_wm8350_set_fll
.subsections_via_symbols
