	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8090_compute_pll_parameters
_dib8090_compute_pll_parameters:        ## @dib8090_compute_pll_parameters
	.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
	movq	%rdi, %r15
	movslq	(%rdi), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$38, %rax
	addl	%ecx, %eax
	shll	$8, %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	$6, %eax
	addl	%ecx, %eax
	cltq
	imulq	$-1600085855, %rax, %rcx        ## imm = 0xA0A0A0A1
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$11, %ecx
	addl	%edx, %ecx
	imull	$3264, %ecx, %ecx               ## imm = 0xCC0
	subl	%ecx, %eax
	movl	$3264, %r12d                    ## imm = 0xCC0
	subl	%eax, %r12d
	cmpl	$1633, %eax                     ## imm = 0x661
	cmovll	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	$17, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_deb_info
	xorl	%eax, %eax
	cmpl	$718, %r12d                     ## imm = 0x2CE
	setl	%al
	leal	17(%rax,%rax,2), %r13d
	cmovll	%ebx, %r12d
	movslq	(%r15), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$38, %rax
	addl	%ecx, %eax
	shll	$8, %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	$6, %eax
	addl	%ecx, %eax
	cltq
	imulq	$1272582903, %rax, %rcx         ## imm = 0x4BDA12F7
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	sarl	$10, %ecx
	addl	%edx, %ecx
	imull	$3456, %ecx, %ecx               ## imm = 0xD80
	subl	%ecx, %eax
	movl	$3456, %ebx                     ## imm = 0xD80
	subl	%eax, %ebx
	cmpl	$1729, %eax                     ## imm = 0x6C1
	cmovll	%eax, %ebx
	movl	$18, %r14d
	leaq	L_.str(%rip), %rdi
	movl	$18, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_deb_info
	cmpl	%r12d, %ebx
	setg	%al
	cmpl	$718, %ebx                      ## imm = 0x2CE
	setge	%cl
	testb	%cl, %al
	cmovnel	%r14d, %r13d
	cmovel	%r12d, %ebx
	movslq	(%r15), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$38, %rax
	addl	%ecx, %eax
	shll	$8, %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	$6, %eax
	addl	%ecx, %eax
	cltq
	imulq	$-1883757585, %rax, %rcx        ## imm = 0x8FB823EF
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$11, %ecx
	addl	%edx, %ecx
	imull	$3648, %ecx, %ecx               ## imm = 0xE40
	subl	%ecx, %eax
	movl	$3648, %r12d                    ## imm = 0xE40
	subl	%eax, %r12d
	cmpl	$1825, %eax                     ## imm = 0x721
	cmovll	%eax, %r12d
	movl	$19, %r14d
	leaq	L_.str(%rip), %rdi
	movl	$19, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_deb_info
	cmpl	%ebx, %r12d
	setg	%al
	cmpl	$718, %r12d                     ## imm = 0x2CE
	setge	%cl
	testb	%cl, %al
	cmovnel	%r14d, %r13d
	cmovel	%ebx, %r12d
	movslq	(%r15), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$38, %rax
	addl	%ecx, %eax
	shll	$8, %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	$6, %eax
	addl	%ecx, %eax
	cltq
	imulq	$-2004318071, %rax, %rcx        ## imm = 0x88888889
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$11, %ecx
	addl	%edx, %ecx
	imull	$3840, %ecx, %ecx               ## imm = 0xF00
	subl	%ecx, %eax
	movl	$3840, %ebx                     ## imm = 0xF00
	subl	%eax, %ebx
	cmpl	$1921, %eax                     ## imm = 0x781
	cmovll	%eax, %ebx
	movl	$20, %r15d
	leaq	L_.str(%rip), %rdi
	movl	$20, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_deb_info
	cmpl	$718, %ebx                      ## imm = 0x2CE
	cmovll	%r13d, %r15d
	cmpl	%r12d, %ebx
	cmovlel	%r13d, %r15d
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_deb_info
	movl	%r15d, %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	"PLL ratio=%i rest=%i\n"

