	.file	"extr_intel_pm.c_ironlake_disable_rc6.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ironlake_disable_rc6, @function
ironlake_disable_rc6:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR PWRCTXA[rip]
	call	I915_READ@PLT
	test	eax, eax
	jne	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR RSTDBYCTL[rip]
	call	I915_READ@PLT
	mov	edi, DWORD PTR RSTDBYCTL[rip]
	or	eax, DWORD PTR RCX_SW_EXIT[rip]
	mov	esi, eax
	call	I915_WRITE@PLT
	mov	edi, DWORD PTR RSTDBYCTL[rip]
	call	I915_READ@PLT
	xor	edi, edi
	and	eax, DWORD PTR RSX_STATUS_MASK[rip]
	cmp	eax, DWORD PTR RSX_STATUS_ON[rip]
	sete	dil
	mov	esi, 50
	call	wait_for@PLT
	mov	edi, DWORD PTR PWRCTXA[rip]
	xor	esi, esi
	call	I915_WRITE@PLT
	mov	edi, DWORD PTR PWRCTXA[rip]
	call	POSTING_READ@PLT
	mov	edi, DWORD PTR RSTDBYCTL[rip]
	call	I915_READ@PLT
	mov	esi, DWORD PTR RCX_SW_EXIT[rip]
	mov	edi, DWORD PTR RSTDBYCTL[rip]
	not	esi
	and	esi, eax
	call	I915_WRITE@PLT
	mov	edi, DWORD PTR RSTDBYCTL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	POSTING_READ@PLT
	.cfi_endproc
.LFE0:
	.size	ironlake_disable_rc6, .-ironlake_disable_rc6
	.comm	RSX_STATUS_ON,4,4
	.comm	RSX_STATUS_MASK,4,4
	.comm	RSTDBYCTL,4,4
	.comm	RCX_SW_EXIT,4,4
	.comm	PWRCTXA,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_pm.c_ironlake_disable_rc6.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ironlake_disable_rc6, %function
ironlake_disable_rc6:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L5
	ldr	r0, [r4]
	bl	I915_READ
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r5, .L5+4
	ldr	r6, .L5+8
	ldr	r7, [r5]
	mov	r0, r7
	bl	I915_READ
	mov	r1, r0
	ldr	r3, [r6]
	mov	r0, r7
	orr	r1, r1, r3
	bl	I915_WRITE
	ldr	r0, [r5]
	bl	I915_READ
	ldr	r2, .L5+12
	ldr	r3, .L5+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	and	r0, r0, r2
	sub	r0, r0, r3
	clz	r0, r0
	mov	r1, #50
	lsr	r0, r0, #5
	bl	wait_for
	mov	r1, #0
	ldr	r0, [r4]
	bl	I915_WRITE
	ldr	r0, [r4]
	bl	POSTING_READ
	ldr	r4, [r5]
	mov	r0, r4
	bl	I915_READ
	mov	r3, r0
	ldr	r1, [r6]
	mov	r0, r4
	bic	r1, r3, r1
	bl	I915_WRITE
	ldr	r0, [r5]
	pop	{r4, r5, r6, r7, r8, lr}
	b	POSTING_READ
.L6:
	.align	2
.L5:
	.word	PWRCTXA
	.word	RSTDBYCTL
	.word	RCX_SW_EXIT
	.word	RSX_STATUS_MASK
	.word	RSX_STATUS_ON
	.size	ironlake_disable_rc6, .-ironlake_disable_rc6
	.comm	RSX_STATUS_ON,4,4
	.comm	RSX_STATUS_MASK,4,4
	.comm	RSTDBYCTL,4,4
	.comm	RCX_SW_EXIT,4,4
	.comm	PWRCTXA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
