	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function RaySphereIntersections
LCPI0_0:
	.long	0xc0800000                      ## float -4
LCPI0_1:
	.long	0xbf000000                      ## float -0.5
LCPI0_3:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RaySphereIntersections
	.p2align	4, 0x90
_RaySphereIntersections:                ## @RaySphereIntersections
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_VectorNormalize
	movl	(%r14), %ecx
	movl	4(%r14), %eax
	subl	(%rbx), %ecx
	movl	(%r13), %edx
	imull	%ecx, %edx
	subl	4(%rbx), %eax
	movl	4(%r13), %esi
	imull	%eax, %esi
	addl	%edx, %esi
	movl	8(%r14), %edx
	subl	8(%rbx), %edx
	movl	8(%r13), %edi
	imull	%edx, %edi
	addl	%esi, %edi
	addl	%edi, %edi
	cvtsi2ss	%edi, %xmm2
	imull	%ecx, %ecx
	imull	%eax, %eax
	addl	%ecx, %eax
	imull	%edx, %edx
	addl	%eax, %edx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%edx, %xmm0
	movss	-64(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	subss	%xmm1, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	movaps	%xmm2, %xmm3
	mulss	%xmm2, %xmm3
	addss	%xmm0, %xmm3
	xorps	%xmm0, %xmm0
	ucomiss	%xmm0, %xmm3
	jbe	LBB0_6
## %bb.1:
	movaps	LCPI0_2(%rip), %xmm1            ## xmm1 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm2, %xmm1
	movaps	%xmm1, -96(%rbp)                ## 16-byte Spill
	xorps	%xmm1, %xmm1
	sqrtss	%xmm3, %xmm1
	movaps	%xmm3, -64(%rbp)                ## 16-byte Spill
	ucomiss	%xmm0, %xmm3
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movaps	%xmm1, %xmm0
	jae	LBB0_3
## %bb.2:
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	movaps	%xmm2, -80(%rbp)                ## 16-byte Spill
	callq	_sqrt
	movaps	-80(%rbp), %xmm2                ## 16-byte Reload
LBB0_3:
	subss	%xmm2, %xmm0
	mulss	LCPI0_3(%rip), %xmm0
	movq	(%r15), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_VectorMA
	xorps	%xmm1, %xmm1
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	ucomiss	%xmm1, %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	jae	LBB0_5
## %bb.4:
	callq	_sqrt
	movaps	%xmm0, %xmm1
LBB0_5:
	movaps	-96(%rbp), %xmm0                ## 16-byte Reload
	subss	%xmm1, %xmm0
	mulss	LCPI0_3(%rip), %xmm0
	addq	$8, %r15
	movl	$2, %r12d
	jmp	LBB0_9
LBB0_6:
	ucomiss	%xmm0, %xmm3
	jne	LBB0_7
	jp	LBB0_7
## %bb.8:
	mulss	LCPI0_1(%rip), %xmm2
	movl	$1, %r12d
	movaps	%xmm2, %xmm0
LBB0_9:
	movq	(%r15), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_VectorMA
	jmp	LBB0_10
LBB0_7:
	xorl	%r12d, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$56, %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	_RaySphereIntersections         ; -- Begin function RaySphereIntersections
	.p2align	2
_RaySphereIntersections:                ; @RaySphereIntersections
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	fmov	s8, s0
	mov	x22, x0
	mov	x0, x2
	bl	_VectorNormalize
	ldp	w8, w9, [x20]
	ldp	w10, w11, [x22]
	sub	w8, w8, w10
	ldp	w10, w12, [x19]
	mul	w10, w8, w10
	sub	w9, w9, w11
	madd	w10, w9, w12, w10
	ldr	w11, [x19, #8]
	ldr	w12, [x20, #8]
	ldr	w13, [x22, #8]
	sub	w12, w12, w13
	madd	w10, w12, w11, w10
	lsl	w10, w10, #1
	scvtf	s1, w10
	mul	w8, w8, w8
	madd	w8, w9, w9, w8
	madd	w8, w12, w12, w8
	scvtf	s0, w8
	fmsub	s0, s8, s8, s0
	fmov	s2, #-4.00000000
	fmul	s0, s0, s2
	fmadd	s8, s1, s1, s0
	fcmp	s8, #0.0
	b.le	LBB0_4
; %bb.1:
	fsqrt	s9, s8
	fcmp	s9, s9
	fmov	s0, s9
	b.vs	LBB0_9
LBB0_2:
	fneg	s10, s1
	fsub	s0, s0, s1
	fmov	s11, #0.50000000
	fmul	s0, s0, s11
	ldr	x2, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_VectorMA
	fcmp	s9, s9
	b.vs	LBB0_10
LBB0_3:
	fsub	s0, s10, s9
	fmul	s0, s0, s11
	add	x21, x21, #8
	mov	w22, #2
	b	LBB0_6
LBB0_4:
	b.ne	LBB0_8
; %bb.5:
	fmov	s0, #-0.50000000
	fmul	s0, s1, s0
	mov	w22, #1
LBB0_6:
	ldr	x2, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_VectorMA
LBB0_7:
	mov	x0, x22
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w22, #0
	b	LBB0_7
LBB0_9:
	fmov	s0, s8
	fmov	s10, s1
	bl	_sqrt
	fmov	s1, s10
	b	LBB0_2
LBB0_10:
	fmov	s0, s8
	bl	_sqrt
	fmov	s9, s0
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
