	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_graph_trap_intr
_nvc0_graph_trap_intr:                  ## @nvc0_graph_trap_intr
	.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, %r12
	movl	$4194568, %esi                  ## imm = 0x400108
	callq	_nv_rd32
	movl	%eax, %r14d
	testb	$1, %r14b
	jne	LBB0_1
## %bb.2:
	testb	$2, %r14b
	jne	LBB0_3
LBB0_4:
	testb	$8, %r14b
	jne	LBB0_5
LBB0_6:
	testb	$16, %r14b
	jne	LBB0_7
LBB0_8:
	testb	$64, %r14b
	jne	LBB0_9
LBB0_10:
	testb	$-128, %r14b
	jne	LBB0_11
LBB0_12:
	testl	$16777216, %r14d                ## imm = 0x1000000
	jne	LBB0_13
LBB0_20:
	testl	$33554432, %r14d                ## imm = 0x2000000
	jne	LBB0_21
LBB0_25:
	testl	%r14d, %r14d
	je	LBB0_26
LBB0_27:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_nv_error
	movq	%r12, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	movl	$4210688, %esi                  ## imm = 0x404000
	callq	_nv_rd32
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nv_error
	movq	%r12, %rdi
	movl	$4210688, %esi                  ## imm = 0x404000
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	$1, %edx
	callq	_nv_wr32
	andl	$-2, %r14d
	testb	$2, %r14b
	je	LBB0_4
LBB0_3:
	movq	%r12, %rdi
	movl	$4212224, %esi                  ## imm = 0x404600
	callq	_nv_rd32
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nv_error
	movq	%r12, %rdi
	movl	$4212224, %esi                  ## imm = 0x404600
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	$2, %edx
	callq	_nv_wr32
	andl	$-3, %r14d
	testb	$8, %r14b
	je	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	movl	$4227120, %esi                  ## imm = 0x408030
	callq	_nv_rd32
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nv_error
	movq	%r12, %rdi
	movl	$4227120, %esi                  ## imm = 0x408030
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	$8, %edx
	callq	_nv_wr32
	andl	$-9, %r14d
	testb	$16, %r14b
	je	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	movl	$4216896, %esi                  ## imm = 0x405840
	callq	_nv_rd32
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nv_error
	movq	%r12, %rdi
	movl	$4216896, %esi                  ## imm = 0x405840
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	$16, %edx
	callq	_nv_wr32
	andl	$-17, %r14d
	testb	$64, %r14b
	je	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	movl	$4218908, %esi                  ## imm = 0x40601C
	callq	_nv_rd32
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nv_error
	movq	%r12, %rdi
	movl	$4218908, %esi                  ## imm = 0x40601C
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	$64, %edx
	callq	_nv_wr32
	andl	$-65, %r14d
	testb	$-128, %r14b
	je	LBB0_12
LBB0_11:
	movq	%r12, %rdi
	movl	$4211856, %esi                  ## imm = 0x404490
	callq	_nv_rd32
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nv_error
	movq	%r12, %rdi
	movl	$4211856, %esi                  ## imm = 0x404490
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	$128, %edx
	callq	_nv_wr32
	andl	$-129, %r14d
	testl	$16777216, %r14d                ## imm = 0x1000000
	je	LBB0_20
LBB0_13:
	movq	%r12, %rdi
	movl	$4194584, %esi                  ## imm = 0x400118
	callq	_nv_rd32
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	testl	%r15d, %r15d
	je	LBB0_19
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%r12), %ebx
	jge	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$1, %r13d
	movl	%ebx, %ecx
	shll	%cl, %r13d
	btl	%ebx, %r15d
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_nvc0_graph_trap_gpc
	movq	%r12, %rdi
	movl	$4194584, %esi                  ## imm = 0x400118
	movl	%r13d, %edx
	callq	_nv_wr32
	notl	%r13d
	andl	%r13d, %r15d
	jmp	LBB0_18
