	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vita_load_texture
_vita_load_texture:                     ## @vita_load_texture
	.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
	movl	%ecx, %r14d
	movq	%rsi, %r15
	movl	(%rsi), %edi
	movl	4(%rsi), %esi
	movq	_SCE_GXM_TEXTURE_FORMAT_U8U8U8U8_ARGB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_vita2d_create_empty_texture_format
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_TEXTURE_FILTER_MIPMAP_LINEAR@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_TEXTURE_FILTER_LINEAR@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_5
LBB0_4:
	movq	_SCE_GXM_TEXTURE_FILTER_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_vita2d_texture_set_filters
LBB0_5:
	movq	%rbx, %rdi
	callq	_vita2d_texture_get_stride
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_vita2d_texture_get_datap
	cmpl	$0, 4(%r15)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.6:
	shrl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leal	(,%rcx,4), %ebx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ecx
	leaq	(%rax,%rcx,4), %rdi
	movl	%r13d, %ecx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rsi
	movl	%ebx, %edx
	movq	%rax, %r15
	callq	_memcpy_neon
	movq	%r15, %rax
	incq	%r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %ecx
	addl	-72(%rbp), %r13d                ## 4-byte Folded Reload
	addl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	cmpq	%rcx, %r14
	jb	LBB0_7
LBB0_8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCE_GXM_TEXTURE_FORMAT_U8U8U8U8_ARGB,4,2 ## @SCE_GXM_TEXTURE_FORMAT_U8U8U8U8_ARGB
	.comm	_TEXTURE_FILTER_MIPMAP_LINEAR,4,2 ## @TEXTURE_FILTER_MIPMAP_LINEAR
	.comm	_TEXTURE_FILTER_LINEAR,4,2      ## @TEXTURE_FILTER_LINEAR
	.comm	_SCE_GXM_TEXTURE_FILTER_LINEAR,4,2 ## @SCE_GXM_TEXTURE_FILTER_LINEAR
	.no_dead_strip	_vita_load_texture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vita_load_texture
_vita_load_texture:                     ; @vita_load_texture
	.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	x21, x3
	mov	x19, x1
	ldp	w0, w1, [x1]
Lloh0:
	adrp	x8, _SCE_GXM_TEXTURE_FORMAT_U8U8U8U8_ARGB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCE_GXM_TEXTURE_FORMAT_U8U8U8U8_ARGB@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_vita2d_create_empty_texture_format
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _TEXTURE_FILTER_MIPMAP_LINEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEXTURE_FILTER_MIPMAP_LINEAR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TEXTURE_FILTER_LINEAR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TEXTURE_FILTER_LINEAR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _SCE_GXM_TEXTURE_FILTER_LINEAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCE_GXM_TEXTURE_FILTER_LINEAR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x1
	bl	_vita2d_texture_set_filters
LBB0_3:
	mov	x0, x20
	bl	_vita2d_texture_get_stride
	mov	x22, x0
	mov	x0, x20
	bl	_vita2d_texture_get_datap
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x21, x0
	mov	w23, #0
	mov	w24, #0
	mov	x25, #0
	lsr	w26, w22, #2
	ldr	x27, [x19, #8]
	ldr	w28, [x19]
	lsl	w22, w28, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x21, w23, uxtw #2
	add	x1, x27, w24, uxtw #2
	mov	x2, x22
	bl	_memcpy_neon
	add	x25, x25, #1
	ldr	w8, [x19, #4]
	add	w24, w24, w28
	add	w23, w23, w26
	cmp	x25, x8
	b.lo	LBB0_5
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SCE_GXM_TEXTURE_FORMAT_U8U8U8U8_ARGB,4,2 ; @SCE_GXM_TEXTURE_FORMAT_U8U8U8U8_ARGB
	.comm	_TEXTURE_FILTER_MIPMAP_LINEAR,4,2 ; @TEXTURE_FILTER_MIPMAP_LINEAR
	.comm	_TEXTURE_FILTER_LINEAR,4,2      ; @TEXTURE_FILTER_LINEAR
	.comm	_SCE_GXM_TEXTURE_FILTER_LINEAR,4,2 ; @SCE_GXM_TEXTURE_FILTER_LINEAR
	.no_dead_strip	_vita_load_texture
.subsections_via_symbols
