	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function vita2d_gfx_frame
LCPI0_0:
	.long	0x3fc90fdb                      ## float 1.57079637
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vita2d_gfx_frame:                      ## @vita2d_gfx_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.1:
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	80(%rax), %rdi
	testq	%rdi, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.2:
	movl	%r9d, %ebx
	callq	_vita2d_texture_get_datap
	movl	%ebx, %r9d
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_3:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpl	%r14d, (%rbx)
	jne	LBB0_6
## %bb.4:
	cmpl	%r15d, 4(%rbx)
	jne	LBB0_6
## %bb.5:
	movl	%r9d, %r12d
	movq	80(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_9
	jmp	LBB0_8
LBB0_6:
	movl	%r9d, %r12d
	movq	80(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_vita2d_free_texture
	movq	$0, 80(%rbx)
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_RARCH_LOG
	movl	%r14d, (%rbx)
	movl	%r15d, 4(%rbx)
	movq	8(%rbx), %rdx
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_vita2d_create_empty_texture_format
	movq	%rax, 80(%rbx)
	movl	96(%rbx), %edx
	movq	%rax, %rdi
	movl	%edx, %esi
	callq	_vita2d_texture_set_filters
	movq	80(%rbx), %rdi
LBB0_9:
	callq	_vita2d_texture_get_datap
	movq	%rax, %r13
	movq	80(%rbx), %rdi
	callq	_vita2d_texture_get_stride
	movl	%eax, %esi
	movq	8(%rbx), %rax
	movq	_SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1RGB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.10:
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.11:
	movl	%r12d, %ebx
	movq	%r13, %rcx
	shrl	$2, %esi
	movl	%r12d, %edi
	shrl	$2, %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	andl	$-4, %ebx
	movl	%r15d, %r14d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %eax
	leaq	(%rcx,%rax,4), %rdi
	movl	%r13d, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%esi, %r15d
	leaq	(%rcx,%rax,4), %rsi
	movl	%ebx, %edx
	callq	_memcpy_neon
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %esi
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	addl	%r15d, %r12d
	decq	%r14
	jne	LBB0_12
	jmp	LBB0_16
LBB0_13:
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.14:
	movl	%r12d, %ecx
	movq	%r13, %rdx
	shrl	%esi
	shrl	%ecx
	shll	$2, %r14d
	movl	%r15d, %r12d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	leaq	(%rdx,%rax,4), %rdi
	movl	%ebx, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rsi
	movl	%r14d, %edx
	movl	%r14d, %r15d
	movl	%ecx, %r14d
	callq	_memcpy_neon
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%r15d, %r14d
	addl	%ecx, %ebx
	addl	%esi, %r13d
	decq	%r12
	jne	LBB0_15
LBB0_16:
	movq	24(%rbp), %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 88(%rbx)
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vita2d_gfx_update_viewport
LBB0_18:
	xorl	%eax, %eax
	callq	_vita2d_start_drawing
	movq	_PSP_FB_WIDTH@GOTPCREL(%rip), %r13
	movss	(%r13), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movq	_PSP_FB_HEIGHT@GOTPCREL(%rip), %r12
	movss	(%r12), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_vita2d_get_clear_color
	xorl	%edi, %edi
	xorl	%esi, %esi
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-56(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movl	%eax, %edx
	callq	_vita2d_draw_rectangle
	movq	80(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.19:
	cmpq	$0, 48(%rbx)
	je	LBB0_21
## %bb.20:
	movl	(%rbx), %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movss	(%r13), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movl	4(%rbx), %eax
	divss	%xmm0, %xmm2
	movss	(%r12), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	divss	%xmm0, %xmm3
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	callq	_vita2d_draw_texture_scale
	jmp	LBB0_22
LBB0_21:
	movss	16(%rbx), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	mulss	LCPI0_0(%rip), %xmm2
	movss	64(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rax, %xmm1
	divss	%xmm1, %xmm0
	cvtsi2ss	%rcx, %xmm3
	movss	68(%rbx), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm3, %xmm1
	movl	76(%rbx), %esi
	movl	72(%rbx), %edx
	callq	_vita2d_draw_texture_scale_rotate
LBB0_22:
	movq	16(%rbp), %r15
	cmpq	$0, 40(%rbx)
	je	LBB0_26
## %bb.23:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.24:
	cmpq	$0, 48(%rbx)
	je	LBB0_28
## %bb.25:
	movss	(%r13), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	divss	24(%rbx), %xmm2
	movss	(%r12), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	divss	28(%rbx), %xmm3
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	jmp	LBB0_32
LBB0_26:
	cmpq	$0, 16(%r14)
	je	LBB0_33
## %bb.27:
	leaq	8(%r14), %rcx
	movq	(%r14), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_font_driver_render_msg
	jmp	LBB0_33
LBB0_28:
	movss	24(%rbx), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	movss	28(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_30
## %bb.29:
	movss	(%r12), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm2
	mulss	%xmm2, %xmm1
	movss	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movss	(%r13), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm0
	mulss	%xmm3, %xmm1
	subss	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	jmp	LBB0_31
LBB0_30:
	movss	(%r13), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	divss	%xmm1, %xmm2
	mulss	%xmm2, %xmm0
	movss	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movss	(%r12), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm1
	mulss	%xmm3, %xmm0
	subss	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
LBB0_31:
	movaps	%xmm2, %xmm3
LBB0_32:
	callq	_vita2d_draw_texture_scale
LBB0_33:
	movq	%r15, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_35
## %bb.34:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_font_driver_render_msg
LBB0_35:
	xorl	%eax, %eax
	callq	_vita2d_end_drawing
	xorl	%eax, %eax
	callq	_vita2d_swap_buffers
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Creating texture: %ix%i\n"

	.comm	_SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1RGB,8,3 ## @SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1RGB
	.comm	_PSP_FB_WIDTH,4,2               ## @PSP_FB_WIDTH
	.comm	_PSP_FB_HEIGHT,4,2              ## @PSP_FB_HEIGHT
	.no_dead_strip	_vita2d_gfx_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vita2d_gfx_frame
_vita2d_gfx_frame:                      ; @vita2d_gfx_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	stp	x7, x6, [sp]                    ; 16-byte Folded Spill
	mov	x21, x0
	cbz	x1, LBB0_16
; %bb.1:
	mov	x24, x5
	mov	x23, x3
	mov	x25, x2
	mov	x22, x1
	ldr	x0, [x21, #80]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_vita2d_texture_get_datap
	cmp	x0, x22
	b.eq	LBB0_16
LBB0_3:
	ldr	w8, [x21]
	cmp	w8, w25
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x21, #4]
	cmp	w8, w23
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x21, #80]
	cbnz	x0, LBB0_9
	b	LBB0_8
LBB0_6:
	ldr	x0, [x21, #80]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_vita2d_free_texture
	str	xzr, [x21, #80]
LBB0_8:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	mov	x2, x23
	bl	_RARCH_LOG
	stp	w25, w23, [x21]
	ldr	x2, [x21, #8]
	mov	x0, x25
	mov	x1, x23
	bl	_vita2d_create_empty_texture_format
	str	x0, [x21, #80]
	ldr	w1, [x21, #96]
	mov	x2, x1
	bl	_vita2d_texture_set_filters
	ldr	x0, [x21, #80]
LBB0_9:
	bl	_vita2d_texture_get_datap
	mov	x26, x0
	ldr	x0, [x21, #80]
	bl	_vita2d_texture_get_stride
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x9, _SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1RGB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1RGB@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.10:
	cbz	w23, LBB0_16
; %bb.11:
	mov	w25, #0
	mov	w27, #0
	lsr	w19, w0, #2
	lsr	w20, w24, #2
	and	w24, w24, #0xfffffffc
	mov	w23, w23
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x26, w25, uxtw #2
	add	x1, x22, w27, uxtw #2
	mov	x2, x24
	bl	_memcpy_neon
	add	w27, w27, w20
	add	w25, w25, w19
	subs	x23, x23, #1
	b.ne	LBB0_12
	b	LBB0_16
LBB0_13:
	cbz	w23, LBB0_16
; %bb.14:
	mov	w27, #0
	mov	w28, #0
	lsr	w19, w0, #1
	lsr	w20, w24, #1
	lsl	w24, w25, #2
	mov	w23, w23
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x26, w27, uxtw #2
	add	x1, x22, w28, uxtw #2
	mov	x2, x24
	bl	_memcpy_neon
	add	w28, w28, w20
	add	w27, w27, w19
	subs	x23, x23, #1
	b.ne	LBB0_15
LBB0_16:
	ldr	x8, [x21, #88]
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x21
	mov	x1, x20
	bl	_vita2d_gfx_update_viewport
LBB0_18:
	bl	_vita2d_start_drawing
Lloh5:
	adrp	x23, _PSP_FB_WIDTH@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PSP_FB_WIDTH@GOTPAGEOFF]
	ldr	s8, [x23]
Lloh7:
	adrp	x22, _PSP_FB_HEIGHT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _PSP_FB_HEIGHT@GOTPAGEOFF]
	ldr	s9, [x22]
	bl	_vita2d_get_clear_color
	mov	x2, x0
	mov	w0, #0
	mov	w1, #0
	fmov	s0, s8
	fmov	s1, s9
	bl	_vita2d_draw_rectangle
	ldr	x0, [x21, #80]
	cbz	x0, LBB0_22
; %bb.19:
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_21
; %bb.20:
	ldr	s0, [x23]
	ldp	s1, s3, [x21]
	ucvtf	s1, s1
	fdiv	s2, s0, s1
	ldr	s0, [x22]
	ucvtf	s1, s3
	fdiv	s3, s0, s1
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	bl	_vita2d_draw_texture_scale
	b	LBB0_22
LBB0_21:
	ldr	s0, [x21, #16]
	mov	w8, #4059
	movk	w8, #16329, lsl #16
	fmov	s1, w8
	fmul	s2, s0, s1
	ldp	s0, s1, [x21]
	ucvtf	s0, s0
	ldp	s3, s4, [x21, #64]
	fdiv	s0, s3, s0
	ucvtf	s1, s1
	ldp	w2, w1, [x21, #72]
	fdiv	s1, s4, s1
	bl	_vita2d_draw_texture_scale_rotate
LBB0_22:
	ldr	x8, [x21, #40]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_26
; %bb.23:
	ldr	x0, [x21, #32]
	cbz	x0, LBB0_33
; %bb.24:
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_28
; %bb.25:
	ldr	s0, [x23]
	ldp	s1, s3, [x21, #24]
	fdiv	s2, s0, s1
	ldr	s0, [x22]
	fdiv	s3, s0, s3
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	b	LBB0_32
LBB0_26:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_33
; %bb.27:
	mov	x3, x20
	ldr	x2, [x3], #8
	mov	x0, x20
	mov	x1, #0
	bl	_font_driver_render_msg
	b	LBB0_33
LBB0_28:
	ldp	s0, s1, [x21, #24]
	fcmp	s0, s1
	b.le	LBB0_30
; %bb.29:
	ldr	s2, [x22]
	fdiv	s2, s2, s1
	fmul	s0, s0, s2
	ldr	s1, [x23]
	fmov	s3, #0.50000000
	fmul	s1, s1, s3
	fmul	s0, s0, s3
	fsub	s0, s1, s0
	movi	d1, #0000000000000000
	b	LBB0_31
LBB0_30:
	ldr	s2, [x23]
	fdiv	s2, s2, s0
	fmul	s0, s1, s2
	ldr	s1, [x22]
	fmov	s3, #0.50000000
	fmul	s1, s1, s3
	fmul	s0, s0, s3
	fsub	s1, s1, s0
	movi	d0, #0000000000000000
LBB0_31:
	fmov	s3, s2
LBB0_32:
	bl	_vita2d_draw_texture_scale
LBB0_33:
	mov	x0, x19
	bl	_string_is_empty
	cbnz	w0, LBB0_35
; %bb.34:
	mov	x0, x20
	mov	x1, #0
	mov	x2, x19
	mov	x3, #0
	bl	_font_driver_render_msg
LBB0_35:
	bl	_vita2d_end_drawing
	bl	_vita2d_swap_buffers
	mov	w0, #1
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Creating texture: %ix%i\n"

	.comm	_SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1RGB,8,3 ; @SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1RGB
	.comm	_PSP_FB_WIDTH,4,2               ; @PSP_FB_WIDTH
	.comm	_PSP_FB_HEIGHT,4,2              ; @PSP_FB_HEIGHT
	.no_dead_strip	_vita2d_gfx_frame
.subsections_via_symbols
