	.file	"extr_intel_display.c_hsw_crtc_state_ips_capable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hsw_crtc_state_ips_capable
	.type	hsw_crtc_state_ips_capable, @function
hsw_crtc_state_ips_capable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR 8[rdi]
	call	to_intel_crtc@PLT
	mov	edi, DWORD PTR [rax]
	mov	rbp, rax
	call	to_i915@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	hsw_crtc_supports_ips@PLT
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR i915_modparams[rip]
	test	eax, eax
	je	.L1
	xor	eax, eax
	cmp	DWORD PTR [rbx], 24
	jg	.L1
	mov	rdi, r12
	call	IS_BROADWELL@PLT
	mov	r8, rax
	mov	eax, 1
	test	r8, r8
	je	.L1
	imul	edx, DWORD PTR [r12], 95
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1374389535
	sar	rax, 37
	sub	eax, edx
	cmp	DWORD PTR 4[rbx], eax
	setle	al
	movzx	eax, al
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	hsw_crtc_state_ips_capable, .-hsw_crtc_state_ips_capable
	.comm	i915_modparams,4,4
	.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_hsw_crtc_state_ips_capable.c"
	.text
	.align	2
	.global	hsw_crtc_state_ips_capable
	.syntax unified
	.arm
	.fpu softvfp
	.type	hsw_crtc_state_ips_capable, %function
hsw_crtc_state_ips_capable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0, #8]
	bl	to_intel_crtc
	mov	r4, r0
	ldr	r0, [r0]
	bl	to_i915
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	hsw_crtc_supports_ips
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L13
	ldr	r0, [r3]
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r5]
	cmp	r3, #24
	bgt	.L3
	mov	r0, r4
	bl	IS_BROADWELL
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r4]
	ldr	r2, .L13+4
	add	r0, r3, r3, lsl #1
	rsb	r3, r3, r0, lsl #5
	smull	r1, r2, r3, r2
	ldr	r0, [r5, #4]
	asr	r3, r3, #31
	rsb	r3, r3, r2, asr #5
	cmp	r0, r3
	movgt	r0, #0
	movle	r0, #1
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	i915_modparams
	.word	1374389535
	.size	hsw_crtc_state_ips_capable, .-hsw_crtc_state_ips_capable
	.comm	i915_modparams,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
