	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function R_CalcTangentSpace
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_R_CalcTangentSpace
	.p2align	4, 0x90
_R_CalcTangentSpace:                    ## @R_CalcTangentSpace
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movl	%esi, %r14d
	movl	%edi, %r15d
	movl	%edx, %edi
	movl	%ecx, %esi
	callq	_DotProduct
	xorps	LCPI0_0(%rip), %xmm0
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_VectorMA
	movl	%r15d, %edi
	callq	_VectorNormalize
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_CrossProduct
	movl	%r12d, %esi
	callq	_DotProduct
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movl	%r13d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	callq	_CrossProduct
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
LBB0_2:
	xorps	%xmm1, %xmm1
	xorl	%eax, %eax
	ucomiss	%xmm0, %xmm1
	seta	%al
	leaq	LCPI0_1(%rip), %rcx
	movss	(%rcx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_CalcTangentSpace             ; -- Begin function R_CalcTangentSpace
	.p2align	2
_R_CalcTangentSpace:                    ; @R_CalcTangentSpace
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x2
	mov	x1, x3
	bl	_DotProduct
	fneg	s0, s0
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	bl	_VectorMA
	mov	x0, x21
	bl	_VectorNormalize
	mov	x0, x20
	mov	x1, x23
	bl	_CrossProduct
	mov	x1, x22
	bl	_DotProduct
	fmov	s8, s0
	cbz	w19, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_CrossProduct
LBB0_2:
	fcmp	s8, #0.0
	fmov	s0, #1.00000000
	fmov	s1, #-1.00000000
	fcsel	s0, s1, s0, mi
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
