	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function draw_texture_part_scale_rotate_generic
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_draw_texture_part_scale_rotate_generic: ## @draw_texture_part_scale_rotate_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	$168, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movaps	%xmm7, -80(%rbp)                ## 16-byte Spill
	movaps	%xmm6, -96(%rbp)                ## 16-byte Spill
	movss	%xmm5, -64(%rbp)                ## 4-byte Spill
	movss	%xmm4, -48(%rbp)                ## 4-byte Spill
	movaps	%xmm3, -144(%rbp)               ## 16-byte Spill
	movaps	%xmm2, -128(%rbp)               ## 16-byte Spill
	movaps	%xmm1, -176(%rbp)               ## 16-byte Spill
	movaps	%xmm0, -160(%rbp)               ## 16-byte Spill
	movq	%rdi, %r14
	movss	16(%rbp), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -28(%rbp)                ## 4-byte Spill
	movl	$80, %edi
	movl	$20, %esi
	callq	_vita2d_pool_memalign
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_vita2d_texture_get_width
	movaps	%xmm0, -112(%rbp)               ## 16-byte Spill
	movq	%r14, %rdi
	callq	_vita2d_texture_get_height
	movaps	%xmm0, -192(%rbp)               ## 16-byte Spill
	movaps	-96(%rbp), %xmm1                ## 16-byte Reload
	movss	-48(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
	mulss	%xmm5, %xmm1
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm1
	movaps	%xmm1, %xmm2
	movaps	%xmm1, -96(%rbp)                ## 16-byte Spill
	movaps	-80(%rbp), %xmm1                ## 16-byte Reload
	movss	-64(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	mulss	%xmm4, %xmm1
	mulss	%xmm3, %xmm1
	movaps	%xmm1, -80(%rbp)                ## 16-byte Spill
	addss	-128(%rbp), %xmm5               ## 16-byte Folded Reload
	divss	-112(%rbp), %xmm5               ## 16-byte Folded Reload
	addss	-144(%rbp), %xmm4               ## 16-byte Folded Reload
	divss	%xmm0, %xmm4
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm0, %xmm2
	movaps	%xmm2, -64(%rbp)                ## 16-byte Spill
	xorps	%xmm1, %xmm0
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movl	$1056964608, 8(%rbx)            ## imm = 0x3F000000
	movl	$1056964608, 28(%rbx)           ## imm = 0x3F000000
	movss	%xmm5, 32(%rbx)
	movl	$1056964608, 48(%rbx)           ## imm = 0x3F000000
	movss	%xmm4, 56(%rbx)
	movl	$1056964608, 68(%rbx)           ## imm = 0x3F000000
	movss	%xmm5, 72(%rbx)
	movss	%xmm4, 76(%rbx)
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	___sincosf_stret
	movshdup	%xmm0, %xmm1                    ## xmm1 = xmm0[1,1,3,3]
	movaps	-80(%rbp), %xmm6                ## 16-byte Reload
	movaps	%xmm6, %xmm3
	movaps	-48(%rbp), %xmm10               ## 16-byte Reload
	insertps	$16, %xmm10, %xmm3              ## xmm3 = xmm3[0],xmm10[0],xmm3[2,3]
	mulps	%xmm0, %xmm3
	movaps	-64(%rbp), %xmm9                ## 16-byte Reload
	movaps	%xmm9, %xmm2
	mulss	%xmm1, %xmm2
	movaps	%xmm2, %xmm4
	addss	%xmm3, %xmm4
	movaps	-160(%rbp), %xmm5               ## 16-byte Reload
	addss	%xmm5, %xmm4
	movss	%xmm4, (%rbx)
	movshdup	%xmm3, %xmm4                    ## xmm4 = xmm3[1,1,3,3]
	mulss	%xmm0, %xmm9
	addss	%xmm9, %xmm4
	movaps	-176(%rbp), %xmm7               ## 16-byte Reload
	addss	%xmm7, %xmm4
	movss	%xmm4, 4(%rbx)
	movaps	-96(%rbp), %xmm8                ## 16-byte Reload
	movsldup	%xmm8, %xmm4                    ## xmm4 = xmm8[0,0,2,2]
	mulss	%xmm0, %xmm10
	mulss	%xmm1, %xmm6
	movaps	%xmm6, %xmm11
	mulss	%xmm8, %xmm1
	mulss	%xmm0, %xmm8
	shufps	$81, %xmm0, %xmm0               ## xmm0 = xmm0[1,0,1,1]
	mulps	%xmm4, %xmm0
	addps	%xmm3, %xmm0
	movaps	-128(%rbp), %xmm6               ## 16-byte Reload
	insertps	$16, -144(%rbp), %xmm6          ## 16-byte Folded Reload
                                        ## xmm6 = xmm6[0],mem[0],xmm6[2,3]
	movlhps	%xmm0, %xmm6                    ## xmm6 = xmm6[0],xmm0[0]
	movddup	%xmm5, %xmm0                    ## xmm0 = xmm5[0,0]
	movaps	%xmm7, %xmm4
	insertps	$48, %xmm7, %xmm0               ## xmm0 = xmm0[0,1,2],xmm7[0]
	movaps	-112(%rbp), %xmm7               ## 16-byte Reload
	blendps	$12, %xmm0, %xmm7               ## xmm7 = xmm7[0,1],xmm0[2,3]
	insertps	$16, -192(%rbp), %xmm7          ## 16-byte Folded Reload
                                        ## xmm7 = xmm7[0],mem[0],xmm7[2,3]
	movaps	%xmm6, %xmm3
	divps	%xmm7, %xmm3
	addps	%xmm6, %xmm0
	blendps	$3, %xmm3, %xmm0                ## xmm0 = xmm3[0,1],xmm0[2,3]
	extractps	$1, %xmm3, 36(%rbx)
	movss	%xmm3, 52(%rbx)
	movups	%xmm0, 12(%rbx)
	addss	%xmm10, %xmm2
	movaps	%xmm5, %xmm0
	addss	%xmm5, %xmm2
	movss	%xmm2, 40(%rbx)
	movaps	%xmm9, %xmm5
	addss	%xmm11, %xmm5
	addss	%xmm4, %xmm5
	movss	%xmm5, 44(%rbx)
	addss	%xmm10, %xmm1
	addss	%xmm0, %xmm1
	movss	%xmm1, 60(%rbx)
	movaps	%xmm8, %xmm0
	addss	%xmm11, %xmm0
	addss	%xmm4, %xmm0
	movss	%xmm0, 64(%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), %r15d
	movq	_SCE_GXM_PRIMITIVE_TRIANGLE_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_SCE_GXM_INDEX_FORMAT_U16@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_vita2d_get_linear_indices
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	$4, %r8d
	addq	$168, %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_scale_rotate_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_scale_rotate_generic
_draw_texture_part_scale_rotate_generic: ; @draw_texture_part_scale_rotate_generic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d15, d14, [sp, #16]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [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 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
	str	s7, [sp, #8]                    ; 4-byte Folded Spill
	fmov	s11, s6
	fmov	s12, s5
	fmov	s13, s4
	fmov	s14, s3
	fmov	s15, s2
	fmov	s8, s1
	fmov	s9, s0
	mov	x19, x0
	ldr	s0, [x29, #16]
	str	s0, [sp, #12]                   ; 4-byte Folded Spill
	mov	w0, #80
	mov	w1, #20
	bl	_vita2d_pool_memalign
	mov	x20, x0
	mov	x0, x19
	bl	_vita2d_texture_get_width
	fmov	s10, s0
	mov	x0, x19
	bl	_vita2d_texture_get_height
	fmul	s1, s13, s11
	fmov	s2, #0.50000000
	fmul	s11, s1, s2
	ldr	s1, [sp, #8]                    ; 4-byte Folded Reload
	fmul	s1, s12, s1
	fmul	s3, s1, s2
	str	s3, [sp, #8]                    ; 4-byte Folded Spill
	fdiv	s3, s15, s10
	fdiv	s4, s14, s0
	fadd	s5, s15, s13
	fdiv	s5, s5, s10
	fadd	s6, s14, s12
	mov	w8, #1056964608
	str	w8, [x20, #8]
	stp	s3, s4, [x20, #12]
	str	w8, [x20, #28]
	stp	s5, s4, [x20, #32]
	str	w8, [x20, #48]
	fdiv	s0, s6, s0
	stp	s3, s0, [x20, #52]
	str	w8, [x20, #68]
	fnmul	s10, s1, s2
	stp	s5, s0, [x20, #72]
	ldr	s0, [sp, #12]                   ; 4-byte Folded Reload
	bl	___sincosf_stret
	ldr	s6, [sp, #8]                    ; 4-byte Folded Reload
	fmul	s2, s0, s6
	fmsub	s3, s11, s1, s2
	fadd	s3, s3, s9
	fmul	s4, s1, s10
	fmsub	s5, s11, s0, s4
	fadd	s5, s5, s8
	stp	s3, s5, [x20]
	fmadd	s2, s11, s1, s2
	fadd	s2, s2, s9
	fmadd	s3, s11, s0, s4
	fadd	s3, s3, s8
	stp	s2, s3, [x20, #20]
	fmul	s2, s0, s10
	fmsub	s3, s11, s1, s2
	fadd	s3, s3, s9
	fmul	s4, s1, s6
	fmsub	s5, s11, s0, s4
	fadd	s5, s5, s8
	stp	s3, s5, [x20, #40]
	fmadd	s1, s11, s1, s2
	fadd	s1, s1, s9
	fmadd	s0, s11, s0, s4
	fadd	s0, s0, s8
	stp	s1, s0, [x20, #60]
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, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #128
	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_scale_rotate_generic
.subsections_via_symbols
