	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vita_set_texture_frame
_vita_set_texture_frame:                ## @vita_set_texture_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	cmpl	%ecx, (%rdi)
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 4(%r13)
	je	LBB0_4
## %bb.2:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_vita2d_free_texture
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	$0, 8(%r13)
LBB0_4:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	jne	LBB0_9
## %bb.5:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movl	%ecx, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%ecx, %r14d
	callq	_vita2d_create_empty_texture
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	movq	_SCE_GXM_TEXTURE_FORMAT_U4U4U4U4_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%ecx, %r14d
	callq	_vita2d_create_empty_texture_format
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	movq	%rax, 8(%r13)
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_RARCH_LOG
	movl	%r14d, (%r13)
	movl	%ebx, 4(%r13)
	movq	8(%r13), %rdi
LBB0_9:
	movq	_SCE_GXM_TEXTURE_FILTER_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	callq	_vita2d_texture_set_filters
	movq	8(%r13), %rdi
	callq	_vita2d_texture_get_datap
	movq	%rax, %rbx
	movq	8(%r13), %rdi
	callq	_vita2d_texture_get_stride
	testl	%r15d, %r15d
	je	LBB0_33
## %bb.10:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_59
## %bb.11:
	movl	%eax, %edx
	shrl	$2, %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	leaq	-1(%r13), %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%r13d, %edx
	andl	$-8, %edx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	addq	$-8, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movq	%rsi, %rdx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	andq	$-2, %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edx
	andl	$3, %edx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	%eax, %eax
	shrq	$2, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	$8, %r10d
	xorl	%r8d, %r8d
	movl	$8, %r9d
	xorl	%r11d, %r11d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r11d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, %r9d
	addl	-56(%rbp), %r10d                ## 4-byte Folded Reload
	addq	-120(%rbp), %r8                 ## 8-byte Folded Reload
	addq	%r13, %r15
	cmpl	%edi, %r11d
	je	LBB0_59
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$8, %eax
	jae	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%r14d, %r14d
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rax
	notq	%rax
	addq	%r13, %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r15,%r14), %edx
	movl	(%r12,%rdx,4), %edx
	leal	(%r8,%r14), %esi
	movl	%edx, (%rbx,%rsi,4)
	incq	%r14
	decq	%rcx
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$3, %rax
	jb	LBB0_12
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%r15,%r14), %rax
	movl	%eax, %ecx
	movl	(%r12,%rcx,4), %ecx
	leaq	(%r8,%r14), %rdx
	movl	%edx, %esi
	movl	%ecx, (%rbx,%rsi,4)
	leal	1(%rax), %ecx
	movl	(%r12,%rcx,4), %ecx
	leal	1(%rdx), %esi
	movl	%ecx, (%rbx,%rsi,4)
	leal	2(%rax), %ecx
	movl	(%r12,%rcx,4), %ecx
	leal	2(%rdx), %esi
	movl	%ecx, (%rbx,%rsi,4)
	addl	$3, %eax
	movl	(%r12,%rax,4), %eax
	addl	$3, %edx
	movl	%eax, (%rbx,%rdx,4)
	addq	$4, %r14
	cmpq	%r14, %r13
	jne	LBB0_19
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %esi
	imull	%r11d, %esi
	movl	%r11d, %edi
	imull	%eax, %edi
	movl	%edi, %eax
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	addl	%edx, %eax
	setb	%al
	movl	%esi, %ecx
	addl	%edx, %ecx
	jb	LBB0_28
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdx, %rcx
	shrq	$32, %rcx
	jne	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	testb	%al, %al
	jne	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	testq	%rcx, %rcx
	jne	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%rbx,%rsi,4), %rax
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rdi,4), %rcx
	subq	%rcx, %rax
	movl	$0, %r14d
	cmpq	$32, %rax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jb	LBB0_16
## %bb.25:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rsi, %r14
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r10d, %edi
	movl	%r9d, %edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-8(%rdx), %esi
	movups	(%r12,%rsi,4), %xmm0
	movups	16(%r12,%rsi,4), %xmm1
	leal	-8(%rdi), %esi
	movups	%xmm0, (%rbx,%rsi,4)
	movups	%xmm1, 16(%rbx,%rsi,4)
	movl	%edx, %esi
	movups	(%r12,%rsi,4), %xmm0
	movups	16(%r12,%rsi,4), %xmm1
	movl	%edi, %esi
	movups	%xmm0, (%rbx,%rsi,4)
	movups	%xmm1, 16(%rbx,%rsi,4)
	addq	$16, %rax
	addl	$16, %edx
	addl	$16, %edi
	addq	$-2, %rcx
	jne	LBB0_27
	jmp	LBB0_30
