	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function R_ChopPolyBehindPlane
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_R_ChopPolyBehindPlane:                 ## @R_ChopPolyBehindPlane
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movaps	%xmm1, -128(%rbp)               ## 16-byte Spill
	movss	%xmm0, -104(%rbp)               ## 4-byte Spill
	movq	%r8, %r12
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_VERTS_ON_POLY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	4(%rbx), %r14d
	shlq	$2, %r14
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	addl	$-2, %ebx
	cmpl	%r13d, %ebx
	jle	LBB0_1
## %bb.2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)
	movq	$0, -60(%rbp)
	testl	%r13d, %r13d
	jle	LBB0_3
## %bb.4:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	-128(%rbp), %xmm0               ## 16-byte Folded Reload
	movaps	%xmm0, -144(%rbp)               ## 16-byte Spill
	movl	%r13d, -100(%rbp)               ## 4-byte Spill
	movl	%r13d, %r15d
	xorl	%ebx, %ebx
	movq	_SIDE_ON@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%rax), %rax
	incl	-60(%rbp,%rax,4)
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdi
	movq	%r12, %rsi
	callq	_DotProduct
	subss	-104(%rbp), %xmm0               ## 4-byte Folded Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movss	%xmm0, (%rax,%rbx,4)
	movaps	-144(%rbp), %xmm1               ## 16-byte Reload
	ucomiss	%xmm0, %xmm1
	movq	%r13, %rax
	jbe	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_SIDE_BACK@GOTPCREL(%rip), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	ucomiss	-128(%rbp), %xmm0               ## 16-byte Folded Reload
	jbe	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_SIDE_FRONT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movl	$0, (%r15)
	jmp	LBB0_25
LBB0_10:
	movl	(%r14), %eax
	cmpl	$0, -60(%rbp)
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movss	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movl	%eax, (%r14,%r15,4)
	movss	%xmm0, (%rcx,%r15,4)
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	$0, (%r8)
	je	LBB0_25
## %bb.11:
	cmpl	$0, -56(%rbp)
	je	LBB0_15
## %bb.12:
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	callq	_VectorCopy
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	(%r8), %eax
	incl	%eax
	movl	%eax, (%r8)
	incq	%r12
	movq	%r12, %rcx
