	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_pp_handle_irq
_lima_pp_handle_irq:                    ## @lima_pp_handle_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
	movl	%esi, %ebx
	movq	_LIMA_PP_IRQ_MASK_ERROR@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%rdi), %r14
	movq	8(%r14), %r15
	movq	_lima_pipe_pp@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movq	_LIMA_PP_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pp_read
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_err
	movl	$1, (%r15,%r12,4)
	movq	_LIMA_PP_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_pp_write
LBB0_2:
	movq	_LIMA_PP_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pp_write                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_lima_pipe_pp,4,2               ## @lima_pipe_pp
	.comm	_LIMA_PP_IRQ_MASK_ERROR,4,2     ## @LIMA_PP_IRQ_MASK_ERROR
	.comm	_LIMA_PP_STATUS,4,2             ## @LIMA_PP_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pp error irq state=%x status=%x\n"

	.comm	_LIMA_PP_INT_MASK,4,2           ## @LIMA_PP_INT_MASK
	.comm	_LIMA_PP_INT_CLEAR,4,2          ## @LIMA_PP_INT_CLEAR
	.no_dead_strip	_lima_pp_handle_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lima_pp_handle_irq
_lima_pp_handle_irq:                    ; @lima_pp_handle_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, x1
Lloh0:
	adrp	x8, _LIMA_PP_IRQ_MASK_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIMA_PP_IRQ_MASK_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	x20, [x0]
	ldr	x21, [x20, #8]
Lloh3:
	adrp	x8, _lima_pipe_pp@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lima_pipe_pp@GOTPAGEOFF]
Lloh5:
	ldrsw	x22, [x8]
Lloh6:
	adrp	x8, _LIMA_PP_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LIMA_PP_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_pp_read
	mov	x3, x0
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	mov	w8, #1
	str	w8, [x21, x22, lsl #2]
Lloh11:
	adrp	x8, _LIMA_PP_INT_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LIMA_PP_INT_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_pp_write
LBB0_2:
Lloh14:
	adrp	x8, _LIMA_PP_INT_CLEAR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LIMA_PP_INT_CLEAR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x19
	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
	b	_pp_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_lima_pipe_pp,4,2               ; @lima_pipe_pp
	.comm	_LIMA_PP_IRQ_MASK_ERROR,4,2     ; @LIMA_PP_IRQ_MASK_ERROR
	.comm	_LIMA_PP_STATUS,4,2             ; @LIMA_PP_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pp error irq state=%x status=%x\n"

	.comm	_LIMA_PP_INT_MASK,4,2           ; @LIMA_PP_INT_MASK
	.comm	_LIMA_PP_INT_CLEAR,4,2          ; @LIMA_PP_INT_CLEAR
	.no_dead_strip	_lima_pp_handle_irq
.subsections_via_symbols
