	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function FindPlaneSeperatingWindings
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
LCPI0_1:
	.quad	0xbfb999999999999a              ## double -0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_FindPlaneSeperatingWindings
	.p2align	4, 0x90
_FindPlaneSeperatingWindings:           ## @FindPlaneSeperatingWindings
	.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	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movl	(%rdi), %esi
	testl	%esi, %esi
	jle	LBB0_36
## %bb.1:
	movq	%rdi, %r13
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r13), %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rsi, %rbx
	jge	LBB0_36
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_16 Depth 3
	leaq	1(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	movq	8(%r13), %rax
	movq	(%rax,%rdx,8), %rdi
	movq	(%rax,%rbx,8), %rsi
	callq	_VectorSubtract
	callq	_VectorLength
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_35
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_CrossProduct
	callq	_VectorNormalize
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_DotProduct
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_35
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_5 Depth=2
	callq	_Log_Write
LBB0_34:                                ##   in Loop: Header=BB0_5 Depth=2
	movslq	(%r15), %rcx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rcx, %rbx
	jge	LBB0_35
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_16 Depth 3
	leaq	1(%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movq	8(%r15), %rax
	movq	(%rax,%rdx,8), %rdi
	movq	(%rax,%rbx,8), %rsi
	callq	_VectorSubtract
	callq	_VectorLength
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_34
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_CrossProduct
	callq	_VectorNormalize
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_DotProduct
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	xorps	%xmm2, %xmm2
	cvtss2sd	%xmm1, %xmm2
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm2, %xmm1
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	ucomisd	LCPI0_0(%rip), %xmm2
	jbe	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	callq	_VectorNegate
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	cvtss2sd	%xmm0, %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_34
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_34
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$0, (%r13)
	movl	$0, %r14d
	movl	$0, %r12d
	jle	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=3
	incl	%r12d
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=3
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_DotProduct
	subss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	cvtss2sd	%xmm0, %xmm0
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=3
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=3
	incl	%r14d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	cmpl	$0, (%r15)
	movl	$0, %r14d
	jle	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=2
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_16 Depth=3
	incl	%r14d
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=3
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_24
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_DotProduct
	subss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	cvtss2sd	%xmm0, %xmm0
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_17
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=3
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=3
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=2
	testl	%r12d, %r12d
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_5 Depth=2
	leaq	L_.str(%rip), %rdi
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_33
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=2
	testl	%r14d, %r14d
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=2
	leaq	L_.str.1(%rip), %rdi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_33
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	%r14d, %eax
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	setne	%al
	movl	%r12d, %ecx
	orl	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_34
## %bb.29:                              ##   in Loop: Header=BB0_5 Depth=2
	testb	%al, %al
	je	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_5 Depth=2
	orl	%r14d, -52(%rbp)                ## 4-byte Folded Spill
	setne	%al
	orl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_5 Depth=2
	testb	%al, %al
	jne	LBB0_34
LBB0_32:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_VectorCopy
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rax)
	movl	$1, %eax
	jmp	LBB0_37
LBB0_36:
	xorl	%eax, %eax
LBB0_37:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FindPlaneSeperatingWindings: winding1 non-convex\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"FindPlaneSeperatingWindings: winding2 non-convex\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FindPlaneSeperatingWindings    ; -- Begin function FindPlaneSeperatingWindings
	.p2align	2
_FindPlaneSeperatingWindings:           ; @FindPlaneSeperatingWindings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.1:
	mov	x22, x1
	mov	x23, x0
	stp	x3, x4, [sp]                    ; 16-byte Folded Spill
	mov	x19, #0
	mov	x24, #-7378697629483820647
	movk	x24, #39322
	movk	x24, #16313, lsl #48
	mov	x25, #-7378697629483820647
	movk	x25, #39322
	movk	x25, #49081, lsl #48
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x23]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	mov	x19, x9
	cmp	x9, x8
	b.ge	LBB0_36
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_15 Depth 3
                                        ;       Child Loop BB0_23 Depth 3
	add	x10, x19, #1
	sdiv	w9, w10, w8
	str	x10, [sp, #16]                  ; 8-byte Folded Spill
	msub	w8, w9, w8, w10
	ldr	x9, [x23, #8]
	ldr	x0, [x9, w8, uxtw #3]
	ldr	x1, [x9, x19, lsl #3]
	bl	_VectorSubtract
	bl	_VectorLength
	fmov	d1, x24
	fcmp	d0, d1
	b.mi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_CrossProduct
	bl	_VectorNormalize
	ldr	x8, [x23, #8]
	ldr	x1, [x8, x19, lsl #3]
	bl	_DotProduct
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	fmov	s8, s0
	mov	x20, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	bl	_Log_Write
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldrsw	x8, [x22]
	mov	x20, x19
	cmp	x19, x8
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_15 Depth 3
                                        ;       Child Loop BB0_23 Depth 3
	add	x19, x20, #1
	sdiv	w9, w19, w8
	msub	w8, w9, w8, w19
	ldr	x9, [x22, #8]
	ldr	x0, [x9, w8, uxtw #3]
	ldr	x1, [x9, x20, lsl #3]
	bl	_VectorSubtract
	bl	_VectorLength
	fmov	d1, x24
	fcmp	d0, d1
	b.mi	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_CrossProduct
	bl	_VectorNormalize
	ldr	x8, [x22, #8]
	ldr	x1, [x8, x20, lsl #3]
	bl	_DotProduct
	fmov	s9, s0
	fsub	s0, s8, s0
	fcvt	d0, s0
	fmov	d1, x25
	fcmp	d0, d1
	fmov	d1, x24
	fccmp	d0, d1, #0, pl
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	bl	_VectorNegate
	fadd	s0, s8, s9
	fcvt	d0, s0
	fmov	d1, x25
	fcmp	d0, d1
	fmov	d1, x24
	fccmp	d0, d1, #0, pl
	b.gt	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x26, #0
	mov	w20, #0
	mov	w27, #0
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=3
	add	w20, w20, #1
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=3
	add	x26, x26, #1
	ldrsw	x8, [x23]
	cmp	x26, x8
	b.ge	LBB0_19
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x23, #8]
	ldr	x0, [x8, x26, lsl #3]
	bl	_DotProduct
	fsub	s0, s0, s8
	fcvt	d0, s0
	fmov	d1, x24
	fcmp	d0, d1
	b.gt	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=3
	fmov	d1, x25
	fcmp	d0, d1
	b.pl	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=3
	add	w27, w27, #1
	b	LBB0_14
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w27, #0
	mov	w20, #0
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x21, #0
	mov	w28, #0
	mov	w26, #0
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=3
	add	w28, w28, #1
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=3
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.ge	LBB0_27
LBB0_23:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x22, #8]
	ldr	x0, [x8, x21, lsl #3]
	bl	_DotProduct
	fsub	s0, s0, s8
	fcvt	d0, s0
	fmov	d1, x24
	fcmp	d0, d1
	b.gt	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=3
	fmov	d1, x25
	fcmp	d0, d1
	b.pl	LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=3
	add	w26, w26, #1
	b	LBB0_22
LBB0_26:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w26, #0
	mov	w28, #0
LBB0_27:                                ;   in Loop: Header=BB0_8 Depth=2
	cbz	w20, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	cbnz	w27, LBB0_6
LBB0_29:                                ;   in Loop: Header=BB0_8 Depth=2
	cbz	w28, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	cbnz	w26, LBB0_6
LBB0_31:                                ;   in Loop: Header=BB0_8 Depth=2
	orr	w8, w28, w26
	cmp	w8, #0
	cset	w8, ne
	orr	w9, w20, w27
	cbz	w9, LBB0_7
; %bb.32:                               ;   in Loop: Header=BB0_8 Depth=2
	cbz	w8, LBB0_7
; %bb.33:                               ;   in Loop: Header=BB0_8 Depth=2
	orr	w8, w27, w28
	cmp	w8, #0
	cset	w8, ne
	orr	w9, w20, w26
	cbz	w9, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_8 Depth=2
	tbnz	w8, #0, LBB0_7
LBB0_35:
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	bl	_VectorCopy
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	s8, [x8]
	mov	w0, #1
	b	LBB0_37
LBB0_36:
	mov	w0, #0
LBB0_37:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FindPlaneSeperatingWindings: winding1 non-convex\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"FindPlaneSeperatingWindings: winding2 non-convex\r\n"

.subsections_via_symbols