LBB0_28:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%r14d, %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_16
LBB0_29:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rsi, %r14
	xorl	%eax, %eax
LBB0_30:                                ##   in Loop: Header=BB0_13 Depth=1
	testb	$1, -72(%rbp)                   ## 1-byte Folded Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ecx
	movups	(%r12,%rcx,4), %xmm0
	movups	16(%r12,%rcx,4), %xmm1
	addl	%eax, %r14d
	movups	%xmm0, (%rbx,%r14,4)
	movups	%xmm1, 16(%rbx,%r14,4)
LBB0_32:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r14
	cmpq	%r13, %rax
	je	LBB0_12
	jmp	LBB0_16
LBB0_33:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_59
## %bb.34:
	movl	%eax, %r13d
	shrl	%r13d
	movl	%ecx, %r14d
	leaq	-1(%r14), %rdx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	%r14d, %edx
	andl	$-8, %edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	addq	$-8, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movq	%rsi, %rdx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	andq	$-2, %rsi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movl	%r14d, %edx
	andl	$3, %edx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	%eax, %eax
	shrq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r10d, %r10d
	movl	$8, %r15d
	xorl	%r8d, %r8d
	movl	$8, %r9d
	xorl	%r11d, %r11d
	movl	%r13d, -88(%rbp)                ## 4-byte Spill
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_36 Depth=1
	incl	%r11d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, %r9d
	addl	%r13d, %r15d
	addq	-56(%rbp), %r8                  ## 8-byte Folded Reload
	addq	%r14, %r10
	cmpl	-44(%rbp), %r11d                ## 4-byte Folded Reload
	je	LBB0_59
LBB0_36:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_46 Depth 2
                                        ##     Child Loop BB0_56 Depth 2
                                        ##     Child Loop BB0_58 Depth 2
	testl	%ecx, %ecx
	je	LBB0_35
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$8, %eax
	jae	LBB0_39
LBB0_54:                                ##   in Loop: Header=BB0_36 Depth=1
	xorl	%edi, %edi
LBB0_55:                                ##   in Loop: Header=BB0_36 Depth=1
	movl	%r15d, %esi
	movq	%rdi, %r15
	notq	%r15
	addq	%r14, %r15
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_57
	.p2align	4, 0x90
LBB0_56:                                ##   Parent Loop BB0_36 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r10,%rdi), %edx
	movl	(%r12,%rdx,4), %edx
	leal	(%r8,%rdi), %eax
	movl	%edx, (%rbx,%rax,4)
	incq	%rdi
	decq	%rcx
	jne	LBB0_56
LBB0_57:                                ##   in Loop: Header=BB0_36 Depth=1
	cmpq	$3, %r15
	movl	%esi, %r15d
	jb	LBB0_35
	.p2align	4, 0x90
LBB0_58:                                ##   Parent Loop BB0_36 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%r10,%rdi), %rax
	movl	%eax, %ecx
	movl	(%r12,%rcx,4), %ecx
	leaq	(%r8,%rdi), %rdx
	movl	%edx, %esi
	movl	%ecx, (%rbx,%rsi,4)
	leal	1(%rax), %ecx
	movl	(%r12,%rcx,4), %ecx
	leal	1(%rdx), %esi
	movl	%ecx, (%rbx,%rsi,4)
	leal	2(%rax), %ecx
	movl	(%r12,%rcx,4), %ecx
	leal	2(%rdx), %esi
	movl	%ecx, (%rbx,%rsi,4)
	addl	$3, %eax
	movl	(%r12,%rax,4), %eax
	addl	$3, %edx
	movl	%eax, (%rbx,%rdx,4)
	addq	$4, %rdi
	cmpq	%rdi, %r14
	jne	LBB0_58
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_36 Depth=1
	movl	%r13d, %esi
	imull	%r11d, %esi
	movl	%r11d, %edi
	imull	%eax, %edi
	movl	%edi, %eax
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	addl	%edx, %eax
	setb	%al
	movl	%esi, %ecx
	addl	%edx, %ecx
	jb	LBB0_54
## %bb.40:                              ##   in Loop: Header=BB0_36 Depth=1
	movq	%rdx, %rcx
	shrq	$32, %rcx
	jne	LBB0_54
## %bb.41:                              ##   in Loop: Header=BB0_36 Depth=1
	testb	%al, %al
	jne	LBB0_54
## %bb.42:                              ##   in Loop: Header=BB0_36 Depth=1
	testq	%rcx, %rcx
	jne	LBB0_54
## %bb.43:                              ##   in Loop: Header=BB0_36 Depth=1
	leaq	(%rbx,%rsi,4), %rax
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	leaq	(%r12,%rdi,4), %rcx
	subq	%rcx, %rax
	movl	$0, %edi
	cmpq	$32, %rax
	jb	LBB0_55
