	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_gp_task_run
_lima_gp_task_run:                      ## @lima_gp_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	(%rsi), %rax
	movq	(%rax), %rbx
	movq	_LIMA_GP_VSCL_START_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$2, %eax
	cltq
	movl	(%rbx,%rax,4), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_LIMA_GP_VSCL_END_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$2, %eax
	cltq
	movl	(%rbx,%rax,4), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_LIMA_GP_CMD_START_VS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_LIMA_GP_PLBUCL_START_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$2, %eax
	cltq
	movl	(%rbx,%rax,4), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_LIMA_GP_PLBUCL_END_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$2, %eax
	cltq
	movl	(%rbx,%rax,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_LIMA_GP_CMD_START_PLBU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_lima_gp_soft_reset_async_wait
	movq	_LIMA_GP_FRAME_REG_NUM@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_3
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r14), %edi
	movq	_LIMA_GP_VSCL_START_ADDR@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	(%r15), %rsi
	addq	%r14, %rsi
	callq	_writel
	incq	%r12
	movslq	(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, -64(%rbp)                 ## 4-byte Folded Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmovel	%eax, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, -48(%rbp)                 ## 4-byte Folded Reload
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	cmovel	%eax, %ebx
	orl	%ecx, %ebx
	movq	_LIMA_GP_CMD@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_LIMA_GP_CMD_UPDATE_PLBU_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gp_write
	movl	(%r14), %edi
	movl	%ebx, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gp_write                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LIMA_GP_VSCL_START_ADDR,4,2    ## @LIMA_GP_VSCL_START_ADDR
	.comm	_LIMA_GP_VSCL_END_ADDR,4,2      ## @LIMA_GP_VSCL_END_ADDR
	.comm	_LIMA_GP_CMD_START_VS,4,2       ## @LIMA_GP_CMD_START_VS
	.comm	_LIMA_GP_PLBUCL_START_ADDR,4,2  ## @LIMA_GP_PLBUCL_START_ADDR
	.comm	_LIMA_GP_PLBUCL_END_ADDR,4,2    ## @LIMA_GP_PLBUCL_END_ADDR
	.comm	_LIMA_GP_CMD_START_PLBU,4,2     ## @LIMA_GP_CMD_START_PLBU
	.comm	_LIMA_GP_FRAME_REG_NUM,4,2      ## @LIMA_GP_FRAME_REG_NUM
	.comm	_LIMA_GP_CMD,4,2                ## @LIMA_GP_CMD
	.comm	_LIMA_GP_CMD_UPDATE_PLBU_ALLOC,4,2 ## @LIMA_GP_CMD_UPDATE_PLBU_ALLOC
	.no_dead_strip	_lima_gp_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_gp_task_run
_lima_gp_task_run:                      ; @lima_gp_task_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	x8, [x1]
	ldr	x20, [x8]
Lloh0:
	adrp	x21, _LIMA_GP_VSCL_START_ADDR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LIMA_GP_VSCL_START_ADDR@GOTPAGEOFF]
	ldr	w8, [x21]
	asr	w8, w8, #2
	ldr	w8, [x20, w8, sxtw #2]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh2:
	adrp	x8, _LIMA_GP_VSCL_END_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LIMA_GP_VSCL_END_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	asr	w8, w8, #2
	ldr	w8, [x20, w8, sxtw #2]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
Lloh5:
	adrp	x8, _LIMA_GP_CMD_START_VS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LIMA_GP_CMD_START_VS@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x8]
Lloh8:
	adrp	x8, _LIMA_GP_PLBUCL_START_ADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LIMA_GP_PLBUCL_START_ADDR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	asr	w8, w8, #2
	ldr	w25, [x20, w8, sxtw #2]
Lloh11:
	adrp	x8, _LIMA_GP_PLBUCL_END_ADDR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LIMA_GP_PLBUCL_END_ADDR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	asr	w8, w8, #2
	ldr	w26, [x20, w8, sxtw #2]
Lloh14:
	adrp	x8, _LIMA_GP_CMD_START_PLBU@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LIMA_GP_CMD_START_PLBU@GOTPAGEOFF]
Lloh16:
	ldr	w27, [x8]
	mov	x0, x19
	bl	_lima_gp_soft_reset_async_wait
Lloh17:
	adrp	x28, _LIMA_GP_FRAME_REG_NUM@GOTPAGE
Lloh18:
	ldr	x28, [x28, _LIMA_GP_FRAME_REG_NUM@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, x22]
	ldr	x8, [x19]
	ldrsw	x9, [x21]
	add	x8, x8, x9
	add	x1, x22, x8
	bl	_writel
	add	x23, x23, #1
	ldrsw	x8, [x28]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	ldp	w9, w8, [sp, #8]                ; 8-byte Folded Reload
	cmp	w8, w9
	csel	w8, wzr, w24, eq
	cmp	w25, w26
	csel	w9, wzr, w27, eq
	orr	w19, w9, w8
Lloh19:
	adrp	x20, _LIMA_GP_CMD@GOTPAGE
Lloh20:
	ldr	x20, [x20, _LIMA_GP_CMD@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh21:
	adrp	x8, _LIMA_GP_CMD_UPDATE_PLBU_ALLOC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LIMA_GP_CMD_UPDATE_PLBU_ALLOC@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_gp_write
	ldr	w0, [x20]
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_gp_write
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LIMA_GP_VSCL_START_ADDR,4,2    ; @LIMA_GP_VSCL_START_ADDR
	.comm	_LIMA_GP_VSCL_END_ADDR,4,2      ; @LIMA_GP_VSCL_END_ADDR
	.comm	_LIMA_GP_CMD_START_VS,4,2       ; @LIMA_GP_CMD_START_VS
	.comm	_LIMA_GP_PLBUCL_START_ADDR,4,2  ; @LIMA_GP_PLBUCL_START_ADDR
	.comm	_LIMA_GP_PLBUCL_END_ADDR,4,2    ; @LIMA_GP_PLBUCL_END_ADDR
	.comm	_LIMA_GP_CMD_START_PLBU,4,2     ; @LIMA_GP_CMD_START_PLBU
	.comm	_LIMA_GP_FRAME_REG_NUM,4,2      ; @LIMA_GP_FRAME_REG_NUM
	.comm	_LIMA_GP_CMD,4,2                ; @LIMA_GP_CMD
	.comm	_LIMA_GP_CMD_UPDATE_PLBU_ALLOC,4,2 ; @LIMA_GP_CMD_UPDATE_PLBU_ALLOC
	.no_dead_strip	_lima_gp_task_run
.subsections_via_symbols
