	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_gr_intr                   ## -- Begin function nv50_gr_intr
	.p2align	4, 0x90
_nv50_gr_intr:                          ## @nv50_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	$216, %rsp
	.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	_nv50_gr
	movq	%rax, %r12
	movq	(%rax), %r14
	movq	%r14, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	callq	_nvkm_rd32
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	$4195116, %esi                  ## imm = 0x40032C
	callq	_nvkm_rd32
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$4196100, %esi                  ## imm = 0x400704
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movl	$4196104, %esi                  ## imm = 0x400708
	callq	_nvkm_rd32
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	$4196372, %esi                  ## imm = 0x400814
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	movl	(%r14), %edi
	shll	$12, %ebx
	leaq	-240(%rbp), %rdx
	movl	%ebx, -188(%rbp)                ## 4-byte Spill
	movl	%ebx, %esi
	callq	_nvkm_fifo_chan_inst
	movq	%rax, -248(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -200(%rbp)                ## 8-byte Spill
	movl	(%rax), %eax
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$-1, -180(%rbp)                 ## 4-byte Folded Spill
	leaq	L_.str(%rip), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
LBB0_3:
	movl	%r15d, %ebx
	movl	%r15d, %eax
	testl	$1048576, %r15d                 ## imm = 0x100000
	je	LBB0_8
## %bb.4:
	movq	%r14, %rdi
	movl	$4194576, %esi                  ## imm = 0x400110
	callq	_nvkm_rd32
	movl	%eax, %r15d
	movq	_nv50_data_error_names@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_nvkm_enum_find
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%rax), %rcx
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.2(%rip), %rcx
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_nvkm_error
	movl	%ebx, %eax
	andl	$-1048577, %eax                 ## imm = 0xFFEFFFFF
LBB0_8:
	movl	%eax, -184(%rbp)                ## 4-byte Spill
	testl	$2097152, %ebx                  ## imm = 0x200000
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %r15d
	jmp	LBB0_11
LBB0_10:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	-180(%rbp), %edx                ## 4-byte Reload
	movl	-188(%rbp), %ecx                ## 4-byte Reload
	movq	-200(%rbp), %r8                 ## 8-byte Reload
	callq	_nv50_gr_trap_handler
	movl	%ebx, %r15d
	andl	$-2097153, %r15d                ## imm = 0xFFDFFFFF
	andl	$-2097153, -184(%rbp)           ## 4-byte Folded Spill
                                        ## imm = 0xFFDFFFFF
	testl	%eax, %eax
	cmovnel	%ebx, %r15d
