	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pll_factors
_pll_factors:                           ## @pll_factors
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movl	%edi, %r12d
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%r12d, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	shll	$2, %ebx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$5, %eax
	ja	LBB0_2
## %bb.1:
	shrl	%r12d
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
	movl	$1, %r15d
LBB0_2:
	movl	%r15d, (%r14)
	leal	-13(%rax), %ecx
	cmpl	$-8, %ecx
	ja	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_4:
	movl	%eax, 4(%r14)
	xorl	%r15d, %r15d
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r12d
	movl	%edx, %ebx
	movq	_FIXED_PLL_SIZE@GOTPCREL(%rip), %rax
	imulq	(%rax), %rbx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_do_div
	movl	%ebx, %eax
	movl	$3435973837, %ecx               ## imm = 0xCCCCCCCD
	imulq	%rcx, %rax
	shrq	$35, %rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%ebx, %esi
	subl	%eax, %esi
	leal	5(%rbx), %edx
	cmpl	$5, %esi
	cmovbl	%ebx, %edx
	imulq	%rcx, %rdx
	shrq	$35, %rdx
	movl	%edx, 8(%r14)
	movl	(%r14), %ecx
	movl	4(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WM8960 PLL: setting %dHz->%dHz\n"

L_.str.1:                               ## @.str.1
	.asciz	"WM8960 PLL: Unsupported N=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FIXED_PLL_SIZE,8,3             ## @FIXED_PLL_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"WM8960 PLL: N=%x K=%x pre_div=%d\n"

	.no_dead_strip	_pll_factors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pll_factors
_pll_factors:                           ; @pll_factors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_pr_debug
	lsl	w9, w20, #2
	udiv	w8, w9, w21
	lsr	w10, w21, #1
	mov	w11, #1
	cmp	w8, #5
	csel	w11, wzr, w11, hi
	csel	w1, w21, w10, hi
	udiv	w10, w9, w10
	csel	w8, w8, w10, hi
	str	w11, [x19]
	sub	w10, w8, #13
	cmn	w10, #8
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x8
	bl	_pr_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	str	w8, [x19, #4]
	udiv	w8, w9, w1
	msub	w8, w8, w1, w9
Lloh7:
	adrp	x9, _FIXED_PLL_SIZE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FIXED_PLL_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	mul	x20, x9, x8
	mov	x0, x20
	bl	_do_div
	and	x8, x20, #0xffffffff
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	mul	x8, x8, x9
	lsr	x8, x8, #35
	mov	w10, #10
	msub	w8, w8, w10, w20
	add	w10, w20, #5
	cmp	w8, #4
	csel	w8, w10, w20, hi
	umull	x8, w8, w9
	lsr	x2, x8, #35
	str	w2, [x19, #8]
	ldp	w8, w1, [x19]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pr_debug
	mov	w0, #0
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WM8960 PLL: setting %dHz->%dHz\n"

l_.str.1:                               ; @.str.1
	.asciz	"WM8960 PLL: Unsupported N=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FIXED_PLL_SIZE,8,3             ; @FIXED_PLL_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"WM8960 PLL: N=%x K=%x pre_div=%d\n"

	.no_dead_strip	_pll_factors
.subsections_via_symbols
