	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_vlv_find_best_pll
_intel_vlv_find_best_pll:               ## @intel_vlv_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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -136(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r14d
                                        ## kill: def $edx killed $edx def $rdx
	movl	28(%rdi), %esi
	movslq	%ecx, %rax
	imulq	$458129845, %rax, %rcx          ## imm = 0x1B4E81B5
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$43, %rcx
	addl	%eax, %ecx
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	cmpl	%ecx, %esi
	jle	LBB0_1
LBB0_18:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rax)
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rax)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 12(%rax)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 16(%rax)
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r10
	leal	(%rdx,%rdx,4), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	20(%rdi), %ebx
	movl	24(%rdi), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leal	(%r14,%r14), %r12d
	movl	$1000000, %eax                  ## imm = 0xF4240
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rsi), %eax
	cmpl	-144(%rbp), %esi                ## 4-byte Folded Reload
	movl	%eax, %esi
	je	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##         Child Loop BB0_8 Depth 4
	movl	%r14d, %eax
	cltd
	idivl	%esi
	cmpl	-68(%rbp), %ebx                 ## 4-byte Folded Reload
	jle	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r11d
	movl	16(%r10), %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	incl	%eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	%esi, %eax
	imull	-72(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	jle	LBB0_17
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##         Child Loop BB0_8 Depth 4
	cmpl	$0, -152(%rbp)                  ## 4-byte Folded Reload
	js	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	8(%r10), %r8d
	movl	12(%r10), %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	leal	1(%rax), %ecx
	movl	%r11d, %eax
	imull	%r8d, %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	-80(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	movl	%r8d, -96(%rbp)                 ## 4-byte Spill
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=3
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	leal	-1(%rdx), %eax
	cmpl	$1, %edx
                                        ## kill: def $eax killed $eax def $rax
	movl	-96(%rbp), %r8d                 ## 4-byte Reload
	jle	LBB0_16
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_8 Depth 4
	cmpl	$11, %eax
	adcl	$-1, %eax
	cmpl	-160(%rbp), %r8d                ## 4-byte Folded Reload
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	jg	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=3
                                        ## kill: def $eax killed $eax killed $rax
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	-88(%rbp), %r15d                ## 4-byte Reload
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	imull	%eax, %r15d
	movl	(%r10), %r13d
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=4
	movq	-112(%rbp), %rax                ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-120(%rbp), %rax                ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=4
	movq	%r9, %r14
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=4
	incl	%r8d
	addl	%r11d, %ebx
	cmpl	%r8d, %ecx
	je	LBB0_15
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_6 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	%r15d, %eax
	cltd
	idivl	%r8d
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r14,%rax,2), %eax
	cltd
	idivl	%r12d
	movl	%eax, %esi
	movl	%ebx, %eax
	imull	%esi, %eax
	cmpl	%r13d, %eax
	jl	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=4
	cmpl	4(%r10), %eax
	jge	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=4
	movq	%r14, %r9
	cltd
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	idivl	%ecx
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	subl	%edi, %eax
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	cltd
	idivl	%edi
	cltq
	movq	%rax, %rdx
	negq	%rdx
	testl	%eax, %eax
	cmovneq	%rax, %rdx
	cmpq	$100, %rdx
	setb	%r14b
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	imull	-52(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	%eax, %ecx
	setg	%al
	andb	%r14b, %al
	movl	$0, %edi
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	cmovneq	%rdi, %rcx
	leaq	-10(%rcx), %rdi
	cmpq	%rdi, %rdx
	cmovbq	%rdx, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	jb	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=4
	testb	%al, %al
	je	LBB0_13
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_intel_vlv_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 intel_vlv_find_best_pll
_intel_vlv_find_best_pll:               ; @intel_vlv_find_best_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x5, [sp]                        ; 8-byte Folded Spill
	ldr	w8, [x0, #28]
	mov	w9, #33205
	movk	w9, #6990, lsl #16
	smull	x9, w3, w9
	lsr	x10, x9, #63
	asr	x9, x9, #43
	add	w9, w9, w10
	str	w9, [sp, #16]                   ; 4-byte Folded Spill
	cmp	w8, w9
	b.le	LBB0_3
; %bb.1:
	mov	w9, #0
	mov	w5, #0
	mov	w15, #0
	mov	w12, #0
	mov	w13, #0
LBB0_2:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	stp	w9, w5, [x8]
	stp	w15, w12, [x8, #8]
	str	w13, [x8, #16]
	mov	w0, #1
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	mov	w13, #0
	mov	w12, #0
	mov	w15, #0
	mov	w5, #0
	mov	w9, #0
	ldp	w20, w10, [x0, #20]
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
	lsl	w17, w3, #1
	mov	w1, #16960
	movk	w1, #15, lsl #16
	mov	w4, #16960
	movk	w4, #15, lsl #16
	add	w2, w2, w2, lsl #2
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w10, w8, #1
	ldp	w20, w11, [sp, #12]             ; 8-byte Folded Reload
	cmp	w8, w11
	mov	x8, x10
	b.eq	LBB0_2
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;         Child Loop BB0_15 Depth 4
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	cmp	w20, w10
	b.le	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x0, #16]
	str	w10, [sp, #24]                  ; 4-byte Folded Spill
	add	w10, w10, #1
	str	w10, [sp, #20]                  ; 4-byte Folded Spill
	mul	w19, w8, w2
	sdiv	w21, w3, w8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	sub	w20, w20, #1
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	cmp	w20, w10
	b.le	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;         Child Loop BB0_15 Depth 4
	ldr	w10, [sp, #24]                  ; 4-byte Folded Reload
	tbnz	w10, #31, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldp	w22, w23, [x0, #8]
	add	w24, w23, #1
	mul	w14, w21, w22
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=3
	subs	w10, w26, #1
	b.le	LBB0_7
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_15 Depth 4
	cmp	w10, #10
	cset	w11, hi
	sub	w26, w10, w11
	cmp	w22, w23
	b.gt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	mul	w27, w26, w20
	mul	w28, w19, w27
	ldr	w30, [x0]
	mov	x25, x14
	mov	x10, x22
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=4
	mov	x9, x8
	mov	x5, x10
	mov	x15, x11
	mov	x12, x20
	mov	x13, x26
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=4
	add	w10, w10, #1
	add	w25, w25, w21
	cmp	w24, w10
	b.eq	LBB0_10
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ;       Parent Loop BB0_11 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	sdiv	w11, w28, w10
	add	w11, w3, w11, lsl #1
	sdiv	w11, w11, w17
	mul	w7, w25, w11
	cmp	w7, w30
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=4
	ldr	w16, [x0, #4]
	cmp	w7, w16
	b.ge	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=4
	sdiv	w16, w7, w27
	sub	w16, w16, w2
	mul	w16, w16, w1
	sdiv	w16, w16, w2
	sxtw	x7, w16
	cmp	w16, #0
	cneg	x16, x7, eq
	cmp	x16, #100
	cset	w7, lo
	mul	w6, w13, w12
	cmp	w27, w6
	cset	w6, gt
	ands	w7, w7, w6
	csel	x4, xzr, x4, ne
	sub	x6, x4, #10
	cmp	x16, x6
	csel	x4, x16, x4, lo
	b.lo	LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=4
	tbz	w7, #0, LBB0_14
	b	LBB0_13
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_intel_vlv_find_best_pll
.subsections_via_symbols
