	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_graph_intr
_nv50_graph_intr:                       ## @nv50_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_nouveau_fifo
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_nv_engine
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	callq	_nv_rd32
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	$4195116, %esi                  ## imm = 0x40032C
	callq	_nv_rd32
	movl	%eax, %r13d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	andl	$268435455, %r13d               ## imm = 0xFFFFFFF
	movq	%r14, %rdi
	movl	$4196100, %esi                  ## imm = 0x400704
	callq	_nv_rd32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
                                        ## kill: def $eax killed $eax def $rax
	andl	$8188, %eax                     ## imm = 0x1FFC
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$4196104, %esi                  ## imm = 0x400708
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$4196372, %esi                  ## imm = 0x400814
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_nouveau_engctx_get
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	*(%r12)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %r12d
	testb	$16, %r15b
	jne	LBB0_1
## %bb.4:
	testl	$1048576, %r12d                 ## imm = 0x100000
	jne	LBB0_5
LBB0_6:
	testl	$2097152, %r15d                 ## imm = 0x200000
	je	LBB0_8
LBB0_7:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	shll	$12, %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %r8
	callq	_nv50_graph_trap_handler
	movl	%r12d, %ecx
	andl	$-2097153, %ecx                 ## imm = 0xFFDFFFFF
	testl	%eax, %eax
	cmovel	%ecx, %r12d
LBB0_8:
	movq	%r14, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	%r15d, %edx
	callq	_nv_wr32
	movq	%r14, %rdi
	movl	$4195584, %esi                  ## imm = 0x400500
	movl	$65537, %edx                    ## imm = 0x10001
	callq	_nv_wr32
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	shrl	$16, %r15d
	andl	$7, %r15d
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_nv_error
	movq	_nv50_graph_intr_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_nouveau_bitfield_print
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_cont
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	shll	$12, %ebx
	movq	%r13, %rdi
	callq	_nouveau_client_name
	subq	$8, %rsp
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movl	%r15d, %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_10:
	movq	%r14, %rdi
	movl	$4196388, %esi                  ## imm = 0x400824
	callq	_nv_rd32
	testl	%eax, %eax
	jns	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$4196388, %esi                  ## imm = 0x400824
	callq	_nv_rd32
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movq	%r14, %rdi
	movl	$4196388, %esi                  ## imm = 0x400824
	movl	%eax, %edx
	callq	_nv_wr32
LBB0_12:
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nouveau_engctx_put             ## TAILCALL
LBB0_1:
	movq	%r13, %rbx
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_nouveau_handle_get_class
	movq	%rax, %r13
	movl	%r15d, %r12d
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r13), %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
	movl	%r15d, %r12d
	andl	$-17, %r12d
	testl	%eax, %eax
	cmovnel	%r15d, %r12d
LBB0_3:
	movq	%r13, %rdi
	callq	_nouveau_handle_put
	movq	%rbx, %r13
	testl	$1048576, %r12d                 ## imm = 0x100000
	je	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	movl	$4194576, %esi                  ## imm = 0x400110
	callq	_nv_rd32
	movq	%r13, %rbx
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_nv_error
	movq	_nv50_data_error_names@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	movq	%rbx, %r13
	callq	_nouveau_enum_print
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_cont
	testl	$2097152, %r15d                 ## imm = 0x200000
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DATA_ERROR "

	.comm	_nv50_data_error_names,4,2      ## @nv50_data_error_names
L_.str.1:                               ## @.str.1
	.asciz	"\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

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

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

	.no_dead_strip	_nv50_graph_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_graph_intr
_nv50_graph_intr:                       ; @nv50_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, #2084
	movk	w23, #64, lsl #16
	bl	_nouveau_fifo
	mov	x22, x0
	mov	x0, x19
	bl	_nv_engine
	mov	x20, x0
	sub	w25, w23, #1828
	mov	x0, x19
	mov	x1, x25
	bl	_nv_rd32
	mov	x21, x0
	sub	w1, w23, #1272
	mov	x0, x19
	bl	_nv_rd32
	mov	x28, x0
	and	w24, w0, #0xfffffff
	sub	w1, w23, #288
	mov	x0, x19
	bl	_nv_rd32
	mov	x27, x0
	and	w8, w0, #0x1ffc
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	sub	w1, w23, #284
	mov	x0, x19
	bl	_nv_rd32
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	sub	w1, w23, #16
	mov	x0, x19
	bl	_nv_rd32
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	mov	x0, x20
	mov	x1, x24
	bl	_nouveau_engctx_get
	mov	x20, x0
	ldr	x8, [x22]
	mov	x0, x22
	mov	x1, x20
	blr	x8
	mov	x24, x0
	mov	x26, x21
	tbnz	w21, #4, LBB0_9
; %bb.1:
	tbnz	w26, #20, LBB0_12
LBB0_2:
	lsl	w28, w28, #12
	tbz	w21, #21, LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x26
	mov	x2, x24
	mov	x3, x28
	mov	x4, x20
	bl	_nv50_graph_trap_handler
	and	w8, w26, #0xffdfffff
	cmp	w0, #0
	csel	w26, w8, w26, eq
LBB0_4:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x21
	bl	_nv_wr32
	sub	w1, w23, #804
	mov	x0, x19
	mov	w2, #65537
	bl	_nv_wr32
	cbz	w26, LBB0_6
; %bb.5:
	ubfx	w21, w27, #16, #3
Lloh0:
	adrp	x8, l_.str.3@PAGE
Lloh1:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_nv_error
Lloh4:
	adrp	x8, _nv50_graph_intr_name@GOTPAGE
Lloh5:
	ldr	x8, [x8, _nv50_graph_intr_name@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x26
	bl	_nouveau_bitfield_print
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_cont
	mov	x0, x20
	bl	_nouveau_client_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp, #40]
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	stp	x21, x8, [sp, #24]
	stp	x28, x0, [sp, #8]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	str	x24, [sp]
	mov	x0, x19
	bl	_nv_error
LBB0_6:
	mov	x0, x19
	mov	w1, #2084
	movk	w1, #64, lsl #16
	bl	_nv_rd32
	tbz	w0, #31, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #2084
	movk	w1, #64, lsl #16
	bl	_nv_rd32
	and	w2, w0, #0x7fffffff
	mov	x0, x19
	mov	w1, #2084
	movk	w1, #64, lsl #16
	bl	_nv_wr32
LBB0_8:
	mov	x0, x20
	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_9:
	mov	x0, x20
	ldr	x1, [sp, #72]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_nouveau_handle_get_class
	mov	x22, x0
	mov	x26, x21
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x22]
	ldp	x2, x1, [sp, #56]               ; 16-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_nv_call
	and	w8, w21, #0xffffffef
	cmp	w0, #0
	csel	w26, w8, w21, eq
LBB0_11:
	mov	x0, x22
	bl	_nouveau_handle_put
	tbz	w26, #20, LBB0_2
LBB0_12:
	sub	w1, w23, #1812
	mov	x0, x19
	bl	_nv_rd32
	mov	x22, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nv_error
Lloh13:
	adrp	x8, _nv50_data_error_names@GOTPAGE
Lloh14:
	ldr	x8, [x8, _nv50_data_error_names@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_nouveau_enum_print
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_cont
	lsl	w28, w28, #12
	tbnz	w21, #21, LBB0_3
	b	LBB0_4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DATA_ERROR "

	.comm	_nv50_data_error_names,4,2      ; @nv50_data_error_names
l_.str.1:                               ; @.str.1
	.asciz	"\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

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

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

	.no_dead_strip	_nv50_graph_intr
.subsections_via_symbols
