	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_value
_add_value:                             ## @add_value
	.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, %ebx
	movl	%ecx, %r12d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rsi), %rdi
	callq	_free
	movq	$0, 24(%r13)
	cmpl	%ebx, (%r13)
	jl	LBB0_1
## %bb.2:
	cmpl	%ebx, 4(%r13)
	jg	LBB0_3
LBB0_4:
	testl	%ebx, %ebx
	jle	LBB0_5
LBB0_6:
	movq	8(%r13), %rax
	incl	%ebx
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	%ecx, %r14
	decl	%ebx
	cmpl	$1, %ebx
	jbe	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%r14,8), %rcx
	movl	(%rcx), %edx
	cmpl	4(%rcx), %edx
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	leal	-2(%rbx), %edx
	xorl	%r15d, %r15d
	btl	%edx, %r12d
	setb	%r15b
	movl	(%rcx,%r15,4), %ecx
	testl	%ecx, %ecx
	jns	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_new_node
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%r13), %ecx
	leal	1(%rcx), %eax
	movl	%eax, 16(%r13)
	movq	8(%r13), %rax
	movq	(%rax,%r14,8), %rdx
	movl	%ecx, (%rdx,%r15,4)
	jmp	LBB0_14
LBB0_1:
	movl	%ebx, (%r13)
	cmpl	%ebx, 4(%r13)
	jle	LBB0_4
LBB0_3:
	movl	%ebx, 4(%r13)
	testl	%ebx, %ebx
	jg	LBB0_6
LBB0_5:
	movq	8(%r13), %rax
	xorl	%r14d, %r14d
LBB0_15:
	movq	(%rax,%r14,8), %rax
	cmpl	$-1, (%rax)
	jne	LBB0_8
## %bb.16:
	cmpl	$-2, 4(%rax)
	jne	LBB0_8
## %bb.17:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	%ecx, 4(%rax)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_8:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Prefix found"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"Unable to allocate memory for node data."

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_add_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_value
_add_value:                             ; @add_value
	.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	x23, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x0, [x1, #24]
	bl	_free
	str	xzr, [x22, #24]
	ldr	w8, [x22]
	cmp	w8, w23
	b.ge	LBB0_2
; %bb.1:
	str	w23, [x22]
LBB0_2:
	ldr	w8, [x22, #4]
	cmp	w8, w23
	b.le	LBB0_4
; %bb.3:
	str	w23, [x22, #4]
LBB0_4:
	cmp	w23, #0
	b.le	LBB0_11
; %bb.5:
	mov	x24, #0
	ldr	x8, [x22, #8]
	add	w23, w23, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x24, w9
	sub	w23, w23, #1
	cmp	w23, #1
	b.ls	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, x24, lsl #3]
	ldp	w10, w11, [x9]
	cmp	w10, w11
	b.eq	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w10, w23, #2
	lsr	w10, w21, w10
	and	w25, w10, #0x1
	ldr	w9, [x9, w25, uxtw #2]
	tbz	w9, #31, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_new_node
	tbnz	w0, #31, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x22, #16]
	add	w8, w9, #1
	str	w8, [x22, #16]
	ldr	x8, [x22, #8]
	ldr	x10, [x8, x24, lsl #3]
	str	w9, [x10, x25, lsl #2]
	b	LBB0_6
LBB0_11:
	mov	x24, #0
	ldr	x8, [x22, #8]
LBB0_12:
	ldr	x8, [x8, x24, lsl #3]
	ldr	w9, [x8]
	cmn	w9, #1
	b.ne	LBB0_15
; %bb.13:
	ldr	w9, [x8, #4]
	cmn	w9, #2
	b.ne	LBB0_15
; %bb.14:
	stp	w20, w20, [x8]
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh2:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_archive_set_error
Lloh7:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	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
	ret
LBB0_18:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Prefix found"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"Unable to allocate memory for node data."

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_add_value
.subsections_via_symbols
