	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_vm_packet3_compute_check
_si_vm_packet3_compute_check:           ## @si_vm_packet3_compute_check
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	8(%rdx), %eax
	leal	-128(%rax), %edx
	cmpl	$34, %edx
	ja	LBB0_17
## %bb.1:
	movq	(%rbx), %rax
	movq	8(%rsi,%rax,8), %rcx
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rdx,4), %rdx
	addq	%rdi, %rdx
	jmpq	*%rdx
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	jmp	LBB0_6
LBB0_7:
	testl	$3840, %ecx                     ## imm = 0xF00
	jne	LBB0_19
## %bb.8:
	movq	16(%rsi,%rax,8), %r14
	testl	$65536, %ecx                    ## imm = 0x10000
	jne	LBB0_11
## %bb.9:
	cmpl	$2, 12(%rbx)
	je	LBB0_19
## %bb.10:
	shlq	$2, %r14
	xorl	%r15d, %r15d
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_si_vm_reg_valid
	testl	%eax, %eax
	je	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	movslq	12(%rbx), %rax
	addq	$-2, %rax
	addq	$4, %r14
	cmpq	%rax, %r15
	jb	LBB0_13
	jmp	LBB0_19
LBB0_18:
	incq	%rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_si_vm_packet3_cp_dma_check
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_19
LBB0_16:
	testb	$2, %cl
	je	LBB0_19
	jmp	LBB0_3
LBB0_2:
	testl	$3840, %ecx                     ## imm = 0xF00
	jne	LBB0_19
LBB0_3:
	movq	32(%rsi,%rax,8), %rdi
	jmp	LBB0_4
LBB0_14:
	testl	$256, %ecx                      ## imm = 0x100
	je	LBB0_19
## %bb.15:
	movq	48(%rsi,%rax,8), %rdi
LBB0_4:
	shlq	$2, %rdi
LBB0_5:
	callq	_si_vm_reg_valid
	testl	%eax, %eax
	jne	LBB0_19
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_11:
	shlq	$2, %r14
	movq	%r14, %rdi
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_7
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_2
	.long	L0_0_set_19
	.long	L0_0_set_14
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Compute packet3: 0x%x\n"

	.no_dead_strip	_si_vm_packet3_compute_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_vm_packet3_compute_check
_si_vm_packet3_compute_check:           ; @si_vm_packet3_compute_check
	.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
	ldr	w8, [x2, #8]
	sub	w11, w8, #128
	cmp	w11, #34
	b.hi	LBB0_4
; %bb.1:
	mov	x19, x2
	ldr	x9, [x2]
	add	x8, x9, #1
	ldr	x10, [x1, x8, lsl #3]
Lloh0:
	adrp	x12, lJTI0_0@PAGE
Lloh1:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_2
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_2:
	mov	w0, #0
LBB0_3:
	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_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_DRM_ERROR
	b	LBB0_18
LBB0_5:
	tst	x10, #0xf00
	b.ne	LBB0_2
; %bb.6:
	add	x8, x1, x9, lsl #3
	ldr	x8, [x8, #16]
	tbnz	w10, #16, LBB0_17
; %bb.7:
	ldr	w9, [x19, #12]
	cmp	w9, #2
	b.eq	LBB0_2
; %bb.8:
	mov	x21, #0
	lsl	x20, x8, #2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_si_vm_reg_valid
	cbz	w0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #12]
	sub	x8, x8, #2
	add	x20, x20, #4
	cmp	x21, x8
	b.lo	LBB0_9
	b	LBB0_2
LBB0_11:
	mov	x0, x1
	mov	x1, x8
	bl	_si_vm_packet3_cp_dma_check
	cbnz	w0, LBB0_3
	b	LBB0_2
LBB0_12:
	tbz	w10, #1, LBB0_2
	b	LBB0_14
LBB0_13:
	tst	x10, #0xf00
	b.ne	LBB0_2
LBB0_14:
	add	x8, x1, x9, lsl #3
	ldr	x8, [x8, #32]
	b	LBB0_17
LBB0_15:
	tbz	w10, #8, LBB0_2
; %bb.16:
	add	x8, x1, x9, lsl #3
	ldr	x8, [x8, #48]
LBB0_17:
	lsl	x0, x8, #2
	bl	_si_vm_reg_valid
	cbnz	w0, LBB0_2
LBB0_18:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Compute packet3: 0x%x\n"

	.no_dead_strip	_si_vm_packet3_compute_check
.subsections_via_symbols
