	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_pp_task_run
_lima_pp_task_run:                      ## @lima_pp_task_run
	.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	%rdi, %r12
	movq	24(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.1:
	movq	(%rsi), %r13
	movq	(%r14), %r15
	movq	$0, 16(%r12)
	addq	$8, %r12
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_atomic_set
	cmpq	$0, 32(%r13)
	je	LBB0_3
## %bb.2:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_lima_dlbu_enable
	movq	_LIMA_VA_RESERVE_DLBU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rcx
	movq	_LIMA_PP_FRAME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	sarl	$2, %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_lima_ip_dlbu@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	movl	40(%r13), %esi
	callq	_lima_dlbu_set_reg
	jmp	LBB0_4
LBB0_10:
	movq	(%rsi), %r15
	leaq	8(%r12), %rdi
	movl	(%r15), %esi
	callq	_atomic_set
	cmpl	$0, (%r15)
	jle	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	movq	_LIMA_PP_CTRL_START_RENDERING@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %r14
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movq	_LIMA_PP_FRAME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	sarl	$2, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	16(%r15), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movq	_LIMA_PP_STACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	sarl	$2, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	%r14, %rdi
	callq	_lima_pp_soft_reset_async_wait
	movq	8(%r15), %rsi
	movl	4(%r15), %edx
	movq	%r14, %rdi
	callq	_lima_pp_write_frame
	movq	_LIMA_PP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_pp_write
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	callq	_lima_dlbu_disable
LBB0_4:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_lima_bcast_enable
	movq	%r14, %rdi
	callq	_lima_pp_soft_reset_async_wait
	movq	8(%r13), %rsi
	movl	4(%r13), %edx
	movq	%r14, %rdi
	callq	_lima_pp_write_frame
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	movq	_LIMA_PP_STACK@GOTPCREL(%rip), %r14
	movq	_LIMA_PP_FRAME@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	16(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_pp_write
	cmpq	$0, 32(%r13)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %edi
	movq	24(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_pp_write
	jmp	LBB0_8
LBB0_9:
	movq	_LIMA_PP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LIMA_PP_CTRL_START_RENDERING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pp_write                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LIMA_VA_RESERVE_DLBU,4,2       ## @LIMA_VA_RESERVE_DLBU
	.comm	_LIMA_PP_FRAME,4,2              ## @LIMA_PP_FRAME
	.comm	_lima_ip_dlbu,8,3               ## @lima_ip_dlbu
	.comm	_LIMA_PP_STACK,4,2              ## @LIMA_PP_STACK
	.comm	_LIMA_PP_CTRL,4,2               ## @LIMA_PP_CTRL
	.comm	_LIMA_PP_CTRL_START_RENDERING,4,2 ## @LIMA_PP_CTRL_START_RENDERING
	.no_dead_strip	_lima_pp_task_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lima_pp_task_run
_lima_pp_task_run:                      ; @lima_pp_task_run
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0, #24]
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x22, [x1]
	ldr	x21, [x20]
	str	xzr, [x19, #16]
	add	x0, x19, #8
	ldr	w1, [x22]
	bl	_atomic_set
	ldr	x8, [x22, #32]
Lloh0:
	adrp	x19, _LIMA_PP_FRAME@GOTPAGE
Lloh1:
	ldr	x19, [x19, _LIMA_PP_FRAME@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_lima_dlbu_enable
Lloh2:
	adrp	x8, _LIMA_VA_RESERVE_DLBU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LIMA_VA_RESERVE_DLBU@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	ldr	w10, [x19]
	asr	w10, w10, #2
	str	w8, [x9, w10, sxtw #2]
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _lima_ip_dlbu@GOTPAGE
Lloh6:
	ldr	x9, [x9, _lima_ip_dlbu@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w1, [x22, #40]
	bl	_lima_dlbu_set_reg
	b	LBB0_8
LBB0_3:
	ldr	x21, [x1]
	add	x0, x19, #8
	ldr	w1, [x21]
	bl	_atomic_set
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
Lloh8:
	adrp	x23, _LIMA_PP_FRAME@GOTPAGE
Lloh9:
	ldr	x23, [x23, _LIMA_PP_FRAME@GOTPAGEOFF]
Lloh10:
	adrp	x24, _LIMA_PP_STACK@GOTPAGE
Lloh11:
	ldr	x24, [x24, _LIMA_PP_STACK@GOTPAGEOFF]
Lloh12:
	adrp	x25, _LIMA_PP_CTRL@GOTPAGE
Lloh13:
	ldr	x25, [x25, _LIMA_PP_CTRL@GOTPAGEOFF]
Lloh14:
	adrp	x26, _LIMA_PP_CTRL_START_RENDERING@GOTPAGE
Lloh15:
	ldr	x26, [x26, _LIMA_PP_CTRL_START_RENDERING@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x20, [x8, x22, lsl #3]
	ldp	x12, x8, [x21, #16]
	lsl	x9, x22, #2
	ldr	w8, [x8, x9]
	ldr	w10, [x23]
	asr	w10, w10, #2
	ldr	x11, [x21, #8]
	str	w8, [x11, w10, sxtw #2]
	ldr	w8, [x12, x9]
	ldr	w9, [x24]
	asr	w9, w9, #2
	str	w8, [x11, w9, sxtw #2]
	mov	x0, x20
	bl	_lima_pp_soft_reset_async_wait
	ldr	x1, [x21, #8]
	ldr	w2, [x21, #4]
	mov	x0, x20
	bl	_lima_pp_write_frame
	ldr	w0, [x25]
	ldr	w1, [x26]
	bl	_pp_write
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x21
	bl	_lima_dlbu_disable
LBB0_8:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_lima_bcast_enable
	mov	x0, x20
	bl	_lima_pp_soft_reset_async_wait
	ldr	x1, [x22, #8]
	ldr	w2, [x22, #4]
	mov	x0, x20
	bl	_lima_pp_write_frame
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x20, #0
Lloh16:
	adrp	x21, _LIMA_PP_STACK@GOTPAGE
Lloh17:
	ldr	x21, [x21, _LIMA_PP_STACK@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	x8, [x22, #16]
	ldr	w1, [x8, x20, lsl #2]
	bl	_pp_write
	ldr	x8, [x22, #32]
	cbnz	x8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x19]
	ldr	x8, [x22, #24]
	ldr	w1, [x8, x20, lsl #2]
	bl	_pp_write
	b	LBB0_10
LBB0_13:
Lloh18:
	adrp	x8, _LIMA_PP_CTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LIMA_PP_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _LIMA_PP_CTRL_START_RENDERING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LIMA_PP_CTRL_START_RENDERING@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pp_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LIMA_VA_RESERVE_DLBU,4,2       ; @LIMA_VA_RESERVE_DLBU
	.comm	_LIMA_PP_FRAME,4,2              ; @LIMA_PP_FRAME
	.comm	_lima_ip_dlbu,8,3               ; @lima_ip_dlbu
	.comm	_LIMA_PP_STACK,4,2              ; @LIMA_PP_STACK
	.comm	_LIMA_PP_CTRL,4,2               ; @LIMA_PP_CTRL
	.comm	_LIMA_PP_CTRL_START_RENDERING,4,2 ; @LIMA_PP_CTRL_START_RENDERING
	.no_dead_strip	_lima_pp_task_run
.subsections_via_symbols
