	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_request_unsubmit        ## -- Begin function __i915_request_unsubmit
	.p2align	4, 0x90
___i915_request_unsubmit:               ## @__i915_request_unsubmit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %r15d
	leaq	20(%rdi), %r12
	movl	24(%rdi), %r13d
	movl	28(%rdi), %r14d
	callq	_hwsp_seqno
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_GEM_TRACE
	xorl	%eax, %eax
	callq	_irqs_disabled
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_lockdep_assert_held
	leaq	16(%rbx), %r15
	movq	_SINGLE_DEPTH_NESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_spin_lock_nested
	movq	_DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_i915_request_cancel_breadcrumb
LBB0_2:
	movq	_I915_FENCE_FLAG_ACTIVE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_GEM_BUG_ON
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	%r15, %rdi
	callq	_spin_unlock
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_i915_request_started
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_I915_PRIORITY_NOSEMAPHORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	$0, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s fence %llx:%lld, current %d\n"

	.comm	_SINGLE_DEPTH_NESTING,4,2       ## @SINGLE_DEPTH_NESTING
	.comm	_DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,4,2 ## @DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT
	.comm	_I915_FENCE_FLAG_ACTIVE,4,2     ## @I915_FENCE_FLAG_ACTIVE
	.comm	_I915_PRIORITY_NOSEMAPHORE,4,2  ## @I915_PRIORITY_NOSEMAPHORE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_request_unsubmit        ; -- Begin function __i915_request_unsubmit
	.p2align	2
___i915_request_unsubmit:               ; @__i915_request_unsubmit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x21, [x0, #32]
	ldr	w22, [x21, #4]
	add	x20, x0, #20
	ldp	w24, w23, [x0, #24]
	bl	_hwsp_seqno
	mov	x4, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_GEM_TRACE
	bl	_irqs_disabled
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x21
	bl	_lockdep_assert_held
	add	x21, x19, #16
Lloh2:
	adrp	x8, _SINGLE_DEPTH_NESTING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SINGLE_DEPTH_NESTING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_spin_lock_nested
Lloh5:
	adrp	x8, _DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_i915_request_cancel_breadcrumb
LBB0_2:
Lloh8:
	adrp	x22, _I915_FENCE_FLAG_ACTIVE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _I915_FENCE_FLAG_ACTIVE@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_test_bit
	cmp	x0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	w0, [x22]
	mov	x1, x20
	bl	_clear_bit
	mov	x0, x21
	bl	_spin_unlock
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_i915_request_started
	cbz	x0, LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _I915_PRIORITY_NOSEMAPHORE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I915_PRIORITY_NOSEMAPHORE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	str	xzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s fence %llx:%lld, current %d\n"

	.comm	_SINGLE_DEPTH_NESTING,4,2       ; @SINGLE_DEPTH_NESTING
	.comm	_DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,4,2 ; @DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT
	.comm	_I915_FENCE_FLAG_ACTIVE,4,2     ; @I915_FENCE_FLAG_ACTIVE
	.comm	_I915_PRIORITY_NOSEMAPHORE,4,2  ; @I915_PRIORITY_NOSEMAPHORE
.subsections_via_symbols
