	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a6xx_gmu_irq
_a6xx_gmu_irq:                          ## @a6xx_gmu_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	%rsi, %rbx
	movq	_REG_A6XX_GMU_AO_HOST_INTERRUPT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gmu_read
	movl	%eax, %r14d
	movq	_REG_A6XX_GMU_AO_HOST_INTERRUPT_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_gmu_write
	movq	_A6XX_GMU_AO_HOST_INTERRUPT_STATUS_WDOG_BITE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
	movq	%rbx, %rdi
	callq	_a6xx_gmu_fault
LBB0_2:
	movq	_A6XX_GMU_AO_HOST_INTERRUPT_STATUS_HOST_AHB_BUS_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
LBB0_4:
	movq	_A6XX_GMU_AO_HOST_INTERRUPT_STATUS_FENCE_ERR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %r14d
	movq	_REG_A6XX_GMU_AHB_FENCE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gmu_read
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_A6XX_GMU_AO_HOST_INTERRUPT_STATUS,4,2 ## @REG_A6XX_GMU_AO_HOST_INTERRUPT_STATUS
	.comm	_REG_A6XX_GMU_AO_HOST_INTERRUPT_CLR,4,2 ## @REG_A6XX_GMU_AO_HOST_INTERRUPT_CLR
	.comm	_A6XX_GMU_AO_HOST_INTERRUPT_STATUS_WDOG_BITE,4,2 ## @A6XX_GMU_AO_HOST_INTERRUPT_STATUS_WDOG_BITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GMU watchdog expired\n"

	.comm	_A6XX_GMU_AO_HOST_INTERRUPT_STATUS_HOST_AHB_BUS_ERROR,4,2 ## @A6XX_GMU_AO_HOST_INTERRUPT_STATUS_HOST_AHB_BUS_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"GMU AHB bus error\n"

	.comm	_A6XX_GMU_AO_HOST_INTERRUPT_STATUS_FENCE_ERR,4,2 ## @A6XX_GMU_AO_HOST_INTERRUPT_STATUS_FENCE_ERR
L_.str.2:                               ## @.str.2
	.asciz	"GMU fence error: 0x%x\n"

	.comm	_REG_A6XX_GMU_AHB_FENCE_STATUS,4,2 ## @REG_A6XX_GMU_AHB_FENCE_STATUS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_a6xx_gmu_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a6xx_gmu_irq
_a6xx_gmu_irq:                          ; @a6xx_gmu_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _REG_A6XX_GMU_AO_HOST_INTERRUPT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_A6XX_GMU_AO_HOST_INTERRUPT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gmu_read
	mov	x20, x0
Lloh3:
	adrp	x8, _REG_A6XX_GMU_AO_HOST_INTERRUPT_CLR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_A6XX_GMU_AO_HOST_INTERRUPT_CLR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_gmu_write
Lloh6:
	adrp	x8, _A6XX_GMU_AO_HOST_INTERRUPT_STATUS_WDOG_BITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _A6XX_GMU_AO_HOST_INTERRUPT_STATUS_WDOG_BITE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err_ratelimited
	mov	x0, x19
	bl	_a6xx_gmu_fault
LBB0_2:
Lloh11:
	adrp	x8, _A6XX_GMU_AO_HOST_INTERRUPT_STATUS_HOST_AHB_BUS_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _A6XX_GMU_AO_HOST_INTERRUPT_STATUS_HOST_AHB_BUS_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err_ratelimited
LBB0_4:
Lloh16:
	adrp	x8, _A6XX_GMU_AO_HOST_INTERRUPT_STATUS_FENCE_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _A6XX_GMU_AO_HOST_INTERRUPT_STATUS_FENCE_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w20, [x19]
Lloh19:
	adrp	x8, _REG_A6XX_GMU_AHB_FENCE_STATUS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REG_A6XX_GMU_AHB_FENCE_STATUS@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gmu_read
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err_ratelimited
LBB0_6:
Lloh24:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_A6XX_GMU_AO_HOST_INTERRUPT_STATUS,4,2 ; @REG_A6XX_GMU_AO_HOST_INTERRUPT_STATUS
	.comm	_REG_A6XX_GMU_AO_HOST_INTERRUPT_CLR,4,2 ; @REG_A6XX_GMU_AO_HOST_INTERRUPT_CLR
	.comm	_A6XX_GMU_AO_HOST_INTERRUPT_STATUS_WDOG_BITE,4,2 ; @A6XX_GMU_AO_HOST_INTERRUPT_STATUS_WDOG_BITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GMU watchdog expired\n"

	.comm	_A6XX_GMU_AO_HOST_INTERRUPT_STATUS_HOST_AHB_BUS_ERROR,4,2 ; @A6XX_GMU_AO_HOST_INTERRUPT_STATUS_HOST_AHB_BUS_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"GMU AHB bus error\n"

	.comm	_A6XX_GMU_AO_HOST_INTERRUPT_STATUS_FENCE_ERR,4,2 ; @A6XX_GMU_AO_HOST_INTERRUPT_STATUS_FENCE_ERR
l_.str.2:                               ; @.str.2
	.asciz	"GMU fence error: 0x%x\n"

	.comm	_REG_A6XX_GMU_AHB_FENCE_STATUS,4,2 ; @REG_A6XX_GMU_AHB_FENCE_STATUS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_a6xx_gmu_irq
.subsections_via_symbols
