	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a6xx_cp_hw_err_irq
_a6xx_cp_hw_err_irq:                    ## @a6xx_cp_hw_err_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_REG_A6XX_CP_INTERRUPT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gpu_read
	movl	%eax, %r14d
	movq	_A6XX_CP_INT_CP_OPCODE_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_REG_A6XX_CP_SQE_STAT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_gpu_write
	movq	_REG_A6XX_CP_SQE_STAT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gpu_read
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
LBB0_2:
	movq	_A6XX_CP_INT_CP_UCODE_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
LBB0_4:
	movq	_A6XX_CP_INT_CP_HW_FAULT_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	(%rbx), %r15
	movq	_REG_A6XX_CP_HW_FAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gpu_read
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
LBB0_6:
	movq	_A6XX_CP_INT_CP_REGISTER_PROTECTION_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_REG_A6XX_CP_PROTECT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gpu_read
	movq	(%rbx), %rdi
	testl	$1048576, %eax                  ## imm = 0x100000
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rcx, %rdx
	movl	%eax, %ecx
	andl	$262143, %ecx                   ## imm = 0x3FFFF
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
LBB0_8:
	movq	_A6XX_CP_INT_CP_AHB_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
## %bb.9:
	movq	(%rbx), %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
LBB0_10:
	movq	_A6XX_CP_INT_CP_VSD_PARITY_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_12
## %bb.11:
	movq	(%rbx), %rdi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
LBB0_12:
	movq	_A6XX_CP_INT_CP_ILLEGAL_INSTR_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.14:
	movq	(%rbx), %rdi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err_ratelimited            ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_A6XX_CP_INTERRUPT_STATUS,4,2 ## @REG_A6XX_CP_INTERRUPT_STATUS
	.comm	_A6XX_CP_INT_CP_OPCODE_ERROR,4,2 ## @A6XX_CP_INT_CP_OPCODE_ERROR
	.comm	_REG_A6XX_CP_SQE_STAT_ADDR,4,2  ## @REG_A6XX_CP_SQE_STAT_ADDR
	.comm	_REG_A6XX_CP_SQE_STAT_DATA,4,2  ## @REG_A6XX_CP_SQE_STAT_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CP | opcode error | possible opcode=0x%8.8X\n"

	.comm	_A6XX_CP_INT_CP_UCODE_ERROR,4,2 ## @A6XX_CP_INT_CP_UCODE_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"CP ucode error interrupt\n"

	.comm	_A6XX_CP_INT_CP_HW_FAULT_ERROR,4,2 ## @A6XX_CP_INT_CP_HW_FAULT_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"CP | HW fault | status=0x%8.8X\n"

	.comm	_REG_A6XX_CP_HW_FAULT,4,2       ## @REG_A6XX_CP_HW_FAULT
	.comm	_A6XX_CP_INT_CP_REGISTER_PROTECTION_ERROR,4,2 ## @A6XX_CP_INT_CP_REGISTER_PROTECTION_ERROR
	.comm	_REG_A6XX_CP_PROTECT_STATUS,4,2 ## @REG_A6XX_CP_PROTECT_STATUS
L_.str.3:                               ## @.str.3
	.asciz	"CP | protected mode error | %s | addr=0x%8.8X | status=0x%8.8X\n"

L_.str.4:                               ## @.str.4
	.asciz	"READ"

L_.str.5:                               ## @.str.5
	.asciz	"WRITE"

	.comm	_A6XX_CP_INT_CP_AHB_ERROR,4,2   ## @A6XX_CP_INT_CP_AHB_ERROR
L_.str.6:                               ## @.str.6
	.asciz	"CP AHB error interrupt\n"

	.comm	_A6XX_CP_INT_CP_VSD_PARITY_ERROR,4,2 ## @A6XX_CP_INT_CP_VSD_PARITY_ERROR
L_.str.7:                               ## @.str.7
	.asciz	"CP VSD decoder parity error\n"

	.comm	_A6XX_CP_INT_CP_ILLEGAL_INSTR_ERROR,4,2 ## @A6XX_CP_INT_CP_ILLEGAL_INSTR_ERROR
L_.str.8:                               ## @.str.8
	.asciz	"CP illegal instruction error\n"

	.no_dead_strip	_a6xx_cp_hw_err_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a6xx_cp_hw_err_irq
_a6xx_cp_hw_err_irq:                    ; @a6xx_cp_hw_err_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_A6XX_CP_INTERRUPT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_A6XX_CP_INTERRUPT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_gpu_read
	mov	x20, x0
Lloh3:
	adrp	x8, _A6XX_CP_INT_CP_OPCODE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A6XX_CP_INT_CP_OPCODE_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _REG_A6XX_CP_SQE_STAT_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_A6XX_CP_SQE_STAT_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_gpu_write
Lloh9:
	adrp	x8, _REG_A6XX_CP_SQE_STAT_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_A6XX_CP_SQE_STAT_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19]
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_err_ratelimited
LBB0_2:
Lloh14:
	adrp	x8, _A6XX_CP_INT_CP_UCODE_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _A6XX_CP_INT_CP_UCODE_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	x0, [x19]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err_ratelimited
