	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_gem_do_execbuffer
_i915_gem_do_execbuffer:                ## @i915_gem_do_execbuffer
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -184(%rbp)                ## 8-byte Spill
	callq	_to_i915
	movq	%rax, %r15
	movq	___EXEC_INTERNAL_FLAGS@GOTPCREL(%rip), %rax
	movq	___I915_EXEC_ILLEGAL_FLAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	(%rax), %edi
	callq	_BUILD_BUG_ON
	movq	___EXEC_OBJECT_INTERNAL_FLAGS@GOTPCREL(%rip), %rax
	movq	___EXEC_OBJECT_UNKNOWN_FLAGS@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	notl	%edi
	andl	(%rax), %edi
	callq	_BUILD_BUG_ON
	movq	%r15, -88(%rbp)
	movq	%r12, -64(%rbp)
	movq	%r14, -72(%rbp)
	movq	_DBG_FORCE_RELOC@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	(%r14), %eax
	je	LBB0_1
LBB0_2:
	movq	___EXEC_HAS_RELOC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_3
LBB0_1:
	movq	_I915_EXEC_NO_RELOC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_3:
	movq	%rbx, -136(%rbp)
	movslq	4(%r14), %rax
	leaq	(%rbx,%rax,4), %rcx
	leaq	(%rbx,%rax,4), %rdx
	addq	$4, %rdx
	movq	%rdx, -80(%rbp)
	movq	$0, 4(%rbx,%rax,4)
	leaq	12(%rcx,%rax,8), %rax
	movq	%rax, -176(%rbp)
	movl	(%r13), %eax
	movl	%eax, -168(%rbp)
	leaq	-100(%rbp), %rdi
	movq	%r15, %rsi
	callq	_reloc_cache_init
	movl	4(%r14), %eax
	movl	%eax, -164(%rbp)
	movups	8(%r14), %xmm0
	movups	%xmm0, -160(%rbp)
	movl	$0, -144(%rbp)
	movl	(%r14), %eax
	movq	_I915_EXEC_SECURE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_8
## %bb.6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	xorl	%ecx, %ecx
LBB0_13:
	movq	_I915_EXEC_IS_PINNED@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_15
## %bb.14:
	movq	_I915_DISPATCH_PINNED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, -144(%rbp)
LBB0_15:
	movq	_I915_EXEC_FENCE_IN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.16:
	movl	24(%r14), %edi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_sync_file_get_fence
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %rbx
	movl	(%r14), %eax
	movq	_I915_EXEC_FENCE_SUBMIT@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %r15d
	jmp	LBB0_84
LBB0_8:
	movq	%r15, %rdi
	callq	_HAS_SECURE_BATCHES
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%r12, %rdi
	callq	_drm_is_current_master
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_9
## %bb.12:
	movq	_I915_DISPATCH_SECURE@GOTPCREL(%rip), %rax
	movl	-144(%rbp), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -144(%rbp)
	movl	(%r14), %eax
	jmp	LBB0_13
LBB0_9:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_20:
	movq	_I915_EXEC_FENCE_SUBMIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.22:
	movl	24(%r14), %edi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_sync_file_get_fence
	testq	%rax, %rax
	je	LBB0_86
## %bb.23:
	movq	%rax, %r13
	movl	(%r14), %eax
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_85
LBB0_21:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
LBB0_24:
	movq	_I915_EXEC_FENCE_OUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.26:
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_unused_fd_flags
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_27
	jmp	LBB0_83
LBB0_25:
	movl	$-1, %eax
LBB0_27:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	-176(%rbp), %rdi
	callq	_eb_create
	testl	%eax, %eax
	je	LBB0_29
## %bb.28:
	movl	%eax, %r15d
	jmp	LBB0_81
