	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_arc
_add_arc:                               ## @add_arc
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_find_arc
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_first_free_arc@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	8(%rax), %rdx
	movq	%rdx, (%rcx)
	jmp	LBB0_4
LBB0_2:
	movq	_allocated_arcs_num@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$4, %edi
	callq	_create_node
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	$0, 24(%rax)
LBB0_4:
	movq	%r15, 24(%rax)
	movq	%r14, 16(%rax)
	movl	$1, (%r14)
	movq	8(%rbx), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, 8(%rbx)
	incl	(%rbx)
	movq	$0, (%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_first_free_arc,8,3             ## @first_free_arc
	.comm	_allocated_arcs_num,4,2         ## @allocated_arcs_num
	.no_dead_strip	_add_arc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_arc
_add_arc:                               ; @add_arc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_find_arc
	cbnz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _first_free_arc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _first_free_arc@GOTPAGEOFF]
	ldr	x0, [x8]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x9, [x0, #8]
	str	x9, [x8]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _allocated_arcs_num@GOTPAGE
Lloh3:
	ldr	x8, [x8, _allocated_arcs_num@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #4
	bl	_create_node
	stp	xzr, xzr, [x0, #16]
	str	xzr, [x0, #8]
LBB0_4:
	stp	x20, x21, [x0, #16]
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x19, #8]
	str	x0, [x19, #8]
	ldr	w9, [x19]
	add	w9, w9, #1
	str	w9, [x19]
	stp	xzr, x8, [x0]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_first_free_arc,8,3             ; @first_free_arc
	.comm	_allocated_arcs_num,4,2         ; @allocated_arcs_num
	.no_dead_strip	_add_arc
.subsections_via_symbols
