	.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_PositionTestInPatchCollide
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	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CM_PositionTestInPatchCollide
	.p2align	4, 0x90
_CM_PositionTestInPatchCollide:         ## @CM_PositionTestInPatchCollide
	.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	$56, %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)
	movq	_qfalse@GOTPCREL(%rip), %rax
	cmpq	$0, 40(%rdi)
	je	LBB0_1
LBB0_25:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r14
	cmpl	$0, (%rsi)
	jle	LBB0_25
## %bb.2:
	movq	%rdi, %r13
	movq	16(%r14), %rcx
	xorl	%eax, %eax
	leaq	-64(%rbp), %rbx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %eax
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %r12d
	jge	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	addq	$32, %rcx
	cmpl	(%r14), %eax
	jge	LBB0_24
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movq	8(%r14), %r14
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %r12
	shlq	$4, %r12
	movq	(%r14,%r12), %rdi
	movq	%rbx, %rsi
	callq	_VectorCopy
	movq	(%r14,%r12), %rax
	movss	12(%rax), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -52(%rbp)
	cmpq	$0, 32(%r13)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2ssq	24(%r13), %xmm1
	addss	%xmm1, %xmm0
	movss	%xmm0, -52(%rbp)
	movq	16(%r13), %rsi
	movq	%rbx, %rdi
	callq	_DotProduct
	ucomiss	LCPI0_1(%rip), %xmm0
	movq	(%r13), %rdi
	movq	16(%r13), %rsi
	jbe	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_VectorSubtract
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rax
	movq	8(%r14,%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	%rbx, %rsi
	callq	_DotProduct
	movss	-52(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movss	%xmm1, -52(%rbp)
	movq	(%r13), %rdi
	callq	_VectorCopy
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_VectorAdd
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r14
	movq	%rbx, %rdi
	callq	_DotProduct
	subss	-52(%rbp), %xmm0
	ucomiss	LCPI0_1(%rip), %xmm0
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	ja	LBB0_23
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rcx), %eax
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	LBB0_21
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %r14
	movq	16(%rcx), %rax
	movq	24(%rcx), %rcx
	movq	(%rax,%r12,8), %r15
	shlq	$4, %r15
	leaq	(%r14,%r15), %r13
	cmpq	$0, (%rcx,%r12,8)
	movq	(%r14,%r15), %rdi
	movq	%rbx, %rsi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	callq	_VectorNegate
	movq	(%r13), %rax
	movss	12(%rax), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	xorps	LCPI0_0(%rip), %xmm0
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	callq	_VectorCopy
	movq	(%r13), %rax
	movss	12(%rax), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movss	%xmm0, -52(%rbp)
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	cmpq	$0, 32(%r13)
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	xorps	%xmm1, %xmm1
	cvtsi2ssq	24(%r13), %xmm1
	addss	%xmm1, %xmm0
	movss	%xmm0, -52(%rbp)
	movq	16(%r13), %rsi
	movq	%rbx, %rdi
	callq	_DotProduct
	ucomiss	LCPI0_1(%rip), %xmm0
	movq	(%r13), %rdi
	movq	16(%r13), %rsi
	jbe	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=2
	callq	_VectorSubtract
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%r13), %rax
	movq	8(%r14,%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	%rbx, %rsi
	callq	_DotProduct
	callq	_fabs
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	addss	-52(%rbp), %xmm0
	movss	%xmm0, -52(%rbp)
	movq	(%r13), %rdi
	callq	_VectorCopy
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=2
	callq	_VectorAdd
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_DotProduct
	subss	-52(%rbp), %xmm0
	ucomiss	LCPI0_1(%rip), %xmm0
	ja	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=2
	incq	%r12
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movslq	8(%rcx), %rax
	cmpq	%rax, %r12
	jl	LBB0_10
	jmp	LBB0_21
LBB0_24:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_22:
	movq	_qtrue@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.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_PositionTestInPatchCollide  ; -- Begin function CM_PositionTestInPatchCollide
	.p2align	2
_CM_PositionTestInPatchCollide:         ; @CM_PositionTestInPatchCollide
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_4
LBB0_1:
Lloh3:
	adrp	x21, _qfalse@GOTPAGE
Lloh4:
	ldr	x21, [x21, _qfalse@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x21]
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.3:
	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
	add	sp, sp, #128
	ret
LBB0_4:
	mov	x19, x1
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.5:
	mov	x20, x0
	mov	w22, #0
	ldr	x23, [x19, #16]
Lloh8:
	adrp	x24, _qfalse@GOTPAGE
Lloh9:
	ldr	x24, [x24, _qfalse@GOTPAGEOFF]
Lloh10:
	adrp	x21, _qtrue@GOTPAGE
Lloh11:
	ldr	x21, [x21, _qtrue@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w25, #0
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	w25, w8
	b.ge	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w22, w22, #1
	add	x23, x23, #32
	ldr	w8, [x19]
	cmp	w22, w8
	b.ge	LBB0_28
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x25, [x19, #8]
	ldr	x26, [x23]
	lsl	x27, x26, #4
	ldr	x0, [x25, x27]
	add	x1, sp, #8
	bl	_VectorCopy
	ldr	x8, [x25, x27]
	ldr	s0, [x8, #12]
	str	s0, [sp, #20]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldp	x1, x8, [x20, #16]
	scvtf	s1, x8
	fadd	s0, s0, s1
	str	s0, [sp, #20]
	add	x0, sp, #8
	bl	_DotProduct
	ldr	x0, [x20]
	ldr	x1, [x20, #16]
	fcmp	s0, #0.0
	b.le	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_VectorSubtract
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #8]
	add	x9, x25, x26, lsl #4
	ldr	x9, [x9, #8]
	ldr	x0, [x8, x9, lsl #3]
	add	x1, sp, #8
	bl	_DotProduct
	ldr	s1, [sp, #20]
	fsub	s0, s1, s0
	str	s0, [sp, #20]
	ldr	x0, [x20]
	bl	_VectorCopy
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_VectorAdd
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #8
	bl	_DotProduct
	ldr	s1, [sp, #20]
	fsub	s0, s0, s1
	fcmp	s0, #0.0
	b.gt	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23, #8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x25, #0
LBB0_17:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x26, [x19, #8]
	lsl	x8, x25, #3
	ldp	x9, x10, [x23, #16]
	ldr	x27, [x9, x8]
	ldr	x8, [x10, x8]
	add	x28, x26, x27, lsl #4
	ldr	x0, [x28]
	add	x1, sp, #8
	cbz	x8, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	bl	_VectorNegate
	ldr	x8, [x28]
	ldr	s0, [x8, #12]
	fneg	s0, s0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=2
	bl	_VectorCopy
	ldr	x8, [x28]
	ldr	s0, [x8, #12]
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=2
	str	s0, [sp, #20]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=2
	ldp	x1, x8, [x20, #16]
	scvtf	s1, x8
	fadd	s0, s0, s1
	str	s0, [sp, #20]
	add	x0, sp, #8
	bl	_DotProduct
	ldr	x0, [x20]
	ldr	x1, [x20, #16]
	fcmp	s0, #0.0
	b.le	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=2
	bl	_VectorSubtract
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x20, #8]
	add	x9, x26, x27, lsl #4
	ldr	x9, [x9, #8]
	ldr	x0, [x8, x9, lsl #3]
	add	x1, sp, #8
	bl	_DotProduct
	bl	_fabs
	scvtf	s0, x0
	ldr	s1, [sp, #20]
	fadd	s0, s1, s0
	str	s0, [sp, #20]
	ldr	x0, [x20]
	bl	_VectorCopy
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_17 Depth=2
	bl	_VectorAdd
LBB0_25:                                ;   in Loop: Header=BB0_17 Depth=2
	add	x0, sp, #8
	bl	_DotProduct
	ldr	s1, [sp, #20]
	fsub	s0, s0, s1
	fcmp	s0, #0.0
	b.gt	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_17 Depth=2
	add	x25, x25, #1
	ldrsw	x8, [x23, #8]
	cmp	x25, x8
	b.lt	LBB0_17
	b	LBB0_7
LBB0_27:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23, #8]
	b	LBB0_7
LBB0_28:
	mov	x21, x24
	b	LBB0_2
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
