	.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_CheckFacetPlane
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CM_CheckFacetPlane
	.p2align	4, 0x90
_CM_CheckFacetPlane:                    ## @CM_CheckFacetPlane
	.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	%r9, %r12
	movq	%r8, %r15
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rdi, %rbx
	movq	_qfalse@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, (%r9)
	movl	%esi, %edi
	movq	%rbx, %rsi
	callq	_DotProduct
	subss	12(%rbx), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_DotProduct
	movss	-44(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	subss	12(%rbx), %xmm0
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm3
	jbe	LBB0_3
## %bb.1:
	movq	_SURFACE_CLIP_EPSILON@GOTPCREL(%rip), %rax
	ucomiss	(%rax), %xmm0
	jae	LBB0_10
## %bb.2:
	ucomiss	%xmm3, %xmm0
	jae	LBB0_10
LBB0_3:
	ucomiss	%xmm3, %xmm1
	movq	_qtrue@GOTPCREL(%rip), %r14
	jb	LBB0_5
## %bb.4:
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	jae	LBB0_10
LBB0_5:
	ucomiss	%xmm0, %xmm3
	movq	_SURFACE_CLIP_EPSILON@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	jbe	LBB0_8
## %bb.6:
	movaps	%xmm3, %xmm2
	subss	%xmm1, %xmm2
	subss	%xmm0, %xmm3
	divss	%xmm3, %xmm2
	xorps	%xmm0, %xmm0
	maxss	%xmm2, %xmm0
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	ucomiss	(%rax), %xmm0
	jbe	LBB0_10
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movss	%xmm0, (%rax)
	movq	_qtrue@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, (%r12)
	jmp	LBB0_10
LBB0_8:
	addss	%xmm3, %xmm1
	subss	%xmm0, %xmm3
	divss	%xmm3, %xmm1
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	minss	%xmm1, %xmm0
	movss	(%r15), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_10
## %bb.9:
	movss	%xmm0, (%r15)
LBB0_10:
	movl	(%r14), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_SURFACE_CLIP_EPSILON,4,2       ## @SURFACE_CLIP_EPSILON
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_CheckFacetPlane             ; -- Begin function CM_CheckFacetPlane
	.p2align	2
_CM_CheckFacetPlane:                    ; @CM_CheckFacetPlane
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x19, x5
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x0
Lloh0:
	adrp	x8, _qfalse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x5]
	mov	x0, x1
	mov	x1, x23
	bl	_DotProduct
	ldr	s1, [x23, #12]
	fsub	s8, s0, s1
	mov	x0, x22
	mov	x1, x23
	bl	_DotProduct
	ldr	s1, [x23, #12]
	fsub	s0, s0, s1
	fcmp	s8, #0.0
	b.le	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _SURFACE_CLIP_EPSILON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SURFACE_CLIP_EPSILON@GOTPAGEOFF]
Lloh5:
	ldr	s1, [x8]
	fcmp	s0, s1
	fccmp	s0, s8, #0, lt
	b.lt	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _qfalse@GOTPAGE
Lloh7:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	fcmp	s8, #0.0
	b.hi	LBB0_5
; %bb.4:
	fcmp	s0, #0.0
	b.ls	LBB0_10
LBB0_5:
Lloh8:
	adrp	x8, _SURFACE_CLIP_EPSILON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SURFACE_CLIP_EPSILON@GOTPAGEOFF]
Lloh10:
	ldr	s1, [x8]
	fcmp	s8, s0
	b.le	LBB0_8
; %bb.6:
	fsub	s1, s8, s1
	fsub	s0, s8, s0
	fdiv	s0, s1, s0
	movi	d1, #0000000000000000
	fmax	s0, s0, s1
	ldr	s1, [x20]
Lloh11:
	adrp	x8, _qtrue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	fcmp	s0, s1
	b.le	LBB0_11
; %bb.7:
	str	s0, [x20]
	ldr	w9, [x8]
	str	w9, [x19]
	b	LBB0_11
LBB0_8:
	fadd	s1, s8, s1
	fsub	s0, s8, s0
	fdiv	s0, s1, s0
	fmov	s1, #1.00000000
	fmin	s0, s0, s1
	ldr	s1, [x21]
	fcmp	s0, s1
	b.pl	LBB0_10
; %bb.9:
	str	s0, [x21]
LBB0_10:
Lloh13:
	adrp	x8, _qtrue@GOTPAGE
Lloh14:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_SURFACE_CLIP_EPSILON,4,2       ; @SURFACE_CLIP_EPSILON
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