LBB0_19:
	movq	%r12, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	$16777216, %edx                 ## imm = 0x1000000
	callq	_nv_wr32
	andl	$-16777217, %r14d               ## imm = 0xFEFFFFFF
	testl	$33554432, %r14d                ## imm = 0x2000000
	je	LBB0_25
LBB0_21:
	cmpl	$0, 4(%r12)
	jle	LBB0_24
## %bb.22:
	leaq	L_.str.6(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movl	$112, %esi
	callq	_ROP_UNIT
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	movl	%eax, %r13d
	movl	%ebx, %edi
	movl	$324, %esi                      ## imm = 0x144
	callq	_ROP_UNIT
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_nv_error
	movl	%ebx, %edi
	movl	$112, %esi
	callq	_ROP_UNIT
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movl	%ebx, %edi
	movl	$324, %esi                      ## imm = 0x144
	callq	_ROP_UNIT
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	incl	%ebx
	cmpl	4(%r12), %ebx
	jl	LBB0_23
LBB0_24:
	movq	%r12, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	$33554432, %edx                 ## imm = 0x2000000
	callq	_nv_wr32
	andl	$-33554433, %r14d               ## imm = 0xFDFFFFFF
	testl	%r14d, %r14d
	jne	LBB0_27
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DISPATCH 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"M2MF 0x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"CCACHE 0x%08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"SHADER 0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"UNK6 0x%08x\n"

L_.str.5:                               ## @.str.5
	.asciz	"MACRO 0x%08x\n"

L_.str.6:                               ## @.str.6
	.asciz	"ROP%d 0x%08x 0x%08x\n"

L_.str.7:                               ## @.str.7
	.asciz	"TRAP UNHANDLED 0x%08x\n"

	.no_dead_strip	_nvc0_graph_trap_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvc0_graph_trap_intr
_nvc0_graph_trap_intr:                  ; @nvc0_graph_trap_intr
	.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	x19, x0
	mov	w22, #16384
	movk	w22, #64, lsl #16
	mov	w24, #264
	movk	w24, #64, lsl #16
	mov	w1, #264
	movk	w1, #64, lsl #16
	bl	_nv_rd32
	mov	x20, x0
	tbnz	w0, #0, LBB0_10
; %bb.1:
	tbnz	w20, #1, LBB0_11
LBB0_2:
	tbnz	w20, #3, LBB0_12
LBB0_3:
	tbnz	w20, #4, LBB0_13
LBB0_4:
	tbnz	w20, #6, LBB0_14
LBB0_5:
	tbnz	w20, #7, LBB0_15
LBB0_6:
	tbnz	w20, #24, LBB0_16
LBB0_7:
	tbnz	w20, #25, LBB0_23
LBB0_8:
	cbz	w20, LBB0_27
LBB0_9:
Lloh0:
	adrp	x1, l_.str.7@PAGE
Lloh1:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nv_error
	mov	x0, x19
	mov	w1, #264
	movk	w1, #64, lsl #16
	mov	x2, x20
	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
	b	_nv_wr32
LBB0_10:
	mov	x0, x19
	mov	w1, #16384
	movk	w1, #64, lsl #16
	bl	_nv_rd32
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	mov	x0, x19
	mov	w1, #16384
	movk	w1, #64, lsl #16
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #264
	movk	w1, #64, lsl #16
	mov	w2, #1
	bl	_nv_wr32
	and	w20, w20, #0xfffffffe
	tbz	w20, #1, LBB0_2
LBB0_11:
	add	w21, w22, #1536
	mov	x0, x19
	mov	x1, x21
	bl	_nv_rd32
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	mov	x0, x19
	mov	x1, x21
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #264
	movk	w1, #64, lsl #16
	mov	w2, #2
	bl	_nv_wr32
	and	w20, w20, #0xfffffffd
	tbz	w20, #3, LBB0_3
LBB0_12:
	mov	x0, x19
	mov	w1, #32816
	movk	w1, #64, lsl #16
	bl	_nv_rd32
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	mov	x0, x19
	mov	w1, #32816
	movk	w1, #64, lsl #16
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #264
	movk	w1, #64, lsl #16
	mov	w2, #8
	bl	_nv_wr32
	and	w20, w20, #0xfffffff7
	tbz	w20, #4, LBB0_4
LBB0_13:
	mov	x0, x19
	mov	w1, #22592
	movk	w1, #64, lsl #16
	bl	_nv_rd32
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	mov	x0, x19
	mov	w1, #22592
	movk	w1, #64, lsl #16
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #264
	movk	w1, #64, lsl #16
	mov	w2, #16
	bl	_nv_wr32
	and	w20, w20, #0xffffffef
	tbz	w20, #6, LBB0_5
LBB0_14:
	mov	w8, #22592
	movk	w8, #64, lsl #16
	add	w21, w8, #2012
	mov	x0, x19
	mov	x1, x21
	bl	_nv_rd32
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	mov	x0, x19
	mov	x1, x21
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #264
	movk	w1, #64, lsl #16
	mov	w2, #64
	bl	_nv_wr32
	and	w20, w20, #0xffffffbf
	tbz	w20, #7, LBB0_6
LBB0_15:
	add	w21, w22, #1168
	mov	x0, x19
	mov	x1, x21
	bl	_nv_rd32
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	mov	x0, x19
	mov	x1, x21
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #264
	movk	w1, #64, lsl #16
	mov	w2, #128
	bl	_nv_wr32
	and	w20, w20, #0xffffff7f
	tbz	w20, #24, LBB0_7
LBB0_16:
	add	w1, w24, #16
	mov	x0, x19
	bl	_nv_rd32
	cbz	w0, LBB0_22
; %bb.17:
	mov	x21, x0
	mov	w22, #0
	mov	w25, #1
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	w22, w22, #1
	cbz	w21, LBB0_22
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w22, w8
	b.ge	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	lsl	w23, w25, w22
	tst	w23, w21
	b.eq	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_nvc0_graph_trap_gpc
	add	w1, w24, #16
	mov	x0, x19
	mov	x2, x23
	bl	_nv_wr32
	bic	w21, w21, w23
	b	LBB0_18
LBB0_22:
	mov	x0, x19
	mov	w1, #264
	movk	w1, #64, lsl #16
	mov	w2, #16777216
	bl	_nv_wr32
	and	w20, w20, #0xfeffffff
	tbz	w20, #25, LBB0_8
LBB0_23:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.24:
	mov	w21, #0
Lloh14:
	adrp	x22, l_.str.6@PAGE
Lloh15:
	add	x22, x22, l_.str.6@PAGEOFF
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #112
	bl	_ROP_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
	mov	x23, x0
	mov	x0, x21
	mov	w1, #324
	bl	_ROP_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_nv_error
	mov	x0, x21
	mov	w1, #112
	bl	_ROP_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x21
	mov	w1, #324
	bl	_ROP_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	add	w21, w21, #1
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.lt	LBB0_25
LBB0_26:
	mov	x0, x19
	mov	w1, #264
	movk	w1, #64, lsl #16
	mov	w2, #33554432
	bl	_nv_wr32
	and	w20, w20, #0xfdffffff
	cbnz	w20, LBB0_9
LBB0_27:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DISPATCH 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"M2MF 0x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"CCACHE 0x%08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"SHADER 0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"UNK6 0x%08x\n"

l_.str.5:                               ; @.str.5
	.asciz	"MACRO 0x%08x\n"

l_.str.6:                               ; @.str.6
	.asciz	"ROP%d 0x%08x 0x%08x\n"

l_.str.7:                               ; @.str.7
	.asciz	"TRAP UNHANDLED 0x%08x\n"

	.no_dead_strip	_nvc0_graph_trap_intr
.subsections_via_symbols
