	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_bbstart
_check_bbstart:                         ## @check_bbstart
	.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
	movl	%r9d, %r15d
	movl	%r8d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_CMDPARSER_USES_GGTT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpl	$3, %esi
	jne	LBB0_8
## %bb.3:
	movl	4(%rbx), %esi
	movl	%esi, %edi
	subl	%r15d, %edi
	cmpl	%r12d, %edi
	jge	LBB0_9
## %bb.4:
	movq	%rbx, %rax
	movl	%esi, %r15d
	movl	16(%rbp), %ebx
	movq	%rax, %r12
	callq	_lower_32_bits
	addl	%eax, %ebx
	movl	%eax, %edi
	sarl	$2, %edi
	movl	%ebx, 4(%r12)
	xorl	%ebx, %ebx
	cmpl	%r13d, %edi
	je	LBB0_14
## %bb.5:
	cmpl	%edi, (%r14)
	jle	LBB0_15
## %bb.6:
	movl	4(%r14), %esi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	xorl	%eax, %eax
	callq	_DRM_DEBUG
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD: Rejecting BB_START for ggtt based submission\n"

	.comm	_EACCES,4,2                     ## @EACCES
L_.str.1:                               ## @.str.1
	.asciz	"CMD: Recursive BB_START with bad length(%u)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"CMD: BB_START to 0x%llx jumps out of BB\n"

L_.str.3:                               ## @.str.3
	.asciz	"CMD: Rejecting BB_START - truncated whitelist array\n"

L_.str.4:                               ## @.str.4
	.asciz	"CMD: BB_START to 0x%llx not a previously executed cmd\n"

	.no_dead_strip	_check_bbstart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_bbstart
_check_bbstart:                         ; @check_bbstart
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x6
	mov	x24, x5
	mov	x23, x4
	mov	x25, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_CMDPARSER_USES_GGTT
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
Lloh2:
	adrp	x8, _EACCES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	cmp	w25, #3
	b.ne	LBB0_8
; %bb.3:
	ldr	w25, [x22, #4]
	sub	w0, w25, w24
	cmp	w0, w23
	b.ge	LBB0_9
; %bb.4:
	bl	_lower_32_bits
	mov	x8, x0
	asr	w0, w0, #2
	add	w8, w8, w20
	str	w8, [x22, #4]
	cmp	w0, w21
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x19]
	cmp	w8, w0
	b.le	LBB0_13
; %bb.6:
	ldr	w1, [x19, #4]
	bl	_test_bit
	cbz	w0, LBB0_14
LBB0_7:
	mov	w0, #0
	b	LBB0_12
LBB0_8:
	str	x25, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
	str	x25, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_DRM_DEBUG
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_14:
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	str	x25, [sp]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD: Rejecting BB_START for ggtt based submission\n"

	.comm	_EACCES,4,2                     ; @EACCES
l_.str.1:                               ; @.str.1
	.asciz	"CMD: Recursive BB_START with bad length(%u)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"CMD: BB_START to 0x%llx jumps out of BB\n"

l_.str.3:                               ; @.str.3
	.asciz	"CMD: Rejecting BB_START - truncated whitelist array\n"

l_.str.4:                               ; @.str.4
	.asciz	"CMD: BB_START to 0x%llx not a previously executed cmd\n"

	.no_dead_strip	_check_bbstart
.subsections_via_symbols
