	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_cmd
_check_cmd:                             ## @check_cmd
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	(%rsi), %eax
	movq	_CMD_DESC_SKIP@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	testl	%eax, (%rcx)
	jne	LBB0_32
## %bb.1:
	movq	%rdx, %r13
	movq	_CMD_DESC_REJECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
LBB0_12:
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
LBB0_32:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_CMD_DESC_REGISTER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_21
## %bb.4:
	movq	24(%rsi), %rcx
	movq	32(%rsi), %r12
	testq	%rcx, %rcx
	cmoveq	%rbx, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %r12
	jae	LBB0_21
## %bb.5:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	cmpq	%rbx, %r12
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jae	LBB0_20
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%rsi), %r15
	andq	(%r13,%r12,8), %r15
	movq	%r15, %rsi
	callq	_find_reg
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r14
	cmpl	$0, (%rax)
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r13
	movq	_MI_LOAD_REGISTER_MEM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MI_LOAD_REGISTER_REG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	callq	_MI_LOAD_REGISTER_IMM
	cmpq	%rax, %r13
	movq	%rbx, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	2(%r12), %rax
	cmpq	%rbx, %rax
	ja	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%r14), %rax
	andq	8(%r13,%r12,8), %rax
	cmpq	8(%r14), %rax
	je	LBB0_19
LBB0_18:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_11
LBB0_7:
	movq	(%r13), %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_32
LBB0_20:
	movl	(%rsi), %eax
	movl	$1, %r14d
LBB0_21:
	movq	_CMD_DESC_BITMASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_32
## %bb.22:
	movq	_MAX_CMD_DESC_BITMASKS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_32