LBB0_24:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rcx, %r12
	cmpq	%r15, %rcx
	je	LBB0_25
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%r12,8), %r13
	movslq	%eax, %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx,8), %rsi
	movl	(%r14,%r12,4), %ebx
	movq	_SIDE_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %ebx
	je	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_SIDE_FRONT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	callq	_VectorCopy
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movslq	(%r8), %rcx
	leaq	1(%rcx), %rax
	movl	%eax, (%r8)
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx,%rcx,8), %rsi
	movq	_SIDE_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	1(%r12), %rcx
	movl	4(%r14,%r12,4), %edi
	cmpl	%edx, %edi
	je	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	%ebx, %edi
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	%r15, %rcx
	movl	%ecx, %edi
	movl	$0, %edx
	cmovneq	%rdi, %rdx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movss	(%rdi,%r12,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	subss	4(%rdi,%r12,4), %xmm2
	xorps	%xmm0, %xmm0
	ucomiss	%xmm0, %xmm2
	jne	LBB0_22
	jnp	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	divss	%xmm2, %xmm1
	movaps	%xmm1, %xmm0
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi,%rdx,8), %rdx
	movss	(%r13), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	(%rdx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	mulss	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	movss	%xmm2, (%rsi)
	movss	4(%r13), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	movss	4(%rdx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	mulss	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	movss	%xmm2, 4(%rsi)
	movss	8(%r13), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	movss	8(%rdx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	mulss	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	movss	%xmm2, 8(%rsi)
	incl	%eax
	movl	%eax, (%r8)
	jmp	LBB0_24
LBB0_3:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	-100(%rbp), %edx                ## 4-byte Reload
	movl	%edx, (%r8)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.16:
	shll	$3, %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Memcpy                     ## TAILCALL
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_VERTS_ON_POLY,4,2          ## @MAX_VERTS_ON_POLY
	.comm	_SIDE_FRONT,4,2                 ## @SIDE_FRONT
	.comm	_SIDE_BACK,4,2                  ## @SIDE_BACK
	.comm	_SIDE_ON,4,2                    ## @SIDE_ON
	.no_dead_strip	_R_ChopPolyBehindPlane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function R_ChopPolyBehindPlane
_R_ChopPolyBehindPlane:                 ; @R_ChopPolyBehindPlane
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	sub	sp, sp, #48
	fmov	s8, s1
	fmov	s9, s0
	mov	x23, x4
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-120]
Lloh3:
	adrp	x8, _MAX_VERTS_ON_POLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_VERTS_ON_POLY@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	add	w8, w12, #4
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x13, x10, #0x7fffffff0
	sub	x24, x9, x13
	mov	sp, x24
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x25, x8, x13
	mov	sp, x25
	sub	w8, w12, #2
	cmp	w8, w0
	b.le	LBB0_14
; %bb.1:
	stur	xzr, [x29, #-132]
	stur	wzr, [x29, #-136]
	cmp	w0, #0
	b.le	LBB0_14
; %bb.2:
	stp	x3, x2, [x29, #-152]            ; 16-byte Folded Spill
	mov	x22, #0
	fneg	s10, s8
Lloh10:
	adrp	x12, _SIDE_FRONT@GOTPAGE
Lloh11:
	ldr	x12, [x12, _SIDE_FRONT@GOTPAGEOFF]
Lloh12:
	adrp	x19, _SIDE_BACK@GOTPAGE
Lloh13:
	ldr	x19, [x19, _SIDE_BACK@GOTPAGEOFF]
Lloh14:
	adrp	x27, _SIDE_ON@GOTPAGE
Lloh15:
	ldr	x27, [x27, _SIDE_ON@GOTPAGEOFF]
	sub	x26, x29, #136
	stur	w0, [x29, #-156]                ; 4-byte Folded Spill
	mov	w28, w0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, x22, lsl #3]
	mov	x1, x23
	mov	x21, x12
	bl	_DotProduct
	mov	x12, x21
	fsub	s0, s0, s9
	lsl	x8, x22, #2
	str	s0, [x24, x8]
	fcmp	s0, s10
	csel	x9, x19, x27, mi
	fcmp	s0, s8
	csel	x9, x21, x9, gt
	ldrsw	x9, [x9]
	str	w9, [x25, x8]
	lsl	x8, x9, #2
	ldr	w9, [x26, x8]
	add	w9, w9, #1
	str	w9, [x26, x8]
	add	x22, x22, #1
	cmp	x28, x22
	b.ne	LBB0_3
; %bb.4:
	ldr	w8, [x25]
	ldr	s0, [x24]
	ldur	w9, [x29, #-136]
	lsl	x10, x28, #2
	str	w8, [x25, x10]
	str	s0, [x24, x10]
	ldp	x26, x13, [x29, #-152]          ; 16-byte Folded Reload
	str	wzr, [x13]
	cbz	w9, LBB0_15
; %bb.5:
	ldur	w8, [x29, #-132]
	cbz	w8, LBB0_17
; %bb.6:
	mov	w8, #0
	mov	x23, #0
	movi	d8, #0000000000000000
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_VectorCopy
	ldur	x13, [x29, #-144]               ; 8-byte Folded Reload
	mov	x12, x21
	ldr	w8, [x13]
	add	w8, w8, #1
	str	w8, [x13]
	add	x9, x23, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x9
	cmp	x9, x28
	b.eq	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x20, x23, lsl #3]
	ldr	x1, [x26, w8, sxtw #3]
	ldr	w19, [x25, x23, lsl #2]
	ldr	w10, [x27]
	cmp	w19, w10
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x12]
	cmp	w19, w9
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_VectorCopy
	ldur	x13, [x29, #-144]               ; 8-byte Folded Reload
	mov	x12, x21
	ldrsw	x8, [x13]
	add	x8, x8, #1
	str	w8, [x13]
	ldr	x1, [x26, x8, lsl #3]
	ldr	w10, [x27]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x23, #1
	ldr	w11, [x25, x9, lsl #2]
	cmp	w11, w10
	ccmp	w11, w19, #4, ne
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	and	x10, x9, #0xffffffff
	cmp	x9, x28
	csel	x10, xzr, x10, eq
	ldr	x10, [x20, x10, lsl #3]
	ldr	s0, [x24, x23, lsl #2]
	ldr	s1, [x24, x9, lsl #2]
	fsub	s1, s0, s1
	fdiv	s0, s0, s1
	fcmp	s1, #0.0
	fcsel	s0, s8, s0, eq
	ldr	s1, [x22]
	ldr	s2, [x10]
	fsub	s2, s2, s1
	fmadd	s1, s0, s2, s1
	str	s1, [x1]
	ldr	s1, [x22, #4]
	ldr	s2, [x10, #4]
	fsub	s2, s2, s1
	fmadd	s1, s0, s2, s1
	str	s1, [x1, #4]
	ldr	s1, [x22, #8]
	ldr	s2, [x10, #8]
	fsub	s2, s2, s1
	fmadd	s0, s0, s2, s1
	str	s0, [x1, #8]
	add	w8, w8, #1
	str	w8, [x13]
	b	LBB0_8
LBB0_14:
	str	wzr, [x2]
LBB0_15:
	ldur	x8, [x29, #-120]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.16:
	sub	sp, x29, #112
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
LBB0_17:
	ldur	w10, [x29, #-156]               ; 4-byte Folded Reload
	str	w10, [x13]
	ldur	x8, [x29, #-120]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	lsl	w2, w10, #3
	mov	x0, x26
	mov	x1, x20
	sub	sp, x29, #112
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	b	_Com_Memcpy
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_VERTS_ON_POLY,4,2          ; @MAX_VERTS_ON_POLY
	.comm	_SIDE_FRONT,4,2                 ; @SIDE_FRONT
	.comm	_SIDE_BACK,4,2                  ; @SIDE_BACK
	.comm	_SIDE_ON,4,2                    ; @SIDE_ON
	.no_dead_strip	_R_ChopPolyBehindPlane
.subsections_via_symbols
