	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_PLL_is_optimal
_vlv_PLL_is_optimal:                    ## @vlv_PLL_is_optimal
	.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	%r9, %r12
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rdx, %r13
	movl	%esi, %ebx
	callq	_to_i915
	movl	%eax, %edi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$0, (%r12)
	movq	(%r13), %rax
	cmpq	(%r15), %rax
	setg	%al
	jmp	LBB0_8
LBB0_2:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movslq	%ebx, %rax
	subq	8(%r13), %rax
	movq	%rax, %rcx
	negq	%rcx
	cmovsq	%rax, %rcx
	imulq	$1000000, %rcx, %rdi            ## imm = 0xF4240
	movl	%ebx, %esi
	callq	_div_u64
	movl	%eax, (%r12)
	cmpl	$99, %eax
	ja	LBB0_7
## %bb.5:
	movq	(%r13), %rcx
	cmpq	(%r15), %rcx
	jle	LBB0_7
## %bb.6:
	movl	$0, (%r12)
	movb	$1, %al
	jmp	LBB0_8
LBB0_7:
	addl	$10, %eax
	cmpl	%r14d, %eax
	setb	%al
LBB0_8:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vlv_PLL_is_optimal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_PLL_is_optimal
_vlv_PLL_is_optimal:                    ; @vlv_PLL_is_optimal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	bl	_to_i915
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_2
; %bb.1:
	str	wzr, [x19]
	ldr	x8, [x22]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, gt
	b	LBB0_8
LBB0_2:
	cmp	w23, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	sxtw	x8, w23
	ldr	x9, [x22, #8]
	subs	x8, x8, x9
	cneg	x8, x8, mi
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	x0, x8, x9
	mov	x1, x23
	bl	_div_u64
	str	w0, [x19]
	cmp	w0, #99
	b.hi	LBB0_7
; %bb.5:
	ldr	x8, [x22]
	ldr	x9, [x21]
	cmp	x8, x9
	b.le	LBB0_7
; %bb.6:
	str	wzr, [x19]
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	add	w8, w0, #10
	cmp	w8, w20
	cset	w0, lo
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vlv_PLL_is_optimal
.subsections_via_symbols
