	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv40_graph_intr
_nv40_graph_intr:                       ## @nv40_graph_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_nouveau_fifo
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_nv_engine
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_NV03_PGRAPH_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nv_rd32
	movl	%eax, %r13d
	movq	_NV03_PGRAPH_NSOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nv_rd32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_NV03_PGRAPH_NSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nv_rd32
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$4195116, %esi                  ## imm = 0x40032C
	callq	_nv_rd32
	movl	%eax, %r14d
	andl	$1048575, %r14d                 ## imm = 0xFFFFF
	movq	_NV04_PGRAPH_TRAPPED_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %r12d
	shrl	$16, %r12d
	andl	$7, %r12d
	andl	$8188, %eax                     ## imm = 0x1FFC
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_NV04_PGRAPH_TRAPPED_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leal	4194656(,%r12,4), %esi
	movq	%rbx, %rdi
	callq	_nv_rd32
	movzwl	%ax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_nouveau_engctx_get
	movq	%r15, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	*(%r15)
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_NV_PGRAPH_INTR_ERROR@GOTPCREL(%rip), %rax
	movl	%r13d, %r15d
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.1:
	movq	_NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD@GOTPCREL(%rip), %rax
	movl	%r13d, %r15d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.2:
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_nouveau_handle_get_class
	movq	%rax, %r14
	movl	%r13d, %r15d
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%r14), %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nv_call
	movl	%r13d, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_NV_PGRAPH_INTR_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	%r13d, %r15d
	andl	%eax, %r15d
LBB0_5:
	movq	%r14, %rdi
	callq	_nouveau_handle_put
	movl	-60(%rbp), %r14d                ## 4-byte Reload
LBB0_6:
	movq	_NV03_PGRAPH_NSOURCE_DMA_VTX_PROTECTION@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$4202496, %esi                  ## imm = 0x402000
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nv_mask
LBB0_8:
	movq	_NV03_PGRAPH_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_nv_wr32
	movq	_NV04_PGRAPH_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_nv_wr32
	testl	%r15d, %r15d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_nv_error
	movq	_nv10_graph_intr_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_nouveau_bitfield_print
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_cont
	movq	_nv04_graph_nsource@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_nouveau_bitfield_print
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_cont
	movq	_nv10_graph_nstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_nouveau_bitfield_print
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_cont
	shll	$4, %r14d
	movq	%r13, %rdi
	callq	_nouveau_client_name
	subq	$8, %rsp
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%eax, %r8d
	movl	%r12d, %r9d
	xorl	%eax, %eax
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	callq	_nv_error
	addq	$32, %rsp
LBB0_10:
	movq	%r13, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nouveau_engctx_put             ## TAILCALL
	.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	_NV03_PGRAPH_NSOURCE_DMA_VTX_PROTECTION,4,2 ## @NV03_PGRAPH_NSOURCE_DMA_VTX_PROTECTION
	.comm	_NV04_PGRAPH_FIFO,4,2           ## @NV04_PGRAPH_FIFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_nv10_graph_intr_name,4,2       ## @nv10_graph_intr_name
L_.str.2:                               ## @.str.2
	.asciz	" nsource:"

	.comm	_nv04_graph_nsource,4,2         ## @nv04_graph_nsource
L_.str.3:                               ## @.str.3
	.asciz	" nstatus:"

	.comm	_nv10_graph_nstatus,4,2         ## @nv10_graph_nstatus
L_.str.4:                               ## @.str.4
	.asciz	"\n"

L_.str.5:                               ## @.str.5
	.asciz	"ch %d [0x%08x %s] subc %d class 0x%04x mthd 0x%04x data 0x%08x\n"

	.no_dead_strip	_nv40_graph_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv40_graph_intr
_nv40_graph_intr:                       ; @nv40_graph_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x19, x0
	bl	_nouveau_fifo
	mov	x27, x0
	mov	x0, x19
	bl	_nv_engine
	mov	x24, x0
Lloh0:
	adrp	x8, _NV03_PGRAPH_INTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV03_PGRAPH_INTR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nv_rd32
	mov	x20, x0
Lloh3:
	adrp	x8, _NV03_PGRAPH_NSOURCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV03_PGRAPH_NSOURCE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nv_rd32
	mov	x23, x0