L_.str.1:                               ## @.str.1
	.asciz	"optimal PLL ratio=%i\n"

	.no_dead_strip	_dib8090_compute_pll_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8090_compute_pll_parameters
_dib8090_compute_pll_parameters:        ; @dib8090_compute_pll_parameters
	.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
	mov	x19, x0
	ldrsw	x8, [x0]
	mov	w21, #19923
	movk	w21, #4194, lsl #16
	mul	x8, x8, x21
	lsr	x9, x8, #63
	lsr	x8, x8, #38
	add	w8, w8, w9
	lsl	w8, w8, #8
	smull	x8, w8, w21
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #6
	mov	w9, #41121
	movk	w9, #41120, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #11
	add	w9, w10, w9, lsr #31
	mov	w10, #3264
	msub	w8, w9, w10, w8
	sub	w9, w10, w8
	cmp	w8, #1632
	csel	w23, w9, w8, gt
	str	x23, [sp]
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	w24, #17
	mov	x0, x20
	mov	w1, #17
	bl	_deb_info
	mov	w22, #20
	cmp	w23, #717
	csel	w24, w24, w22, gt
	csel	w23, w23, wzr, gt
	ldrsw	x8, [x19]
	mul	x8, x8, x21
	lsr	x9, x8, #63
	lsr	x8, x8, #38
	add	w8, w8, w9
	lsl	w8, w8, #8
	smull	x8, w8, w21
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #6
	mov	w9, #4855
	movk	w9, #19418, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #10
	mov	w10, #3456
	msub	w8, w9, w10, w8
	sub	w9, w10, w8
	cmp	w8, #1728
	csel	w25, w9, w8, gt
	str	x25, [sp]
	mov	w26, #18
	mov	x0, x20
	mov	w1, #18
	bl	_deb_info
	cmp	w25, w23
	cset	w8, gt
	cmp	w25, #717
	cset	w9, gt
	tst	w8, w9
	csel	w24, w26, w24, ne
	csel	w23, w25, w23, ne
	ldrsw	x8, [x19]
	mul	x8, x8, x21
	lsr	x9, x8, #63
	lsr	x8, x8, #38
	add	w8, w8, w9
	lsl	w8, w8, #8
	smull	x8, w8, w21
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #6
	mov	w9, #9199
	movk	w9, #36792, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #11
	add	w9, w10, w9, lsr #31
	mov	w10, #3648
	msub	w8, w9, w10, w8
	sub	w9, w10, w8
	cmp	w8, #1824
	csel	w25, w9, w8, gt
	str	x25, [sp]
	mov	w26, #19
	mov	x0, x20
	mov	w1, #19
	bl	_deb_info
	cmp	w25, w23
	cset	w8, gt
	cmp	w25, #717
	cset	w9, gt
	tst	w8, w9
	csel	w24, w26, w24, ne
	csel	w23, w25, w23, ne
	ldrsw	x8, [x19]
	mul	x8, x8, x21
	lsr	x9, x8, #63
	lsr	x8, x8, #38
	add	w8, w8, w9
	lsl	w8, w8, #8
	smull	x8, w8, w21
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #6
	mov	w9, #34953
	movk	w9, #34952, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #11
	add	w9, w10, w9, lsr #31
	mov	w10, #3840
	msub	w8, w9, w10, w8
	sub	w9, w10, w8
	cmp	w8, #1920
	csel	w19, w9, w8, gt
	str	x19, [sp]
	mov	x0, x20
	mov	w1, #20
	bl	_deb_info
	cmp	w19, #717
	ccmp	w19, w23, #4, gt
	csel	w19, w22, w24, gt
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_deb_info
	mov	x0, x19
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLL ratio=%i rest=%i\n"

l_.str.1:                               ; @.str.1
	.asciz	"optimal PLL ratio=%i\n"

	.no_dead_strip	_dib8090_compute_pll_parameters
.subsections_via_symbols
