	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function InsertPointOnEdge
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_InsertPointOnEdge
	.p2align	4, 0x90
_InsertPointOnEdge:                     ## @InsertPointOnEdge
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movl	36(%rsi), %esi
	callq	_VectorSubtract
	movl	32(%rbx), %esi
	callq	_DotProduct
	movss	%xmm0, -28(%rbp)                ## 4-byte Spill
	movl	$32, %edi
	callq	_malloc
	movq	%rax, %r14
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rax)
	movl	24(%rax), %esi
	movl	%r15d, %edi
	callq	_VectorCopy
	movq	16(%rbx), %rax
	cmpq	%rbx, %rax
	je	LBB0_9
## %bb.1:
	movss	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movq	_LINE_POSITION_EPSILON@GOTPCREL(%rip), %rcx
	movss	(%rcx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movaps	LCPI0_0(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm1, %xmm2
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%rax), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm4
	subss	%xmm3, %xmm4
	ucomiss	%xmm2, %xmm4
	jbe	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	ucomiss	%xmm4, %xmm1
	ja	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	ucomiss	%xmm0, %xmm3
	ja	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rax), %rax
	cmpq	%rbx, %rax
	jne	LBB0_2
## %bb.7:
	movq	8(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	%rbx, 16(%r14)
	movq	8(%rbx), %rax
	movq	%r14, 16(%rax)
	movq	%r14, 8(%rbx)
	jmp	LBB0_8
LBB0_9:
	movq	%r14, 8(%rbx)
	movq	%r14, 16(%rbx)
	movq	%rbx, 8(%r14)
	movq	%rbx, 16(%r14)
	jmp	LBB0_8
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_5:
	movq	8(%rax), %rcx
	movq	%rcx, 8(%r14)
	movq	%rax, 16(%r14)
	movq	8(%rax), %rcx
	movq	%r14, 16(%rcx)
	movq	%r14, 8(%rax)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINE_POSITION_EPSILON,4,2      ## @LINE_POSITION_EPSILON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InsertPointOnEdge              ; -- Begin function InsertPointOnEdge
	.p2align	2
_InsertPointOnEdge:                     ; @InsertPointOnEdge
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x1
	mov	x21, x0
	ldr	w1, [x1, #36]
	bl	_VectorSubtract
	ldr	w1, [x19, #32]
	bl	_DotProduct
	fmov	s8, s0
	mov	w0, #32
	bl	_malloc
	mov	x20, x0
	str	s8, [x0]
	ldr	w1, [x0, #24]
	mov	x0, x21
	bl	_VectorCopy
	ldr	x8, [x19, #16]
	cmp	x8, x19
	b.eq	LBB0_6
; %bb.1:
	ldr	s0, [x20]
Lloh0:
	adrp	x9, _LINE_POSITION_EPSILON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LINE_POSITION_EPSILON@GOTPAGEOFF]
Lloh2:
	ldr	s1, [x9]
	fneg	s2, s1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s3, [x8]
	fsub	s4, s0, s3
	fcmp	s4, s2
	fccmp	s4, s1, #0, gt
	b.mi	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	fcmp	s0, s3
	b.mi	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8, #16]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.5:
	ldr	x8, [x19, #8]
	stp	x8, x19, [x20, #8]
	ldr	x8, [x19, #8]
	str	x20, [x8, #16]
	str	x20, [x19, #8]
	b	LBB0_9
LBB0_6:
	stp	x20, x20, [x19, #8]
	stp	x19, x19, [x20, #8]
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_free
LBB0_8:
	ldr	x9, [x8, #8]
	stp	x9, x8, [x20, #8]
	ldr	x9, [x8, #8]
	str	x20, [x9, #16]
	str	x20, [x8, #8]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LINE_POSITION_EPSILON,4,2      ; @LINE_POSITION_EPSILON
.subsections_via_symbols