Lloh6:
	adrp	x8, _NV03_PGRAPH_NSTATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NV03_PGRAPH_NSTATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nv_rd32
	str	w0, [sp, #76]                   ; 4-byte Folded Spill
	mov	w26, #352
	movk	w26, #64, lsl #16
	add	w1, w26, #460
	mov	x0, x19
	bl	_nv_rd32
	and	w22, w0, #0xfffff
Lloh9:
	adrp	x8, _NV04_PGRAPH_TRAPPED_ADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NV04_PGRAPH_TRAPPED_ADDR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nv_rd32
	ubfx	w21, w0, #16, #3
	and	w8, w0, #0x1ffc
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
Lloh12:
	adrp	x8, _NV04_PGRAPH_TRAPPED_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NV04_PGRAPH_TRAPPED_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nv_rd32
	str	x0, [sp, #80]                   ; 8-byte Folded Spill
	bfi	w26, w21, #2, #3
	mov	x0, x19
	mov	x1, x26
	bl	_nv_rd32
	and	w26, w0, #0xffff
	mov	x0, x24
	mov	x1, x22
	bl	_nouveau_engctx_get
	mov	x24, x0
	ldr	x8, [x27]
	mov	x0, x27
	mov	x1, x24
	blr	x8
	mov	x27, x0
Lloh15:
	adrp	x25, _NV_PGRAPH_INTR_ERROR@GOTPAGE
Lloh16:
	ldr	x25, [x25, _NV_PGRAPH_INTR_ERROR@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x28, x20
	tst	w8, w20
	b.eq	LBB0_8
; %bb.1:
Lloh17:
	adrp	x8, _NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mov	x28, x20
	tst	w8, w23
	b.eq	LBB0_6
; %bb.2:
	str	x21, [sp, #64]                  ; 8-byte Folded Spill
	mov	x1, x26
	mov	x21, x27
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_nouveau_handle_get_class
	mov	x27, x0
	mov	x28, x20
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x27]
	ldp	x2, x1, [sp, #80]               ; 16-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_nv_call
	mov	x28, x20
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [x25]
	bic	w28, w20, w8
LBB0_5:
	mov	x0, x27
	bl	_nouveau_handle_put
	mov	x27, x21
	ldr	x21, [sp, #64]                  ; 8-byte Folded Reload
LBB0_6:
Lloh20:
	adrp	x8, _NV03_PGRAPH_NSOURCE_DMA_VTX_PROTECTION@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NV03_PGRAPH_NSOURCE_DMA_VTX_PROTECTION@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #8192
	movk	w1, #64, lsl #16
	mov	w2, #0
	mov	w3, #0
	bl	_nv_mask
LBB0_8:
Lloh23:
	adrp	x8, _NV03_PGRAPH_INTR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NV03_PGRAPH_INTR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_nv_wr32
Lloh26:
	adrp	x8, _NV04_PGRAPH_FIFO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NV04_PGRAPH_FIFO@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_nv_wr32
	cbz	w28, LBB0_10
; %bb.9:
Lloh29:
	adrp	x8, l_.str.1@PAGE
Lloh30:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nv_error
Lloh33:
	adrp	x8, _nv10_graph_intr_name@GOTPAGE
Lloh34:
	ldr	x8, [x8, _nv10_graph_intr_name@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	x1, x28
	bl	_nouveau_bitfield_print
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_cont
Lloh38:
	adrp	x8, _nv04_graph_nsource@GOTPAGE
Lloh39:
	ldr	x8, [x8, _nv04_graph_nsource@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_nouveau_bitfield_print
Lloh41:
	adrp	x0, l_.str.3@PAGE
Lloh42:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_cont
Lloh43:
	adrp	x8, _nv10_graph_nstatus@GOTPAGE
Lloh44:
	ldr	x8, [x8, _nv10_graph_nstatus@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	ldr	w1, [sp, #76]                   ; 4-byte Folded Reload
	bl	_nouveau_bitfield_print
Lloh46:
	adrp	x0, l_.str.4@PAGE
Lloh47:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_cont
	lsl	w20, w22, #4
	mov	x0, x24
	bl	_nouveau_client_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp, #40]
	stp	x21, x26, [sp, #24]
	stp	x20, x0, [sp, #8]
Lloh48:
	adrp	x1, l_.str.5@PAGE
Lloh49:
	add	x1, x1, l_.str.5@PAGEOFF
	str	x27, [sp]
	mov	x0, x19
	bl	_nv_error
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_nouveau_engctx_put
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.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	_NV03_PGRAPH_NSOURCE_DMA_VTX_PROTECTION,4,2 ; @NV03_PGRAPH_NSOURCE_DMA_VTX_PROTECTION
	.comm	_NV04_PGRAPH_FIFO,4,2           ; @NV04_PGRAPH_FIFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_nv10_graph_intr_name,4,2       ; @nv10_graph_intr_name
l_.str.2:                               ; @.str.2
	.asciz	" nsource:"

	.comm	_nv04_graph_nsource,4,2         ; @nv04_graph_nsource
l_.str.3:                               ; @.str.3
	.asciz	" nstatus:"

	.comm	_nv10_graph_nstatus,4,2         ; @nv10_graph_nstatus
l_.str.4:                               ; @.str.4
	.asciz	"\n"

l_.str.5:                               ; @.str.5
	.asciz	"ch %d [0x%08x %s] subc %d class 0x%04x mthd 0x%04x data 0x%08x\n"

	.no_dead_strip	_nv40_graph_intr
.subsections_via_symbols
