	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function CM_ValidateFacet
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3dcccccd                      ## float 0.100000001
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CM_ValidateFacet:                      ## @CM_ValidateFacet
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movslq	(%rdi), %rax
	cmpq	$-1, %rax
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r13
	movq	_planes@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rcx,%rax,4), %edi
	leaq	-64(%rbp), %r14
	movq	%r14, %rsi
	callq	_Vector4Copy
	movss	-52(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movq	%r14, %rdi
	callq	_BaseWindingForPlane
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	setne	%cl
	cmpl	$0, 4(%r13)
	jle	LBB0_12
## %bb.2:
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	8(%r13), %rcx
	movl	(%rcx), %ecx
	cmpl	$-1, %ecx
	je	LBB0_8
## %bb.4:
	movl	$1, %ebx
	leaq	-64(%rbp), %r14
	leaq	-72(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	movq	%r14, %rsi
	callq	_Vector4Copy
	movq	16(%r13), %rax
	cmpl	$0, -4(%rax,%rbx,4)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movss	-52(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_vec3_origin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movq	%r14, %rdx
	callq	_VectorSubtract
	movss	-52(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	xorps	LCPI0_0(%rip), %xmm0
	movss	%xmm0, -52(%rbp)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_ChopWindingInPlace
	movq	-72(%rbp), %rax
	movslq	4(%r13), %rdx
	testq	%rax, %rax
	setne	%cl
	cmpq	%rdx, %rbx
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rcx
	movl	(%rcx,%rbx,4), %ecx
	incq	%rbx
	cmpl	$-1, %ecx
	jne	LBB0_5
LBB0_8:
	movq	%rax, %rdi
	jmp	LBB0_14
LBB0_12:
	testb	%cl, %cl
	je	LBB0_15
## %bb.13:
	movq	%rax, %rdi
	callq	_WindingBounds
	movq	-72(%rbp), %rdi
LBB0_14:
	callq	_FreeWinding
LBB0_15:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_planes,8,3                     ## @planes
	.comm	_vec3_origin,4,2                ## @vec3_origin
	.comm	_MAX_MAP_BOUNDS,4,2             ## @MAX_MAP_BOUNDS
	.comm	_qtrue,4,2                      ## @qtrue
	.no_dead_strip	_CM_ValidateFacet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CM_ValidateFacet
_CM_ValidateFacet:                      ; @CM_ValidateFacet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldrsw	x8, [x0]
	cmn	w8, #1
	b.eq	LBB0_12
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, _planes@GOTPAGE
Lloh4:
	ldr	x20, [x20, _planes@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w0, [x9, x8, lsl #2]
	add	x1, sp, #8
	bl	_Vector4Copy
	ldr	s0, [sp, #20]
	add	x0, sp, #8
	bl	_BaseWindingForPlane
	str	x0, [sp]
	ldr	w9, [x19, #4]
	cmp	x0, #0
	cset	w8, ne
	cmp	w9, #1
	ccmp	x0, #0, #4, ge
	b.ne	LBB0_4
LBB0_2:
	cbz	w8, LBB0_12
; %bb.3:
	bl	_WindingBounds
	ldr	x0, [sp]
	b	LBB0_11
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_11
; %bb.5:
	mov	x23, #0
Lloh5:
	adrp	x21, _vec3_origin@GOTPAGE
Lloh6:
	ldr	x21, [x21, _vec3_origin@GOTPAGEOFF]
	mov	w22, #52429
	movk	w22, #15820, lsl #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	w0, [x9, w8, sxtw #2]
	add	x1, sp, #8
	bl	_Vector4Copy
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x23, lsl #2]
	cbz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	s0, [sp, #20]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x21]
	add	x1, sp, #8
	add	x2, sp, #8
	bl	_VectorSubtract
	ldr	s0, [sp, #20]
	fneg	s0, s0
	str	s0, [sp, #20]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	fmov	s1, w22
	mov	x0, sp
	add	x1, sp, #8
	bl	_ChopWindingInPlace
	add	x9, x23, #1
	ldr	x0, [sp]
	ldrsw	x10, [x19, #4]
	cmp	x0, #0
	cset	w8, ne
	cmp	x9, x10
	ccmp	x0, #0, #4, lt
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x23, lsl #2
	ldr	w8, [x8, #4]
	mov	x23, x9
	cmn	w8, #1
	b.ne	LBB0_6
LBB0_11:
	bl	_FreeWinding
LBB0_12:
Lloh7:
	adrp	x8, _qfalse@GOTPAGE
Lloh8:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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
	add	sp, sp, #96
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_planes,8,3                     ; @planes
	.comm	_vec3_origin,4,2                ; @vec3_origin
	.comm	_MAX_MAP_BOUNDS,4,2             ; @MAX_MAP_BOUNDS
	.comm	_qtrue,4,2                      ; @qtrue
	.no_dead_strip	_CM_ValidateFacet
.subsections_via_symbols
