	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a4xx_irq
_a4xx_irq:                              ## @a4xx_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_REG_A4XX_RBBM_INT_0_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gpu_read
	movl	%eax, %r14d
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	callq	_DBG
	movq	_A4XX_INT0_CP_REG_PROTECT_FAULT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_REG_A4XX_CP_PROTECT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gpu_read
	testl	$16777216, %eax                 ## imm = 0x1000000
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rcx, %rsi
	shrl	$2, %eax
	andl	$262143, %eax                   ## imm = 0x3FFFF
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	callq	_printk
LBB0_2:
	movq	_REG_A4XX_RBBM_INT_CLEAR_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_gpu_write
	movq	%rbx, %rdi
	callq	_msm_gpu_retire
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_A4XX_RBBM_INT_0_STATUS,4,2 ## @REG_A4XX_RBBM_INT_0_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Int status %08x"

	.comm	_A4XX_INT0_CP_REG_PROTECT_FAULT,4,2 ## @A4XX_INT0_CP_REG_PROTECT_FAULT
	.comm	_REG_A4XX_CP_PROTECT_STATUS,4,2 ## @REG_A4XX_CP_PROTECT_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"CP | Protected mode error| %s | addr=%x\n"

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

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

	.comm	_REG_A4XX_RBBM_INT_CLEAR_CMD,4,2 ## @REG_A4XX_RBBM_INT_CLEAR_CMD
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_a4xx_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a4xx_irq
_a4xx_irq:                              ; @a4xx_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_A4XX_RBBM_INT_0_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_A4XX_RBBM_INT_0_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_gpu_read
	mov	x20, x0
	ldr	w1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DBG
Lloh5:
	adrp	x8, _A4XX_INT0_CP_REG_PROTECT_FAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _A4XX_INT0_CP_REG_PROTECT_FAULT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _REG_A4XX_CP_PROTECT_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_A4XX_CP_PROTECT_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
Lloh11:
	adrp	x8, l_.str.2@PAGE
Lloh12:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh13:
	adrp	x9, l_.str.3@PAGE
Lloh14:
	add	x9, x9, l_.str.3@PAGEOFF
	tst	w0, #0x1000000
	csel	x1, x9, x8, eq
	ubfx	w2, w0, #2, #18
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
LBB0_2:
Lloh17:
	adrp	x8, _REG_A4XX_RBBM_INT_CLEAR_CMD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_A4XX_RBBM_INT_CLEAR_CMD@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_gpu_write
	mov	x0, x19
	bl	_msm_gpu_retire
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_A4XX_RBBM_INT_0_STATUS,4,2 ; @REG_A4XX_RBBM_INT_0_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Int status %08x"

	.comm	_A4XX_INT0_CP_REG_PROTECT_FAULT,4,2 ; @A4XX_INT0_CP_REG_PROTECT_FAULT
	.comm	_REG_A4XX_CP_PROTECT_STATUS,4,2 ; @REG_A4XX_CP_PROTECT_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"CP | Protected mode error| %s | addr=%x\n"

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

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

	.comm	_REG_A4XX_RBBM_INT_CLEAR_CMD,4,2 ; @REG_A4XX_RBBM_INT_CLEAR_CMD
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_a4xx_irq
.subsections_via_symbols
