	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function prim_texture
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_prim_texture:                          ## @prim_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movaps	%xmm1, %xmm8
	movaps	%xmm0, %xmm9
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movss	(%r15), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	4(%r15), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	movsd	(%rbx), %xmm3                   ## xmm3 = mem[0],zero
	movaps	%xmm9, %xmm2
	insertps	$28, %xmm8, %xmm2               ## xmm2 = xmm2[0],xmm8[0],zero,zero
	subps	%xmm2, %xmm3
	movaps	%xmm8, %xmm2
	insertps	$76, %xmm9, %xmm2               ## xmm2 = xmm9[1],xmm2[1],zero,zero
	subps	%xmm2, %xmm3
	movaps	%xmm3, -48(%rbp)                ## 16-byte Spill
	divss	%xmm3, %xmm0
	movshdup	%xmm3, %xmm2                    ## xmm2 = xmm3[1,1,3,3]
	divss	%xmm2, %xmm1
	movaps	%xmm8, -80(%rbp)                ## 16-byte Spill
	movaps	%xmm9, -64(%rbp)                ## 16-byte Spill
	callq	_MIN
	movaps	-64(%rbp), %xmm9                ## 16-byte Reload
	movaps	-80(%rbp), %xmm8                ## 16-byte Reload
	movsldup	%xmm0, %xmm4                    ## xmm4 = xmm0[0,0,2,2]
	mulps	-48(%rbp), %xmm4                ## 16-byte Folded Reload
	movsd	(%r15), %xmm0                   ## xmm0 = mem[0],zero
	subps	%xmm4, %xmm0
	mulps	LCPI0_0(%rip), %xmm0
	addps	%xmm0, %xmm4
	movshdup	%xmm0, %xmm1                    ## xmm1 = xmm0[1,1,3,3]
	jmp	LBB0_3
LBB0_2:
	movsd	(%r15), %xmm4                   ## xmm4 = mem[0],zero
	xorps	%xmm1, %xmm1
	xorps	%xmm0, %xmm0
LBB0_3:
	movshdup	%xmm8, %xmm2                    ## xmm2 = xmm8[1,1,3,3]
	movshdup	%xmm9, %xmm3                    ## xmm3 = xmm9[1,1,3,3]
	movss	(%rbx), %xmm6                   ## xmm6 = mem[0],zero,zero,zero
	movss	4(%rbx), %xmm7                  ## xmm7 = mem[0],zero,zero,zero
	subss	%xmm3, %xmm6
	subss	%xmm2, %xmm7
	movq	_GS_TEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movshdup	%xmm4, %xmm5                    ## xmm5 = xmm4[1,1,3,3]
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movaps	%xmm9, %xmm2
	movaps	%xmm8, %xmm3
	movl	%r14d, %edx
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gsKit_prim_sprite_texture      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GS_TEXT,4,2                    ## @GS_TEXT
	.no_dead_strip	_prim_texture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prim_texture
_prim_texture:                          ; @prim_texture
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	.cfi_offset b12, -88
	.cfi_offset b13, -96
	fmov	s10, s3
	fmov	s8, s2
	fmov	s11, s1
	fmov	s9, s0
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cbz	w3, LBB0_2
; %bb.1:
	ldp	s1, s0, [x20]
	fsub	s0, s0, s8
	fsub	s12, s0, s10
	fsub	s0, s1, s9
	fsub	s13, s0, s11
	ldp	s0, s1, [x21]
	fdiv	s0, s0, s13
	fdiv	s1, s1, s12
	bl	_MIN
	fmul	s2, s13, s0
	fmul	s3, s12, s0
	ldp	s0, s1, [x21]
	fsub	s0, s0, s2
	fmov	s4, #0.50000000
	fmul	s0, s0, s4
	fsub	s1, s1, s3
	fmul	s1, s1, s4
	fadd	s4, s2, s0
	fadd	s5, s3, s1
	b	LBB0_3
LBB0_2:
	ldp	s4, s5, [x21]
	movi	d1, #0000000000000000
	movi	d0, #0000000000000000
LBB0_3:
	ldp	s2, s3, [x20]
	fsub	s6, s2, s11
	fsub	s7, s3, s10
Lloh0:
	adrp	x8, _GS_TEXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GS_TEXT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	fmov	s2, s9
	fmov	s3, s8
	mov	x2, x19
	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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #96             ; 16-byte Folded Reload
	b	_gsKit_prim_sprite_texture
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GS_TEXT,4,2                    ; @GS_TEXT
	.no_dead_strip	_prim_texture
.subsections_via_symbols
