	.file	"extr_i915_gem_execbuffer.c_reloc_gpu_flush.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	reloc_gpu_flush, @function
reloc_gpu_flush:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, rdi
	movsx	rdx, DWORD PTR [rdi]
	xor	edi, edi
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	movsx	rax, DWORD PTR [rax]
	shr	rax, 2
	cmp	rdx, rax
	setnb	dil
	call	GEM_BUG_ON@PLT
	mov	ecx, DWORD PTR MI_BATCH_BUFFER_END[rip]
	movsx	rdx, DWORD PTR [rbx]
	xor	esi, esi
	mov	rax, QWORD PTR 16[rbx]
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR 8[rbx]
	movsx	rdx, DWORD PTR [rbx]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, QWORD PTR [rax]
	call	__i915_gem_object_flush_map@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, QWORD PTR [rax]
	call	i915_gem_object_unpin_map@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	intel_gt_chipset_flush@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	i915_request_add@PLT
	mov	QWORD PTR 8[rbx], 0
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	reloc_gpu_flush, .-reloc_gpu_flush
	.comm	MI_BATCH_BUFFER_END,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_execbuffer.c_reloc_gpu_flush.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reloc_gpu_flush, %function
reloc_gpu_flush:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r2, [r0, #4]
	ldr	r3, [r0]
	ldr	r2, [r2, #4]
	ldr	r2, [r2]
	ldr	r2, [r2]
	cmp	r3, r2, lsr #2
	movcs	r0, #1
	movcc	r0, #0
	bl	GEM_BUG_ON
	ldm	r4, {r1, r3}
	ldr	r0, .L4
	ldr	r2, [r4, #8]
	ldr	r0, [r0]
	ldr	r3, [r3, #4]
	str	r0, [r2, r1, lsl #2]
	ldr	r2, [r4]
	mov	r1, #0
	ldr	r0, [r3]
	bl	__i915_gem_object_flush_map
	ldr	r3, [r4, #4]
	ldr	r3, [r3, #4]
	ldr	r0, [r3]
	bl	i915_gem_object_unpin_map
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	intel_gt_chipset_flush
	ldr	r0, [r4, #4]
	bl	i915_request_add
	mov	r3, #0
	str	r3, [r4, #4]
	pop	{r4, pc}
.L5:
	.align	2
.L4:
	.word	MI_BATCH_BUFFER_END
	.size	reloc_gpu_flush, .-reloc_gpu_flush
	.comm	MI_BATCH_BUFFER_END,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
