	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_disp_intr_error
_nv50_disp_intr_error:                  ## @nv50_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	leal	6357124(,%r13,8), %esi
	movq	%rbx, %rdi
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	6357120(,%r13,8), %esi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_nvkm_rd32
	movl	%eax, %ebx
	shrl	$16, %eax
	movzbl	%al, %r14d
	movl	%ebx, %r15d
	shrl	$12, %r15d
	andl	$7, %r15d
	movq	_nv50_disp_intr_error_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_nvkm_enum_find
	movq	%rax, %r12
	movq	_nv50_disp_intr_error_code@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_nvkm_enum_find
	leaq	L_.str.1(%rip), %r9
	movq	%r9, %rcx
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rcx
LBB0_2:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leaq	8(%r12), %rdi
	andl	$4092, %ebx                     ## imm = 0xFFC
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rax), %r9
LBB0_4:
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %r8d
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	pushq	%r13
	callq	_nvkm_error
	addq	$32, %rsp
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%r13d, %eax
	jle	LBB0_7
## %bb.5:
	cmpl	$128, %ebx
	jne	LBB0_7
## %bb.6:
	movq	(%r12), %rax
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_NV_DBG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nv50_disp_chan_mthd
LBB0_7:
	movl	$65536, %edx                    ## imm = 0x10000
	movl	%r13d, %ecx
	shll	%cl, %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$6357024, %esi                  ## imm = 0x610020
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$-1879048192, %edx              ## imm = 0x90000000
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nv50_disp_intr_error_type,4,2  ## @nv50_disp_intr_error_type
	.comm	_nv50_disp_intr_error_code,4,2  ## @nv50_disp_intr_error_code
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR %d [%s] %02x [%s] chid %d mthd %04x data %08x\n"

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

	.comm	_NV_DBG_ERROR,4,2               ## @NV_DBG_ERROR
	.no_dead_strip	_nv50_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 nv50_disp_intr_error
_nv50_disp_intr_error:                  ; @nv50_disp_intr_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x22, x0
	mov	w8, #32
	movk	w8, #97, lsl #16
	mov	x24, x0
	ldr	x19, [x24, #8]!
	add	w21, w8, w1, lsl #3
	add	w1, w21, #100
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x25, x0
	add	w21, w21, #96
	mov	x0, x19
	mov	x1, x21
	bl	_nvkm_rd32
	ubfx	w26, w0, #16, #8
	ubfx	w27, w0, #12, #3
	and	w23, w0, #0xffc
Lloh0:
	adrp	x8, _nv50_disp_intr_error_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nv50_disp_intr_error_type@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x27
	bl	_nvkm_enum_find
	mov	x28, x0
Lloh3:
	adrp	x8, _nv50_disp_intr_error_code@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nv50_disp_intr_error_code@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x26
	bl	_nvkm_enum_find
	cbz	x28, LBB0_3
; %bb.1:
	ldr	x3, [x28]
	cbz	x0, LBB0_4
LBB0_2:
	ldr	x5, [x0]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	cbnz	x0, LBB0_2
LBB0_4:
Lloh8:
	adrp	x5, l_.str.1@PAGE
Lloh9:
	add	x5, x5, l_.str.1@PAGEOFF
LBB0_5:
	str	w25, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x27
	mov	x4, x26
	mov	x6, x20
	mov	x7, x23
	bl	_nvkm_error
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, w20
	b.le	LBB0_8
; %bb.6:
	cmp	w23, #128
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x22]
	ldr	w0, [x8, w20, sxtw #2]
Lloh12:
	adrp	x8, _NV_DBG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NV_DBG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_nv50_disp_chan_mthd
LBB0_8:
	mov	w8, #65536
	lsl	w2, w8, w20
	mov	x0, x19
	mov	w1, #32
	movk	w1, #97, lsl #16
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x21
	mov	w2, #-1879048192
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_nvkm_wr32
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_nv50_disp_intr_error_type,4,2  ; @nv50_disp_intr_error_type
	.comm	_nv50_disp_intr_error_code,4,2  ; @nv50_disp_intr_error_code
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR %d [%s] %02x [%s] chid %d mthd %04x data %08x\n"

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

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