	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function flatten_bezier
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_2:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_3:
	.quad	0x4000000000000000              ## double 2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_flatten_bezier:                        ## @flatten_bezier
	.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	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movsd	(%rdi), %xmm10                  ## xmm10 = mem[0],zero
	movsd	8(%rdi), %xmm12                 ## xmm12 = mem[0],zero
	movddup	%xmm0, %xmm5                    ## xmm5 = xmm0[0,0]
	movapd	%xmm2, %xmm7
	unpcklpd	%xmm10, %xmm7                   ## xmm7 = xmm7[0],xmm10[0]
	addpd	%xmm5, %xmm7
	movapd	LCPI0_0(%rip), %xmm9            ## xmm9 = [5.0E-1,5.0E-1]
	mulpd	%xmm9, %xmm7
	movddup	%xmm1, %xmm6                    ## xmm6 = xmm1[0,0]
	movapd	%xmm3, %xmm5
	unpcklpd	%xmm12, %xmm5                   ## xmm5 = xmm5[0],xmm12[0]
	addpd	%xmm6, %xmm5
	mulpd	%xmm9, %xmm5
	movapd	%xmm7, %xmm13
	unpckhpd	%xmm7, %xmm13                   ## xmm13 = xmm13[1],xmm7[1]
	movapd	%xmm7, %xmm15
	addsd	%xmm13, %xmm15
	movsd	LCPI0_1(%rip), %xmm11           ## xmm11 = mem[0],zero
	mulsd	%xmm11, %xmm15
	movapd	%xmm5, %xmm14
	unpckhpd	%xmm5, %xmm14                   ## xmm14 = xmm14[1],xmm5[1]
	movapd	%xmm14, %xmm6
	addsd	%xmm5, %xmm6
	mulsd	%xmm11, %xmm6
	movsd	(%rsi), %xmm8                   ## xmm8 = mem[0],zero
	movsd	8(%rsi), %xmm9                  ## xmm9 = mem[0],zero
	ucomisd	%xmm0, %xmm13
	movq	_TRUE@GOTPCREL(%rip), %r13
	jne	LBB0_4
	jp	LBB0_4
## %bb.1:
	ucomisd	%xmm1, %xmm14
	jne	LBB0_4
	jp	LBB0_4
## %bb.2:
	ucomisd	%xmm2, %xmm15
	jne	LBB0_4
	jp	LBB0_4
## %bb.3:
	ucomisd	%xmm3, %xmm6
	jne	LBB0_4
	jnp	LBB0_12
LBB0_4:
	movapd	%xmm12, -64(%rbp)               ## 16-byte Spill
	movsd	%xmm4, -48(%rbp)                ## 8-byte Spill
	movapd	%xmm8, %xmm12
	addsd	%xmm2, %xmm12
	mulsd	%xmm11, %xmm12
	movapd	%xmm9, %xmm4
	addsd	%xmm3, %xmm9
	mulsd	%xmm11, %xmm9
	movapd	%xmm12, -96(%rbp)               ## 16-byte Spill
	addsd	%xmm12, %xmm7
	mulsd	%xmm11, %xmm7
	addsd	%xmm9, %xmm5
	mulsd	%xmm11, %xmm5
	ucomisd	%xmm0, %xmm7
	jne	LBB0_8
	jp	LBB0_8
## %bb.5:
	ucomisd	%xmm1, %xmm5
	jne	LBB0_8
	jp	LBB0_8
## %bb.6:
	movapd	-96(%rbp), %xmm0                ## 16-byte Reload
	ucomisd	%xmm2, %xmm0
	jne	LBB0_8
	jp	LBB0_8
## %bb.7:
	ucomisd	%xmm3, %xmm9
	jne	LBB0_8
	jnp	LBB0_12
