	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_graph_intr
_nvc0_graph_intr:                       ## @nvc0_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, %r15
	callq	_nouveau_fifo
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_nv_engine
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$4233984, %esi                  ## imm = 0x409B00
	callq	_nv_rd32
	movl	%eax, %r12d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	andl	$268435455, %r12d               ## imm = 0xFFFFFFF
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	callq	_nv_rd32
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	$4196100, %esi                  ## imm = 0x400704
	callq	_nv_rd32
	movl	%eax, %r13d
	andl	$16380, %eax                    ## imm = 0x3FFC
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	shrl	$16, %r13d
	andl	$7, %r13d
	movq	%r15, %rdi
	movl	$4196104, %esi                  ## imm = 0x400708
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$4194576, %esi                  ## imm = 0x400110
	callq	_nv_rd32
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	leal	4211200(,%r13,4), %esi
	movq	%r15, %rdi
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_nouveau_engctx_get
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	*(%rbx)
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testb	$16, %r14b
	jne	LBB0_1
## %bb.5:
	testb	$32, %r14b
	jne	LBB0_6
LBB0_7:
	testl	$1048576, %r14d                 ## imm = 0x100000
	jne	LBB0_8
LBB0_9:
	testl	$2097152, %r14d                 ## imm = 0x200000
	jne	LBB0_10
LBB0_11:
	testl	$524288, %r14d                  ## imm = 0x80000
	jne	LBB0_12
LBB0_13:
	testl	%r14d, %r14d
	je	LBB0_15
LBB0_14:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_nv_error
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	%r14d, %edx
	callq	_nv_wr32
LBB0_15:
	movq	%r15, %rdi
	movl	$4195584, %esi                  ## imm = 0x400500
	movl	$65537, %edx                    ## imm = 0x10001
	callq	_nv_wr32
	movq	%r12, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nouveau_engctx_put             ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_nouveau_handle_get_class
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nv_call
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	shll	$12, %r12d
	movq	%rbx, %rdi
	callq	_nouveau_client_name
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movq	%rbx, %r12
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_nv_error
	addq	$32, %rsp
LBB0_4:
	movq	%rbx, %rdi
	callq	_nouveau_handle_put
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$16, %edx
	callq	_nv_wr32
	andl	$-17, %r14d
	testb	$32, %r14b
	je	LBB0_7
