	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_CalcTransformTexCoords      ## -- Begin function RB_CalcTransformTexCoords
	.p2align	4, 0x90
_RB_CalcTransformTexCoords:             ## @RB_CalcTransformTexCoords
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_tess@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_14
## %bb.1:
	movq	(%rdi), %rax
	movq	8(%rdi), %r11
	movq	(%rax), %rdx
	movq	8(%rax), %rdi
	leal	-1(%r9), %r10d
	xorl	%r8d, %r8d
	cmpl	$3, %r10d
	jb	LBB0_11
## %bb.3:
	leaq	(%rsi,%r10,8), %rbx
	addq	$8, %rbx
	leaq	8(%rdx), %rax
	leaq	8(%rdi), %rcx
	leaq	8(%r11), %r14
	cmpq	%rsi, %rax
	seta	%r12b
	cmpq	%rbx, %rdx
	setb	%r13b
	cmpq	%rsi, %rcx
	seta	%al
	cmpq	%rbx, %rdi
	setb	%r15b
	cmpq	%rsi, %r14
	seta	%cl
	cmpq	%rbx, %r11
	setb	%r14b
	testb	%r13b, %r12b
	jne	LBB0_11
## %bb.4:
	andb	%r15b, %al
	jne	LBB0_11
## %bb.5:
	andb	%r14b, %cl
	jne	LBB0_11
## %bb.6:
	incq	%r10
	movq	%r10, %r8
	andq	$-4, %r8
	leaq	(%rsi,%r8,8), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rsi,%rcx,8), %xmm0
	movups	16(%rsi,%rcx,8), %xmm1
	movaps	%xmm0, %xmm2
	shufps	$136, %xmm1, %xmm2              ## xmm2 = xmm2[0,2],xmm1[0,2]
	shufps	$221, %xmm1, %xmm0              ## xmm0 = xmm0[1,3],xmm1[1,3]
	movss	(%rdx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	4(%rdx), %xmm3                  ## xmm3 = mem[0],zero,zero,zero
	shufps	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	movss	(%rdi), %xmm4                   ## xmm4 = mem[0],zero,zero,zero
	movss	4(%rdi), %xmm5                  ## xmm5 = mem[0],zero,zero,zero
	shufps	$0, %xmm4, %xmm4                ## xmm4 = xmm4[0,0,0,0]
	mulps	%xmm0, %xmm4
	mulps	%xmm2, %xmm1
	addps	%xmm4, %xmm1
	movss	(%r11), %xmm4                   ## xmm4 = mem[0],zero,zero,zero
	movss	4(%r11), %xmm6                  ## xmm6 = mem[0],zero,zero,zero
	shufps	$0, %xmm4, %xmm4                ## xmm4 = xmm4[0,0,0,0]
	addps	%xmm1, %xmm4
	shufps	$0, %xmm3, %xmm3                ## xmm3 = xmm3[0,0,0,0]
	shufps	$0, %xmm5, %xmm5                ## xmm5 = xmm5[0,0,0,0]
	mulps	%xmm0, %xmm5
	mulps	%xmm2, %xmm3
	addps	%xmm5, %xmm3
	shufps	$0, %xmm6, %xmm6                ## xmm6 = xmm6[0,0,0,0]
	addps	%xmm3, %xmm6
	movaps	%xmm4, %xmm0
	unpckhps	%xmm6, %xmm0                    ## xmm0 = xmm0[2],xmm6[2],xmm0[3],xmm6[3]
	unpcklps	%xmm6, %xmm4                    ## xmm4 = xmm4[0],xmm6[0],xmm4[1],xmm6[1]
	movups	%xmm4, (%rsi,%rcx,8)
	movups	%xmm0, 16(%rsi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_7
## %bb.8:
	cmpq	%r8, %r10
	jne	LBB0_12
	jmp	LBB0_14
LBB0_11:
	movq	%rsi, %rax
LBB0_12:
	subl	%r8d, %r9d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rax,%rcx,8), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rax,%rcx,8), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	movss	(%rdi), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	(%rdx), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm2, %xmm3
	addss	(%r11), %xmm3
	movss	%xmm3, (%rax,%rcx,8)
	mulss	4(%rdi), %xmm1
	mulss	4(%rdx), %xmm0
	addss	%xmm1, %xmm0
	addss	4(%r11), %xmm0
	movss	%xmm0, 4(%rax,%rcx,8)
	incq	%rcx
	cmpl	%ecx, %r9d
	jne	LBB0_13
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tess,4,2                       ## @tess
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_CalcTransformTexCoords      ; -- Begin function RB_CalcTransformTexCoords
	.p2align	2
_RB_CalcTransformTexCoords:             ; @RB_CalcTransformTexCoords
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _tess@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tess@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x8]
	subs	w12, w11, #1
	b.lt	LBB0_12
; %bb.1:
	ldp	x10, x8, [x0]
	ldp	x9, x10, [x10]
	cmp	w12, #3
	b.hs	LBB0_3
; %bb.2:
	mov	w13, #0
	b	LBB0_9
LBB0_3:
	mov	w13, #0
	add	x14, x1, w12, uxtw #3
	add	x16, x14, #8
	add	x17, x9, #8
	add	x14, x10, #8
	add	x15, x8, #8
	cmp	x14, x1
	ccmp	x10, x16, #2, hi
	cset	w14, lo
	cmp	x15, x1
	ccmp	x8, x16, #2, hi
	cset	w15, lo
	cmp	x9, x16
	ccmp	x17, x1, #0, lo
	b.hi	LBB0_9
; %bb.4:
	tbnz	w14, #0, LBB0_9
; %bb.5:
	tbnz	w15, #0, LBB0_9
; %bb.6:
	add	x14, x12, #1
	and	x13, x14, #0x1fffffffc
	add	x12, x1, x13, lsl #3
	mov	x15, x13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ld2.4s	{ v0, v1 }, [x1]
	mov	x16, x9
	ld1r.4s	{ v2 }, [x16], #4
	mov	x17, x10
	ld1r.4s	{ v3 }, [x17], #4
	fmul.4s	v3, v1, v3
	fmla.4s	v3, v2, v0
	mov	x0, x8
	ld1r.4s	{ v2 }, [x0], #4
	fadd.4s	v2, v3, v2
	ldr	s4, [x16]
	ldr	s5, [x17]
	fmul.4s	v5, v1, v5[0]
	fmla.4s	v5, v0, v4[0]
	ld1r.4s	{ v0 }, [x0]
	fadd.4s	v3, v0, v5
	st2.4s	{ v2, v3 }, [x1], #32
	subs	x15, x15, #4
	b.ne	LBB0_7
; %bb.8:
	cmp	x14, x13
	b.eq	LBB0_12
	b	LBB0_10
LBB0_9:
	mov	x12, x1
LBB0_10:
	sub	w11, w11, w13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	s0, s1, [x12]
	ldr	s2, [x9]
	ldr	s3, [x10]
	fmul	s3, s1, s3
	fmadd	s2, s0, s2, s3
	ldr	s3, [x8]
	fadd	s2, s2, s3
	str	s2, [x12]
	ldr	s2, [x9, #4]
	ldr	s3, [x10, #4]
	fmul	s1, s1, s3
	fmadd	s0, s0, s2, s1
	ldr	s1, [x8, #4]
	fadd	s0, s1, s0
	str	s0, [x12, #4]
	add	x12, x12, #8
	subs	w11, w11, #1
	b.ne	LBB0_11
LBB0_12:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_tess,4,2                       ; @tess
.subsections_via_symbols