LBB0_29:
	xorl	%edi, %edi
	cmpl	$0, -96(%rbp)
	sete	%dil
	callq	_GEM_BUG_ON
	leaq	-176(%rbp), %rdi
	callq	_eb_select_context
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_80
## %bb.30:
	leaq	-176(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_eb_pin_engine
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_79
## %bb.31:
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	callq	_i915_mutex_lock_interruptible
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	movl	%eax, %r15d
	jmp	LBB0_78
LBB0_86:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_84
LBB0_33:
	leaq	-176(%rbp), %rdi
	callq	_eb_relocate
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:
	movl	%eax, %r15d
	movq	___EXEC_HAS_RELOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	jmp	LBB0_75
LBB0_35:
	movq	-128(%rbp), %rax
	movq	(%rax), %rax
	movq	_EXEC_OBJECT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_38
## %bb.36:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_37
LBB0_38:
	movq	-128(%rbp), %rax
	movq	8(%rax), %rax
	subq	-160(%rbp), %rax
	jl	LBB0_40
## %bb.39:
	movq	-152(%rbp), %rcx
	cmpq	%rax, %rcx
	jle	LBB0_41
LBB0_40:
	leaq	L_.str.1(%rip), %rdi
LBB0_37:
	callq	_DRM_DEBUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_75:
	cmpq	$0, -136(%rbp)
	movq	-184(%rbp), %r14                ## 8-byte Reload
	je	LBB0_77
## %bb.76:
	leaq	-176(%rbp), %rdi
	callq	_eb_release_vmas
LBB0_77:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_78:
	leaq	-176(%rbp), %rdi
	callq	_eb_unpin_engine
LBB0_79:
	movl	-140(%rbp), %edi
	callq	_i915_gem_context_put
LBB0_80:
	leaq	-176(%rbp), %rdi
	callq	_eb_destroy
LBB0_81:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	cmpl	$-1, %edi
	je	LBB0_83
## %bb.82:
	callq	_put_unused_fd
LBB0_83:
	movq	%r13, %rdi
	callq	_dma_fence_put
LBB0_84:
	movq	%rbx, %rdi
	callq	_dma_fence_put
LBB0_85:
	movl	%r15d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	testq	%rcx, %rcx
	jne	LBB0_43
## %bb.42:
	movq	%rax, -152(%rbp)
LBB0_43:
	leaq	-176(%rbp), %rdi
	callq	_eb_use_cmdparser
	testq	%rax, %rax
	je	LBB0_46
## %bb.44:
	leaq	-176(%rbp), %rdi
	callq	_eb_parse
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_45
LBB0_46:
	movq	_I915_DISPATCH_SECURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -144(%rbp)
	je	LBB0_49
## %bb.47:
	movq	-128(%rbp), %rax
	movl	36(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_i915_gem_object_ggtt_pin
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_48
LBB0_45:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_75
LBB0_48:
	movq	%r14, -128(%rbp)
LBB0_49:
	movl	-100(%rbp), %edi
	callq	_GEM_BUG_ON
	movl	-104(%rbp), %edi
	callq	_i915_request_create
	movq	%rax, -120(%rbp)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_51
## %bb.50:
	movq	-120(%rbp), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
LBB0_71:
	movq	_I915_DISPATCH_SECURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -144(%rbp)
	je	LBB0_73
## %bb.72:
	movq	-128(%rbp), %rdi
	callq	_i915_vma_unpin
LBB0_73:
	movq	-128(%rbp), %rax
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_75
## %bb.74:
	callq	_intel_engine_pool_put
	jmp	LBB0_75
LBB0_51:
	testq	%rbx, %rbx
	je	LBB0_54
## %bb.52:
	movq	-120(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_i915_request_await_dma_fence
	testl	%eax, %eax
	js	LBB0_53
LBB0_54:
	testq	%r13, %r13
	je	LBB0_56
## %bb.55:
	movq	-120(%rbp), %rdi
	movq	-112(%rbp), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_i915_request_await_execution
	testl	%eax, %eax
	js	LBB0_53
LBB0_56:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_58
## %bb.57:
	leaq	-176(%rbp), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_await_fence_array
	testl	%eax, %eax
	je	LBB0_58
LBB0_53:
	movl	%eax, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_65
LBB0_58:
	cmpl	$-1, -44(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_59
## %bb.63:
	movq	-120(%rbp), %rdi
	addq	$32, %rdi
	callq	_sync_file_create
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_60
## %bb.64:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_65
LBB0_59:
	xorl	%r14d, %r14d
LBB0_60:
	movq	-128(%rbp), %rcx
	movq	-120(%rbp), %rax
	movq	%rcx, 24(%rax)
	movq	16(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_62
## %bb.61:
	movq	%rax, %rsi
	callq	_intel_engine_pool_mark_active
	movq	-120(%rbp), %rax
LBB0_62:
	movl	-144(%rbp), %esi
	movq	%rax, %rdi
	callq	_trace_i915_request_queue
	leaq	-176(%rbp), %rdi
	callq	_eb_submit
	movl	%eax, %r15d
LBB0_65:
	movq	-120(%rbp), %rdi
	movq	%r12, %rsi
	callq	_add_to_client
	movq	-120(%rbp), %rdi
	callq	_i915_request_add
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_67
## %bb.66:
	leaq	-176(%rbp), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_signal_fence_array
LBB0_67:
	testq	%r14, %r14
	je	LBB0_71
## %bb.68:
	movl	(%r14), %esi
	testl	%r15d, %r15d
	je	LBB0_69
## %bb.70:
	movl	%esi, %edi
	callq	_fput
	jmp	LBB0_71
LBB0_69:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_fd_install
	xorl	%r15d, %r15d
	movl	$31, %edi
	xorl	%esi, %esi
	callq	_GENMASK_ULL
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_71
	.cfi_endproc
                                        ## -- End function
	.comm	___EXEC_INTERNAL_FLAGS,4,2      ## @__EXEC_INTERNAL_FLAGS
	.comm	___I915_EXEC_ILLEGAL_FLAGS,4,2  ## @__I915_EXEC_ILLEGAL_FLAGS
	.comm	___EXEC_OBJECT_INTERNAL_FLAGS,4,2 ## @__EXEC_OBJECT_INTERNAL_FLAGS
	.comm	___EXEC_OBJECT_UNKNOWN_FLAGS,4,2 ## @__EXEC_OBJECT_UNKNOWN_FLAGS
	.comm	_DBG_FORCE_RELOC,8,3            ## @DBG_FORCE_RELOC
	.comm	_I915_EXEC_NO_RELOC,4,2         ## @I915_EXEC_NO_RELOC
	.comm	___EXEC_HAS_RELOC,4,2           ## @__EXEC_HAS_RELOC
	.comm	_I915_EXEC_SECURE,4,2           ## @I915_EXEC_SECURE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_I915_DISPATCH_SECURE,4,2       ## @I915_DISPATCH_SECURE
	.comm	_I915_EXEC_IS_PINNED,4,2        ## @I915_EXEC_IS_PINNED
	.comm	_I915_DISPATCH_PINNED,4,2       ## @I915_DISPATCH_PINNED
	.comm	_I915_EXEC_FENCE_IN,4,2         ## @I915_EXEC_FENCE_IN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I915_EXEC_FENCE_SUBMIT,4,2     ## @I915_EXEC_FENCE_SUBMIT
	.comm	_I915_EXEC_FENCE_OUT,4,2        ## @I915_EXEC_FENCE_OUT
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_EXEC_OBJECT_WRITE,4,2          ## @EXEC_OBJECT_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempting to use self-modifying batch buffer\n"

L_.str.1:                               ## @.str.1
	.asciz	"Attempting to use out-of-bounds batch\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_i915_gem_do_execbuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_gem_do_execbuffer
_i915_gem_do_execbuffer:                ; @i915_gem_do_execbuffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x21, x3
	mov	x25, x2
	mov	x23, x1
	mov	x19, x0
	bl	_to_i915
	mov	x20, x0
Lloh0:
	adrp	x8, ___EXEC_INTERNAL_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___EXEC_INTERNAL_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, ___I915_EXEC_ILLEGAL_FLAGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___I915_EXEC_ILLEGAL_FLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w0, w8, w9
	bl	_BUILD_BUG_ON
Lloh6:
	adrp	x8, ___EXEC_OBJECT_INTERNAL_FLAGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___EXEC_OBJECT_INTERNAL_FLAGS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x24, ___EXEC_OBJECT_UNKNOWN_FLAGS@GOTPAGE
Lloh10:
	ldr	x24, [x24, ___EXEC_OBJECT_UNKNOWN_FLAGS@GOTPAGEOFF]
	ldr	w9, [x24]
	bic	w0, w8, w9
	bl	_BUILD_BUG_ON
	stp	x25, x23, [sp, #112]
	str	x20, [sp, #96]
Lloh11:
	adrp	x8, _DBG_FORCE_RELOC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DBG_FORCE_RELOC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x8]
	ldr	w8, [x25]
	cbz	x9, LBB0_2
LBB0_1:
Lloh14:
	adrp	x9, ___EXEC_HAS_RELOC@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___EXEC_HAS_RELOC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x25]
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x9, _I915_EXEC_NO_RELOC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _I915_EXEC_NO_RELOC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
LBB0_3:
	ldrsw	x8, [x25, #4]
	add	x9, x21, x8, lsl #2
	str	xzr, [x9, #4]!
	str	x21, [sp, #48]
	str	x9, [sp, #104]
	add	x8, x9, x8, lsl #3
	add	x8, x8, #8
	str	x8, [sp, #8]
	ldr	w8, [x24]
	str	w8, [sp, #16]
	add	x8, sp, #8
	add	x0, x8, #76
	mov	x1, x20
	bl	_reloc_cache_init
	ldp	w8, w9, [x25]
	str	w9, [sp, #20]
	ldur	q0, [x25, #8]
	stur	q0, [sp, #24]
	str	wzr, [sp, #40]
Lloh20:
	adrp	x9, _I915_EXEC_SECURE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _I915_EXEC_SECURE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_12
; %bb.5:
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_21
LBB0_6:
	mov	w9, #0
LBB0_7:
Lloh25:
	adrp	x10, _I915_EXEC_IS_PINNED@GOTPAGE
Lloh26:
	ldr	x10, [x10, _I915_EXEC_IS_PINNED@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_9
; %bb.8:
Lloh28:
	adrp	x10, _I915_DISPATCH_PINNED@GOTPAGE
Lloh29:
	ldr	x10, [x10, _I915_DISPATCH_PINNED@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [sp, #40]
LBB0_9:
Lloh31:
	adrp	x9, _I915_EXEC_FENCE_IN@GOTPAGE
Lloh32:
	ldr	x9, [x9, _I915_EXEC_FENCE_IN@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.10:
	ldr	w0, [x25, #24]
	bl	_lower_32_bits
	bl	_sync_file_get_fence
	cbz	x0, LBB0_20
; %bb.11:
	mov	x20, x0
	ldr	w8, [x25]
Lloh34:
	adrp	x9, _I915_EXEC_FENCE_SUBMIT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _I915_EXEC_FENCE_SUBMIT@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_36
	b	LBB0_23
LBB0_12:
	mov	x0, x20
	bl	_HAS_SECURE_BATCHES
	cbz	w0, LBB0_16
; %bb.13:
	mov	x0, x23
	bl	_drm_is_current_master
	cbz	w0, LBB0_16
; %bb.14:
Lloh37:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_16
; %bb.15:
Lloh40:
	adrp	x8, _I915_DISPATCH_SECURE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _I915_DISPATCH_SECURE@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [sp, #40]
	orr	w9, w9, w8
	str	w9, [sp, #40]
	ldr	w8, [x25]
	b	LBB0_7
LBB0_16:
Lloh43:
	adrp	x8, _EPERM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_21
LBB0_17:
Lloh45:
	adrp	x9, _I915_EXEC_FENCE_SUBMIT@GOTPAGE
Lloh46:
	ldr	x9, [x9, _I915_EXEC_FENCE_SUBMIT@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.18:
	ldr	w0, [x25, #24]
	bl	_lower_32_bits
	bl	_sync_file_get_fence
	cbz	x0, LBB0_35
; %bb.19:
	mov	x21, x0
	mov	x20, #0
	ldr	w8, [x25]
	b	LBB0_24
LBB0_20:
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_38
LBB0_22:
	mov	x20, #0
LBB0_23:
	mov	x21, #0
LBB0_24:
Lloh50:
	adrp	x9, _I915_EXEC_FENCE_OUT@GOTPAGE
Lloh51:
	ldr	x9, [x9, _I915_EXEC_FENCE_OUT@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.25:
Lloh53:
	adrp	x8, _O_CLOEXEC@GOTPAGE
Lloh54:
	ldr	x8, [x8, _O_CLOEXEC@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	bl	_get_unused_fd_flags
	mov	x24, x0
	mov	x26, x0
	tbz	w0, #31, LBB0_27
	b	LBB0_30
LBB0_26:
	mov	w24, #-1
LBB0_27:
	add	x0, sp, #8
	bl	_eb_create
	cbz	w0, LBB0_31
; %bb.28:
	mov	x26, x0
	cmn	w24, #1
	b.eq	LBB0_30
LBB0_29:
	mov	x0, x24
	bl	_put_unused_fd
LBB0_30:
	mov	x0, x21
	bl	_dma_fence_put
	b	LBB0_37
LBB0_31:
	ldr	w8, [sp, #88]
	cmp	w8, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	add	x0, sp, #8
	bl	_eb_select_context
	mov	x26, x0
	bl	_unlikely
	cbnz	x0, LBB0_52
; %bb.32:
	add	x0, sp, #8
	mov	x1, x23
	mov	x2, x25
	bl	_eb_pin_engine
	mov	x26, x0
	bl	_unlikely
	cbnz	x0, LBB0_51
; %bb.33:
	mov	x0, x19
	bl	_i915_mutex_lock_interruptible
	cbz	w0, LBB0_39
; %bb.34:
	mov	x26, x0
	b	LBB0_50
LBB0_35:
	mov	x20, #0
LBB0_36:
Lloh56:
	adrp	x8, _EINVAL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_37:
	mov	x0, x20
	bl	_dma_fence_put
LBB0_38:
	mov	x0, x26
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_39:
	add	x0, sp, #8
	bl	_eb_relocate
	cbz	w0, LBB0_41
; %bb.40:
	mov	x26, x0
Lloh59:
	adrp	x8, ___EXEC_HAS_RELOC@GOTPAGE
Lloh60:
	ldr	x8, [x8, ___EXEC_HAS_RELOC@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	ldr	w9, [x25]
	bic	w8, w9, w8
	str	w8, [x25]
	b	LBB0_47
LBB0_41:
	ldr	x8, [sp, #56]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh62:
	adrp	x9, _EXEC_OBJECT_WRITE@GOTPAGE
Lloh63:
	ldr	x9, [x9, _EXEC_OBJECT_WRITE@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_43
; %bb.42:
Lloh65:
	adrp	x0, l_.str@PAGE
Lloh66:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_46
LBB0_43:
	ldr	x8, [sp, #24]
	ldr	x9, [sp, #56]
	ldr	x9, [x9, #8]
	subs	x8, x9, x8
	b.lt	LBB0_45
; %bb.44:
	ldr	x9, [sp, #32]
	cmp	x9, x8
	b.le	LBB0_53
LBB0_45:
Lloh67:
	adrp	x0, l_.str.1@PAGE
Lloh68:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_46:
	bl	_DRM_DEBUG
Lloh69:
	adrp	x8, _EINVAL@GOTPAGE
Lloh70:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_47:
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_49
; %bb.48:
	add	x0, sp, #8
	bl	_eb_release_vmas
LBB0_49:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_50:
	add	x0, sp, #8
	bl	_eb_unpin_engine
LBB0_51:
	ldr	w0, [sp, #44]
	bl	_i915_gem_context_put
LBB0_52:
	add	x0, sp, #8
	bl	_eb_destroy
	cmn	w24, #1
	b.ne	LBB0_29
	b	LBB0_30
LBB0_53:
	cbnz	x9, LBB0_55
; %bb.54:
	str	x8, [sp, #32]
LBB0_55:
	add	x0, sp, #8
	bl	_eb_use_cmdparser
	cbz	x0, LBB0_57
; %bb.56:
	add	x0, sp, #8
	bl	_eb_parse
	mov	x25, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_59
LBB0_57:
	ldr	w8, [sp, #40]
Lloh72:
	adrp	x27, _I915_DISPATCH_SECURE@GOTPAGE
Lloh73:
	ldr	x27, [x27, _I915_DISPATCH_SECURE@GOTPAGEOFF]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_61
; %bb.58:
	ldr	x8, [sp, #56]
	ldr	w0, [x8, #36]
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_i915_gem_object_ggtt_pin
	mov	x25, x0
	bl	_IS_ERR
	cbz	x0, LBB0_60
LBB0_59:
	mov	x0, x25
	bl	_PTR_ERR
	mov	x26, x0
	b	LBB0_47
LBB0_60:
	str	x25, [sp, #56]
LBB0_61:
	ldr	w0, [sp, #84]
	bl	_GEM_BUG_ON
	ldr	w0, [sp, #80]
	bl	_i915_request_create
	str	x0, [sp, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_67
; %bb.62:
	ldr	x0, [sp, #64]
	bl	_PTR_ERR
	mov	x26, x0
LBB0_63:
	ldr	w8, [sp, #40]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_65
; %bb.64:
	ldr	x0, [sp, #56]
	bl	_i915_vma_unpin
LBB0_65:
	ldr	x8, [sp, #56]
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_47
; %bb.66:
	bl	_intel_engine_pool_put
	b	LBB0_47
LBB0_67:
	cbz	x20, LBB0_69
; %bb.68:
	ldr	x0, [sp, #64]
	mov	x1, x20
	bl	_i915_request_await_dma_fence
	tbnz	w0, #31, LBB0_73
LBB0_69:
	cbz	x21, LBB0_71
; %bb.70:
	ldp	x0, x8, [sp, #64]
	ldr	w2, [x8]
	mov	x1, x21
	bl	_i915_request_await_execution
	tbnz	w0, #31, LBB0_73
LBB0_71:
	cbz	x22, LBB0_74
; %bb.72:
	add	x0, sp, #8
	mov	x1, x22
	bl	_await_fence_array
	cbz	w0, LBB0_74
LBB0_73:
	mov	x26, x0
	mov	x25, #0
	b	LBB0_81
LBB0_74:
	cmn	w24, #1
	b.eq	LBB0_77
; %bb.75:
	ldr	x8, [sp, #64]
	add	x0, x8, #32
	bl	_sync_file_create
	mov	x25, x0
	cbnz	x0, LBB0_78
; %bb.76:
Lloh74:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh75:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_81
LBB0_77:
	mov	x25, #0
LBB0_78:
	ldp	x9, x8, [sp, #56]
	str	x9, [x8, #24]
	ldr	x0, [x9, #16]
	cbz	x0, LBB0_80
; %bb.79:
	mov	x1, x8
	bl	_intel_engine_pool_mark_active
	ldr	x8, [sp, #64]
LBB0_80:
	ldr	w1, [sp, #40]
	mov	x0, x8
	bl	_trace_i915_request_queue
	add	x0, sp, #8
	bl	_eb_submit
	mov	x26, x0
LBB0_81:
	ldr	x0, [sp, #64]
	mov	x1, x23
	bl	_add_to_client
	ldr	x0, [sp, #64]
	bl	_i915_request_add
	cbz	x22, LBB0_83
; %bb.82:
	add	x0, sp, #8
	mov	x1, x22
	bl	_signal_fence_array
LBB0_83:
	cbz	x25, LBB0_63
; %bb.84:
	ldr	w1, [x25]
	cbz	w26, LBB0_86
; %bb.85:
	mov	x0, x1
	bl	_fput
	b	LBB0_63
LBB0_86:
	mov	x0, x24
	bl	_fd_install
	mov	w0, #31
	mov	w1, #0
	bl	_GENMASK_ULL
	mov	w24, #-1
	b	LBB0_63
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	___EXEC_INTERNAL_FLAGS,4,2      ; @__EXEC_INTERNAL_FLAGS
	.comm	___I915_EXEC_ILLEGAL_FLAGS,4,2  ; @__I915_EXEC_ILLEGAL_FLAGS
	.comm	___EXEC_OBJECT_INTERNAL_FLAGS,4,2 ; @__EXEC_OBJECT_INTERNAL_FLAGS
	.comm	___EXEC_OBJECT_UNKNOWN_FLAGS,4,2 ; @__EXEC_OBJECT_UNKNOWN_FLAGS
	.comm	_DBG_FORCE_RELOC,8,3            ; @DBG_FORCE_RELOC
	.comm	_I915_EXEC_NO_RELOC,4,2         ; @I915_EXEC_NO_RELOC
	.comm	___EXEC_HAS_RELOC,4,2           ; @__EXEC_HAS_RELOC
	.comm	_I915_EXEC_SECURE,4,2           ; @I915_EXEC_SECURE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_I915_DISPATCH_SECURE,4,2       ; @I915_DISPATCH_SECURE
	.comm	_I915_EXEC_IS_PINNED,4,2        ; @I915_EXEC_IS_PINNED
	.comm	_I915_DISPATCH_PINNED,4,2       ; @I915_DISPATCH_PINNED
	.comm	_I915_EXEC_FENCE_IN,4,2         ; @I915_EXEC_FENCE_IN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I915_EXEC_FENCE_SUBMIT,4,2     ; @I915_EXEC_FENCE_SUBMIT
	.comm	_I915_EXEC_FENCE_OUT,4,2        ; @I915_EXEC_FENCE_OUT
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_EXEC_OBJECT_WRITE,4,2          ; @EXEC_OBJECT_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempting to use self-modifying batch buffer\n"

l_.str.1:                               ; @.str.1
	.asciz	"Attempting to use out-of-bounds batch\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_i915_gem_do_execbuffer
.subsections_via_symbols