LBB0_4:
Lloh19:
	adrp	x8, _A6XX_CP_INT_CP_HW_FAULT_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _A6XX_CP_INT_CP_HW_FAULT_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	x21, [x19]
Lloh22:
	adrp	x8, _REG_A6XX_CP_HW_FAULT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REG_A6XX_CP_HW_FAULT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err_ratelimited
LBB0_6:
Lloh27:
	adrp	x8, _A6XX_CP_INT_CP_REGISTER_PROTECTION_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _A6XX_CP_INT_CP_REGISTER_PROTECTION_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh30:
	adrp	x8, _REG_A6XX_CP_PROTECT_STATUS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _REG_A6XX_CP_PROTECT_STATUS@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
                                        ; kill: def $w0 killed $w0 def $x0
Lloh33:
	adrp	x9, l_.str.4@PAGE
Lloh34:
	add	x9, x9, l_.str.4@PAGEOFF
	ldr	x8, [x19]
Lloh35:
	adrp	x10, l_.str.5@PAGE
Lloh36:
	add	x10, x10, l_.str.5@PAGEOFF
	tst	w0, #0x100000
	csel	x9, x10, x9, eq
	and	w10, w0, #0x3ffff
	stp	x10, x0, [sp, #8]
	str	x9, [sp]
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_dev_err_ratelimited
LBB0_8:
Lloh39:
	adrp	x8, _A6XX_CP_INT_CP_AHB_ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _A6XX_CP_INT_CP_AHB_ERROR@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	x0, [x19]
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err_ratelimited
LBB0_10:
Lloh44:
	adrp	x8, _A6XX_CP_INT_CP_VSD_PARITY_ERROR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _A6XX_CP_INT_CP_VSD_PARITY_ERROR@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
	ldr	x0, [x19]
Lloh47:
	adrp	x1, l_.str.7@PAGE
Lloh48:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err_ratelimited
LBB0_12:
Lloh49:
	adrp	x8, _A6XX_CP_INT_CP_ILLEGAL_INSTR_ERROR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _A6XX_CP_INT_CP_ILLEGAL_INSTR_ERROR@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.13:
	ldr	x0, [x19]
Lloh52:
	adrp	x1, l_.str.8@PAGE
Lloh53:
	add	x1, x1, l_.str.8@PAGEOFF
	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
	add	sp, sp, #80
	b	_dev_err_ratelimited
LBB0_14:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_A6XX_CP_INTERRUPT_STATUS,4,2 ; @REG_A6XX_CP_INTERRUPT_STATUS
	.comm	_A6XX_CP_INT_CP_OPCODE_ERROR,4,2 ; @A6XX_CP_INT_CP_OPCODE_ERROR
	.comm	_REG_A6XX_CP_SQE_STAT_ADDR,4,2  ; @REG_A6XX_CP_SQE_STAT_ADDR
	.comm	_REG_A6XX_CP_SQE_STAT_DATA,4,2  ; @REG_A6XX_CP_SQE_STAT_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CP | opcode error | possible opcode=0x%8.8X\n"

	.comm	_A6XX_CP_INT_CP_UCODE_ERROR,4,2 ; @A6XX_CP_INT_CP_UCODE_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"CP ucode error interrupt\n"

	.comm	_A6XX_CP_INT_CP_HW_FAULT_ERROR,4,2 ; @A6XX_CP_INT_CP_HW_FAULT_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"CP | HW fault | status=0x%8.8X\n"

	.comm	_REG_A6XX_CP_HW_FAULT,4,2       ; @REG_A6XX_CP_HW_FAULT
	.comm	_A6XX_CP_INT_CP_REGISTER_PROTECTION_ERROR,4,2 ; @A6XX_CP_INT_CP_REGISTER_PROTECTION_ERROR
	.comm	_REG_A6XX_CP_PROTECT_STATUS,4,2 ; @REG_A6XX_CP_PROTECT_STATUS
l_.str.3:                               ; @.str.3
	.asciz	"CP | protected mode error | %s | addr=0x%8.8X | status=0x%8.8X\n"

l_.str.4:                               ; @.str.4
	.asciz	"READ"

l_.str.5:                               ; @.str.5
	.asciz	"WRITE"

	.comm	_A6XX_CP_INT_CP_AHB_ERROR,4,2   ; @A6XX_CP_INT_CP_AHB_ERROR
l_.str.6:                               ; @.str.6
	.asciz	"CP AHB error interrupt\n"

	.comm	_A6XX_CP_INT_CP_VSD_PARITY_ERROR,4,2 ; @A6XX_CP_INT_CP_VSD_PARITY_ERROR
l_.str.7:                               ; @.str.7
	.asciz	"CP VSD decoder parity error\n"

	.comm	_A6XX_CP_INT_CP_ILLEGAL_INSTR_ERROR,4,2 ; @A6XX_CP_INT_CP_ILLEGAL_INSTR_ERROR
l_.str.8:                               ; @.str.8
	.asciz	"CP illegal instruction error\n"

	.no_dead_strip	_a6xx_cp_hw_err_irq
.subsections_via_symbols