LBB0_8:
	movapd	%xmm9, -112(%rbp)               ## 16-byte Spill
	movapd	%xmm14, -144(%rbp)              ## 16-byte Spill
	movapd	%xmm13, -160(%rbp)              ## 16-byte Spill
	movapd	%xmm15, -176(%rbp)              ## 16-byte Spill
	movapd	%xmm7, -208(%rbp)               ## 16-byte Spill
	addsd	%xmm7, %xmm15
	mulsd	%xmm11, %xmm15
	movapd	%xmm6, -128(%rbp)               ## 16-byte Spill
	movapd	%xmm5, -192(%rbp)               ## 16-byte Spill
	addsd	%xmm5, %xmm6
	mulsd	%xmm11, %xmm6
	movapd	%xmm4, %xmm1
	movapd	-64(%rbp), %xmm0                ## 16-byte Reload
	subsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm2
	movapd	%xmm1, -256(%rbp)               ## 16-byte Spill
	movapd	%xmm10, %xmm1
	xorpd	LCPI0_2(%rip), %xmm10
	subsd	%xmm8, %xmm1
	movapd	%xmm1, -272(%rbp)               ## 16-byte Spill
	unpcklpd	%xmm1, %xmm4                    ## xmm4 = xmm4[0],xmm1[0]
	movapd	%xmm6, -224(%rbp)               ## 16-byte Spill
	unpcklpd	%xmm6, %xmm10                   ## xmm10 = xmm10[0],xmm6[0]
	mulpd	%xmm4, %xmm10
	unpcklpd	%xmm2, %xmm0                    ## xmm0 = xmm0[0],xmm2[0]
	movapd	%xmm15, -240(%rbp)              ## 16-byte Spill
	unpcklpd	%xmm15, %xmm8                   ## xmm8 = xmm8[0],xmm15[0]
	mulpd	%xmm0, %xmm8
	addpd	%xmm10, %xmm8
	movapd	%xmm8, %xmm0
	unpckhpd	%xmm8, %xmm0                    ## xmm0 = xmm0[1],xmm8[1]
	addsd	%xmm8, %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_fabs
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	cvttsd2si	-256(%rbp), %edi        ## 16-byte Folded Reload
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_powf
	movq	%rax, %rbx
	cvttsd2si	-272(%rbp), %edi        ## 16-byte Folded Reload
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_powf
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_sqrtf
	mulsd	-72(%rbp), %xmm0                ## 8-byte Folded Reload
	ucomisd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	jae	LBB0_12