LBB0_11:
	movq	%r14, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	%ebx, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4195584, %esi                  ## imm = 0x400500
	movl	$65537, %edx                    ## imm = 0x10001
	callq	_nvkm_wr32
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.12:
	movq	%r12, -208(%rbp)                ## 8-byte Spill
	movq	%r13, -216(%rbp)                ## 8-byte Spill
	movq	-232(%rbp), %r13                ## 8-byte Reload
	movl	%r13d, %r12d
	shrl	$16, %r12d
	andl	$7, %r12d
	andl	$8188, %r13d                    ## imm = 0x1FFC
	andl	-184(%rbp), %r15d               ## 4-byte Folded Reload
	movq	_nv50_gr_intr_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	movl	%r15d, %ecx
	callq	_nvkm_snprintbf
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rsi
	movq	-208(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %edx
	leaq	-176(%rbp), %rcx
	movl	-180(%rbp), %r8d                ## 4-byte Reload
	movl	-188(%rbp), %r9d                ## 4-byte Reload
	xorl	%eax, %eax
	pushq	-216(%rbp)                      ## 8-byte Folded Reload
	pushq	%r13
	pushq	-224(%rbp)                      ## 8-byte Folded Reload
	pushq	%r12
	pushq	-200(%rbp)                      ## 8-byte Folded Reload
	callq	_nvkm_error
	addq	$48, %rsp
LBB0_13:
	movq	%r14, %rdi
	movl	$4196388, %esi                  ## imm = 0x400824
	callq	_nvkm_rd32
	testl	%eax, %eax
	jns	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movl	$4196388, %esi                  ## imm = 0x400824
	callq	_nvkm_rd32
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movq	%r14, %rdi
	movl	$4196388, %esi                  ## imm = 0x400824
	movl	%eax, %edx
	callq	_nvkm_wr32
LBB0_15:
	movl	(%r14), %edi
	movq	-240(%rbp), %rsi
	leaq	-248(%rbp), %rdx
	callq	_nvkm_fifo_chan_put
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown"

	.comm	_nv50_data_error_names,4,2      ## @nv50_data_error_names
L_.str.1:                               ## @.str.1
	.asciz	"DATA_ERROR %08x [%s]\n"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_gr_intr                   ; -- Begin function nv50_gr_intr
	.p2align	2
_nv50_gr_intr:                          ; @nv50_gr_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #240]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #256]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	w24, #2084
	movk	w24, #64, lsl #16
	bl	_nv50_gr
	mov	x20, x0
	ldr	x19, [x0]
	sub	w25, w24, #1828
	mov	x0, x19
	mov	x1, x25
	bl	_nvkm_rd32
	mov	x27, x0
	sub	w1, w24, #1272
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x22, x0
	sub	w1, w24, #288
	mov	x0, x19
	bl	_nvkm_rd32
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	sub	w1, w24, #284
	mov	x0, x19
	bl	_nvkm_rd32
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	sub	w1, w24, #16
	mov	x0, x19
	bl	_nvkm_rd32
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	ldr	w0, [x19]
	lsl	w22, w22, #12
	add	x2, sp, #80
	mov	x1, x22
	bl	_nvkm_fifo_chan_inst
	str	x0, [sp, #88]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	x28, [x8]
	ldr	w21, [x0]
	mov	x23, x27
	tbnz	w27, #20, LBB0_5
LBB0_2:
	tbnz	w27, #21, LBB0_9
LBB0_3:
	mov	x26, x21
	mov	x21, x27
	b	LBB0_10
LBB0_4:
	mov	w21, #-1
Lloh3:
	adrp	x28, l_.str@PAGE
Lloh4:
	add	x28, x28, l_.str@PAGEOFF
	mov	x23, x27
	tbz	w27, #20, LBB0_2
LBB0_5:
	sub	w1, w24, #1812
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x23, x0
Lloh5:
	adrp	x8, _nv50_data_error_names@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nv50_data_error_names@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_nvkm_enum_find
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x3, [x0]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_8:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_nvkm_error
	and	w23, w27, #0xffefffff
	tbz	w27, #21, LBB0_3
LBB0_9:
	mov	x0, x20
	mov	x1, x27
	mov	x26, x21
	mov	x2, x21
	mov	x3, x22
	mov	x4, x28
	bl	_nv50_gr_trap_handler
	and	w8, w27, #0xffdfffff
	and	w23, w23, #0xffdfffff
	cmp	w0, #0
	csel	w21, w8, w27, eq
LBB0_10:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x27
	bl	_nvkm_wr32
	sub	w1, w24, #804
	mov	x0, x19
	mov	w2, #65537
	bl	_nvkm_wr32
	cbz	w21, LBB0_12
; %bb.11:
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	ubfx	w24, w8, #16, #3
	and	w25, w8, #0x1ffc
	and	w3, w21, w23
Lloh12:
	adrp	x8, _nv50_gr_intr_name@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nv50_gr_intr_name@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x0, sp, #96
	mov	w1, #128
	bl	_nvkm_snprintbf
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	stp	x25, x8, [sp, #40]
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	stp	x24, x8, [sp, #24]
	stp	x22, x28, [sp, #8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x3, sp, #96
	str	x26, [sp]
	mov	x0, x20
	mov	x2, x27
	bl	_nvkm_error
LBB0_12:
	mov	x0, x19
	mov	w1, #2084
	movk	w1, #64, lsl #16
	bl	_nvkm_rd32
	tbz	w0, #31, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w1, #2084
	movk	w1, #64, lsl #16
	bl	_nvkm_rd32
	and	w2, w0, #0x7fffffff
	mov	x0, x19
	mov	w1, #2084
	movk	w1, #64, lsl #16
	bl	_nvkm_wr32
LBB0_14:
	ldr	w0, [x19]
	ldr	x1, [sp, #80]
	add	x2, sp, #88
	bl	_nvkm_fifo_chan_put
	ldur	x8, [x29, #-96]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #256]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown"

	.comm	_nv50_data_error_names,4,2      ; @nv50_data_error_names
l_.str.1:                               ; @.str.1
	.asciz	"DATA_ERROR %08x [%s]\n"

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

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

.subsections_via_symbols
