	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv10_gr_intr                   ## -- Begin function nv10_gr_intr
	.p2align	4, 0x90
_nv10_gr_intr:                          ## @nv10_gr_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
	subq	$456, %rsp                      ## imm = 0x1C8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_nv10_gr
	movq	%rax, %r14
	movq	16(%rax), %r13
	movq	_NV03_PGRAPH_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_nvkm_rd32
	movl	%eax, %r15d
	movq	_NV03_PGRAPH_NSOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_nvkm_rd32
	movl	%eax, -436(%rbp)                ## 4-byte Spill
	movq	_NV03_PGRAPH_NSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -496(%rbp)                ## 8-byte Spill
	movq	_NV04_PGRAPH_TRAPPED_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ebx
	shrl	$20, %ebx
	andl	$31, %ebx
	movl	%eax, %r12d
	shrl	$16, %r12d
	andl	$7, %r12d
	andl	$8188, %eax                     ## imm = 0x1FFC
	movq	%rax, -480(%rbp)                ## 8-byte Spill
	movq	_NV04_PGRAPH_TRAPPED_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -472(%rbp)                ## 8-byte Spill
	leal	4194656(,%r12,4), %esi
	movq	%r13, %rdi
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	andl	$4095, %eax                     ## imm = 0xFFF
	movq	%rax, -464(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, -448(%rbp)                ## 8-byte Spill
	movq	8(%r14), %rax
	movq	%rbx, -488(%rbp)                ## 8-byte Spill
	movq	(%rax,%rbx,8), %rax
	movq	_NV_PGRAPH_INTR_ERROR@GOTPCREL(%rip), %rbx
	movl	%r15d, %r14d
	testl	%r15d, (%rbx)
	movq	%rax, -456(%rbp)                ## 8-byte Spill
	je	LBB0_5
## %bb.1:
	movl	%r15d, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD@GOTPCREL(%rip), %rax
	movl	%r15d, %r14d
	movl	-436(%rbp), %ecx                ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	-456(%rbp), %rdi                ## 8-byte Reload
	movq	-464(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-480(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-472(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_nv10_gr_mthd
	movl	%r15d, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%rbx), %r14d
	notl	%r14d
	andl	%r15d, %r14d
LBB0_5:
	movq	_NV_PGRAPH_INTR_CONTEXT_SWITCH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	testl	%r15d, %edx
	je	LBB0_7
## %bb.6:
	movq	_NV03_PGRAPH_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_nvkm_wr32
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, %r15d
	andl	%eax, %r14d
	movq	-448(%rbp), %rdi                ## 8-byte Reload
	callq	_nv10_gr_context_switch
LBB0_7:
	movq	_NV03_PGRAPH_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_nvkm_wr32
	movq	_NV04_PGRAPH_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_nvkm_wr32
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.8:
	movq	-448(%rbp), %rbx                ## 8-byte Reload
	addq	$16, %rbx
	movq	_nv10_gr_intr_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	movl	%r14d, %ecx
	callq	_nvkm_snprintbf
	movq	_nv04_gr_nsource@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-304(%rbp), %rdi
	movl	$128, %esi
	movl	-436(%rbp), %ecx                ## 4-byte Reload
	callq	_nvkm_snprintbf
	movq	_nv10_gr_nstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-432(%rbp), %r15
	movq	%r15, %rdi
	movl	$128, %esi
	movq	-496(%rbp), %r13                ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_nvkm_snprintbf
	movq	-456(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	(%rax), %rax
	movq	(%rax), %rax
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.1(%rip), %rax
LBB0_11:
	leaq	L_.str(%rip), %rsi
	leaq	-176(%rbp), %rcx
	leaq	-304(%rbp), %r9
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	-436(%rbp), %r8d                ## 4-byte Reload
	pushq	-472(%rbp)                      ## 8-byte Folded Reload
	pushq	-480(%rbp)                      ## 8-byte Folded Reload
	pushq	-464(%rbp)                      ## 8-byte Folded Reload
	pushq	%r12
	pushq	%rax
	pushq	-488(%rbp)                      ## 8-byte Folded Reload
	pushq	%r15
	pushq	%r13
	callq	_nvkm_error
	addq	$64, %rsp
LBB0_12:
	movq	-448(%rbp), %rdi                ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$456, %rsp                      ## imm = 0x1C8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NV03_PGRAPH_INTR,4,2           ## @NV03_PGRAPH_INTR
	.comm	_NV03_PGRAPH_NSOURCE,4,2        ## @NV03_PGRAPH_NSOURCE
	.comm	_NV03_PGRAPH_NSTATUS,4,2        ## @NV03_PGRAPH_NSTATUS
	.comm	_NV04_PGRAPH_TRAPPED_ADDR,4,2   ## @NV04_PGRAPH_TRAPPED_ADDR
	.comm	_NV04_PGRAPH_TRAPPED_DATA,4,2   ## @NV04_PGRAPH_TRAPPED_DATA
	.comm	_NV_PGRAPH_INTR_ERROR,4,2       ## @NV_PGRAPH_INTR_ERROR
	.comm	_NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD,4,2 ## @NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD
	.comm	_NV_PGRAPH_INTR_CONTEXT_SWITCH,4,2 ## @NV_PGRAPH_INTR_CONTEXT_SWITCH
	.comm	_NV04_PGRAPH_FIFO,4,2           ## @NV04_PGRAPH_FIFO
	.comm	_nv10_gr_intr_name,4,2          ## @nv10_gr_intr_name
	.comm	_nv04_gr_nsource,4,2            ## @nv04_gr_nsource
	.comm	_nv10_gr_nstatus,4,2            ## @nv10_gr_nstatus
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"intr %08x [%s] nsource %08x [%s] nstatus %08x [%s] ch %d [%s] subc %d class %04x mthd %04x data %08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"unknown"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv10_gr_intr                   ; -- Begin function nv10_gr_intr
	.p2align	2
_nv10_gr_intr:                          ; @nv10_gr_intr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #464
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	bl	_nv10_gr
	mov	x19, x0
	mov	x20, x0
	ldr	x26, [x20, #16]!
Lloh3:
	adrp	x8, _NV03_PGRAPH_INTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV03_PGRAPH_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_nvkm_rd32
	mov	x28, x0
Lloh6:
	adrp	x8, _NV03_PGRAPH_NSOURCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NV03_PGRAPH_NSOURCE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_nvkm_rd32
	mov	x21, x0
Lloh9:
	adrp	x8, _NV03_PGRAPH_NSTATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NV03_PGRAPH_NSTATUS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_nvkm_rd32
	str	w0, [sp, #48]                   ; 4-byte Folded Spill
Lloh12:
	adrp	x8, _NV04_PGRAPH_TRAPPED_ADDR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NV04_PGRAPH_TRAPPED_ADDR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_nvkm_rd32
	ubfx	w22, w0, #20, #5
	ubfx	w24, w0, #16, #3
	and	w8, w0, #0x1ffc
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
Lloh15:
	adrp	x8, _NV04_PGRAPH_TRAPPED_DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NV04_PGRAPH_TRAPPED_DATA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_nvkm_rd32
	str	w0, [sp, #56]                   ; 4-byte Folded Spill
	mov	w1, #352
	movk	w1, #64, lsl #16
	bfi	w1, w24, #2, #3
	mov	x0, x26
	bl	_nvkm_rd32
	and	w8, w0, #0xfff
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	str	w22, [sp, #44]                  ; 4-byte Folded Spill
	ldr	x23, [x8, w22, uxtw #3]
Lloh18:
	adrp	x25, _NV_PGRAPH_INTR_ERROR@GOTPAGE
Lloh19:
	ldr	x25, [x25, _NV_PGRAPH_INTR_ERROR@GOTPAGEOFF]
	ldr	w8, [x25]
	and	w8, w8, w28
	cmp	w8, #0
	ccmp	x23, #0, #4, ne
	mov	x27, x28
	b.eq	LBB0_4
; %bb.1:
Lloh20:
	adrp	x8, _NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	mov	x27, x28
	tst	w8, w21
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x23
	ldp	w1, w3, [sp, #52]               ; 8-byte Folded Reload
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	bl	_nv10_gr_mthd
	mov	x27, x28
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x25]
	bic	w27, w28, w8
LBB0_4:
Lloh23:
	adrp	x25, _NV_PGRAPH_INTR_CONTEXT_SWITCH@GOTPAGE
Lloh24:
	ldr	x25, [x25, _NV_PGRAPH_INTR_CONTEXT_SWITCH@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh25:
	adrp	x22, _NV03_PGRAPH_INTR@GOTPAGE
Lloh26:
	ldr	x22, [x22, _NV03_PGRAPH_INTR@GOTPAGEOFF]
	tst	w2, w28
	b.eq	LBB0_6
; %bb.5:
	ldr	w1, [x22]
	mov	x0, x26
	bl	_nvkm_wr32
	ldr	w8, [x25]
	bic	w28, w28, w8
	bic	w27, w27, w8
	mov	x0, x19
	bl	_nv10_gr_context_switch
LBB0_6:
	ldr	w1, [x22]
	mov	x0, x26
	mov	x2, x28
	bl	_nvkm_wr32
Lloh27:
	adrp	x8, _NV04_PGRAPH_FIFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NV04_PGRAPH_FIFO@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x26
	mov	w2, #1
	bl	_nvkm_wr32
	cbz	w27, LBB0_11
; %bb.7:
Lloh30:
	adrp	x8, _nv10_gr_intr_name@GOTPAGE
Lloh31:
	ldr	x8, [x8, _nv10_gr_intr_name@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	sub	x0, x29, #224
	mov	w1, #128
	mov	x3, x27
	bl	_nvkm_snprintbf
Lloh33:
	adrp	x8, _nv04_gr_nsource@GOTPAGE
Lloh34:
	ldr	x8, [x8, _nv04_gr_nsource@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	add	x0, sp, #192
	mov	w1, #128
	mov	x3, x21
	bl	_nvkm_snprintbf
Lloh36:
	adrp	x8, _nv10_gr_nstatus@GOTPAGE
Lloh37:
	ldr	x8, [x8, _nv10_gr_nstatus@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	add	x0, sp, #64
	mov	w1, #128
	ldr	w25, [sp, #48]                  ; 4-byte Folded Reload
	mov	x3, x25
	bl	_nvkm_snprintbf
	cbz	x23, LBB0_9
; %bb.8:
	ldr	x8, [x23]
	ldr	x8, [x8]
	b	LBB0_10
LBB0_9:
Lloh39:
	adrp	x8, l_.str.1@PAGE
Lloh40:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_10:
	ldr	w10, [sp, #56]                  ; 4-byte Folded Reload
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	stp	w9, w10, [sp, #24]
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	stp	w24, w9, [sp, #16]
Lloh41:
	adrp	x1, l_.str@PAGE
Lloh42:
	add	x1, x1, l_.str@PAGEOFF
	sub	x3, x29, #224
	add	x5, sp, #192
	str	x8, [sp, #8]
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	str	w8, [sp]
	add	x7, sp, #64
	mov	x0, x20
	mov	x2, x27
	mov	x4, x21
	mov	x6, x25
	bl	_nvkm_error
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldur	x8, [x29, #-96]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	add	sp, sp, #464
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_NV03_PGRAPH_INTR,4,2           ; @NV03_PGRAPH_INTR
	.comm	_NV03_PGRAPH_NSOURCE,4,2        ; @NV03_PGRAPH_NSOURCE
	.comm	_NV03_PGRAPH_NSTATUS,4,2        ; @NV03_PGRAPH_NSTATUS
	.comm	_NV04_PGRAPH_TRAPPED_ADDR,4,2   ; @NV04_PGRAPH_TRAPPED_ADDR
	.comm	_NV04_PGRAPH_TRAPPED_DATA,4,2   ; @NV04_PGRAPH_TRAPPED_DATA
	.comm	_NV_PGRAPH_INTR_ERROR,4,2       ; @NV_PGRAPH_INTR_ERROR
	.comm	_NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD,4,2 ; @NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD
	.comm	_NV_PGRAPH_INTR_CONTEXT_SWITCH,4,2 ; @NV_PGRAPH_INTR_CONTEXT_SWITCH
	.comm	_NV04_PGRAPH_FIFO,4,2           ; @NV04_PGRAPH_FIFO
	.comm	_nv10_gr_intr_name,4,2          ; @nv10_gr_intr_name
	.comm	_nv04_gr_nsource,4,2            ; @nv04_gr_nsource
	.comm	_nv10_gr_nstatus,4,2            ; @nv10_gr_nstatus
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"intr %08x [%s] nsource %08x [%s] nstatus %08x [%s] ch %d [%s] subc %d class %04x mthd %04x data %08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"unknown"

.subsections_via_symbols
