	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrst_lvds_find_best_pll
_mrst_lvds_find_best_pll:               ## @mrst_lvds_find_best_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rdi, %rbx
	movq	%r8, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	16(%rbx), %rax
	movq	%rax, -72(%rbp)
	movq	24(%rbx), %rcx
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	cmpq	%rcx, %rax
	jle	LBB0_1
LBB0_8:
	xorl	%eax, %eax
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	setne	%al
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movslq	%r13d, %r14
	movq	8(%rbx), %rdx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax
	movq	24(%rbx), %rcx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rax), %rsi
	movq	%rsi, -72(%rbp)
	cmpq	%rcx, %rax
	movq	%rsi, %rax
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%rbx), %rsi
	movq	%rsi, -64(%rbp)
	cmpq	%rdx, %rsi
	jle	LBB0_3
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	-64(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -64(%rbp)
	movq	8(%rbx), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_6
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	leaq	-72(%rbp), %rsi
	callq	_mrst_lvds_clock
	movq	-56(%rbp), %rdi
	subq	%r14, %rdi
	callq	_abs
	cmpl	%r13d, %eax
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-56(%rbp), %rcx
	movq	%rcx, 16(%r15)
	movups	-72(%rbp), %xmm0
	movups	%xmm0, (%r15)
	movl	%eax, %r13d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mrst_lvds_find_best_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrst_lvds_find_best_pll
_mrst_lvds_find_best_pll:               ; @mrst_lvds_find_best_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	x20, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x0
	mov	x0, x4
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldp	x8, x9, [x22, #16]
	str	x8, [sp, #8]
	mov	x24, x19
	cmp	x8, x9
	b.le	LBB0_2
LBB0_1:
	cmp	w24, w19
	cset	w0, ne
	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
LBB0_2:
	sxtw	x23, w19
	ldr	x10, [x22, #8]
	mov	x24, x19
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x22, #24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x8, #1
	str	x11, [sp, #8]
	cmp	x8, x9
	mov	x8, x11
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x11, [x22]
	str	x11, [sp, #16]
	cmp	x11, x10
	b.le	LBB0_7
	b	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #16]
	add	x9, x8, #1
	str	x9, [sp, #16]
	ldr	x10, [x22, #8]
	cmp	x8, x10
	b.ge	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #8
	mov	x0, x21
	bl	_mrst_lvds_clock
	ldr	x8, [sp, #24]
	sub	x0, x8, x23
	bl	_abs
	cmp	w0, w24
	b.ge	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldur	q0, [sp, #8]
	str	q0, [x20]
	ldr	x8, [sp, #24]
	str	x8, [x20, #16]
	mov	x24, x0
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mrst_lvds_find_best_pll
.subsections_via_symbols
