	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_texture_part_generic
_draw_texture_part_generic:             ## @draw_texture_part_generic
	.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	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movaps	%xmm5, -144(%rbp)               ## 16-byte Spill
	movaps	%xmm4, -96(%rbp)                ## 16-byte Spill
	movaps	%xmm3, -64(%rbp)                ## 16-byte Spill
	movaps	%xmm2, -80(%rbp)                ## 16-byte Spill
	movaps	%xmm1, -128(%rbp)               ## 16-byte Spill
	movaps	%xmm0, -112(%rbp)               ## 16-byte Spill
	movq	%rdi, %r14
	movl	$80, %edi
	movl	$20, %esi
	callq	_vita2d_pool_memalign
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_vita2d_texture_get_width
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movq	%r14, %rdi
	callq	_vita2d_texture_get_height
	movaps	-64(%rbp), %xmm6                ## 16-byte Reload
	movaps	%xmm6, %xmm2
	divss	%xmm0, %xmm2
	movaps	-80(%rbp), %xmm4                ## 16-byte Reload
	movaps	%xmm4, %xmm1
	movaps	-96(%rbp), %xmm9                ## 16-byte Reload
	addss	%xmm9, %xmm1
	movaps	-48(%rbp), %xmm5                ## 16-byte Reload
	divss	%xmm5, %xmm1
	movaps	-144(%rbp), %xmm3               ## 16-byte Reload
	addss	%xmm3, %xmm6
	movaps	%xmm6, %xmm8
	movaps	-112(%rbp), %xmm7               ## 16-byte Reload
	movss	%xmm7, (%rbx)
	movaps	-128(%rbp), %xmm6               ## 16-byte Reload
	movss	%xmm6, 4(%rbx)
	movl	$1056964608, 8(%rbx)            ## imm = 0x3F000000
	movss	%xmm2, 16(%rbx)
	movss	%xmm6, 24(%rbx)
	movl	$1056964608, 28(%rbx)           ## imm = 0x3F000000
	movss	%xmm1, 32(%rbx)
	movss	%xmm2, 36(%rbx)
	movss	%xmm7, 40(%rbx)
	movl	$1056964608, 48(%rbx)           ## imm = 0x3F000000
	movaps	%xmm4, %xmm2
	insertps	$16, %xmm8, %xmm2               ## xmm2 = xmm2[0],xmm8[0],xmm2[2,3]
	insertps	$32, %xmm7, %xmm2               ## xmm2 = xmm2[0,1],xmm7[0],xmm2[3]
	insertps	$48, %xmm6, %xmm2               ## xmm2 = xmm2[0,1,2],xmm6[0]
	insertps	$16, %xmm0, %xmm5               ## xmm5 = xmm5[0],xmm0[0],xmm5[2,3]
	insertps	$32, %xmm9, %xmm5               ## xmm5 = xmm5[0,1],xmm9[0],xmm5[3]
	insertps	$48, %xmm3, %xmm5               ## xmm5 = xmm5[0,1,2],xmm3[0]
	movaps	%xmm2, %xmm0
	divps	%xmm5, %xmm0
	addps	%xmm2, %xmm5
	movss	%xmm0, 12(%rbx)
	extractps	$2, %xmm5, 20(%rbx)
	extractps	$3, %xmm5, 44(%rbx)
	movaps	%xmm5, %xmm2
	blendps	$3, %xmm0, %xmm2                ## xmm2 = xmm0[0,1],xmm2[2,3]
	movups	%xmm2, 52(%rbx)
	movl	$1056964608, 68(%rbx)           ## imm = 0x3F000000
	movss	%xmm1, 72(%rbx)
	extractps	$1, %xmm0, 76(%rbx)
	movq	__vita2d_context@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_sceGxmSetFragmentTexture
	movl	(%r15), %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_sceGxmSetVertexStream
	movl	(%r15), %r14d
	movq	_SCE_GXM_PRIMITIVE_TRIANGLE_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_SCE_GXM_INDEX_FORMAT_U16@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_vita2d_get_linear_indices
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	$4, %r8d
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sceGxmDraw                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__vita2d_context,4,2            ## @_vita2d_context
	.comm	_SCE_GXM_PRIMITIVE_TRIANGLE_STRIP,4,2 ## @SCE_GXM_PRIMITIVE_TRIANGLE_STRIP
	.comm	_SCE_GXM_INDEX_FORMAT_U16,4,2   ## @SCE_GXM_INDEX_FORMAT_U16
	.no_dead_strip	_draw_texture_part_generic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_texture_part_generic
_draw_texture_part_generic:             ; @draw_texture_part_generic
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-112]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	.cfi_offset b12, -88
	.cfi_offset b13, -96
	.cfi_offset b14, -104
	.cfi_offset b15, -112
	fmov	s8, s5
	fmov	s9, s4
	fmov	s10, s3
	fmov	s11, s2
	fmov	s12, s1
	fmov	s13, s0
	mov	x19, x0
	mov	w0, #80
	mov	w1, #20
	bl	_vita2d_pool_memalign
	mov	x20, x0
	mov	x0, x19
	bl	_vita2d_texture_get_width
	fmov	s14, s0
	mov	x0, x19
	bl	_vita2d_texture_get_height
	fdiv	s1, s11, s14
	fdiv	s2, s10, s0
	fadd	s3, s11, s9
	fadd	s4, s10, s8
	stp	s13, s12, [x20]
	mov	w8, #1056964608
	str	w8, [x20, #8]
	fdiv	s3, s3, s14
	stp	s1, s2, [x20, #12]
	fadd	s5, s13, s9
	stp	s5, s12, [x20, #20]
	str	w8, [x20, #28]
	stp	s3, s2, [x20, #32]
	fadd	s2, s12, s8
	stp	s13, s2, [x20, #40]
	str	w8, [x20, #48]
	fdiv	s0, s4, s0
	stp	s1, s0, [x20, #52]
	stp	s5, s2, [x20, #60]
	str	w8, [x20, #68]
	stp	s3, s0, [x20, #72]
Lloh0:
	adrp	x21, __vita2d_context@GOTPAGE
Lloh1:
	ldr	x21, [x21, __vita2d_context@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #0
	mov	x2, x19
	bl	_sceGxmSetFragmentTexture
	ldr	w0, [x21]
	mov	w1, #0
	mov	x2, x20
	bl	_sceGxmSetVertexStream
	ldr	w19, [x21]
Lloh2:
	adrp	x8, _SCE_GXM_PRIMITIVE_TRIANGLE_STRIP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCE_GXM_PRIMITIVE_TRIANGLE_STRIP@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x8, _SCE_GXM_INDEX_FORMAT_U16@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCE_GXM_INDEX_FORMAT_U16@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	bl	_vita2d_get_linear_indices
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w4, #4
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #112            ; 16-byte Folded Reload
	b	_sceGxmDraw
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__vita2d_context,4,2            ; @_vita2d_context
	.comm	_SCE_GXM_PRIMITIVE_TRIANGLE_STRIP,4,2 ; @SCE_GXM_PRIMITIVE_TRIANGLE_STRIP
	.comm	_SCE_GXM_INDEX_FORMAT_U16,4,2   ; @SCE_GXM_INDEX_FORMAT_U16
	.no_dead_strip	_draw_texture_part_generic
.subsections_via_symbols
