	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_pp_bcast_irq_handler
_lima_pp_bcast_irq_handler:             ## @lima_pp_bcast_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movq	_lima_pipe_pp@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	16(%rax,%rcx,8), %rdx
	testq	%rdx, %rdx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_10
## %bb.1:
	movq	(%rdx), %r15
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.2:
	leaq	(%rax,%rcx,8), %r12
	leaq	(%rax,%rcx,8), %rax
	addq	$4, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_LIMA_PP_STATUS_RENDERING_ACTIVE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	movl	$1, %r14d
	movl	%ebx, %ecx
	shll	%cl, %r14d
	btl	%ebx, %eax
	jb	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %r13
	movq	_LIMA_PP_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pp_read
	movl	%eax, %r15d
	movq	_LIMA_PP_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pp_read
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_lima_pp_handle_irq
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	orl	%r14d, (%r12)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_lima_sched_pipe_task_done
	jmp	LBB0_9
LBB0_10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_lima_pipe_pp,4,2               ## @lima_pipe_pp
	.comm	_LIMA_PP_STATUS,4,2             ## @LIMA_PP_STATUS
	.comm	_LIMA_PP_INT_STATUS,4,2         ## @LIMA_PP_INT_STATUS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_LIMA_PP_STATUS_RENDERING_ACTIVE,4,2 ## @LIMA_PP_STATUS_RENDERING_ACTIVE
	.no_dead_strip	_lima_pp_bcast_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_pp_bcast_irq_handler
_lima_pp_bcast_irq_handler:             ; @lima_pp_bcast_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	x8, [x1]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _lima_pipe_pp@GOTPAGE
Lloh4:
	ldr	x9, [x9, _lima_pipe_pp@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	mov	w10, #24
	madd	x20, x9, x10, x8
	ldr	x10, [x20, #16]
	cbz	x10, LBB0_10
; %bb.1:
	ldr	x24, [x10]
	ldr	w10, [x24]
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x25, #0
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x26, x8, #8
	add	x21, x8, #4
	mov	w27, #1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh6:
	adrp	x8, _LIMA_PP_STATUS_RENDERING_ACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LIMA_PP_STATUS_RENDERING_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	lsl	w28, w27, w25
	tst	w8, w28
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	ldr	x22, [x8, x25, lsl #3]
Lloh9:
	adrp	x8, _LIMA_PP_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LIMA_PP_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_pp_read
	mov	x23, x0
Lloh12:
	adrp	x8, _LIMA_PP_INT_STATUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LIMA_PP_INT_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_pp_read
	cbz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	mov	x0, x22
	bl	_lima_pp_handle_irq
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	orr	w8, w8, w28
	str	w8, [x20]
	mov	x0, x21
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_lima_sched_pipe_task_done
	b	LBB0_4
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_lima_pipe_pp,4,2               ; @lima_pipe_pp
	.comm	_LIMA_PP_STATUS,4,2             ; @LIMA_PP_STATUS
	.comm	_LIMA_PP_INT_STATUS,4,2         ; @LIMA_PP_INT_STATUS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_LIMA_PP_STATUS_RENDERING_ACTIVE,4,2 ; @LIMA_PP_STATUS_RENDERING_ACTIVE
	.no_dead_strip	_lima_pp_bcast_irq_handler
.subsections_via_symbols