## %bb.9:
	cvttsd2si	-240(%rbp), %esi        ## 16-byte Folded Reload
	cvttsd2si	-224(%rbp), %edx        ## 16-byte Folded Reload
	movq	_PathPointTypeLine@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_add_path_list_node
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r15
	movq	%r12, %rdi
	movaps	-160(%rbp), %xmm0               ## 16-byte Reload
	movaps	-144(%rbp), %xmm1               ## 16-byte Reload
	movaps	-176(%rbp), %xmm2               ## 16-byte Reload
	movaps	-128(%rbp), %xmm3               ## 16-byte Reload
	movq	%rax, %rsi
	movsd	-48(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	callq	_flatten_bezier
	movq	%r15, %rdi
	movapd	-208(%rbp), %xmm0               ## 16-byte Reload
	movapd	-192(%rbp), %xmm1               ## 16-byte Reload
	movapd	-96(%rbp), %xmm2                ## 16-byte Reload
	movapd	-112(%rbp), %xmm3               ## 16-byte Reload
	movq	%r14, %rsi
	movsd	-48(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	callq	_flatten_bezier
	jmp	LBB0_12
LBB0_10:
	movq	_FALSE@GOTPCREL(%rip), %r13
LBB0_12:
	movq	(%r13), %rax
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_PathPointTypeLine,4,2          ## @PathPointTypeLine
	.comm	_FALSE,8,3                      ## @FALSE
	.no_dead_strip	_flatten_bezier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flatten_bezier
_flatten_bezier:                        ; @flatten_bezier
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d15, d14, [sp, #64]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #80]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #96]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #112]              ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	.cfi_offset b12, -88
	.cfi_offset b13, -96
	.cfi_offset b14, -104
	.cfi_offset b15, -112
	ldp	d20, d5, [x0]
	fadd	d7, d20, d0
	fmov	d6, #0.50000000
	fmul	d9, d7, d6
	fadd	d7, d5, d1
	fmul	d10, d7, d6
	fadd	d7, d0, d2
	fmul	d17, d7, d6
	fadd	d7, d1, d3
	fmul	d18, d7, d6
	fadd	d7, d17, d9
	fmul	d11, d7, d6
	fadd	d7, d18, d10
	fmul	d12, d7, d6
	fcmp	d9, d0
	fccmp	d10, d1, #0, eq
	fccmp	d11, d2, #0, eq
	fccmp	d12, d3, #0, eq
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x1
	ldp	d7, d16, [x1]
	fadd	d19, d7, d2
	fmul	d21, d19, d6
	fadd	d19, d16, d3
	fmul	d14, d19, d6
	fadd	d17, d17, d21
	fmul	d19, d17, d6
	fadd	d17, d18, d14
	fmul	d17, d17, d6
	fcmp	d19, d0
	fccmp	d17, d1, #0, eq
	fccmp	d21, d2, #0, eq
	fccmp	d14, d3, #0, eq
	b.eq	LBB0_5
; %bb.2:
	mov	x20, x0
	stp	d19, d21, [sp, #16]             ; 16-byte Folded Spill
	fadd	d0, d11, d19
	fmul	d1, d0, d6
	str	d17, [sp, #8]                   ; 8-byte Folded Spill
	fadd	d0, d12, d17
	fmul	d0, d0, d6
	fsub	d15, d16, d5
	fmov	d13, d4
	fsub	d8, d20, d7
	stp	d0, d1, [sp, #40]               ; 16-byte Folded Spill
	fmul	d0, d8, d0
	fmadd	d0, d15, d1, d0
	fneg	d1, d20
	fmul	d1, d16, d1
	fmadd	d1, d5, d7, d1
	fadd	d0, d1, d0
	fcvtzs	w0, d0
	bl	_fabs
	str	d0, [sp, #56]                   ; 8-byte Folded Spill
	fmov	d0, #0.50000000
	str	d13, [sp, #32]                  ; 8-byte Folded Spill
	fmul	d13, d13, d0
	fcvtzs	w0, d15
	fmov	d0, #2.00000000
	bl	_powf
	mov	x21, x0
	fcvtzs	w0, d8
	fmov	d0, #2.00000000
	bl	_powf
	add	x0, x0, x21
	bl	_sqrtf
	fmul	d0, d13, d0
	ldr	d1, [sp, #56]                   ; 8-byte Folded Reload
	fcmp	d1, d0
	b.ls	LBB0_5
; %bb.3:
	ldr	d0, [sp, #48]                   ; 8-byte Folded Reload
	fcvtzs	w1, d0
	ldr	d0, [sp, #40]                   ; 8-byte Folded Reload
	fcvtzs	w2, d0
Lloh0:
	adrp	x8, _PathPointTypeLine@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PathPointTypeLine@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_add_path_list_node
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
	mov	x0, x20
	fmov	d0, d9
	fmov	d1, d10
	fmov	d2, d11
	fmov	d3, d12
	mov	x1, x21
	ldr	d8, [sp, #32]                   ; 8-byte Folded Reload
	fmov	d4, d8
	bl	_flatten_bezier
	mov	x0, x21
	ldp	d1, d0, [sp, #8]                ; 16-byte Folded Reload
	ldr	d2, [sp, #24]                   ; 8-byte Folded Reload
	fmov	d3, d14
	mov	x1, x19
	fmov	d4, d8
	bl	_flatten_bezier
LBB0_5:
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #96]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #80]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_7:
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_PathPointTypeLine,4,2          ; @PathPointTypeLine
	.comm	_FALSE,8,3                      ; @FALSE
	.no_dead_strip	_flatten_bezier
.subsections_via_symbols
