	.file	"extr_i915_gem_context.c_gen8_emit_rpcs_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gen8_emit_rpcs_config, @function
gen8_emit_rpcs_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	mov	esi, 4
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	DWORD PTR 12[rsp], edx
	call	intel_ring_begin@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L6
	mov	edi, DWORD PTR [r12]
	call	i915_ggtt_offset@PLT
	mov	r12d, DWORD PTR LRC_STATE_PN[rip]
	imul	r12d, DWORD PTR PAGE_SIZE[rip]
	movsx	r12, r12d
	add	r12, rax
	mov	eax, DWORD PTR CTX_R_PWR_CLK_STATE[rip]
	lea	edi, 4[0+rax*4]
	mov	eax, DWORD PTR MI_STORE_DWORD_IMM_GEN4[rip]
	or	eax, DWORD PTR MI_USE_GGTT[rip]
	mov	DWORD PTR 0[rbp], eax
	movsx	rdi, edi
	add	r12, rdi
	mov	rdi, r12
	call	lower_32_bits@PLT
	mov	rdi, r12
	mov	DWORD PTR 4[rbp], eax
	call	upper_32_bits@PLT
	lea	rsi, 12[rsp]
	mov	DWORD PTR 8[rbp], eax
	mov	edi, DWORD PTR 0[r13]
	call	intel_sseu_make_rpcs@PLT
	lea	rsi, 16[rbp]
	mov	rdi, r13
	mov	DWORD PTR 12[rbp], eax
	call	intel_ring_advance@PLT
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	PTR_ERR@PLT
	add	rsp, 16
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	gen8_emit_rpcs_config, .-gen8_emit_rpcs_config
	.comm	PAGE_SIZE,4,4
	.comm	MI_USE_GGTT,4,4
	.comm	MI_STORE_DWORD_IMM_GEN4,4,4
	.comm	LRC_STATE_PN,4,4
	.comm	CTX_R_PWR_CLK_STATE,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_i915_gem_context.c_gen8_emit_rpcs_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gen8_emit_rpcs_config, %function
gen8_emit_rpcs_config:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r1
	sub	sp, sp, #12
	mov	r1, #4
	str	r2, [sp, #4]
	mov	r7, r0
	bl	intel_ring_begin
	mov	r4, r0
	bl	IS_ERR
	subs	r6, r0, #0
	bne	.L6
	ldr	r0, [r5]
	bl	i915_ggtt_offset
	ldr	r2, .L7
	ldr	r3, .L7+4
	ldr	r5, [r2]
	ldr	r3, [r3]
	ldr	r1, .L7+8
	mla	r5, r3, r5, r0
	ldr	r2, .L7+12
	ldr	r3, .L7+16
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	add	r0, r0, #1
	orr	r3, r3, r2
	add	r5, r5, r0, lsl #2
	str	r3, [r4]
	mov	r0, r5
	bl	lower_32_bits
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #4]
	bl	upper_32_bits
	str	r0, [r4, #8]
	add	r1, sp, #4
	ldr	r0, [r7]
	bl	intel_sseu_make_rpcs
	add	r1, r4, #16
	str	r0, [r4, #12]
	mov	r0, r7
	bl	intel_ring_advance
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r0, r4
	bl	PTR_ERR
	mov	r6, r0
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	.align	2
.L7:
	.word	LRC_STATE_PN
	.word	PAGE_SIZE
	.word	CTX_R_PWR_CLK_STATE
	.word	MI_USE_GGTT
	.word	MI_STORE_DWORD_IMM_GEN4
	.size	gen8_emit_rpcs_config, .-gen8_emit_rpcs_config
	.comm	PAGE_SIZE,4,4
	.comm	MI_USE_GGTT,4,4
	.comm	MI_STORE_DWORD_IMM_GEN4,4,4
	.comm	LRC_STATE_PN,4,4
	.comm	CTX_R_PWR_CLK_STATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
