	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function createarc
_createarc:                             ## @createarc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r12
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	%rcx, %rsi
	callq	_allocarc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_NISERR
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movl	%r13d, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 56(%rbx)
	movq	%r15, 48(%rbx)
	movq	%r12, 40(%rbx)
	movq	16(%r15), %rax
	movq	%rax, 32(%rbx)
	movq	$0, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, 24(%rax)
LBB0_3:
	movq	%rbx, 16(%r15)
	movq	8(%r12), %rax
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, 8(%rax)
LBB0_5:
	movq	%rbx, 8(%r12)
	incl	4(%r12)
	incl	(%r15)
	movq	%rbx, %rdi
	callq	_COLORED
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	cmpq	$0, 8(%r14)
	jne	LBB0_7
## %bb.8:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_colorchain                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_createarc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function createarc
_createarc:                             ; @createarc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	mov	x1, x3
	bl	_allocarc
	mov	x20, x0
	bl	_NISERR
	cbz	x0, LBB0_2
LBB0_1:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	str	w24, [x20]
	str	w23, [x20, #56]
	stp	x22, x21, [x20, #40]
	ldr	x8, [x21, #16]
	stp	xzr, x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.3:
	str	x20, [x8, #24]
LBB0_4:
	str	x20, [x21, #16]
	ldr	x8, [x22, #8]
	stp	xzr, x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.5:
	str	x20, [x8, #8]
LBB0_6:
	str	x20, [x22, #8]
	ldr	w8, [x22, #4]
	add	w8, w8, #1
	str	w8, [x22, #4]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	mov	x0, x20
	bl	_COLORED
	cbz	x0, LBB0_1
; %bb.7:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_1
; %bb.8:
	ldr	w0, [x19]
	mov	x1, 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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_colorchain
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_createarc
.subsections_via_symbols
