	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function TraceAgainstFacet
LCPI0_0:
	.long	0xbf800000                      ## float -1
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_TraceAgainstFacet
	.p2align	4, 0x90
_TraceAgainstFacet:                     ## @TraceAgainstFacet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$3, (%rdx)
	jl	LBB0_5
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	8(%rdx), %rsi
	movss	12(%rsi), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	movq	(%rdi), %rdi
	callq	_DotProduct
	subss	-20(%rbp), %xmm0                ## 4-byte Folded Reload
	ucomiss	LCPI0_0(%rip), %xmm0
	jbe	LBB0_3
## %bb.2:
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	ja	LBB0_5
LBB0_3:
	movq	8(%r14), %rdi
	movq	8(%rbx), %rsi
	callq	_DotProduct
	subss	-20(%rbp), %xmm0                ## 4-byte Folded Reload
	ucomiss	LCPI0_0(%rip), %xmm0
	jbe	LBB0_5
## %bb.4:
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ON_EPSILON,4,2                 ## @ON_EPSILON
	.comm	_SURF_ALPHASHADOW,4,2           ## @SURF_ALPHASHADOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TraceAgainstFacet              ; -- Begin function TraceAgainstFacet
	.p2align	2
_TraceAgainstFacet:                     ; @TraceAgainstFacet
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	ldr	w8, [x2]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	ldr	x1, [x2, #8]
	ldr	s8, [x1, #12]
	ldr	x0, [x0]
	bl	_DotProduct
	fsub	s0, s0, s8
	fmov	s9, #-1.00000000
	fcmp	s0, s9
	fmov	s10, #1.00000000
	fccmp	s0, s10, #0, gt
	b.mi	LBB0_3
; %bb.2:
	ldr	x0, [x20, #8]
	ldr	x1, [x19, #8]
	bl	_DotProduct
	fsub	s0, s0, s8
	fcmp	s0, s9
	fccmp	s0, s10, #0, gt
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_ON_EPSILON,4,2                 ; @ON_EPSILON
	.comm	_SURF_ALPHASHADOW,4,2           ; @SURF_ALPHASHADOW
.subsections_via_symbols
