	.file	"extr_i915_request.c___i915_request_unsubmit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s fence %llx:%lld, current %d\n"
	.text
	.p2align 4
	.globl	__i915_request_unsubmit
	.type	__i915_request_unsubmit, @function
__i915_request_unsubmit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR 32[rdi]
	mov	rbx, rdi
	lea	r12, 16[rbx]
	call	hwsp_seqno@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	ecx, DWORD PTR 24[rbx]
	lea	rdi, .LC0[rip]
	mov	edx, DWORD PTR 28[rbx]
	mov	r8d, eax
	call	GEM_TRACE@PLT
	xor	eax, eax
	call	irqs_disabled@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	GEM_BUG_ON@PLT
	mov	rdi, rbp
	lea	rbp, 20[rbx]
	call	lockdep_assert_held@PLT
	mov	esi, DWORD PTR SINGLE_DEPTH_NESTING[rip]
	mov	rdi, r12
	call	spin_lock_nested@PLT
	mov	edi, DWORD PTR DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	test	rax, rax
	jne	.L14
.L2:
	mov	edi, DWORD PTR I915_FENCE_FLAG_ACTIVE[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	GEM_BUG_ON@PLT
	mov	edi, DWORD PTR I915_FENCE_FLAG_ACTIVE[rip]
	mov	rsi, rbp
	call	clear_bit@PLT
	mov	rdi, r12
	call	spin_unlock@PLT
	cmp	QWORD PTR [rbx], 0
	jne	.L15
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rbx
	call	i915_request_cancel_breadcrumb@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbx
	call	i915_request_started@PLT
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR I915_PRIORITY_NOSEMAPHORE[rip]
	mov	QWORD PTR [rbx], 0
	or	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	__i915_request_unsubmit, .-__i915_request_unsubmit
	.comm	SINGLE_DEPTH_NESTING,4,4
	.comm	I915_PRIORITY_NOSEMAPHORE,4,4
	.comm	I915_FENCE_FLAG_ACTIVE,4,4
	.comm	DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,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_request.c___i915_request_unsubmit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s fence %llx:%lld, current %d\012\000"
	.text
	.align	2
	.global	__i915_request_unsubmit
	.syntax unified
	.arm
	.fpu softvfp
	.type	__i915_request_unsubmit, %function
__i915_request_unsubmit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0, #24]
	sub	sp, sp, #8
	mov	r4, r0
	ldr	r6, [r0, #20]
	ldr	r8, [r5, #4]
	ldr	r7, [r0, #16]
	bl	hwsp_seqno
	mov	r2, r6
	mov	r1, r8
	mov	r3, r7
	str	r0, [sp]
	ldr	r0, .L16
	bl	GEM_TRACE
	bl	irqs_disabled
	clz	r0, r0
	lsr	r0, r0, #5
	bl	GEM_BUG_ON
	mov	r0, r5
	bl	lockdep_assert_held
	ldr	r3, .L16+4
	add	r6, r4, #8
	ldr	r1, [r3]
	mov	r0, r6
	bl	spin_lock_nested
	ldr	r3, .L16+8
	add	r5, r4, #12
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L14
.L2:
	ldr	r7, .L16+12
	mov	r1, r5
	ldr	r0, [r7]
	bl	test_bit
	clz	r0, r0
	lsr	r0, r0, #5
	bl	GEM_BUG_ON
	mov	r1, r5
	ldr	r0, [r7]
	bl	clear_bit
	mov	r0, r6
	bl	spin_unlock
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L15
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r4
	bl	i915_request_cancel_breadcrumb
	b	.L2
.L15:
	mov	r0, r4
	bl	i915_request_started
	cmp	r0, #0
	beq	.L1
	mov	r1, #0
	ldr	r2, .L16+16
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	str	r1, [r4]
	orr	r3, r3, r2
	str	r3, [r4, #4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	SINGLE_DEPTH_NESTING
	.word	DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT
	.word	I915_FENCE_FLAG_ACTIVE
	.word	I915_PRIORITY_NOSEMAPHORE
	.size	__i915_request_unsubmit, .-__i915_request_unsubmit
	.comm	SINGLE_DEPTH_NESTING,4,4
	.comm	I915_PRIORITY_NOSEMAPHORE,4,4
	.comm	I915_FENCE_FLAG_ACTIVE,4,4
	.comm	DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
