	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a5xx_fault_detect_irq
_a5xx_fault_detect_irq:                 ## @a5xx_fault_detect_irq
	.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, %r15
	movq	8(%rdi), %rax
	movq	16(%rdi), %rbx
	movq	8(%rbx), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	callq	*(%rax)
	movl	(%rbx), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_3:
	movq	_REG_A5XX_RBBM_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_REG_A5XX_CP_RB_RPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movl	%eax, %ebx
	movq	_REG_A5XX_CP_RB_WPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_REG_A5XX_CP_IB1_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_A5XX_CP_IB1_BASE_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_gpu_read64
	movl	%eax, %r12d
	movq	_REG_A5XX_CP_IB1_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movl	%eax, %r13d
	movq	_REG_A5XX_CP_IB2_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_A5XX_CP_IB2_BASE_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_gpu_read64
	movl	%eax, %r14d
	movq	_REG_A5XX_CP_IB2_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	%rax
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_DRM_DEV_ERROR
	addq	$48, %rsp
	leaq	4(%r15), %rdi
	callq	_del_timer
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpu fault ring %d fence %x status %8.8X rb %4.4x/%4.4x ib1 %16.16llX/%4.4x ib2 %16.16llX/%4.4x\n"

	.comm	_REG_A5XX_RBBM_STATUS,4,2       ## @REG_A5XX_RBBM_STATUS
	.comm	_REG_A5XX_CP_RB_RPTR,4,2        ## @REG_A5XX_CP_RB_RPTR
	.comm	_REG_A5XX_CP_RB_WPTR,4,2        ## @REG_A5XX_CP_RB_WPTR
	.comm	_REG_A5XX_CP_IB1_BASE,4,2       ## @REG_A5XX_CP_IB1_BASE
	.comm	_REG_A5XX_CP_IB1_BASE_HI,4,2    ## @REG_A5XX_CP_IB1_BASE_HI
	.comm	_REG_A5XX_CP_IB1_BUFSZ,4,2      ## @REG_A5XX_CP_IB1_BUFSZ
	.comm	_REG_A5XX_CP_IB2_BASE,4,2       ## @REG_A5XX_CP_IB2_BASE
	.comm	_REG_A5XX_CP_IB2_BASE_HI,4,2    ## @REG_A5XX_CP_IB2_BASE_HI
	.comm	_REG_A5XX_CP_IB2_BUFSZ,4,2      ## @REG_A5XX_CP_IB2_BUFSZ
	.no_dead_strip	_a5xx_fault_detect_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a5xx_fault_detect_irq
_a5xx_fault_detect_irq:                 ; @a5xx_fault_detect_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldp	x8, x20, [x0, #8]
	ldr	x9, [x20, #8]
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x8]
	blr	x8
	ldr	w20, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	ldp	w22, w21, [x0]
	b	LBB0_3
LBB0_2:
	mov	w21, #0
	mov	w22, #-1
LBB0_3:
Lloh0:
	adrp	x8, _REG_A5XX_RBBM_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_A5XX_RBBM_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	mov	x23, x0
Lloh3:
	adrp	x8, _REG_A5XX_CP_RB_RPTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_A5XX_CP_RB_RPTR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	mov	x24, x0
Lloh6:
	adrp	x8, _REG_A5XX_CP_RB_WPTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_A5XX_CP_RB_WPTR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	mov	x25, x0
Lloh9:
	adrp	x8, _REG_A5XX_CP_IB1_BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_A5XX_CP_IB1_BASE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _REG_A5XX_CP_IB1_BASE_HI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_A5XX_CP_IB1_BASE_HI@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_gpu_read64
	mov	x26, x0
Lloh15:
	adrp	x8, _REG_A5XX_CP_IB1_BUFSZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_A5XX_CP_IB1_BUFSZ@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	mov	x27, x0
Lloh18:
	adrp	x8, _REG_A5XX_CP_IB2_BASE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_A5XX_CP_IB2_BASE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _REG_A5XX_CP_IB2_BASE_HI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REG_A5XX_CP_IB2_BASE_HI@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_gpu_read64
	mov	x28, x0
Lloh24:
	adrp	x8, _REG_A5XX_CP_IB2_BUFSZ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _REG_A5XX_CP_IB2_BUFSZ@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	stp	w28, w0, [sp, #4]
	str	w27, [sp]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	mov	x7, x26
	bl	_DRM_DEV_ERROR
	add	x0, x19, #4
	bl	_del_timer
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_queue_work
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpu fault ring %d fence %x status %8.8X rb %4.4x/%4.4x ib1 %16.16llX/%4.4x ib2 %16.16llX/%4.4x\n"

	.comm	_REG_A5XX_RBBM_STATUS,4,2       ; @REG_A5XX_RBBM_STATUS
	.comm	_REG_A5XX_CP_RB_RPTR,4,2        ; @REG_A5XX_CP_RB_RPTR
	.comm	_REG_A5XX_CP_RB_WPTR,4,2        ; @REG_A5XX_CP_RB_WPTR
	.comm	_REG_A5XX_CP_IB1_BASE,4,2       ; @REG_A5XX_CP_IB1_BASE
	.comm	_REG_A5XX_CP_IB1_BASE_HI,4,2    ; @REG_A5XX_CP_IB1_BASE_HI
	.comm	_REG_A5XX_CP_IB1_BUFSZ,4,2      ; @REG_A5XX_CP_IB1_BUFSZ
	.comm	_REG_A5XX_CP_IB2_BASE,4,2       ; @REG_A5XX_CP_IB2_BASE
	.comm	_REG_A5XX_CP_IB2_BASE_HI,4,2    ; @REG_A5XX_CP_IB2_BASE_HI
	.comm	_REG_A5XX_CP_IB2_BUFSZ,4,2      ; @REG_A5XX_CP_IB2_BUFSZ
	.no_dead_strip	_a5xx_fault_detect_irq
.subsections_via_symbols
