	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eb_parse
_eb_parse:                              ## @eb_parse
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %rdi
	movl	48(%rbx), %esi
	callq	_intel_engine_pool_get
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_1:
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_shadow_batch_pin
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	movq	24(%rbx), %rax
	movl	20(%rax), %edi
	callq	_gen8_canonical_addr
	movq	%rax, %r12
	addq	32(%rbx), %r12
	movl	20(%r15), %edi
	callq	_gen8_canonical_addr
	movl	64(%rbx), %edi
	movq	56(%rbx), %rsi
	movq	24(%rbx), %rcx
	movq	32(%rbx), %r8
	movl	16(%rcx), %edx
	movl	48(%rbx), %r9d
	movl	16(%r14), %r10d
	movq	%r12, %rcx
	pushq	%rax
	pushq	%r10
	callq	_intel_engine_cmd_parser
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_i915_vma_unpin
	movl	20(%rbx), %edi
	callq	_CMDPARSER_USES_GGTT
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	_EACCES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	jne	LBB0_9
## %bb.5:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_9:
	movl	%r12d, %edi
	callq	_ERR_PTR
	movq	%rax, %r15
LBB0_10:
	movq	%r14, %rdi
	callq	_intel_engine_pool_put
LBB0_11:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	callq	_i915_vma_get
	movq	(%rbx), %rcx
	movq	40(%rbx), %rdx
	movl	%eax, (%rdx,%rcx,4)
	movq	___EXEC_OBJECT_HAS_PIN@GOTPCREL(%rip), %rax
	movq	___EXEC_OBJECT_HAS_REF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	8(%rbx), %rax
	leaq	(%rax,%rcx,4), %rsi
	movl	%edx, (%rax,%rcx,4)
	movq	%rsi, (%r15)
	incq	%rcx
	movq	%rcx, (%rbx)
	movq	$0, 32(%rbx)
	movq	%r15, 24(%rbx)
	movl	20(%rbx), %edi
	callq	_CMDPARSER_USES_GGTT
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_I915_DISPATCH_SECURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
LBB0_8:
	movq	%r14, 8(%r15)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	___EXEC_OBJECT_HAS_PIN,4,2      ## @__EXEC_OBJECT_HAS_PIN
	.comm	___EXEC_OBJECT_HAS_REF,4,2      ## @__EXEC_OBJECT_HAS_REF
	.comm	_I915_DISPATCH_SECURE,4,2       ## @I915_DISPATCH_SECURE
	.no_dead_strip	_eb_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eb_parse
_eb_parse:                              ; @eb_parse
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x0, [x0, #56]
	ldr	w1, [x20, #48]
	bl	_intel_engine_pool_get
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_CAST
LBB0_2:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_shadow_batch_pin
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x20, #24]
	ldr	w0, [x8, #20]
	bl	_gen8_canonical_addr
	ldr	x8, [x20, #32]
	add	x22, x8, x0
	ldr	w0, [x21, #20]
	bl	_gen8_canonical_addr
	mov	x7, x0
	ldr	w0, [x20, #64]
	ldr	x1, [x20, #56]
	ldp	x8, x4, [x20, #24]
	ldr	w2, [x8, #16]
	ldr	w5, [x20, #48]
	ldr	w6, [x19, #16]
	mov	x3, x22
	bl	_intel_engine_cmd_parser
	cbz	w0, LBB0_10
; %bb.4:
	mov	x22, x0
	mov	x0, x21
	bl	_i915_vma_unpin
	ldr	w0, [x20, #20]
	bl	_CMDPARSER_USES_GGTT
	cbz	x0, LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _EACCES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w22, w8
	b.ne	LBB0_7
; %bb.6:
	mov	x21, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x22
	bl	_ERR_PTR
	mov	x21, x0
LBB0_8:
	mov	x0, x19
	bl	_intel_engine_pool_put
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x21
	bl	_i915_vma_get
	ldr	x8, [x20, #40]
	ldp	x9, x10, [x20]
	lsl	x11, x9, #2
	str	w0, [x8, x11]
Lloh3:
	adrp	x8, ___EXEC_OBJECT_HAS_PIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___EXEC_OBJECT_HAS_PIN@GOTPAGEOFF]
Lloh5:
	adrp	x12, ___EXEC_OBJECT_HAS_REF@GOTPAGE
Lloh6:
	ldr	x12, [x12, ___EXEC_OBJECT_HAS_REF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w12, [x12]
	orr	w8, w12, w8
	add	x12, x10, x11
	str	w8, [x10, x11]
	str	x12, [x21]
	add	x8, x9, #1
	str	x8, [x20]
	stp	x21, xzr, [x20, #24]
	ldr	w0, [x20, #20]
	bl	_CMDPARSER_USES_GGTT
	cbz	x0, LBB0_12
; %bb.11:
Lloh9:
	adrp	x8, _I915_DISPATCH_SECURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I915_DISPATCH_SECURE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
LBB0_12:
	str	x19, [x21, #8]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	___EXEC_OBJECT_HAS_PIN,4,2      ; @__EXEC_OBJECT_HAS_PIN
	.comm	___EXEC_OBJECT_HAS_REF,4,2      ; @__EXEC_OBJECT_HAS_REF
	.comm	_I915_DISPATCH_SECURE,4,2       ; @I915_DISPATCH_SECURE
	.no_dead_strip	_eb_parse
.subsections_via_symbols
