	.file	"extr_intel_fbc.c_g4x_fbc_activate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	g4x_fbc_activate, @function
g4x_fbc_activate:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 8[rdi]
	call	DPFC_CTL_PLANE@PLT
	mov	rdx, QWORD PTR 24[rbx]
	mov	ebp, DWORD PTR DPFC_CTL_LIMIT_1X[rip]
	or	eax, DWORD PTR DPFC_SR_EN[rip]
	mov	rdx, QWORD PTR [rdx]
	or	ebp, eax
	cmp	DWORD PTR [rdx], 2
	jne	.L3
	or	eax, DWORD PTR DPFC_CTL_LIMIT_2X[rip]
	mov	ebp, eax
.L3:
	mov	edi, DWORD PTR DPFC_FENCE_YOFF[rip]
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR PLANE_HAS_FENCE[rip], eax
	je	.L4
	mov	rax, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR 4[rbx]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	or	eax, DWORD PTR DPFC_CTL_FENCE_EN[rip]
	or	ebp, eax
	call	I915_WRITE@PLT
.L5:
	mov	esi, DWORD PTR DPFC_CTL_EN[rip]
	mov	edi, DWORD PTR DPFC_CONTROL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	or	esi, ebp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	I915_WRITE@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	esi, esi
	call	I915_WRITE@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	g4x_fbc_activate, .-g4x_fbc_activate
	.comm	PLANE_HAS_FENCE,4,4
	.comm	DPFC_SR_EN,4,4
	.comm	DPFC_FENCE_YOFF,4,4
	.comm	DPFC_CTL_LIMIT_2X,4,4
	.comm	DPFC_CTL_LIMIT_1X,4,4
	.comm	DPFC_CTL_FENCE_EN,4,4
	.comm	DPFC_CTL_EN,4,4
	.comm	DPFC_CONTROL,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_fbc.c_g4x_fbc_activate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	g4x_fbc_activate, %function
g4x_fbc_activate:
	@ 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	DPFC_CTL_PLANE
	ldr	r3, [r5, #16]
	ldr	r2, .L8
	ldr	r3, [r3]
	ldr	r4, [r2]
	ldr	r3, [r3]
	orr	r4, r0, r4
	cmp	r3, #2
	ldreq	r3, .L8+4
	ldrne	r3, .L8+8
	ldr	r1, [r5]
	ldr	r0, [r3]
	ldr	r3, .L8+12
	ldr	r2, .L8+16
	ldr	r3, [r3]
	orr	r4, r4, r0
	ands	r1, r1, r3
	ldrne	r3, [r5, #12]
	ldr	r0, [r2]
	ldrne	r3, [r3]
	ldrne	r2, .L8+20
	ldrne	r3, [r3]
	ldrne	r2, [r2]
	ldrne	r1, [r5, #4]
	orrne	r3, r3, r2
	orrne	r4, r4, r3
	bl	I915_WRITE
	ldr	r2, .L8+24
	ldr	r3, .L8+28
	ldr	r1, [r2]
	ldr	r0, [r3]
	orr	r1, r4, r1
	pop	{r4, r5, r6, lr}
	b	I915_WRITE
.L9:
	.align	2
.L8:
	.word	DPFC_SR_EN
	.word	DPFC_CTL_LIMIT_2X
	.word	DPFC_CTL_LIMIT_1X
	.word	PLANE_HAS_FENCE
	.word	DPFC_FENCE_YOFF
	.word	DPFC_CTL_FENCE_EN
	.word	DPFC_CTL_EN
	.word	DPFC_CONTROL
	.size	g4x_fbc_activate, .-g4x_fbc_activate
	.comm	PLANE_HAS_FENCE,4,4
	.comm	DPFC_SR_EN,4,4
	.comm	DPFC_FENCE_YOFF,4,4
	.comm	DPFC_CTL_LIMIT_2X,4,4
	.comm	DPFC_CTL_LIMIT_1X,4,4
	.comm	DPFC_CTL_FENCE_EN,4,4
	.comm	DPFC_CTL_EN,4,4
	.comm	DPFC_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
