	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_gr_intr
_gf100_gr_intr:                         ## @gf100_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_gf100_gr
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	movq	%r15, %rdi
	movl	$4233984, %esi                  ## imm = 0x409B00
	callq	_nvkm_rd32
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	callq	_nvkm_rd32
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	$4196100, %esi                  ## imm = 0x400704
	callq	_nvkm_rd32
	movl	%eax, %r14d
	movl	%eax, %r13d
	shrl	$16, %r13d
	movq	%r15, %rdi
	movl	$4196104, %esi                  ## imm = 0x400708
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$4194576, %esi                  ## imm = 0x400110
	callq	_nvkm_rd32
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	8(%r15), %edi
	shll	$12, %ebx
	leaq	-96(%rbp), %rdx
	movl	%ebx, %esi
	callq	_nvkm_fifo_chan_inst
	movq	%rax, -104(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	leaq	L_.str(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_3:
	andl	$7, %r13d
	movq	(%r15), %rax
	movq	_NV_E0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$3, %r13d
	jbe	LBB0_5
## %bb.6:
	testb	$1, %r12b
	je	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$1, %edx
	callq	_nvkm_wr32
	andl	$-2, %r12d
LBB0_8:
	andl	$16380, %r14d                   ## imm = 0x3FFC
	testb	$16, %r12b
	jne	LBB0_9
## %bb.12:
	testb	$32, %r12b
	jne	LBB0_13
LBB0_14:
	testl	$1048576, %r12d                 ## imm = 0x100000
	jne	LBB0_15
LBB0_19:
	testl	$2097152, %r12d                 ## imm = 0x200000
	jne	LBB0_20
LBB0_21:
	testl	$524288, %r12d                  ## imm = 0x80000
	jne	LBB0_22
LBB0_23:
	testl	%r12d, %r12d
	je	LBB0_25
LBB0_24:
	leaq	L_.str.6(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_nvkm_error
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	%r12d, %edx
	callq	_nvkm_wr32
LBB0_25:
	movq	%r15, %rdi
	movl	$4195584, %esi                  ## imm = 0x400500
	movl	$65537, %edx                    ## imm = 0x10001
	callq	_nvkm_wr32
	movl	8(%r15), %edi
	movq	-96(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	callq	_nvkm_fifo_chan_put
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leal	4211200(,%r13,4), %esi
	movq	%r15, %rdi
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testb	$1, %r12b
	jne	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_gf100_gr_mthd_sw
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	%r13d, %r9d
	xorl	%eax, %eax
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_nvkm_error
	addq	$32, %rsp
LBB0_11:
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$16, %edx
	callq	_nvkm_wr32
	andl	$-17, %r12d
	testb	$32, %r12b
	je	LBB0_14
LBB0_13:
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	%r13d, %r9d
	xorl	%eax, %eax
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_nvkm_error
	addq	$32, %rsp
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$32, %edx
	callq	_nvkm_wr32
	andl	$-33, %r12d
	testl	$1048576, %r12d                 ## imm = 0x100000
	je	LBB0_19
LBB0_15:
	movq	_nv50_data_error_names@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_nvkm_enum_find
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	(%rax), %rcx
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.4(%rip), %rcx
LBB0_18:
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	xorl	%eax, %eax
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_nvkm_error
	addq	$48, %rsp
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$1048576, %edx                  ## imm = 0x100000
	callq	_nvkm_wr32
	andl	$-1048577, %r12d                ## imm = 0xFFEFFFFF
	testl	$2097152, %r12d                 ## imm = 0x200000
	je	LBB0_21
LBB0_20:
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_nvkm_error
	movq	%rbx, %rdi
	callq	_gf100_gr_trap_intr
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$2097152, %edx                  ## imm = 0x200000
	callq	_nvkm_wr32
	andl	$-2097153, %r12d                ## imm = 0xFFDFFFFF
	testl	$524288, %r12d                  ## imm = 0x80000
	je	LBB0_23
LBB0_22:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_gf100_gr_ctxctl_isr
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$524288, %edx                   ## imm = 0x80000
	callq	_nvkm_wr32
	andl	$-524289, %r12d                 ## imm = 0xFFF7FFFF
	testl	%r12d, %r12d
	jne	LBB0_24
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown"

	.comm	_NV_E0,8,3                      ## @NV_E0
L_.str.1:                               ## @.str.1
	.asciz	"ILLEGAL_MTHD ch %d [%010llx %s] subc %d class %04x mthd %04x data %08x\n"

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

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

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

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

L_.str.6:                               ## @.str.6
	.asciz	"intr %08x\n"

	.no_dead_strip	_gf100_gr_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf100_gr_intr
_gf100_gr_intr:                         ; @gf100_gr_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	w23, #256
	movk	w23, #64, lsl #16
	bl	_gf100_gr
	mov	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #39680
	movk	w1, #64, lsl #16
	bl	_nvkm_rd32
	mov	x22, x0
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	bl	_nvkm_rd32
	mov	x21, x0
	mov	w8, #1540
	orr	w1, w23, w8
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x27, x0
	ubfx	w28, w0, #16, #3
	mov	w8, #1544
	orr	w1, w23, w8
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x25, x0
	orr	w1, w23, #0x10
	mov	x0, x19
	bl	_nvkm_rd32
	str	w0, [sp, #76]                   ; 4-byte Folded Spill
	ldr	w0, [x19, #8]
	lsl	w22, w22, #12
	add	x2, sp, #80
	mov	x1, x22
	bl	_nvkm_fifo_chan_inst
	str	x0, [sp, #88]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	x24, [x8]
	ldr	w23, [x0]
	b	LBB0_3
LBB0_2:
	mov	w23, #-1
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
LBB0_3:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _NV_E0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NV_E0@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w28, #3, #0, ge
	b.hi	LBB0_5
; %bb.4:
	mov	w1, #16896
	movk	w1, #64, lsl #16
	bfi	w1, w28, #2, #3
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x26, x0
	tbnz	w21, #0, LBB0_6
	b	LBB0_7
LBB0_5:
	mov	w26, #0
	tbz	w21, #0, LBB0_7
LBB0_6:
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	w2, #1
	bl	_nvkm_wr32
	and	w21, w21, #0xfffffffe
LBB0_7:
	and	w27, w27, #0x3ffc
	tbnz	w21, #4, LBB0_15
; %bb.8:
	tbnz	w21, #5, LBB0_18
LBB0_9:
	tbnz	w21, #20, LBB0_19
LBB0_10:
	tbnz	w21, #21, LBB0_23
LBB0_11:
	tbnz	w21, #19, LBB0_24
LBB0_12:
	cbz	w21, LBB0_14
LBB0_13:
Lloh5:
	adrp	x1, l_.str.6@PAGE
Lloh6:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_nvkm_error
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	x2, x21
	bl	_nvkm_wr32
LBB0_14:
	mov	w8, #256
	movk	w8, #64, lsl #16
	add	w1, w8, #1024
	mov	x0, x19
	mov	w2, #65537
	bl	_nvkm_wr32
	ldr	w0, [x19, #8]
	ldr	x1, [sp, #80]
	add	x2, sp, #88
	bl	_nvkm_fifo_chan_put
	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
	ret
LBB0_15:
	mov	x0, x19
	mov	x1, x26
	mov	x2, x27
	mov	x3, x25
	bl	_gf100_gr_mthd_sw
	cbnz	w0, LBB0_17
; %bb.16:
	mov	x8, x25
	mov	x9, x27
	stp	x9, x8, [sp, #32]
	mov	x8, x26
	mov	x9, x28
	stp	x9, x8, [sp, #16]
	mov	x8, x22
	stp	x8, x24, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_nvkm_error
LBB0_17:
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	w2, #16
	bl	_nvkm_wr32
	and	w21, w21, #0xffffffef
	tbz	w21, #5, LBB0_9
LBB0_18:
	mov	x8, x25
	mov	x9, x27
	stp	x9, x8, [sp, #32]
	mov	x8, x26
	mov	x9, x28
	stp	x9, x8, [sp, #16]
	mov	x8, x22
	stp	x8, x24, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_nvkm_error
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	w2, #32
	bl	_nvkm_wr32
	and	w21, w21, #0xffffffdf
	tbz	w21, #20, LBB0_10
LBB0_19:
Lloh11:
	adrp	x8, _nv50_data_error_names@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nv50_data_error_names@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [sp, #76]                   ; 4-byte Folded Reload
	bl	_nvkm_enum_find
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x8, [x0]
	b	LBB0_22
LBB0_21:
Lloh14:
	adrp	x8, l_.str.4@PAGE
Lloh15:
	add	x8, x8, l_.str.4@PAGEOFF
LBB0_22:
	stp	x27, x25, [sp, #48]
	stp	x28, x26, [sp, #32]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	stp	x22, x24, [sp, #16]
	stp	x8, x23, [sp]
	mov	x0, x20
	ldr	w2, [sp, #76]                   ; 4-byte Folded Reload
	bl	_nvkm_error
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	w2, #1048576
	bl	_nvkm_wr32
	and	w21, w21, #0xffefffff
	tbz	w21, #21, LBB0_11
LBB0_23:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x22, x24, [sp]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_nvkm_error
	mov	x0, x20
	bl	_gf100_gr_trap_intr
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	w2, #2097152
	bl	_nvkm_wr32
	and	w21, w21, #0xffdfffff
	tbz	w21, #19, LBB0_12
LBB0_24:
	mov	x0, x20
	bl	_gf100_gr_ctxctl_isr
	mov	x0, x19
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	w2, #524288
	bl	_nvkm_wr32
	and	w21, w21, #0xfff7ffff
	cbnz	w21, LBB0_13
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown"

	.comm	_NV_E0,8,3                      ; @NV_E0
l_.str.1:                               ; @.str.1
	.asciz	"ILLEGAL_MTHD ch %d [%010llx %s] subc %d class %04x mthd %04x data %08x\n"

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

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

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

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

l_.str.6:                               ; @.str.6
	.asciz	"intr %08x\n"

	.no_dead_strip	_gf100_gr_intr
.subsections_via_symbols
