	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function CM_TraceThroughTree
LCPI0_0:
	.long	0x45000000                      ## float 2048
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CM_TraceThroughTree
	.p2align	4, 0x90
_CM_TraceThroughTree:                   ## @CM_TraceThroughTree
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	ucomiss	24(%rdi), %xmm0
	jae	LBB0_12
## %bb.1:
	movq	%rdx, %r8
	movaps	%xmm0, %xmm2
	movq	%rdi, %r15
	movq	_cm@GOTPCREL(%rip), %rdx
	movss	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	addq	$4, %rax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %esi
	ucomiss	24(%r15), %xmm2
	jae	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%esi, %esi
	js	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdx), %rbx
	movl	%esi, %r12d
	shlq	$4, %r12
	movq	8(%rbx,%r12), %r14
	movslq	(%r14), %rax
	cmpq	$2, %rax
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movss	(%r8,%rax,4), %xmm4             ## xmm4 = mem[0],zero,zero,zero
	movss	4(%r14), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm4
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movss	(%rcx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movq	(%r15), %rcx
	movss	(%rcx,%rax,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rdi
	movq	%r8, %r13
	movq	%r8, %rsi
	callq	_DotProduct
	subss	4(%r14), %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movq	8(%r14), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_DotProduct
	cmpq	$0, 16(%r15)
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm1, %xmm1
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	subss	4(%r14), %xmm0
	movq	_cm@GOTPCREL(%rip), %rdx
	movq	%r13, %r8
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movss	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r12, %rbx
	addss	%xmm3, %xmm1
	ucomiss	%xmm1, %xmm4
	jb	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	ucomiss	%xmm1, %xmm0
	jb	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	jmp	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	notl	%esi
	shlq	$2, %rsi
	addq	8(%rdx), %rsi
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CM_TraceThroughLeaf            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cm,16,3                        ## @cm
	.comm	_SURFACE_CLIP_EPSILON,4,2       ## @SURFACE_CLIP_EPSILON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_TraceThroughTree            ; -- Begin function CM_TraceThroughTree
	.p2align	2
_CM_TraceThroughTree:                   ; @CM_TraceThroughTree
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-112]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	.cfi_offset b12, -104
	.cfi_offset b13, -112
	fmov	s8, s0
	ldr	s0, [x0, #24]
	fcmp	s0, s8
	b.ls	LBB0_10
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x22, _cm@GOTPAGE
Lloh1:
	ldr	x22, [x22, _cm@GOTPAGEOFF]
	fmov	s9, #1.00000000
	movi.2s	v10, #69, lsl #24
	movi	d11, #0000000000000000
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x8]
	ldr	s0, [x19, #24]
	fcmp	s0, s8
	b.ls	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w1, #31, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	add	x23, x8, w1, uxtw #4
	ldr	x24, [x23, #8]
	ldrsw	x8, [x24]
	cmp	w8, #2
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x8, x8, #2
	ldr	s0, [x21, x8]
	ldr	s1, [x24, #4]
	fsub	s12, s0, s1
	ldr	s0, [x20, x8]
	fsub	s0, s0, s1
	ldr	x9, [x19]
	ldr	s1, [x9, x8]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x24, #8]
	mov	x1, x21
	bl	_DotProduct
	ldr	s1, [x24, #4]
	fsub	s12, s0, s1
	ldr	x0, [x24, #8]
	mov	x1, x20
	bl	_DotProduct
	ldr	s1, [x24, #4]
	fsub	s0, s0, s1
	ldr	x8, [x19, #16]
	cmp	x8, #0
	fcsel	s1, s10, s11, eq
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	fadd	s1, s1, s9
	fcmp	s12, s1
	fccmp	s0, s1, #8, ge
	b.ge	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	add	x8, x8, #4
	b	LBB0_3
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [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], #112            ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x8, [x22, #8]
	mvn	w9, w1
	add	x1, x8, w9, uxtw #2
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [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], #112            ; 16-byte Folded Reload
	b	_CM_TraceThroughLeaf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cm,16,3                        ; @cm
	.comm	_SURFACE_CLIP_EPSILON,4,2       ; @SURFACE_CLIP_EPSILON
.subsections_via_symbols
