	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function shorten_bezier_amt
LCPI0_0:
	.quad	0x3f40624dd2f1a9fc              ## double 5.0000000000000001E-4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_shorten_bezier_amt:                    ## @shorten_bezier_amt
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movl	$1, %r14d
	movl	$2, %r12d
	movl	$3, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_1:
	movl	$3, %ebx
	movl	$2, %r14d
	movl	$1, %r12d
	xorl	%r15d, %r15d
LBB0_3:
	shlq	$4, %rbx
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movq	(%rsi,%rbx), %rax
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	movq	8(%rsi,%rbx), %rax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	leaq	-112(%rbp), %rdi
	movl	$64, %edx
	callq	_memcpy
	movq	_MAX_ITERS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.4:
	cmpq	$0, -120(%rbp)                  ## 8-byte Folded Reload
	js	LBB0_8
## %bb.5:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rbx), %rcx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rbx), %rcx
	addq	$8, %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	shlq	$4, %r14
	leaq	(%rax,%r14), %rcx
	movq	%rcx, -208(%rbp)                ## 8-byte Spill
	leaq	(%rax,%r14), %rcx
	addq	$8, %rcx
	movq	%rcx, -200(%rbp)                ## 8-byte Spill
	shlq	$4, %r12
	leaq	(%rax,%r12), %rcx
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	leaq	(%rax,%r12), %rcx
	addq	$8, %rcx
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	shlq	$4, %r15
	leaq	(%rax,%r15), %rcx
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	addq	%r15, %rax
	addq	$8, %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	cvtsi2sdq	-120(%rbp), %xmm0       ## 8-byte Folded Reload
	movl	$1, %ecx
	xorl	%r15d, %r15d
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, -160(%rbp)               ## 8-byte Spill
	movq	-200(%rbp), %r12                ## 8-byte Reload
	movq	-184(%rbp), %r13                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	leaq	-112(%rbp), %rsi
	movl	$64, %edx
	callq	_memcpy
	movq	-208(%rbp), %r14                ## 8-byte Reload
	movq	(%r14), %rdi
	movq	(%r12), %rsi
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	%r15, %r8
	callq	_shorten_line_percent
	movq	-192(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rdi
	movq	(%r13), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_shorten_line_percent
	movq	(%r14), %rdi
	movq	(%r12), %rsi
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	%r15, %r8
	callq	_shorten_line_percent
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	callq	_shorten_line_percent
	movq	(%rbx), %rdi
	movq	(%r13), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_shorten_line_percent
	movq	(%r14), %rdi
	movq	(%r12), %rsi
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_shorten_line_percent
	movq	(%rbx), %rax
	subq	-224(%rbp), %rax                ## 8-byte Folded Reload
	movq	(%r14), %rdi
	subq	-216(%rbp), %rdi                ## 8-byte Folded Reload
	imulq	%rax, %rax
	imulq	%rdi, %rdi
	addq	%rax, %rdi
	callq	_sqrt
	movq	_MAX_ITERS@GOTPCREL(%rip), %rcx
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	cmpq	(%rcx), %rdx
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cvtsi2sd	%r15, %xmm0
	addsd	-160(%rbp), %xmm0               ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %r15
	incq	%rcx
	cmpq	-120(%rbp), %rax                ## 8-byte Folded Reload
	jl	LBB0_6
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ITERS,8,3                  ## @MAX_ITERS
	.no_dead_strip	_shorten_bezier_amt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shorten_bezier_amt
_shorten_bezier_amt:                    ; @shorten_bezier_amt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	d9, d8, [sp, #112]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x1, [sp, #32]                   ; 8-byte Folded Spill
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #104]
	mov	w8, #3
	mov	w9, #2
	mov	w10, #1
	mov	w11, #1
	mov	w12, #2
	mov	w13, #3
	cmp	x2, #0
	csel	x19, xzr, x13, eq
	csel	x20, x10, x12, eq
	csel	x23, x9, x11, eq
	csel	x8, x8, xzr, eq
	add	x21, x0, x8, lsl #4
	ldr	x9, [x21]
	mov	x22, x21
	ldr	x8, [x22, #8]!
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	add	x0, sp, #40
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	mov	w2, #64
	bl	_memcpy
Lloh3:
	adrp	x9, _MAX_ITERS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_ITERS@GOTPAGEOFF]
	ldr	x8, [x9]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	tbnz	x8, #63, LBB0_4
; %bb.2:
	mov	x24, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x23, x8, x23, lsl #4
	add	x25, x23, #8
	add	x26, x8, x20, lsl #4
	add	x27, x26, #8
	add	x28, x8, x19, lsl #4
	add	x8, x28, #8
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	scvtf	d8, x8
	mov	w20, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #40
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	w2, #64
	mov	x19, x9
	bl	_memcpy
	ldr	x0, [x23]
	ldr	x1, [x25]
	mov	x2, x21
	mov	x3, x22
	mov	x4, x24
	bl	_shorten_line_percent
	ldr	x0, [x26]
	ldr	x1, [x27]
	mov	x2, x23
	mov	x3, x25
	mov	x4, x24
	bl	_shorten_line_percent
	ldr	x0, [x23]
	ldr	x1, [x25]
	mov	x2, x21
	mov	x3, x22
	mov	x4, x24
	bl	_shorten_line_percent
	ldr	x0, [x28]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x1, [x8]
	mov	x2, x26
	mov	x3, x27
	mov	x4, x24
	bl	_shorten_line_percent
	ldr	x0, [x26]
	ldr	x1, [x27]
	mov	x2, x23
	mov	x3, x25
	mov	x4, x24
	bl	_shorten_line_percent
	ldr	x0, [x23]
	ldr	x1, [x25]
	mov	x2, x21
	mov	x3, x22
	mov	x4, x24
	bl	_shorten_line_percent
	ldr	x8, [x21]
	ldp	x10, x9, [sp, #8]               ; 16-byte Folded Reload
	sub	x8, x8, x9
	ldr	x9, [x22]
	sub	x9, x9, x10
	mul	x8, x8, x8
	madd	x0, x9, x9, x8
	bl	_sqrt
	mov	x9, x19
	scvtf	d0, x24
	mov	x8, #43516
	movk	x8, #54001, lsl #16
	movk	x8, #25165, lsl #32
	movk	x8, #16192, lsl #48
	fmov	d1, x8
	fmadd	d0, d8, d1, d0
	fcvtzs	x24, d0
	ldr	x8, [x19]
	cmp	x20, x8
	add	x20, x20, #1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ccmp	x0, x8, #0, lo
	b.lt	LBB0_3
LBB0_4:
	ldr	x8, [sp, #104]
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_6
; %bb.5:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ITERS,8,3                  ; @MAX_ITERS
	.no_dead_strip	_shorten_bezier_amt
.subsections_via_symbols