LBB0_6:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	shll	$12, %ebx
	movq	%r12, %rdi
	callq	_nouveau_client_name
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_nv_error
	addq	$32, %rsp
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$32, %edx
	callq	_nv_wr32
	andl	$-33, %r14d
	testl	$1048576, %r14d                 ## imm = 0x100000
	je	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_nv_error
	movq	_nv50_data_error_names@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_nouveau_enum_print
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	shll	$12, %ebx
	movq	%r12, %rdi
	callq	_nouveau_client_name
	leaq	L_.str.3(%rip), %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r13d, %r8d
	movq	-80(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_pr_cont
	addq	$16, %rsp
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$1048576, %edx                  ## imm = 0x100000
	callq	_nv_wr32
	andl	$-1048577, %r14d                ## imm = 0xFFEFFFFF
	testl	$2097152, %r14d                 ## imm = 0x200000
	je	LBB0_11
LBB0_10:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	shll	$12, %ebx
	movq	%r12, %rdi
	callq	_nouveau_client_name
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_nv_error
	movq	%r15, %rdi
	callq	_nvc0_graph_trap_intr
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$2097152, %edx                  ## imm = 0x200000
	callq	_nv_wr32
	andl	$-2097153, %r14d                ## imm = 0xFFDFFFFF
	testl	$524288, %r14d                  ## imm = 0x80000
	je	LBB0_13
LBB0_12:
	movq	%r15, %rdi
	callq	_nvc0_graph_ctxctl_isr
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$524288, %edx                   ## imm = 0x80000
	callq	_nv_wr32
	andl	$-524289, %r14d                 ## imm = 0xFFF7FFFF
	testl	%r14d, %r14d
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ILLEGAL_MTHD ch %d [0x%010llx %s] subc %d class 0x%04x mthd 0x%04x data 0x%08x\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"DATA_ERROR ["

	.comm	_nv50_data_error_names,4,2      ## @nv50_data_error_names
L_.str.3:                               ## @.str.3
	.asciz	"] ch %d [0x%010llx %s] subc %d class 0x%04x mthd 0x%04x data 0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"TRAP ch %d [0x%010llx %s]\n"

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

	.no_dead_strip	_nvc0_graph_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_intr
_nvc0_graph_intr:                       ; @nvc0_graph_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	w23, #256
	movk	w23, #64, lsl #16
	bl	_nouveau_fifo
	mov	x26, x0
	mov	x0, x19
	bl	_nv_engine
	mov	x21, x0
	mov	x0, x19
	mov	w1, #39680
	movk	w1, #64, lsl #16
	bl	_nv_rd32
	mov	x22, x0
	and	w28, w0, #0xfffffff
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	bl	_nv_rd32
	mov	x20, x0
	mov	w8, #1540
	orr	w1, w23, w8
	mov	x0, x19
	bl	_nv_rd32
	and	w8, w0, #0x3ffc
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	ubfx	w24, w0, #16, #3
	mov	w8, #1544
	orr	w1, w23, w8
	mov	x0, x19
	bl	_nv_rd32
	mov	x25, x0
	orr	w1, w23, #0x10
	mov	x0, x19
	bl	_nv_rd32
	str	w0, [sp, #68]                   ; 4-byte Folded Spill
	mov	w1, #16896
	movk	w1, #64, lsl #16
	bfi	w1, w24, #2, #3
	mov	x0, x19
	bl	_nv_rd32
	mov	x27, x0
	mov	x0, x21
	mov	x1, x28
	bl	_nouveau_engctx_get
	mov	x21, x0
	ldr	x8, [x26]
	mov	x0, x26
	mov	x1, x21
	blr	x8
	mov	x26, x0
	tbnz	w20, #4, LBB0_8
; %bb.1:
	tbnz	w20, #5, LBB0_12
LBB0_2:
	tbnz	w20, #20, LBB0_13
LBB0_3:
	tbnz	w20, #21, LBB0_14
LBB0_4:
	tbnz	w20, #19, LBB0_15
LBB0_5:
	cbz	w20, LBB0_7
LBB0_6:
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str.5@PAGE
Lloh1:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	x2, x20
	bl	_nv_wr32
LBB0_7:
	add	w1, w23, #1024
	mov	x0, x19
	mov	w2, #65537
	bl	_nv_wr32
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_nouveau_engctx_put
LBB0_8:
	mov	x0, x21
	mov	x1, x27
	bl	_nouveau_handle_get_class
	mov	x28, x0
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x28]
	ldr	x1, [sp, #72]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x25
	bl	_nv_call
	cbz	x0, LBB0_11
LBB0_10:
	lsl	w23, w22, #12
	mov	x0, x21
	bl	_nouveau_client_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	stp	x8, x25, [sp, #40]
	stp	x24, x27, [sp, #24]
	stp	x23, x0, [sp, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w23, #256
	movk	w23, #64, lsl #16
	str	x26, [sp]
	mov	x0, x19
	bl	_nv_error
LBB0_11:
	mov	x0, x28
	bl	_nouveau_handle_put
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	w2, #16
	bl	_nv_wr32
	and	w20, w20, #0xffffffef
	tbz	w20, #5, LBB0_2
LBB0_12:
	lsl	w23, w22, #12
	mov	x0, x21
	bl	_nouveau_client_name
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x8, x25
	str	x8, [sp, #48]
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	mov	x9, x27
	stp	x9, x8, [sp, #32]
	mov	x8, x24
	stp	x0, x8, [sp, #16]
	mov	x8, x26
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	stp	x8, x23, [sp]
	mov	w23, #256
	movk	w23, #64, lsl #16
	mov	x0, x19
	bl	_nv_error
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	w2, #32
	bl	_nv_wr32
	and	w20, w20, #0xffffffdf
	tbz	w20, #20, LBB0_3
LBB0_13:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_nv_error
Lloh8:
	adrp	x8, _nv50_data_error_names@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nv50_data_error_names@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [sp, #68]                   ; 4-byte Folded Reload
	bl	_nouveau_enum_print
	lsl	w28, w22, #12
	mov	x0, x21
	bl	_nouveau_client_name
	mov	x3, x0
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x26
	mov	x2, x28
	mov	x4, x24
	mov	x5, x27
	ldr	x6, [sp, #72]                   ; 8-byte Folded Reload
                                        ; kill: def $w6 killed $w6 killed $x6
	mov	x7, x25
	bl	_pr_cont
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	w2, #1048576
	bl	_nv_wr32
	and	w20, w20, #0xffefffff
	tbz	w20, #21, LBB0_4
LBB0_14:
	lsl	w22, w22, #12
	mov	x0, x21
	bl	_nouveau_client_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #8]
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	str	x26, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	mov	x0, x19
	bl	_nvc0_graph_trap_intr
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	w2, #2097152
	bl	_nv_wr32
	and	w20, w20, #0xffdfffff
	tbz	w20, #19, LBB0_5
LBB0_15:
	mov	x0, x19
	bl	_nvc0_graph_ctxctl_isr
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	w2, #524288
	bl	_nv_wr32
	and	w20, w20, #0xfff7ffff
	cbnz	w20, LBB0_6
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ILLEGAL_MTHD ch %d [0x%010llx %s] subc %d class 0x%04x mthd 0x%04x data 0x%08x\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"DATA_ERROR ["

	.comm	_nv50_data_error_names,4,2      ; @nv50_data_error_names
l_.str.3:                               ; @.str.3
	.asciz	"] ch %d [0x%010llx %s] subc %d class 0x%04x mthd 0x%04x data 0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"TRAP ch %d [0x%010llx %s]\n"

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

	.no_dead_strip	_nvc0_graph_intr
.subsections_via_symbols
