	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_outline
_convert_outline:                       ## @convert_outline
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	_segments_count@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_coords_count@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	testw	%cx, %cx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movzwl	%cx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	(%r12,%r14,2), %r15d
	incl	%r15d
	cltq
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	leaq	(%rbx,%rax), %rsi
	movl	%r15d, %ecx
	subl	%eax, %ecx
	movswl	%cx, %edx
	callq	_convert_contour
	movswl	%r15w, %eax
	incq	%r14
	cmpw	%r14w, -56(%rbp)                ## 2-byte Folded Reload
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	movswl	-44(%rbp), %ecx                 ## 2-byte Folded Reload
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	sete	%dil
	callq	_assert
	movq	_segments_count@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SEGMENTS_COUNT_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setle	%dil
	callq	_assert
	movq	_coords_count@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_COORDS_COUNT_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setle	%dil
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_segments_count,8,3             ## @segments_count
	.comm	_coords_count,8,3               ## @coords_count
	.comm	_SEGMENTS_COUNT_MAX,8,3         ## @SEGMENTS_COUNT_MAX
	.comm	_COORDS_COUNT_MAX,8,3           ## @COORDS_COUNT_MAX
	.no_dead_strip	_convert_outline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_outline
_convert_outline:                       ; @convert_outline
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
Lloh0:
	adrp	x25, _segments_count@GOTPAGE
Lloh1:
	ldr	x25, [x25, _segments_count@GOTPAGEOFF]
	str	xzr, [x25]
Lloh2:
	adrp	x24, _coords_count@GOTPAGE
Lloh3:
	ldr	x24, [x24, _coords_count@GOTPAGEOFF]
	str	xzr, [x24]
	cbz	w3, LBB0_3
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	w8, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w9, [x21], #2
	add	w26, w9, #1
	add	x0, x23, w8, sxtw #2
	add	x1, x22, w8, sxtw
	sub	w8, w26, w8
	sxth	w2, w8
	bl	_convert_contour
	sub	w20, w20, #1
	sxth	w8, w26
	tst	w20, #0xffff
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
	cmp	w8, w19
	cset	w0, eq
	bl	_assert
	ldr	x8, [x25]
Lloh4:
	adrp	x9, _SEGMENTS_COUNT_MAX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SEGMENTS_COUNT_MAX@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, le
	bl	_assert
	ldr	x8, [x24]
Lloh7:
	adrp	x9, _COORDS_COUNT_MAX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _COORDS_COUNT_MAX@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, le
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_assert
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_segments_count,8,3             ; @segments_count
	.comm	_coords_count,8,3               ; @coords_count
	.comm	_SEGMENTS_COUNT_MAX,8,3         ; @SEGMENTS_COUNT_MAX
	.comm	_COORDS_COUNT_MAX,8,3           ; @COORDS_COUNT_MAX
	.no_dead_strip	_convert_outline
.subsections_via_symbols