## %bb.44:                              ##   in Loop: Header=BB0_36 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_50
## %bb.45:                              ##   in Loop: Header=BB0_36 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	%r15d, %esi
	movl	%r15d, %ecx
	movl	%r9d, %r15d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_36 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-8(%r15), %r13d
	movups	(%r12,%r13,4), %xmm0
	movups	16(%r12,%r13,4), %xmm1
	leal	-8(%rcx), %edx
	movups	%xmm0, (%rbx,%rdx,4)
	movups	%xmm1, 16(%rbx,%rdx,4)
	movl	%r15d, %edx
	movups	(%r12,%rdx,4), %xmm0
	movups	16(%r12,%rdx,4), %xmm1
	movl	%ecx, %edx
	movups	%xmm0, (%rbx,%rdx,4)
	movups	%xmm1, 16(%rbx,%rdx,4)
	addq	$16, %rdi
	addl	$16, %r15d
	addl	$16, %ecx
	addq	$-2, %rax
	jne	LBB0_46
## %bb.47:                              ##   in Loop: Header=BB0_36 Depth=1
	testb	$1, -64(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_49
LBB0_48:                                ##   in Loop: Header=BB0_36 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addl	%edi, %eax
	movups	(%r12,%rax,4), %xmm0
	movups	16(%r12,%rax,4), %xmm1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addl	%edi, %eax
	movups	%xmm0, (%rbx,%rax,4)
	movups	%xmm1, 16(%rbx,%rax,4)
LBB0_49:                                ##   in Loop: Header=BB0_36 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdi
	cmpq	%r14, %rax
	movl	-88(%rbp), %r13d                ## 4-byte Reload
	movl	%esi, %r15d
	je	LBB0_35
	jmp	LBB0_55
LBB0_50:                                ##   in Loop: Header=BB0_36 Depth=1
	movl	%r15d, %esi
	xorl	%edi, %edi
	testb	$1, -64(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_48
	jmp	LBB0_49
LBB0_59:
	addq	$88, %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 Frame RGBA8 texture: w: %i  h: %i\n"

	.comm	_SCE_GXM_TEXTURE_FORMAT_U4U4U4U4_RGBA,4,2 ## @SCE_GXM_TEXTURE_FORMAT_U4U4U4U4_RGBA
L_.str.1:                               ## @.str.1
	.asciz	"Creating Frame R5G6B5 texture: w: %i  h: %i\n"

	.comm	_SCE_GXM_TEXTURE_FILTER_LINEAR,4,2 ## @SCE_GXM_TEXTURE_FILTER_LINEAR
	.no_dead_strip	_vita_set_texture_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vita_set_texture_frame
_vita_set_texture_frame:                ; @vita_set_texture_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x24, x0
	ldr	w8, [x0]
	cmp	w8, w3
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x24, #4]
	cmp	w8, w19
	b.eq	LBB0_4
; %bb.2:
	ldr	x0, [x24, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_vita2d_free_texture
	str	xzr, [x24, #8]
LBB0_4:
	ldr	x0, [x24, #8]
	cbnz	x0, LBB0_9
; %bb.5:
	cbz	w23, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_vita2d_create_empty_texture
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _SCE_GXM_TEXTURE_FORMAT_U4U4U4U4_RGBA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCE_GXM_TEXTURE_FORMAT_U4U4U4U4_RGBA@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_vita2d_create_empty_texture_format
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_8:
	str	x0, [x24, #8]
	mov	x0, x8
	mov	x1, x20
	mov	x2, x19
	bl	_RARCH_LOG
	stp	w20, w19, [x24]
	ldr	x0, [x24, #8]
LBB0_9:
Lloh7:
	adrp	x8, _SCE_GXM_TEXTURE_FILTER_LINEAR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SCE_GXM_TEXTURE_FILTER_LINEAR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, x1
	bl	_vita2d_texture_set_filters
	ldr	x0, [x24, #8]
	bl	_vita2d_texture_get_datap
	mov	x22, x0
	ldr	x0, [x24, #8]
	bl	_vita2d_texture_get_stride
	cbz	w23, LBB0_26
; %bb.10:
	cbz	w19, LBB0_42
; %bb.11:
	mov	w8, #0
	mov	w9, #0
	mov	w10, #0
	lsr	w11, w0, #2
	mov	w12, w20
	sub	x13, x12, #1
	and	x14, x12, #0xfffffff0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w10, w10, #1
	add	w9, w9, w20
	add	w8, w8, w11
	cmp	w10, w19
	b.eq	LBB0_42
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	cbz	w20, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w20, #16
	b.hs	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x15, #0
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	x16, x12, x15
LBB0_17:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w17, w9, w15
	ldr	w17, [x21, w17, uxtw #2]
	add	w0, w8, w15
	str	w17, [x22, w0, uxtw #2]
	add	w15, w15, #1
	subs	x16, x16, #1
	b.ne	LBB0_17
	b	LBB0_12
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x15, #0
	mul	w16, w11, w10
	mul	w17, w10, w20
	cmn	w16, w13
	cset	w1, hs
	cmn	w17, w13
	cset	w0, hs
	tbnz	w1, #0, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	lsr	x1, x13, #32
	cbnz	x1, LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	tbnz	w0, #0, LBB0_16
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
	cbnz	x1, LBB0_16
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x16, x22, w16, uxtw #2
	add	x17, x21, w17, uxtw #2
	sub	x16, x16, x17
	cmp	x16, #64
	b.lo	LBB0_16
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x15, x8
	mov	x16, x9
	mov	x17, x14
LBB0_24:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x21, w16, uxtw #2
	ldp	q0, q1, [x0]
	ldp	q2, q3, [x0, #32]
	add	x0, x22, w15, uxtw #2
	stp	q0, q1, [x0]
	stp	q2, q3, [x0, #32]
	add	w16, w16, #16
	add	w15, w15, #16
	subs	x17, x17, #16
	b.ne	LBB0_24
; %bb.25:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x15, x14
	cmp	x14, x12
	b.eq	LBB0_12
	b	LBB0_16
LBB0_26:
	cbz	w19, LBB0_42
; %bb.27:
	mov	w8, #0
	mov	w9, #0
	mov	w10, #0
	lsr	w11, w0, #1
	mov	w12, w20
	sub	x13, x12, #1
	and	x14, x12, #0xfffffff0
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	w10, w10, #1
	add	w9, w9, w20
	add	w8, w8, w11
	cmp	w10, w19
	b.eq	LBB0_42
LBB0_29:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_38 Depth 2
                                        ;     Child Loop BB0_41 Depth 2
	cbz	w20, LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	cmp	w20, #16
	b.hs	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x15, #0
	b	LBB0_40
LBB0_32:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	x15, #0
	mul	w16, w11, w10
	mul	w17, w10, w20
	cmn	w16, w13
	cset	w1, hs
	cmn	w17, w13
	cset	w0, hs
	tbnz	w1, #0, LBB0_40
; %bb.33:                               ;   in Loop: Header=BB0_29 Depth=1
	lsr	x1, x13, #32
	cbnz	x1, LBB0_40
; %bb.34:                               ;   in Loop: Header=BB0_29 Depth=1
	tbnz	w0, #0, LBB0_40
; %bb.35:                               ;   in Loop: Header=BB0_29 Depth=1
	cbnz	x1, LBB0_40
; %bb.36:                               ;   in Loop: Header=BB0_29 Depth=1
	add	x16, x22, w16, uxtw #2
	add	x17, x21, w17, uxtw #2
	sub	x16, x16, x17
	cmp	x16, #64
	b.lo	LBB0_40
; %bb.37:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x15, x8
	mov	x16, x9
	mov	x17, x14
LBB0_38:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x21, w16, uxtw #2
	ldp	q0, q1, [x0]
	ldp	q2, q3, [x0, #32]
	add	x0, x22, w15, uxtw #2
	stp	q0, q1, [x0]
	stp	q2, q3, [x0, #32]
	add	w16, w16, #16
	add	w15, w15, #16
	subs	x17, x17, #16
	b.ne	LBB0_38
; %bb.39:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x15, x14
	cmp	x14, x12
	b.eq	LBB0_28
LBB0_40:                                ;   in Loop: Header=BB0_29 Depth=1
	sub	x16, x12, x15
LBB0_41:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w17, w9, w15
	ldr	w17, [x21, w17, uxtw #2]
	add	w0, w8, w15
	str	w17, [x22, w0, uxtw #2]
	add	w15, w15, #1
	subs	x16, x16, #1
	b.ne	LBB0_41
	b	LBB0_28
LBB0_42:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Creating Frame RGBA8 texture: w: %i  h: %i\n"

	.comm	_SCE_GXM_TEXTURE_FORMAT_U4U4U4U4_RGBA,4,2 ; @SCE_GXM_TEXTURE_FORMAT_U4U4U4U4_RGBA
l_.str.1:                               ; @.str.1
	.asciz	"Creating Frame R5G6B5 texture: w: %i  h: %i\n"

	.comm	_SCE_GXM_TEXTURE_FILTER_LINEAR,4,2 ; @SCE_GXM_TEXTURE_FILTER_LINEAR
	.no_dead_strip	_vita_set_texture_frame
.subsections_via_symbols
