	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_gp_irq_handler
_lima_gp_irq_handler:                   ## @lima_gp_irq_handler
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r12
	movq	_lima_pipe_gp@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	shlq	$2, %rbx
	addq	8(%r12), %rbx
	movq	_LIMA_GP_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gp_read
	movl	%eax, %r14d
	movq	_LIMA_GP_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gp_read
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movq	_LIMA_GP_IRQ_MASK_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_dev_err
	movq	_LIMA_GP_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gp_write
	movl	$1, (%rbx)
	movq	_LIMA_GP_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_gp_write
	jmp	LBB0_6
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_LIMA_GP_IRQ_VS_END_CMD_LST@GOTPCREL(%rip), %rax
	movq	_LIMA_GP_IRQ_PLBU_END_CMD_LST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_LIMA_GP_STATUS_VS_ACTIVE@GOTPCREL(%rip), %rax
	movq	_LIMA_GP_STATUS_PLBU_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_LIMA_GP_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_gp_write
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	testl	%r14d, %r13d
	je	LBB0_7
## %bb.5:
	andl	%r15d, %r12d
	jne	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_lima_sched_pipe_task_done
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lima_pipe_gp,4,2               ## @lima_pipe_gp
	.comm	_LIMA_GP_INT_STAT,4,2           ## @LIMA_GP_INT_STAT
	.comm	_LIMA_GP_STATUS,4,2             ## @LIMA_GP_STATUS
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_LIMA_GP_IRQ_MASK_ERROR,4,2     ## @LIMA_GP_IRQ_MASK_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gp error irq state=%x status=%x\n"

	.comm	_LIMA_GP_INT_MASK,4,2           ## @LIMA_GP_INT_MASK
	.comm	_LIMA_GP_IRQ_VS_END_CMD_LST,4,2 ## @LIMA_GP_IRQ_VS_END_CMD_LST
	.comm	_LIMA_GP_IRQ_PLBU_END_CMD_LST,4,2 ## @LIMA_GP_IRQ_PLBU_END_CMD_LST
	.comm	_LIMA_GP_STATUS_VS_ACTIVE,4,2   ## @LIMA_GP_STATUS_VS_ACTIVE
	.comm	_LIMA_GP_STATUS_PLBU_ACTIVE,4,2 ## @LIMA_GP_STATUS_PLBU_ACTIVE
	.comm	_LIMA_GP_INT_CLEAR,4,2          ## @LIMA_GP_INT_CLEAR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_lima_gp_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lima_gp_irq_handler
_lima_gp_irq_handler:                   ; @lima_gp_irq_handler
	.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
	ldr	x21, [x1]
	ldr	x19, [x21, #8]
Lloh0:
	adrp	x8, _lima_pipe_gp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lima_pipe_gp@GOTPAGEOFF]
Lloh2:
	ldrsw	x22, [x8]
Lloh3:
	adrp	x8, _LIMA_GP_INT_STAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LIMA_GP_INT_STAT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_gp_read
	mov	x20, x0
Lloh6:
	adrp	x8, _LIMA_GP_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LIMA_GP_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_gp_read
	cbz	w20, LBB0_3
; %bb.1:
	mov	x3, x0
	add	x19, x19, x22, lsl #2
Lloh9:
	adrp	x8, _LIMA_GP_IRQ_MASK_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LIMA_GP_IRQ_MASK_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh14:
	adrp	x8, _LIMA_GP_INT_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LIMA_GP_INT_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gp_write
	mov	w8, #1
	str	w8, [x19]
Lloh17:
	adrp	x8, _LIMA_GP_INT_CLEAR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LIMA_GP_INT_CLEAR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_gp_write
	b	LBB0_5
LBB0_3:
Lloh20:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh22:
	adrp	x8, _LIMA_GP_IRQ_VS_END_CMD_LST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LIMA_GP_IRQ_VS_END_CMD_LST@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _LIMA_GP_IRQ_PLBU_END_CMD_LST@GOTPAGE
Lloh26:
	ldr	x9, [x9, _LIMA_GP_IRQ_PLBU_END_CMD_LST@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w21, w8, w20
Lloh28:
	adrp	x8, _LIMA_GP_STATUS_VS_ACTIVE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LIMA_GP_STATUS_VS_ACTIVE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _LIMA_GP_STATUS_PLBU_ACTIVE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _LIMA_GP_STATUS_PLBU_ACTIVE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w22, w8, w3
Lloh34:
	adrp	x8, _LIMA_GP_INT_CLEAR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LIMA_GP_INT_CLEAR@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_gp_write
	cmp	w21, #0
	ccmp	w22, #0, #0, ne
	b.ne	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_lima_sched_pipe_task_done
LBB0_6:
Lloh37:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_7:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_lima_pipe_gp,4,2               ; @lima_pipe_gp
	.comm	_LIMA_GP_INT_STAT,4,2           ; @LIMA_GP_INT_STAT
	.comm	_LIMA_GP_STATUS,4,2             ; @LIMA_GP_STATUS
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_LIMA_GP_IRQ_MASK_ERROR,4,2     ; @LIMA_GP_IRQ_MASK_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gp error irq state=%x status=%x\n"

	.comm	_LIMA_GP_INT_MASK,4,2           ; @LIMA_GP_INT_MASK
	.comm	_LIMA_GP_IRQ_VS_END_CMD_LST,4,2 ; @LIMA_GP_IRQ_VS_END_CMD_LST
	.comm	_LIMA_GP_IRQ_PLBU_END_CMD_LST,4,2 ; @LIMA_GP_IRQ_PLBU_END_CMD_LST
	.comm	_LIMA_GP_STATUS_VS_ACTIVE,4,2   ; @LIMA_GP_STATUS_VS_ACTIVE
	.comm	_LIMA_GP_STATUS_PLBU_ACTIVE,4,2 ; @LIMA_GP_STATUS_PLBU_ACTIVE
	.comm	_LIMA_GP_INT_CLEAR,4,2          ; @LIMA_GP_INT_CLEAR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_lima_gp_irq_handler
.subsections_via_symbols
