	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_gem_check_execbuffer
_i915_gem_check_execbuffer:             ## @i915_gem_check_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	movq	___I915_EXEC_ILLEGAL_FLAGS@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	_I915_EXEC_FENCE_ARRAY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_4:
	movl	4(%rbx), %eax
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.5:
	cmpq	$0, 16(%rbx)
	jne	LBB0_9
## %bb.6:
	testl	%eax, %eax
	je	LBB0_8
	jmp	LBB0_9
LBB0_2:
	cmpq	$0, 32(%rbx)
	jne	LBB0_9
## %bb.3:
	cmpq	$0, 24(%rbx)
	jne	LBB0_9
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movl	$0, 4(%rbx)
	cmpq	$0, 16(%rbx)
	jne	LBB0_9
LBB0_8:
	movl	12(%rbx), %eax
	orl	8(%rbx), %eax
	xorl	%r14d, %r14d
	testb	$7, %al
	sete	%r14b
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	___I915_EXEC_ILLEGAL_FLAGS,4,2  ## @__I915_EXEC_ILLEGAL_FLAGS
	.comm	_I915_EXEC_FENCE_ARRAY,4,2      ## @I915_EXEC_FENCE_ARRAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UXA submitting garbage DR4, fixing up\n"

	.no_dead_strip	_i915_gem_check_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_check_execbuffer
_i915_gem_check_execbuffer:             ; @i915_gem_check_execbuffer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, ___I915_EXEC_ILLEGAL_FLAGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___I915_EXEC_ILLEGAL_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
Lloh3:
	adrp	x9, _I915_EXEC_FENCE_ARRAY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I915_EXEC_FENCE_ARRAY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_4:
	ldr	w8, [x19, #4]
	cmn	w8, #1
	b.eq	LBB0_9
; %bb.5:
	mov	w0, #0
	ldr	x9, [x19, #16]
	cbnz	x9, LBB0_2
; %bb.6:
	cbz	w8, LBB0_10
	b	LBB0_2
LBB0_7:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_1
; %bb.8:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_1
	b	LBB0_4
LBB0_9:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	mov	w0, #0
	str	wzr, [x19, #4]
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_2
LBB0_10:
	ldp	w8, w9, [x19, #8]
	orr	w8, w9, w8
	tst	w8, #0x7
	cset	w0, eq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	___I915_EXEC_ILLEGAL_FLAGS,4,2  ; @__I915_EXEC_ILLEGAL_FLAGS
	.comm	_I915_EXEC_FENCE_ARRAY,4,2      ; @I915_EXEC_FENCE_ARRAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UXA submitting garbage DR4, fixing up\n"

	.no_dead_strip	_i915_gem_check_execbuffer
.subsections_via_symbols
