	.file	"extr_i915_gem.c_i915_gem_sw_finish_ioctl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	i915_gem_sw_finish_ioctl
	.type	i915_gem_sw_finish_ioctl, @function
i915_gem_sw_finish_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	i915_mutex_lock_interruptible@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L8
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.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
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, DWORD PTR [rbx]
	mov	rsi, r13
	mov	rdi, rbp
	call	drm_gem_object_lookup@PLT
	mov	edi, eax
	call	to_intel_bo@PLT
	mov	r13, rax
	test	rax, rax
	je	.L9
	cmp	QWORD PTR 8[rax], 0
	jne	.L10
.L5:
	mov	rdi, r13
	call	drm_gem_object_unreference@PLT
.L4:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.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
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rax
	call	i915_gem_object_flush_cpu_write_domain@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	i915_gem_sw_finish_ioctl, .-i915_gem_sw_finish_ioctl
	.comm	ENOENT,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.c_i915_gem_sw_finish_ioctl.c"
	.text
	.align	2
	.global	i915_gem_sw_finish_ioctl
	.syntax unified
	.arm
	.fpu softvfp
	.type	i915_gem_sw_finish_ioctl, %function
i915_gem_sw_finish_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r5, r2
	mov	r7, r0
	bl	i915_mutex_lock_interruptible
	subs	r4, r0, #0
	beq	.L11
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r1, r5
	ldr	r2, [r6]
	mov	r0, r7
	bl	drm_gem_object_lookup
	bl	to_intel_bo
	subs	r5, r0, #0
	beq	.L12
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L13
.L5:
	mov	r0, r5
	bl	drm_gem_object_unreference
.L4:
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	bl	i915_gem_object_flush_cpu_write_domain
	b	.L5
.L12:
	ldr	r3, .L14
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L4
.L15:
	.align	2
.L14:
	.word	ENOENT
	.size	i915_gem_sw_finish_ioctl, .-i915_gem_sw_finish_ioctl
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
