	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fll_factors
_fll_factors:                           ## @fll_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	leal	(%r14,%r14), %eax
	addl	$-100000001, %eax               ## imm = 0xFA0A1EFF
	cmpl	$-10000002, %eax                ## imm = 0xFF67697E
	ja	LBB0_1
## %bb.4:
	leal	-100000001(,%r14,4), %eax
	cmpl	$-10000002, %eax                ## imm = 0xFF67697E
	ja	LBB0_5
## %bb.6:
	leal	-100000001(,%r14,8), %eax
	cmpl	$-10000002, %eax                ## imm = 0xFF67697E
	ja	LBB0_7
## %bb.8:
	movl	%r14d, %r8d
	shll	$4, %r8d
	leal	-100000001(%r8), %ecx
	movl	$4, %eax
	cmpl	$-10000002, %ecx                ## imm = 0xFF67697E
	ja	LBB0_2
## %bb.9:
	movl	%r14d, %r8d
	shll	$5, %r8d
	leal	-100000001(%r8), %ecx
	movl	$8, %eax
	cmpl	$-10000002, %ecx                ## imm = 0xFF67697E
	ja	LBB0_2
## %bb.10:
	movl	$64, (%r13)
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_1:
	leal	(%r14,%r14), %r8d
	xorl	%eax, %eax
	jmp	LBB0_2
LBB0_5:
	leal	(,%r14,4), %r8d
	movl	$1, %eax
	jmp	LBB0_2
LBB0_7:
	leal	(,%r14,8), %r8d
	movl	$2, %eax
LBB0_2:
	movl	%eax, (%r13)
	cmpl	$47999, %r15d                   ## imm = 0xBB7F
	ja	LBB0_11
## %bb.3:
	movl	$1, 4(%r13)
	movl	$-1, %ecx
	movl	$9, %edi
	jmp	LBB0_12
LBB0_11:
	movl	$0, 4(%r13)
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	cmpl	$1000000, %r15d                 ## imm = 0xF4240
	setae	%al
	setb	%cl
	leal	(%rcx,%rcx,8), %edi
	leal	(%rax,%rax), %ecx
	decl	%ecx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%edi, %eax
	addl	%ecx, %edi
	addl	%ecx, %eax
	addl	$-9, %eax
	cmpl	$-9, %eax
	jbe	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%edi, %esi
	imull	%r15d, %esi
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, 12(%r13)
	testl	%edx, %edx
	je	LBB0_12
## %bb.16:
	movl	%edx, %ebx
	movl	%edi, 8(%r13)
	movq	_FIXED_FLL_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movl	%ebx, %edi
	callq	_do_div
	movl	$3435973837, %eax               ## imm = 0xCCCCCCCD
	movq	%rbx, %rcx
	imulq	%rax, %rcx
	shrq	$35, %rcx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	movl	%ebx, %edx
	subl	%ecx, %edx
	leal	5(%rbx), %r9d
	cmpl	$5, %edx
	cmovbl	%ebx, %r9d
	imulq	%rax, %r9
	shrq	$35, %r9
	movl	%r9d, 16(%r13)
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	12(%r13), %r8d
	movl	(%r13), %eax
	movl	8(%r13), %ebx
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	pushq	%rbx
	callq	_dev_dbg
	addq	$16, %rsp
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_13:
	movl	%edi, 8(%r13)
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported FLL output frequency %uHz\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Unable to calculate FRATIO\n"

	.comm	_FIXED_FLL_SIZE,8,3             ## @FIXED_FLL_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"FLL: Fref=%u Fout=%u N=%x K=%x, FRATIO=%x OUTDIV=%x\n"

	.no_dead_strip	_fll_factors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fll_factors
_fll_factors:                           ; @fll_factors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w9, #27007
	movk	w9, #65383, lsl #16
	mov	w10, #7935
	movk	w10, #64010, lsl #16
	lsl	w8, w3, #1
	add	w11, w8, w10
	cmp	w11, w9
	b.hs	LBB0_6
; %bb.1:
	lsl	w8, w19, #2
	add	w11, w8, w10
	cmp	w11, w9
	b.hs	LBB0_7
; %bb.2:
	lsl	w8, w19, #3
	add	w11, w8, w10
	cmp	w11, w9
	b.hs	LBB0_8
; %bb.3:
	lsl	w8, w19, #4
	add	w11, w8, w10
	cmp	w11, w9
	b.hs	LBB0_9
; %bb.4:
	lsl	w8, w19, #5
	add	w10, w8, w10
	cmp	w10, w9
	b.hs	LBB0_10
; %bb.5:
	mov	w8, #64
	str	w8, [x21]
	ldr	x8, [x22]
	ldr	w0, [x8]
	str	x19, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_18
LBB0_6:
	mov	w9, #0
	b	LBB0_11
LBB0_7:
	mov	w9, #1
	b	LBB0_11
LBB0_8:
	mov	w9, #2
	b	LBB0_11
LBB0_9:
	mov	w9, #4
	b	LBB0_11
LBB0_10:
	mov	w9, #8
LBB0_11:
	str	w9, [x21]
	lsr	w9, w20, #7
	cmp	w9, #374
	b.hi	LBB0_13
; %bb.12:
	mov	w9, #1
	str	w9, [x21, #4]
	mov	w10, #-1
	mov	w9, #9
	b	LBB0_14
LBB0_13:
	str	wzr, [x21, #4]
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mov	w10, #9
	cmp	w20, w9
	csel	w9, w10, wzr, lo
	mov	w10, #-1
	cneg	w10, w10, hs
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	w9, w9, w10
	sub	w11, w9, #9
	cmn	w11, #9
	b.ls	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mul	w1, w9, w20
	udiv	w11, w8, w1
	str	w11, [x21, #12]
	msub	w11, w11, w1, w8
	cbz	w11, LBB0_14
; %bb.16:
	str	w9, [x21, #8]
Lloh2:
	adrp	x8, _FIXED_FLL_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FIXED_FLL_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mul	w23, w11, w8
	mov	x0, x23
	bl	_do_div
	mov	w8, #52429
	movk	w8, #52428, lsl #16
	umull	x9, w23, w8
	lsr	x9, x9, #35
	mov	w10, #10
	msub	w9, w9, w10, w23
	add	w10, w23, #5
	cmp	w9, #4
	csel	w9, w10, w23, hi
	umull	x8, w9, w8
	lsr	x5, x8, #35
	str	w5, [x21, #16]
	ldr	x8, [x22]
	ldr	w0, [x8]
	ldp	w6, w4, [x21, #8]
	ldr	w7, [x21]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	mov	x3, x19
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_19
LBB0_17:
	str	w9, [x21, #8]
	ldr	x8, [x22]
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_18:
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported FLL output frequency %uHz\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Unable to calculate FRATIO\n"

	.comm	_FIXED_FLL_SIZE,8,3             ; @FIXED_FLL_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"FLL: Fref=%u Fout=%u N=%x K=%x, FRATIO=%x OUTDIV=%x\n"

	.no_dead_strip	_fll_factors
.subsections_via_symbols
