	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gp102_disp_intr_error
_gp102_disp_intr_error:                 ## @gp102_disp_intr_error
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	leal	(,%r14,4), %ebx
	leal	(%rbx,%rbx,2), %esi
	addl	$6361584, %esi                  ## imm = 0x6111F0
	movq	%r15, %rdi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	callq	_nvkm_rd32
	movl	%eax, %r13d
	leal	(%rbx,%rbx,2), %esi
	addl	$6361588, %esi                  ## imm = 0x6111F4
	movq	%r15, %rdi
	callq	_nvkm_rd32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	(%rbx,%rbx,2), %esi
	addl	$6361592, %esi                  ## imm = 0x6111F8
	movq	%r14, %rbx
	movq	%r15, %rdi
	callq	_nvkm_rd32
	movl	%r13d, %r14d
	andl	$4092, %r14d                    ## imm = 0xFFC
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r13d, %r9d
	callq	_nvkm_error
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	$128, %r14d
	jne	LBB0_3
## %bb.1:
	cmpl	%ebx, %eax
	jle	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_NV_DBG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nv50_disp_chan_mthd
LBB0_3:
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movq	%r15, %rdi
	movl	$6357148, %esi                  ## imm = 0x61009C
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	$-1879048192, %edx              ## imm = 0x90000000
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chid %d mthd %04x data %08x %08x %08x\n"

	.comm	_NV_DBG_ERROR,4,2               ## @NV_DBG_ERROR
	.no_dead_strip	_gp102_disp_intr_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gp102_disp_intr_error
_gp102_disp_intr_error:                 ; @gp102_disp_intr_error
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x22, x0
	mov	x23, x0
	ldr	x19, [x23, #8]!
	mov	w8, #12
	mov	w9, #4592
	movk	w9, #97, lsl #16
	madd	w20, w1, w8, w9
	mov	x0, x19
	mov	x1, x20
	bl	_nvkm_rd32
	mov	x24, x0
	add	w1, w20, #4
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x25, x0
	add	w1, w20, #8
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x6, x0
	and	w26, w24, #0xffc
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x21
	mov	x3, x26
	mov	x4, x25
	mov	x5, x24
	bl	_nvkm_error
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w26, #128
	ccmp	w0, w21, #4, eq
	b.le	LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	w0, [x8, w21, sxtw #2]
Lloh2:
	adrp	x8, _NV_DBG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NV_DBG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_nv50_disp_chan_mthd
LBB0_2:
	mov	w8, #1
	lsl	w2, w8, w21
	mov	x0, x19
	mov	w1, #156
	movk	w1, #97, lsl #16
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x20
	mov	w2, #-1879048192
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nvkm_wr32
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chid %d mthd %04x data %08x %08x %08x\n"

	.comm	_NV_DBG_ERROR,4,2               ; @NV_DBG_ERROR
	.no_dead_strip	_gp102_disp_intr_error
.subsections_via_symbols
