	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a2xx_irq
_a2xx_irq:                              ## @a2xx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_REG_A2XX_MASTER_INT_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gpu_read
	movl	%eax, %r14d
	movq	_A2XX_MASTER_INT_SIGNAL_MH_INT_STAT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_REG_A2XX_MH_INTERRUPT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gpu_read
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_warn
	movq	(%rbx), %rax
	movl	(%rax), %r12d
	movq	_REG_A2XX_MH_MMU_PAGE_FAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gpu_read
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_dev_warn
	movq	_REG_A2XX_MH_INTERRUPT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_gpu_write
LBB0_2:
	movq	_A2XX_MASTER_INT_SIGNAL_CP_INT_STAT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.3:
	movq	_REG_AXXX_CP_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gpu_read
	movl	%eax, %r15d
	movq	_AXXX_CP_INT_CNTL_RB_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, %r15d
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_warn
LBB0_5:
	movq	_REG_AXXX_CP_INT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_gpu_write
LBB0_6:
	movq	_A2XX_MASTER_INT_SIGNAL_RBBM_INT_STAT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_REG_A2XX_RBBM_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gpu_read
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_warn
	movq	_REG_A2XX_RBBM_INT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_gpu_write
LBB0_8:
	movq	%rbx, %rdi
	callq	_msm_gpu_retire
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_A2XX_MASTER_INT_SIGNAL,4,2 ## @REG_A2XX_MASTER_INT_SIGNAL
	.comm	_A2XX_MASTER_INT_SIGNAL_MH_INT_STAT,4,2 ## @A2XX_MASTER_INT_SIGNAL_MH_INT_STAT
	.comm	_REG_A2XX_MH_INTERRUPT_STATUS,4,2 ## @REG_A2XX_MH_INTERRUPT_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MH_INT: %08X\n"

L_.str.1:                               ## @.str.1
	.asciz	"MMU_PAGE_FAULT: %08X\n"

	.comm	_REG_A2XX_MH_MMU_PAGE_FAULT,4,2 ## @REG_A2XX_MH_MMU_PAGE_FAULT
	.comm	_REG_A2XX_MH_INTERRUPT_CLEAR,4,2 ## @REG_A2XX_MH_INTERRUPT_CLEAR
	.comm	_A2XX_MASTER_INT_SIGNAL_CP_INT_STAT,4,2 ## @A2XX_MASTER_INT_SIGNAL_CP_INT_STAT
	.comm	_REG_AXXX_CP_INT_STATUS,4,2     ## @REG_AXXX_CP_INT_STATUS
	.comm	_AXXX_CP_INT_CNTL_RB_INT_MASK,4,2 ## @AXXX_CP_INT_CNTL_RB_INT_MASK
L_.str.2:                               ## @.str.2
	.asciz	"CP_INT: %08X\n"

	.comm	_REG_AXXX_CP_INT_ACK,4,2        ## @REG_AXXX_CP_INT_ACK
	.comm	_A2XX_MASTER_INT_SIGNAL_RBBM_INT_STAT,4,2 ## @A2XX_MASTER_INT_SIGNAL_RBBM_INT_STAT
	.comm	_REG_A2XX_RBBM_INT_STATUS,4,2   ## @REG_A2XX_RBBM_INT_STATUS
L_.str.3:                               ## @.str.3
	.asciz	"RBBM_INT: %08X\n"

	.comm	_REG_A2XX_RBBM_INT_ACK,4,2      ## @REG_A2XX_RBBM_INT_ACK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_a2xx_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a2xx_irq
_a2xx_irq:                              ; @a2xx_irq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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_A2XX_MASTER_INT_SIGNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_A2XX_MASTER_INT_SIGNAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_gpu_read
	mov	x20, x0
Lloh3:
	adrp	x8, _A2XX_MASTER_INT_SIGNAL_MH_INT_STAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A2XX_MASTER_INT_SIGNAL_MH_INT_STAT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _REG_A2XX_MH_INTERRUPT_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_A2XX_MH_INTERRUPT_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
	ldr	x8, [x19]
	ldr	w22, [x8]
