	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v10_0_handle_priv_fault
_gfx_v10_0_handle_priv_fault:           ## @gfx_v10_0_handle_priv_fault
	.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
	movq	%rdi, %r15
	movl	(%rsi), %r12d
	movl	%r12d, %r13d
	shrl	$2, %r13d
	andl	$3, %r13d
	movl	%r12d, %edx
	andl	$3, %edx
	leal	-1(%r13), %eax
	cmpl	$2, %eax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jae	LBB0_1
## %bb.8:
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.9:
	shrl	$4, %r12d
	andl	$7, %r12d
	movl	$12, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	cmpl	%r13d, -12(%rdi,%rbx)
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%edx, -8(%rdi,%rbx)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%r12d, -4(%rdi,%rbx)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	%rbx, %rdi
	callq	_drm_sched_fault
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	4(%r15), %eax
	jmp	LBB0_14
LBB0_1:
	testl	%r13d, %r13d
	jne	LBB0_16
## %bb.2:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.3:
	movl	$12, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	cmpl	$0, -12(%rdi,%rbx)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edx, -8(%rdi,%rbx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %rdi
	callq	_drm_sched_fault
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	(%r15), %eax
	jmp	LBB0_7
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gfx_v10_0_handle_priv_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v10_0_handle_priv_fault
_gfx_v10_0_handle_priv_fault:           ; @gfx_v10_0_handle_priv_fault
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w9, [x1]
	ubfx	w21, w9, #2, #2
	and	w20, w9, #0x3
	sub	w8, w21, #1
	cmp	w8, #2
	b.hs	LBB0_8
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x22, #0
	mov	x23, #0
	ubfx	w24, w9, #4, #3
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	add	x22, x22, #16
	cmp	x23, w8, sxtw
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	w10, [x9, x22]
	cmp	w10, w21
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x9, x22
	ldr	w11, [x10, #4]
	cmp	w11, w20
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x10, #8]
	cmp	w10, w24
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x9, x22
	add	x0, x8, #12
	bl	_drm_sched_fault
	ldr	w8, [x19, #4]
	b	LBB0_3
LBB0_8:
	cbnz	w21, LBB0_16
; %bb.9:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.10:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	add	x21, x21, #16
	cmp	x22, w8, sxtw
	b.ge	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	w10, [x9, x21]
	cbnz	w10, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, x21
	ldr	w10, [x9, #4]
	cmp	w10, w20
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x0, x9, #12
	bl	_drm_sched_fault
	ldr	w8, [x19]
	b	LBB0_11
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_BUG
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gfx_v10_0_handle_priv_fault
.subsections_via_symbols
