	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_append
_tree_append:                           ## @tree_append
	.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	%rsi, %rbx
	movq	%rdi, %r14
	leaq	24(%rdi), %r15
	movq	(%rdi), %rax
	movq	24(%rdi), %rcx
	movb	$0, (%rcx,%rax)
	movq	(%rdi), %rax
	movq	%rax, 32(%rdi)
	xorl	%r12d, %r12d
	testq	%rdx, %rdx
	setne	%r12b
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$2, %rdx
	jb	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-1(%rdx), %rcx
	cmpb	$47, -1(%rbx,%rdx)
	movq	%rcx, %rdx
	je	LBB0_1
## %bb.3:
	incq	%rcx
	movq	%rcx, %r12
LBB0_4:
	leaq	(%rax,%r12), %rsi
	addq	$2, %rsi
	movq	%r15, %rdi
	callq	_archive_string_ensure
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.5:
	movq	(%r15), %r13
	movq	%r15, %rdi
	callq	_archive_strlen
	cltq
	cmpb	$47, -1(%rax,%r13)
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_archive_strappend_char
LBB0_7:
	movq	24(%r14), %r13
	movq	%r15, %rdi
	callq	_archive_strlen
	cltq
	addq	%r13, %rax
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_archive_strncat
	movq	8(%r14), %rax
	movq	%rax, 16(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tree_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_append
_tree_append:                           ; @tree_append
	.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	x20, x1
	mov	x19, x0
	mov	x21, x0
	ldr	x8, [x21, #24]!
	ldr	x9, [x0]
	strb	wzr, [x8, x9]
	ldr	x8, [x0]
	str	x8, [x0, #32]
	cmp	x2, #0
	cset	w22, ne
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x2, #2
	b.lo	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x9, x2, #1
	add	x10, x20, x2
	ldurb	w10, [x10, #-1]
	mov	x2, x9
	cmp	w10, #47
	b.eq	LBB0_1
; %bb.3:
	add	x22, x9, #1
LBB0_4:
	add	x8, x8, x22
	add	x1, x8, #2
	mov	x0, x21
	bl	_archive_string_ensure
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x23, [x21]
	mov	x0, x21
	bl	_archive_strlen
	add	x8, x23, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x21
	mov	w1, #47
	bl	_archive_strappend_char
LBB0_7:
	ldr	x23, [x19, #24]
	mov	x0, x21
	bl	_archive_strlen
	add	x8, x23, w0, sxtw
	str	x8, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_archive_strncat
	ldr	x8, [x19, #8]
	str	x8, [x19, #16]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tree_append
.subsections_via_symbols
