	.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	%rsi, %r15
	movq	%rdi, %rbx
	callq	_get_node
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	%r15, %rdi
	callq	_get_node
	movq	%rax, %r15
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.2:
	movq	16(%r14), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rax,%rcx,8)
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	cmpq	%rcx, %rbx
	jne	LBB0_4
LBB0_5:
	cmpl	4(%r14), %ebx
	jne	LBB0_6
## %bb.7:
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.8:
	movl	$10, 4(%r14)
	movl	$10, %ebx
LBB0_9:
	shll	$4, %ebx
	movq	16(%r14), %rdi
	movl	%ebx, %esi
	callq	_grow_buf
	movq	%rax, 16(%r14)
	sarl	$3, %ebx
	movl	%ebx, 4(%r14)
	movl	(%r14), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	16(%r14), %rax
LBB0_10:
	leal	1(%rbx), %ecx
	movl	%ecx, (%r14)
	movslq	%ebx, %rcx
	movq	%r15, (%rax,%rcx,8)
	incl	8(%r15)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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, x1
	mov	x21, x0
	bl	_get_node
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.1:
	mov	x0, x20
	bl	_get_node
	mov	x20, x0
	ldr	w21, [x19]
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	mov	x9, x21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cmp	x10, x20
	b.eq	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_3
LBB0_5:
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.ne	LBB0_9
; %bb.6:
	cbnz	w21, LBB0_8
; %bb.7:
	mov	w21, #10
	str	w21, [x19, #4]
LBB0_8:
	lsl	w1, w21, #4
	ldr	x0, [x19, #16]
	bl	_grow_buf
	str	x0, [x19, #16]
	sbfiz	w8, w21, #1, #28
	str	w8, [x19, #4]
	ldr	w21, [x19]
	b	LBB0_10
LBB0_9:
	ldr	x0, [x19, #16]
LBB0_10:
	add	w8, w21, #1
	str	w8, [x19]
	str	x20, [x0, w21, sxtw #3]
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_arc
.subsections_via_symbols
