	.file	"extr_vita2d_texture.c_draw_texture_scale_generic.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	draw_texture_scale_generic, @function
draw_texture_scale_generic:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 20
	mov	r13, rdi
	mov	edi, 80
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	movss	DWORD PTR 4[rsp], xmm3
	movss	DWORD PTR 8[rsp], xmm1
	movss	DWORD PTR [rsp], xmm2
	movss	DWORD PTR 12[rsp], xmm0
	call	vita2d_pool_memalign@PLT
	mov	rdi, r13
	mov	r12, rax
	call	vita2d_texture_get_width@PLT
	movss	xmm2, DWORD PTR [rsp]
	mov	rdi, r13
	mulss	xmm2, xmm0
	movss	DWORD PTR [rsp], xmm2
	call	vita2d_texture_get_height@PLT
	movss	xmm1, DWORD PTR 4[rsp]
	mov	rdx, r13
	xor	esi, esi
	movss	xmm5, DWORD PTR 12[rsp]
	movss	xmm4, DWORD PTR 8[rsp]
	movabs	rax, 4575657222465388544
	mov	QWORD PTR 8[r12], 1056964608
	mulss	xmm1, xmm0
	movss	xmm2, DWORD PTR [rsp]
	movss	xmm0, DWORD PTR .LC1[rip]
	mov	DWORD PTR 16[r12], 0x00000000
	mov	QWORD PTR 28[r12], rax
	mov	edi, DWORD PTR _vita2d_context[rip]
	addss	xmm2, xmm5
	mov	QWORD PTR 68[r12], rax
	mov	DWORD PTR 36[r12], 0x00000000
	mov	QWORD PTR 48[r12], 1056964608
	addss	xmm1, xmm4
	movss	DWORD PTR [r12], xmm5
	movss	DWORD PTR 4[r12], xmm4
	movss	DWORD PTR 20[r12], xmm2
	movss	DWORD PTR 24[r12], xmm4
	movss	DWORD PTR 40[r12], xmm5
	movss	DWORD PTR 44[r12], xmm1
	movss	DWORD PTR 56[r12], xmm0
	movss	DWORD PTR 60[r12], xmm2
	movss	DWORD PTR 64[r12], xmm1
	movss	DWORD PTR 76[r12], xmm0
	call	sceGxmSetFragmentTexture@PLT
	mov	edi, DWORD PTR _vita2d_context[rip]
	mov	rdx, r12
	xor	esi, esi
	call	sceGxmSetVertexStream@PLT
	xor	eax, eax
	call	vita2d_get_linear_indices@PLT
	mov	edx, DWORD PTR SCE_GXM_INDEX_FORMAT_U16[rip]
	mov	esi, DWORD PTR SCE_GXM_PRIMITIVE_TRIANGLE_STRIP[rip]
	mov	r8d, 4
	mov	edi, DWORD PTR _vita2d_context[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 24
	mov	ecx, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	sceGxmDraw@PLT
	.cfi_endproc
.LFE0:
	.size	draw_texture_scale_generic, .-draw_texture_scale_generic
	.comm	_vita2d_context,4,4
	.comm	SCE_GXM_PRIMITIVE_TRIANGLE_STRIP,4,4
	.comm	SCE_GXM_INDEX_FORMAT_U16,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1065353216
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vita2d_texture.c_draw_texture_scale_generic.c"
	.text
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_texture_scale_generic, %function
draw_texture_scale_generic:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r6, r2
	ldr	r2, [sp, #48]	@ float
	mov	r7, r1
	mov	r5, r0
	mov	r1, #20
	mov	r0, #80
	mov	r8, r3
	str	r2, [sp, #4]
	bl	vita2d_pool_memalign
	mov	r4, r0
	mov	r0, r5
	bl	vita2d_texture_get_width
	mov	r1, r8
	bl	__aeabi_fmul
	mov	r8, r0
	mov	r0, r5
	bl	vita2d_texture_get_height
	mov	r9, #1056964608
	mov	fp, #0
	mov	r3, r0
	mov	r1, r7
	str	r7, [r4]	@ float
	str	r6, [r4, #4]	@ float
	str	r9, [r4, #8]	@ float
	str	fp, [r4, #12]	@ float
	str	fp, [r4, #16]	@ float
	mov	r0, r8
	str	r3, [sp]
	bl	__aeabi_fadd
	mov	r8, #1065353216
	mov	r10, r0
	ldr	r3, [sp]
	ldr	r2, [sp, #4]
	mov	r0, r3
	mov	r1, r2
	str	r6, [r4, #24]	@ float
	str	r9, [r4, #28]	@ float
	str	fp, [r4, #36]	@ float
	str	r7, [r4, #40]	@ float
	str	r10, [r4, #20]	@ float
	str	r8, [r4, #32]	@ float
	bl	__aeabi_fmul
	mov	r1, r6
	bl	__aeabi_fadd
	ldr	r6, .L4
	mov	r2, r5
	str	r9, [r4, #48]	@ float
	str	fp, [r4, #52]	@ float
	str	r8, [r4, #56]	@ float
	str	r10, [r4, #60]	@ float
	str	r9, [r4, #68]	@ float
	str	r8, [r4, #72]	@ float
	str	r8, [r4, #76]	@ float
	str	r0, [r4, #44]	@ float
	str	r0, [r4, #64]	@ float
	mov	r1, #0
	ldr	r0, [r6]
	bl	sceGxmSetFragmentTexture
	mov	r2, r4
	mov	r1, #0
	ldr	r0, [r6]
	bl	sceGxmSetVertexStream
	ldr	r2, .L4+4
	ldr	r3, .L4+8
	ldr	r4, [r6]
	ldr	r5, [r2]
	ldr	r6, [r3]
	bl	vita2d_get_linear_indices
	mov	ip, #4
	mov	r3, r0
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	str	ip, [sp, #48]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	sceGxmDraw
.L5:
	.align	2
.L4:
	.word	_vita2d_context
	.word	SCE_GXM_PRIMITIVE_TRIANGLE_STRIP
	.word	SCE_GXM_INDEX_FORMAT_U16
	.size	draw_texture_scale_generic, .-draw_texture_scale_generic
	.comm	_vita2d_context,4,4
	.comm	SCE_GXM_PRIMITIVE_TRIANGLE_STRIP,4,4
	.comm	SCE_GXM_INDEX_FORMAT_U16,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
