	.file	"extr_intel_display.c_vlv_PLL_is_optimal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vlv_PLL_is_optimal, @function
vlv_PLL_is_optimal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, r9
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	to_i915@PLT
	mov	edi, eax
	call	IS_CHERRYVIEW@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR 0[r13]
	cmp	QWORD PTR [rbx], rax
	mov	DWORD PTR [r12], 0
	setg	al
	movzx	eax, al
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	edi, edi
	test	ebp, ebp
	sete	dil
	call	WARN_ON_ONCE@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	jne	.L1
	movsx	rdi, ebp
	sub	rdi, QWORD PTR 8[rbx]
	call	abs@PLT
	mov	esi, ebp
	imul	rdi, rax, 1000000
	call	div_u64@PLT
	mov	DWORD PTR [r12], eax
	cmp	eax, 99
	ja	.L4
	mov	rdx, QWORD PTR 0[r13]
	cmp	QWORD PTR [rbx], rdx
	jg	.L8
.L4:
	add	eax, 10
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	cmp	eax, r14d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	setb	al
	pop	r14
	.cfi_def_cfa_offset 8
	movzx	eax, al
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	DWORD PTR [r12], 0
	mov	eax, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vlv_PLL_is_optimal, .-vlv_PLL_is_optimal
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_intel_display.c_vlv_PLL_is_optimal.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vlv_PLL_is_optimal, %function
vlv_PLL_is_optimal:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r2
	mov	r7, r3
	bl	to_i915
	bl	IS_CHERRYVIEW
	subs	r4, r0, #0
	beq	.L2
	ldr	r4, [r6]
	ldr	r0, [r7]
	mov	r3, #0
	cmp	r4, r0
	movle	r4, #0
	movgt	r4, #1
	ldr	r2, [sp, #28]
	str	r3, [r2]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	clz	r0, r5
	lsr	r0, r0, #5
	bl	WARN_ON_ONCE
	cmp	r0, #0
	bne	.L1
	ldr	r0, [r6, #4]
	sub	r0, r5, r0
	bl	abs
	lsl	r2, r0, #5
	lsl	r3, r1, #5
	subs	r2, r2, r0
	orr	r3, r3, r0, lsr #27
	sbc	r3, r3, r1
	lsl	ip, r2, #9
	lsl	r3, r3, #9
	orr	r3, r3, r2, lsr #23
	adds	r2, ip, r0
	adc	r3, r3, r1
	lsl	lr, r3, #6
	lsl	ip, r2, #6
	orr	lr, lr, r2, lsr #26
	subs	r2, ip, r2
	sbc	r3, lr, r3
	adds	r0, r2, r0
	adc	r1, r3, r1
	mov	r2, r5
	bl	div_u64
	ldr	r3, [sp, #28]
	cmp	r0, #99
	str	r0, [r3]
	bhi	.L4
	ldr	r2, [r6]
	ldr	r3, [r7]
	cmp	r2, r3
	bgt	.L7
.L4:
	ldr	r3, [sp, #24]
	add	r0, r0, #10
	cmp	r0, r3
	movcs	r4, #0
	movcc	r4, #1
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, [sp, #28]
	str	r4, [r3]
	mov	r4, #1
	b	.L1
	.size	vlv_PLL_is_optimal, .-vlv_PLL_is_optimal
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
