	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_pp_write_frame
_lima_pp_write_frame:                   ## @lima_pp_write_frame
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rcx
	movq	_LIMA_PP_FRAME_REG_NUM@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	xorl	%ebx, %ebx
	movq	_LIMA_PP_FRAME@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx), %edi
	movq	(%rcx), %rsi
	addq	(%r12), %rsi
	addq	%rbx, %rsi
	callq	_writel
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%r13
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	movq	_LIMA_PP_WB_REG_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14), %r12d
	movl	%r14d, %ebx
	andl	$-4, %ebx
	addq	(%rcx), %rbx
	xorl	%edi, %edi
	callq	_LIMA_PP_WB
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movabsq	$4294967296, %rdx               ## imm = 0x100000000
	movq	_LIMA_PP_WB_REG_NUM@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	%rdx, %r13
	addq	$4, %r14
	cmpq	%rax, %r15
	jl	LBB0_5
## %bb.6:
	testl	%eax, %eax
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jle	LBB0_12
## %bb.7:
	addq	%rax, %r14
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r15d, %ebx
	andl	$-4, %ebx
	addq	(%rcx), %rbx
	movl	$1, %edi
	callq	_LIMA_PP_WB
	addq	%rax, %rbx
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_writel
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%r12
	movq	_LIMA_PP_WB_REG_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r15
	addq	$4, %r14
	movabsq	$4294967296, %rdx               ## imm = 0x100000000
	addq	%rdx, %r13
	cmpq	%rax, %r12
	jl	LBB0_8
## %bb.9:
	testl	%eax, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_12
## %bb.10:
	sarq	$32, %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r13,4), %r12d
	incq	%r13
	leal	(,%r14,4), %ebx
	addq	(%rcx), %rbx
	movl	$2, %edi
	callq	_LIMA_PP_WB
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%r14
	movq	_LIMA_PP_WB_REG_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jl	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIMA_PP_FRAME_REG_NUM,4,2      ## @LIMA_PP_FRAME_REG_NUM
	.comm	_LIMA_PP_FRAME,8,3              ## @LIMA_PP_FRAME
	.comm	_LIMA_PP_WB_REG_NUM,4,2         ## @LIMA_PP_WB_REG_NUM
	.no_dead_strip	_lima_pp_write_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lima_pp_write_frame
_lima_pp_write_frame:                   ; @lima_pp_write_frame
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x22, _LIMA_PP_FRAME_REG_NUM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LIMA_PP_FRAME_REG_NUM@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x23, #0
	mov	x24, #0
Lloh2:
	adrp	x25, _LIMA_PP_FRAME@GOTPAGE
Lloh3:
	ldr	x25, [x25, _LIMA_PP_FRAME@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, x23]
	ldr	x8, [x20]
	ldr	x9, [x25]
	add	x8, x8, x9
	add	x1, x23, x8
	bl	_writel
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_3:
Lloh4:
	adrp	x22, _LIMA_PP_WB_REG_NUM@GOTPAGE
Lloh5:
	ldr	x22, [x22, _LIMA_PP_WB_REG_NUM@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x26, #0
	mov	x23, #0
	mov	x24, #0
	mov	x25, #4294967296
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x24, #1
	ldr	w21, [x19, x26]
	ldr	x27, [x20]
	mov	w0, #0
	bl	_LIMA_PP_WB
	and	x8, x26, #0xfffffffc
	add	x8, x27, x8
	add	x1, x8, x0
	mov	x0, x21
	bl	_writel
	ldrsw	x8, [x22]
	add	x23, x23, x25
	add	x26, x26, #4
	cmp	x24, x8
	b.lt	LBB0_5
; %bb.6:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x24, #0
	mov	x25, #0
	add	x26, x19, x26
	mov	x27, #4294967296
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x26], #4
	ldr	x28, [x20]
	mov	w0, #1
	bl	_LIMA_PP_WB
	and	x8, x24, #0xfffffffc
	add	x8, x28, x8
	add	x1, x8, x0
	mov	x0, x21
	bl	_writel
	add	x25, x25, #1
	ldrsw	x8, [x22]
	add	x24, x24, #4
	add	x23, x23, x27
	cmp	x25, x8
	b.lt	LBB0_8
; %bb.9:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x24, #0
	asr	x8, x23, #32
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x23, x8, #1
	ldr	w21, [x19, x8, lsl #2]
	ldr	x25, [x20]
	mov	w0, #2
	bl	_LIMA_PP_WB
	lsl	w8, w24, #2
	add	x8, x25, x8
	add	x1, x8, x0
	mov	x0, x21
	bl	_writel
	add	x24, x24, #1
	ldrsw	x9, [x22]
	mov	x8, x23
	cmp	x24, x9
	b.lt	LBB0_11
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LIMA_PP_FRAME_REG_NUM,4,2      ; @LIMA_PP_FRAME_REG_NUM
	.comm	_LIMA_PP_FRAME,8,3              ; @LIMA_PP_FRAME
	.comm	_LIMA_PP_WB_REG_NUM,4,2         ; @LIMA_PP_WB_REG_NUM
	.no_dead_strip	_lima_pp_write_frame
.subsections_via_symbols
