	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nve0_graph_intr
_nve0_graph_intr:                       ## @nve0_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	%rbx, %rdi
	movl	$4233984, %esi                  ## imm = 0x409B00
	callq	_nv_rd32
	movl	%eax, %r12d
	andl	$268435455, %r12d               ## imm = 0xFFFFFFF
	movq	%rbx, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	callq	_nv_rd32
	movl	%eax, %r14d
	movq	%rbx, %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	%rbx, %rdi
	movl	$4196104, %esi                  ## imm = 0x400708
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$4194576, %esi                  ## imm = 0x400110
	callq	_nv_rd32
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	leal	4211200(,%r13,4), %esi
	movq	%rbx, %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, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %esi
	callq	_nouveau_engctx_get
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	*(%r15)
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testb	$16, %r14b
	je	LBB0_5
## %bb.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, %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r15), %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	%r12, %rdi
	callq	_nouveau_client_name
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-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	%r15, %rdi
	callq	_nouveau_handle_put
	movq	%rbx, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$16, %edx
	callq	_nv_wr32
	andl	$-17, %r14d
LBB0_5:
	testb	$32, %r14b
	jne	LBB0_7
## %bb.6:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testl	$1048576, %r14d                 ## imm = 0x100000
	jne	LBB0_9
	jmp	LBB0_10
LBB0_7:
	movq	%r12, %rdi
	callq	_nouveau_client_name
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %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	%rbx, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$32, %edx
	callq	_nv_wr32
	andl	$-33, %r14d
	testl	$1048576, %r14d                 ## imm = 0x100000
	je	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %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
	movq	%r12, %rdi
	callq	_nouveau_client_name
	leaq	L_.str.3(%rip), %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %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	%rbx, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$1048576, %edx                  ## imm = 0x100000
	callq	_nv_wr32
	andl	$-1048577, %r14d                ## imm = 0xFFEFFFFF
LBB0_10:
	testl	$2097152, %r14d                 ## imm = 0x200000
	jne	LBB0_11
## %bb.12:
	testl	$524288, %r14d                  ## imm = 0x80000
	jne	LBB0_13
LBB0_14:
	testl	%r14d, %r14d
	je	LBB0_16
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_nv_error
	movq	%rbx, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	%r14d, %edx
	callq	_nv_wr32
LBB0_16:
	movq	%rbx, %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_11:
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movq	%r12, %rcx
	callq	_nve0_graph_trap_isr
	movq	%rbx, %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_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_nve0_graph_ctxctl_isr
	movq	%rbx, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$524288, %edx                   ## imm = 0x80000
	callq	_nv_wr32
	andl	$-524289, %r14d                 ## imm = 0xFFF7FFFF
	testl	%r14d, %r14d
	jne	LBB0_15
	jmp	LBB0_16
	.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	"unknown stat 0x%08x\n"

	.no_dead_strip	_nve0_graph_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nve0_graph_intr
_nve0_graph_intr:                       ; @nve0_graph_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	w28, #256
	movk	w28, #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
	and	w22, w0, #0xfffffff
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	bl	_nv_rd32
	mov	x20, x0
	mov	w8, #1540
	orr	w1, w28, w8
	mov	x0, x19
	bl	_nv_rd32
	and	w23, w0, #0x3ffc
	ubfx	w24, w0, #16, #3
	mov	w8, #1544
	orr	w1, w28, w8
	mov	x0, x19
	bl	_nv_rd32
	mov	x25, x0
	orr	w1, w28, #0x10
	mov	x0, x19
	bl	_nv_rd32
	str	w0, [sp, #60]                   ; 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, x22
	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.4@PAGE
Lloh1:
	add	x1, x1, l_.str.4@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, w28, #1024
	mov	x0, x19
	mov	w2, #65537
	bl	_nv_wr32
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	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]
	mov	x1, x23
	mov	x2, x25
	bl	_nv_call
	cbz	x0, LBB0_11
LBB0_10:
	mov	x0, x21
	bl	_nouveau_client_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x25, [sp, #40]
	stp	x24, x27, [sp, #24]
	stp	x22, x0, [sp, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	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
	mov	w28, #256
	movk	w28, #64, lsl #16
	tbz	w20, #5, LBB0_2
LBB0_12:
	mov	x0, x21
	bl	_nouveau_client_name
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x8, x25
	str	x8, [sp, #48]
	mov	x8, x23
	mov	x9, x27
	stp	x9, x8, [sp, #32]
	mov	x8, x24
	stp	x0, x8, [sp, #16]
	mov	x8, x22
	mov	x9, x26
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	stp	x9, x8, [sp]
	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, #60]                   ; 4-byte Folded Reload
	bl	_nouveau_enum_print
	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, x22
	mov	x4, x24
	mov	x5, x27
	mov	x6, x23
	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:
	mov	x0, x19
	mov	x1, x26
	mov	x2, x22
	mov	x3, x21
	bl	_nve0_graph_trap_isr
	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	_nve0_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
	.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	"unknown stat 0x%08x\n"

	.no_dead_strip	_nve0_graph_intr
.subsections_via_symbols
