	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wm9713_set_pll
LCPI0_0:
	.long	4096                            ## 0x1000
	.long	2048                            ## 0x800
	.long	512                             ## 0x200
	.long	256                             ## 0x100
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wm9713_set_pll:                        ## @wm9713_set_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	%rdi, %rbx
	movq	(%rdi), %r12
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	leaq	-64(%rbp), %rdi
	movl	%edx, %esi
	callq	_pll_factors
	movl	-64(%rbp), %edx
	movdqu	-60(%rbp), %xmm0
	pmulld	LCPI0_0(%rip), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %r15d
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	sarl	$20, %edx
	orl	%r15d, %edx
	orl	$1104, %edx                     ## imm = 0x450
	movq	_AC97_LINE1_LEVEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ac97_write
	movzwl	-62(%rbp), %edx
	andl	$15, %edx
	orl	%r15d, %edx
	orl	$1088, %edx                     ## imm = 0x440
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ac97_write
	movl	-64(%rbp), %edx
	shrl	$12, %edx
	andl	$15, %edx
	orl	%r15d, %edx
	orl	$1072, %edx                     ## imm = 0x430
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ac97_write
	movl	-64(%rbp), %edx
	shrl	$8, %edx
	andl	$15, %edx
	orl	%r15d, %edx
	orl	$1056, %edx                     ## imm = 0x420
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ac97_write
	movl	-64(%rbp), %edx
	shrl	$4, %edx
	andl	$15, %edx
	orl	%r15d, %edx
	orl	$1040, %edx                     ## imm = 0x410
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ac97_write
	movl	-64(%rbp), %eax
	andl	$15, %eax
	orl	%r15d, %eax
	orl	$1024, %eax                     ## imm = 0x400
	movl	%eax, %r15d
LBB0_4:
	movq	_AC97_LINE1_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ac97_write
	movq	_AC97_EXTENDED_MID@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ac97_read
	movl	(%r15), %esi
	andl	$65023, %eax                    ## imm = 0xFDFF
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ac97_write
	movq	_AC97_HANDSET_RATE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ac97_read
	movl	(%r15), %esi
	andl	$65407, %eax                    ## imm = 0xFF7F
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ac97_write
	movl	%r14d, (%r12)
	movl	$10, %edi
	callq	_msecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout_interruptible
	jmp	LBB0_5
LBB0_1:
	movq	_AC97_HANDSET_RATE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ac97_read
	movl	(%r14), %esi
	orl	$128, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ac97_write
	movq	_AC97_EXTENDED_MID@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ac97_read
	movl	(%r14), %esi
	orl	$512, %eax                      ## imm = 0x200
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ac97_write
	movl	$0, (%r12)
LBB0_5:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_HANDSET_RATE,4,2          ## @AC97_HANDSET_RATE
	.comm	_AC97_EXTENDED_MID,4,2          ## @AC97_EXTENDED_MID
	.comm	_AC97_LINE1_LEVEL,4,2           ## @AC97_LINE1_LEVEL
	.no_dead_strip	_wm9713_set_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function wm9713_set_pll
lCPI0_0:
	.long	12                              ; 0xc
	.long	11                              ; 0xb
	.long	9                               ; 0x9
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wm9713_set_pll:                        ; @wm9713_set_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	x19, x0
	ldr	x22, [x0]
	cbz	w2, LBB0_4
; %bb.1:
	mov	x20, x2
	add	x0, sp, #8
	mov	x1, x2
	bl	_pll_factors
	ldr	w8, [sp, #8]
	ldur	q0, [sp, #12]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	ushl.4s	v0, v0, v1
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w9, v0[1]
	fmov	w10, s0
	orr	w21, w10, w9
Lloh2:
	adrp	x23, _AC97_LINE1_LEVEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AC97_LINE1_LEVEL@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.2:
	orr	w8, w21, w8, asr #20
	mov	w9, #1104
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ac97_write
	ldrh	w8, [sp, #10]
	and	w8, w8, #0xf
	orr	w8, w21, w8
	mov	w9, #1088
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ac97_write
	ldr	w8, [sp, #8]
	ubfx	w8, w8, #12, #4
	orr	w8, w21, w8
	mov	w9, #1072
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ac97_write
	ldr	w8, [sp, #8]
	ubfx	w8, w8, #8, #4
	orr	w8, w21, w8
	mov	w9, #1056
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ac97_write
	ldr	w8, [sp, #8]
	ubfx	w8, w8, #4, #4
	orr	w8, w21, w8
	mov	w9, #1040
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ac97_write
	ldr	w8, [sp, #8]
	and	w8, w8, #0xf
	orr	w8, w21, w8
	orr	w21, w8, #0x400
LBB0_3:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_ac97_write
Lloh4:
	adrp	x21, _AC97_EXTENDED_MID@GOTPAGE
Lloh5:
	ldr	x21, [x21, _AC97_EXTENDED_MID@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ac97_read
	ldr	w1, [x21]
	mov	w8, #65023
	and	w2, w0, w8
	mov	x0, x19
	bl	_ac97_write
Lloh6:
	adrp	x21, _AC97_HANDSET_RATE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _AC97_HANDSET_RATE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ac97_read
	ldr	w1, [x21]
	mov	w8, #65407
	and	w2, w0, w8
	mov	x0, x19
	bl	_ac97_write
	str	w20, [x22]
	mov	w0, #10
	bl	_msecs_to_jiffies
	bl	_schedule_timeout_interruptible
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x20, _AC97_HANDSET_RATE@GOTPAGE
Lloh9:
	ldr	x20, [x20, _AC97_HANDSET_RATE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ac97_read
	ldr	w1, [x20]
	orr	w2, w0, #0x80
	mov	x0, x19
	bl	_ac97_write
Lloh10:
	adrp	x20, _AC97_EXTENDED_MID@GOTPAGE
Lloh11:
	ldr	x20, [x20, _AC97_EXTENDED_MID@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ac97_read
	ldr	w1, [x20]
	orr	w2, w0, #0x200
	mov	x0, x19
	bl	_ac97_write
	str	wzr, [x22]
LBB0_5:
	mov	w0, #0
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_HANDSET_RATE,4,2          ; @AC97_HANDSET_RATE
	.comm	_AC97_EXTENDED_MID,4,2          ; @AC97_EXTENDED_MID
	.comm	_AC97_LINE1_LEVEL,4,2           ; @AC97_LINE1_LEVEL
	.no_dead_strip	_wm9713_set_pll
.subsections_via_symbols
