	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_request_submit          ## -- Begin function __i915_request_submit
	.p2align	4, 0x90
___i915_request_submit:                 ## @__i915_request_submit
	.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	48(%rdi), %r14
	movl	28(%r14), %r15d
	movl	8(%rdi), %r12d
	movl	12(%rdi), %r13d
	callq	_hwsp_seqno
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_GEM_TRACE
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_irqs_disabled
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	leaq	4(%r14), %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_i915_request_completed
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movl	44(%rbx), %edi
	callq	_i915_gem_context_is_banned
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i915_request_skip
LBB0_3:
	cmpl	$0, 20(%rbx)
	je	LBB0_6
## %bb.4:
	leaq	40(%rbx), %rdi
	callq	_i915_sw_fence_signaled
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	20(%rbx), %eax
	orl	%eax, 24(%r14)
LBB0_6:
	movq	24(%rbx), %rsi
	movq	32(%rbx), %rax
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	*16(%r14)
	movq	%rbx, %rdi
	callq	_trace_i915_request_execute
	incl	8(%r14)
	movl	$1, %r15d
LBB0_7:
	movq	_SINGLE_DEPTH_NESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_spin_lock_nested
	movq	_I915_FENCE_FLAG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r12
	movq	%r12, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	leaq	16(%rbx), %rdi
	movq	%r14, %rsi
	callq	_list_move_tail
LBB0_9:
	movq	_DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	_DMA_FENCE_FLAG_SIGNALED_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	callq	_i915_request_enable_breadcrumb
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_intel_engine_queue_breadcrumbs
LBB0_13:
	movq	%rbx, %rdi
	callq	___notify_execute_cb
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	%r15d, %eax
	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	_EIO,4,2                        ## @EIO
	.comm	_SINGLE_DEPTH_NESTING,4,2       ## @SINGLE_DEPTH_NESTING
	.comm	_I915_FENCE_FLAG_ACTIVE,4,2     ## @I915_FENCE_FLAG_ACTIVE
	.comm	_DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,4,2 ## @DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT
	.comm	_DMA_FENCE_FLAG_SIGNALED_BIT,4,2 ## @DMA_FENCE_FLAG_SIGNALED_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_request_submit          ; -- Begin function __i915_request_submit
	.p2align	2
___i915_request_submit:                 ; @__i915_request_submit
	.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	x20, [x0, #48]
	ldr	w21, [x20, #28]
	ldp	w23, w22, [x0, #8]
	bl	_hwsp_seqno
	mov	x4, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_GEM_TRACE
	bl	_irqs_disabled
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	add	x0, x20, #4
	bl	_lockdep_assert_held
	mov	x0, x19
	bl	_i915_request_completed
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_8
LBB0_2:
	ldr	w0, [x19, #44]
	bl	_i915_gem_context_is_banned
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x19
	bl	_i915_request_skip
LBB0_4:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_7
; %bb.5:
	add	x0, x19, #40
	bl	_i915_sw_fence_signaled
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w8, [x19, #20]
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
LBB0_7:
	ldr	x8, [x20, #16]
	ldp	x10, x9, [x19, #24]
	ldr	x9, [x9]
	add	x1, x10, x9
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_trace_i915_request_execute
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	w21, #1
LBB0_8:
Lloh5:
	adrp	x8, _SINGLE_DEPTH_NESTING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SINGLE_DEPTH_NESTING@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_spin_lock_nested
Lloh8:
	adrp	x8, _I915_FENCE_FLAG_ACTIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I915_FENCE_FLAG_ACTIVE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x22, x19, #4
	mov	x1, x22
	bl	_test_and_set_bit
	cbnz	w0, LBB0_10
; %bb.9:
	add	x0, x19, #16
	mov	x1, x20
	bl	_list_move_tail
LBB0_10:
Lloh11:
	adrp	x8, _DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_14
; %bb.11:
Lloh14:
	adrp	x8, _DMA_FENCE_FLAG_SIGNALED_BIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMA_FENCE_FLAG_SIGNALED_BIT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbnz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_i915_request_enable_breadcrumb
	cbnz	w0, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_intel_engine_queue_breadcrumbs
LBB0_14:
	mov	x0, x19
	bl	___notify_execute_cb
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s fence %llx:%lld, current %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_SINGLE_DEPTH_NESTING,4,2       ; @SINGLE_DEPTH_NESTING
	.comm	_I915_FENCE_FLAG_ACTIVE,4,2     ; @I915_FENCE_FLAG_ACTIVE
	.comm	_DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,4,2 ; @DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT
	.comm	_DMA_FENCE_FLAG_SIGNALED_BIT,4,2 ; @DMA_FENCE_FLAG_SIGNALED_BIT
.subsections_via_symbols
