	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_engine_cmd_parser        ## -- Begin function intel_engine_cmd_parser
	.p2align	4, 0x90
_intel_engine_cmd_parser:               ## @intel_engine_cmd_parser
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %eax
	movl	%ecx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	16(%rbp), %rdi
	movq	_noop_desc@GOTPCREL(%rip), %rcx
	movq	16(%rcx), %rsi
	movq	%rsi, -96(%rbp)
	movups	(%rcx), %xmm0
	movaps	%xmm0, -112(%rbp)
	movl	$0, -48(%rbp)
	leaq	-48(%rbp), %r8
	movq	%rdx, %rsi
	movl	%eax, %edx
	movl	%r9d, %ecx
	callq	_copy_batch
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_24
LBB0_2:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_init_whitelist
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movslq	%r14d, %rax
	andq	$-4, %rax
	movq	%r12, %rbx
	addq	%rax, %rbx
	leaq	-112(%rbp), %r15
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%r14,4), %r12
	addl	%r13d, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %r12
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jae	LBB0_20
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	_MI_BATCH_BUFFER_END@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rdx
	leaq	-112(%rbp), %rcx
	callq	_find_cmd
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movq	_CMD_DESC_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r15), %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	20(%r15), %r13d
	andl	(%r12), %r13d
	movq	_LENGTH_BIAS@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rcx
	subq	%r12, %rcx
	sarq	$2, %rcx
	movslq	%r13d, %r14
	cmpq	%r14, %rcx
	jl	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_check_cmd
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movq	_MI_BATCH_BUFFER_START@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, (%rax)
	jle	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movl	%ebx, %edi
	callq	_set_bit
	jmp	LBB0_19
LBB0_5:
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_21
LBB0_10:
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_12:
	movq	_EACCES@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_22:
	subl	(%rax), %r14d
LBB0_23:
	movq	16(%rbp), %rdi
	callq	_i915_gem_object_unpin_map
LBB0_24:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	24(%rbp), %eax
	movl	%eax, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	callq	_check_bbstart
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_23
LBB0_15:
	xorl	%r14d, %r14d
	cmpl	$0, -48(%rbp)
	je	LBB0_23
## %bb.16:
	movq	16(%rbp), %rax
	movl	(%rax), %edi
	callq	_page_mask_bits
	subl	%eax, %r12d
	addl	$4, %r12d
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_drm_clflush_virt_range
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_noop_desc,24,3                 ## @noop_desc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD: Failed to copy batch\n"

	.comm	_MI_BATCH_BUFFER_END,4,2        ## @MI_BATCH_BUFFER_END
L_.str.1:                               ## @.str.1
	.asciz	"CMD: Unrecognized command: 0x%08X\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CMD_DESC_FIXED,4,2             ## @CMD_DESC_FIXED
	.comm	_LENGTH_BIAS,4,2                ## @LENGTH_BIAS
L_.str.2:                               ## @.str.2
	.asciz	"CMD: Command length exceeds batch length: 0x%08X length=%u batchlen=%td\n"

	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_MI_BATCH_BUFFER_START,8,3      ## @MI_BATCH_BUFFER_START
L_.str.3:                               ## @.str.3
	.asciz	"CMD: Got to the end of the buffer w/o a BBE cmd!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_engine_cmd_parser        ; -- Begin function intel_engine_cmd_parser
	.p2align	2
_intel_engine_cmd_parser:               ; @intel_engine_cmd_parser
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x21, x7
	mov	x19, x6
	mov	x22, x5
	mov	x8, x4
	mov	x23, x3
	mov	x25, x1
	mov	x24, x0
Lloh0:
	adrp	x9, _noop_desc@GOTPAGE
Lloh1:
	ldr	x9, [x9, _noop_desc@GOTPAGEOFF]
	ldr	q0, [x9]
	str	q0, [sp, #48]
	ldr	x9, [x9, #16]
	str	x9, [sp, #64]
	str	wzr, [sp, #44]
	add	x4, sp, #44
	mov	x0, x6
	mov	x1, x2
	mov	x2, x8
	mov	x3, x5
	bl	_copy_batch
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	mov	x0, x20
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_25
LBB0_2:
	stp	w23, w21, [sp, #24]             ; 8-byte Folded Spill
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x24
	mov	x1, x22
	bl	_init_whitelist
	mov	w26, #0
	sxtw	x8, w22
	and	x8, x8, #0xfffffffffffffffc
	add	x21, x20, x8
	add	x27, sp, #48
Lloh4:
	adrp	x23, _MI_BATCH_BUFFER_END@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MI_BATCH_BUFFER_END@GOTPAGEOFF]
Lloh6:
	adrp	x19, _CMD_DESC_FIXED@GOTPAGE
Lloh7:
	ldr	x19, [x19, _CMD_DESC_FIXED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, x28, lsl #2
	add	w26, w28, w26
	cmp	x20, x21
	b.hs	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	ldr	w8, [x23]
	cmp	w1, w8
	b.eq	LBB0_21
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x3, sp, #48
	mov	x0, x25
	mov	x2, x27
	bl	_find_cmd
	cbz	x0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	ldr	w8, [x0]
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x27, #16]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x27, #20]
	and	w8, w9, w8
Lloh8:
	adrp	x9, _LENGTH_BIAS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LENGTH_BIAS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	add	w9, w8, w9
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x21, x20
	asr	x8, x8, #2
	sxtw	x28, w9
	cmp	x8, x28
	b.lt	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x27
	mov	x2, x20
	mov	x3, x28
	bl	_check_cmd
	cbz	w0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27, #8]
Lloh11:
	adrp	x9, _MI_BATCH_BUFFER_START@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MI_BATCH_BUFFER_START@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	cmp	w8, w26
	b.le	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x24, #4]
	mov	x0, x26
	bl	_set_bit
	b	LBB0_3
LBB0_14:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_15:
	ldr	w9, [x20]
	stp	x28, x8, [sp, #8]
	str	x9, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_17:
	bl	_DRM_DEBUG_DRIVER
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh22:
	adrp	x8, _EACCES@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_24
LBB0_20:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x26
	mov	x3, x28
	mov	x4, x22
	ldp	w5, w6, [sp, #24]               ; 8-byte Folded Reload
	bl	_check_bbstart
	mov	x21, x0
	cbnz	w0, LBB0_24
LBB0_21:
	ldr	w8, [sp, #44]
	cbz	w8, LBB0_23
; %bb.22:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_page_mask_bits
	sub	w8, w20, w0
	add	w1, w8, #4
	bl	_drm_clflush_virt_range
LBB0_23:
	mov	w21, #0
LBB0_24:
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_i915_gem_object_unpin_map
LBB0_25:
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_noop_desc,24,3                 ; @noop_desc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD: Failed to copy batch\n"

	.comm	_MI_BATCH_BUFFER_END,4,2        ; @MI_BATCH_BUFFER_END
l_.str.1:                               ; @.str.1
	.asciz	"CMD: Unrecognized command: 0x%08X\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CMD_DESC_FIXED,4,2             ; @CMD_DESC_FIXED
	.comm	_LENGTH_BIAS,4,2                ; @LENGTH_BIAS
l_.str.2:                               ; @.str.2
	.asciz	"CMD: Command length exceeds batch length: 0x%08X length=%u batchlen=%td\n"

	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_MI_BATCH_BUFFER_START,8,3      ; @MI_BATCH_BUFFER_START
l_.str.3:                               ; @.str.3
	.asciz	"CMD: Got to the end of the buffer w/o a BBE cmd!\n"

.subsections_via_symbols