## %bb.23:
	movq	8(%rsi), %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,4), %r9
	xorl	%esi, %esi
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_24 Depth=1
	addq	$40, %rsi
	cmpq	%rsi, %r9
	je	LBB0_32
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	8(%rax,%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	16(%rax,%rsi), %rbx
	testq	%rcx, (%r13,%rbx,8)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_31
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	24(%rax,%rsi), %rcx
	cmpq	%rbx, %rcx
	jae	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	(%r13,%rcx,8), %r8
	andq	%rdx, %r8
	movq	32(%rax,%rsi), %rcx
	cmpq	%rcx, %r8
	je	LBB0_31
## %bb.30:
	movq	(%r13), %rsi
	movl	(%rdi), %r9d
	leaq	L_.str.6(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_32
LBB0_28:
	movq	(%r13), %rsi
	movl	(%rdi), %edx
	leaq	L_.str.5(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_32
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_14:
	leaq	L_.str.3(%rip), %rdi
LBB0_11:
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_DESC_SKIP,4,2              ## @CMD_DESC_SKIP
	.comm	_CMD_DESC_REJECT,4,2            ## @CMD_DESC_REJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD: Rejected command: 0x%08X\n"

	.comm	_CMD_DESC_REGISTER,4,2          ## @CMD_DESC_REGISTER
L_.str.1:                               ## @.str.1
	.asciz	"CMD: Rejected register 0x%08X in command: 0x%08X (%s)\n"

	.comm	_MI_LOAD_REGISTER_MEM,8,3       ## @MI_LOAD_REGISTER_MEM
L_.str.2:                               ## @.str.2
	.asciz	"CMD: Rejected LRM to masked register 0x%08X\n"

	.comm	_MI_LOAD_REGISTER_REG,8,3       ## @MI_LOAD_REGISTER_REG
L_.str.3:                               ## @.str.3
	.asciz	"CMD: Rejected LRR to masked register 0x%08X\n"

L_.str.4:                               ## @.str.4
	.asciz	"CMD: Rejected LRI to masked register 0x%08X\n"

	.comm	_CMD_DESC_BITMASK,4,2           ## @CMD_DESC_BITMASK
	.comm	_MAX_CMD_DESC_BITMASKS,4,2      ## @MAX_CMD_DESC_BITMASKS
L_.str.5:                               ## @.str.5
	.asciz	"CMD: Rejected command 0x%08X, too short to check bitmask (%s)\n"

L_.str.6:                               ## @.str.6
	.asciz	"CMD: Rejected command 0x%08X for bitmask 0x%08X (exp=0x%08X act=0x%08X) (%s)\n"

	.no_dead_strip	_check_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_cmd
_check_cmd:                             ; @check_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _CMD_DESC_SKIP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMD_DESC_SKIP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	mov	x19, x2
Lloh3:
	adrp	x9, _CMD_DESC_REJECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMD_DESC_REJECT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	x1, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_DRM_DEBUG_DRIVER
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	mov	x21, x3
	mov	x22, x1
	mov	x20, x0
Lloh8:
	adrp	x9, _CMD_DESC_REGISTER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CMD_DESC_REGISTER@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.7:
	ldp	x9, x25, [x22, #24]
	cmp	x9, #0
	csel	x26, x21, x9, eq
	cmp	x25, x21
	b.hs	LBB0_20
; %bb.8:
Lloh11:
	adrp	x27, _MI_LOAD_REGISTER_MEM@GOTPAGE
Lloh12:
	ldr	x27, [x27, _MI_LOAD_REGISTER_MEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x25, x25, x26
	cmp	x25, x21
	b.hs	LBB0_19
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, x25, lsl #3]
	ldr	x9, [x22, #40]
	and	x23, x9, x8
	mov	x0, x20
	mov	x1, x23
	bl	_find_reg
	cbz	x0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x24, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x28, [x22, #16]
	ldr	x8, [x27]
	cmp	x28, x8
	b.eq	LBB0_31
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh13:
	adrp	x8, _MI_LOAD_REGISTER_REG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MI_LOAD_REGISTER_REG@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x28, x8
	b.eq	LBB0_32
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #1
	bl	_MI_LOAD_REGISTER_IMM
	cmp	x28, x0
	b.ne	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x25, #2
	cmp	x8, x21
	b.hi	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x19, x25, lsl #3
	ldr	x8, [x8, #8]
	ldrsw	x9, [x24]
	and	x8, x8, x9
	ldr	x9, [x24, #8]
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_17:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_33
LBB0_18:
	ldr	x8, [x19]
	ldr	w9, [x20]
	stp	x8, x9, [sp]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_33
LBB0_19:
	ldr	w8, [x22]
LBB0_20:
Lloh20:
	adrp	x9, _CMD_DESC_BITMASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CMD_DESC_BITMASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.21:
Lloh23:
	adrp	x8, _MAX_CMD_DESC_BITMASKS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX_CMD_DESC_BITMASKS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.22:
	ldr	x9, [x22, #8]
	add	x9, x9, #16
	mov	w0, #1
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x9, x9, #40
	subs	x8, x8, #1
	b.eq	LBB0_5
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-16]
	cbz	x10, LBB0_1
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldur	x11, [x9, #-8]
	cbz	x11, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x12, [x9]
	ldr	x12, [x19, x12, lsl #3]
	tst	x12, x11
	b.eq	LBB0_23
LBB0_27:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	x11, [x9, #8]
	cmp	x11, x21
	b.hs	LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x11, [x19, x11, lsl #3]
	and	x11, x11, x10
	ldr	x12, [x9, #16]
	cmp	x11, x12
	b.eq	LBB0_23
; %bb.29:
	ldr	x1, [x19]
	ldr	w8, [x20]
	stp	x11, x8, [sp, #16]
	stp	x10, x12, [sp]
Lloh26:
	adrp	x0, l_.str.6@PAGE
Lloh27:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_30:
	ldr	x1, [x19]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_31:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_33
LBB0_32:
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_33:
	mov	x1, x23
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_DESC_SKIP,4,2              ; @CMD_DESC_SKIP
	.comm	_CMD_DESC_REJECT,4,2            ; @CMD_DESC_REJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD: Rejected command: 0x%08X\n"

	.comm	_CMD_DESC_REGISTER,4,2          ; @CMD_DESC_REGISTER
l_.str.1:                               ; @.str.1
	.asciz	"CMD: Rejected register 0x%08X in command: 0x%08X (%s)\n"

	.comm	_MI_LOAD_REGISTER_MEM,8,3       ; @MI_LOAD_REGISTER_MEM
l_.str.2:                               ; @.str.2
	.asciz	"CMD: Rejected LRM to masked register 0x%08X\n"

	.comm	_MI_LOAD_REGISTER_REG,8,3       ; @MI_LOAD_REGISTER_REG
l_.str.3:                               ; @.str.3
	.asciz	"CMD: Rejected LRR to masked register 0x%08X\n"

l_.str.4:                               ; @.str.4
	.asciz	"CMD: Rejected LRI to masked register 0x%08X\n"

	.comm	_CMD_DESC_BITMASK,4,2           ; @CMD_DESC_BITMASK
	.comm	_MAX_CMD_DESC_BITMASKS,4,2      ; @MAX_CMD_DESC_BITMASKS
l_.str.5:                               ; @.str.5
	.asciz	"CMD: Rejected command 0x%08X, too short to check bitmask (%s)\n"

l_.str.6:                               ; @.str.6
	.asciz	"CMD: Rejected command 0x%08X for bitmask 0x%08X (exp=0x%08X act=0x%08X) (%s)\n"

	.no_dead_strip	_check_cmd
.subsections_via_symbols