Lloh11:
	adrp	x8, _REG_A2XX_MH_MMU_PAGE_FAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_A2XX_MH_MMU_PAGE_FAULT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
Lloh16:
	adrp	x8, _REG_A2XX_MH_INTERRUPT_CLEAR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REG_A2XX_MH_INTERRUPT_CLEAR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_gpu_write
LBB0_2:
Lloh19:
	adrp	x8, _A2XX_MASTER_INT_SIGNAL_CP_INT_STAT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _A2XX_MASTER_INT_SIGNAL_CP_INT_STAT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.3:
Lloh22:
	adrp	x8, _REG_AXXX_CP_INT_STATUS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REG_AXXX_CP_INT_STATUS@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	mov	x21, x0
Lloh25:
	adrp	x8, _AXXX_CP_INT_CNTL_RB_INT_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AXXX_CP_INT_CNTL_RB_INT_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	bics	wzr, w0, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
LBB0_5:
Lloh30:
	adrp	x8, _REG_AXXX_CP_INT_ACK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _REG_AXXX_CP_INT_ACK@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_gpu_write
LBB0_6:
Lloh33:
	adrp	x8, _A2XX_MASTER_INT_SIGNAL_RBBM_INT_STAT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _A2XX_MASTER_INT_SIGNAL_RBBM_INT_STAT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh36:
	adrp	x8, _REG_A2XX_RBBM_INT_STATUS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _REG_A2XX_RBBM_INT_STATUS@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
Lloh41:
	adrp	x8, _REG_A2XX_RBBM_INT_ACK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _REG_A2XX_RBBM_INT_ACK@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_gpu_write
LBB0_8:
	mov	x0, x19
	bl	_msm_gpu_retire
Lloh44:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_A2XX_MASTER_INT_SIGNAL,4,2 ; @REG_A2XX_MASTER_INT_SIGNAL
	.comm	_A2XX_MASTER_INT_SIGNAL_MH_INT_STAT,4,2 ; @A2XX_MASTER_INT_SIGNAL_MH_INT_STAT
	.comm	_REG_A2XX_MH_INTERRUPT_STATUS,4,2 ; @REG_A2XX_MH_INTERRUPT_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MH_INT: %08X\n"

l_.str.1:                               ; @.str.1
	.asciz	"MMU_PAGE_FAULT: %08X\n"

	.comm	_REG_A2XX_MH_MMU_PAGE_FAULT,4,2 ; @REG_A2XX_MH_MMU_PAGE_FAULT
	.comm	_REG_A2XX_MH_INTERRUPT_CLEAR,4,2 ; @REG_A2XX_MH_INTERRUPT_CLEAR
	.comm	_A2XX_MASTER_INT_SIGNAL_CP_INT_STAT,4,2 ; @A2XX_MASTER_INT_SIGNAL_CP_INT_STAT
	.comm	_REG_AXXX_CP_INT_STATUS,4,2     ; @REG_AXXX_CP_INT_STATUS
	.comm	_AXXX_CP_INT_CNTL_RB_INT_MASK,4,2 ; @AXXX_CP_INT_CNTL_RB_INT_MASK
l_.str.2:                               ; @.str.2
	.asciz	"CP_INT: %08X\n"

	.comm	_REG_AXXX_CP_INT_ACK,4,2        ; @REG_AXXX_CP_INT_ACK
	.comm	_A2XX_MASTER_INT_SIGNAL_RBBM_INT_STAT,4,2 ; @A2XX_MASTER_INT_SIGNAL_RBBM_INT_STAT
	.comm	_REG_A2XX_RBBM_INT_STATUS,4,2   ; @REG_A2XX_RBBM_INT_STATUS
l_.str.3:                               ; @.str.3
	.asciz	"RBBM_INT: %08X\n"

	.comm	_REG_A2XX_RBBM_INT_ACK,4,2      ; @REG_A2XX_RBBM_INT_ACK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_a2xx_irq
.subsections_via_symbols
