	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_PointContents               ## -- Begin function CM_PointContents
	.p2align	4, 0x90
_CM_PointContents:                      ## @CM_PointContents
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cm@GOTPCREL(%rip), %rax
	cmpl	$0, 24(%rax)
	je	LBB0_1
## %bb.2:
	movl	%edi, %r13d
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_CM_ClipHandleToModel
	movq	%rax, %rsi
	cmpl	$0, (%rsi)
	jg	LBB0_6
	jmp	LBB0_16
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_CM_PointLeafnum_r
	movslq	%eax, %rsi
	shlq	$3, %rsi
	movq	_cm@GOTPCREL(%rip), %rax
	addq	16(%rax), %rsi
	cmpl	$0, (%rsi)
	jle	LBB0_16
LBB0_6:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	cmpl	(%rsi), %ebx
	jge	LBB0_16
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movslq	4(%rsi), %rax
	movslq	%ebx, %rcx
	addq	%rax, %rcx
	movq	_cm@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	8(%rdx), %rdx
	movslq	(%rax,%rcx,4), %rcx
	shlq	$4, %rcx
	movl	(%rdx,%rcx), %eax
	movl	$0, %r15d
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%rdx,%rcx), %r14
	addq	$8, %r14
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rcx), %r12
	movq	(%r14), %rcx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%r15,8), %rax
	movl	4(%rax), %esi
	movl	%r13d, %edi
	callq	_DotProduct
	movq	(%r14), %rcx
	movq	(%rcx,%r15,8), %rax
	ucomiss	(%rax), %xmm0
	ja	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	jl	LBB0_9
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %eax
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%eax, %r15d
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	orl	4(%rdx,%rcx), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cm,32,3                        ## @cm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_PointContents               ; -- Begin function CM_PointContents
	.p2align	2
_CM_PointContents:                      ; @CM_PointContents
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _cm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cm@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8, #24]
	cbz	w8, LBB0_15
; %bb.1:
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x1
	bl	_CM_ClipHandleToModel
	mov	x20, x0
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_CM_PointLeafnum_r
Lloh3:
	adrp	x8, _cm@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cm@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8, #16]
	add	x20, x8, w0, sxtw #3
LBB0_4:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.5:
	mov	w21, #0
	mov	w23, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w23, w23, #1
	ldr	w8, [x20]
	cmp	w23, w8
	b.ge	LBB0_16
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w8, [x20, #4]
	add	w8, w8, w23
Lloh6:
	adrp	x10, _cm@GOTPAGE
Lloh7:
	ldr	x10, [x10, _cm@GOTPAGEOFF]
	ldp	x9, x24, [x10]
	ldrsw	x25, [x9, w8, sxtw #2]
	add	x27, x24, x25, lsl #4
	mov	x28, x27
	ldr	w8, [x28], #8
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, #0
	ldr	x9, [x28]
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x22, x26, #3
	ldr	x8, [x9, x22]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_DotProduct
	ldr	x9, [x28]
	ldr	x8, [x9, x22]
	ldr	s1, [x8]
	fcmp	s0, s1
	b.gt	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x26, x26, #1
	ldrsw	x8, [x27]
	cmp	x26, x8
	b.lt	LBB0_9
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w26, #0
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w26, w8
	b.ne	LBB0_6
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27]
	cmp	w26, w8
	b.ne	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x24, x25, lsl #4
	ldr	w8, [x8, #4]
	orr	w21, w8, w21
	b	LBB0_6
LBB0_15:
	mov	w21, #0
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cm,32,3                        ; @cm
.subsections_via_symbols
