	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtree_entry_tree_add
_mtree_entry_tree_add:                  ## @mtree_entry_tree_add
	.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	$344, %rsp                      ## imm = 0x158
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -320(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	(%rsi), %r15
	cmpq	$0, 32(%r15)
	je	LBB0_1
## %bb.8:
	leaq	32(%r15), %r14
	movq	40(%r15), %r12
	movq	%rbx, %rdi
	callq	_archive_strlen
	movq	%rbx, -376(%rbp)                ## 8-byte Spill
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_archive_strlen
	cmpq	%rax, %rbx
	movq	-376(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_13
## %bb.9:
	movq	8(%rbx), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
LBB0_13:
	movq	%r13, -368(%rbp)                ## 8-byte Spill
	movq	%r15, -344(%rbp)                ## 8-byte Spill
	movq	24(%rbx), %r13
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r12, %rdx
	callq	_get_path_component
	movq	%r12, %rcx
	movl	$0, -308(%rbp)                  ## 4-byte Folded Spill
	testl	%eax, %eax
	movq	%r12, -328(%rbp)                ## 8-byte Spill
	je	LBB0_14
## %bb.15:
	movl	%eax, %r12d
	leaq	-304(%rbp), %r14
	movq	%rcx, %r15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r15
LBB0_25:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r15, %rdx
	callq	_get_path_component
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_34
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	js	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$1, %r12d
	jne	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpb	$46, -304(%rbp)
	jne	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	testq	%r13, %r13
	je	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	24(%rbx), %r13
	jne	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpb	$47, 1(%r15)
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	$2, %r15
	jmp	LBB0_25
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mtree_entry_find_child
	testq	%rax, %rax
	je	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpb	$0, (%r15)
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	$0, (%rax)
	je	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%r12d, %esi
	movq	%rax, %r12
	leaq	(%r15,%rsi), %rcx
	xorl	%edx, %edx
	cmpb	$47, (%r15,%rsi)
	sete	%dl
	movq	%rdx, %r15
	addq	%rcx, %r15
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r15, %rdx
	callq	_get_path_component
	movq	%r12, %rcx
	movl	%eax, %r12d
	movq	%rcx, %r13
	testl	%eax, %eax
	jne	LBB0_16
## %bb.33:
	movq	%rcx, %r13
	jmp	LBB0_34
LBB0_1:
	cmpq	$1, 16(%r15)
	jne	LBB0_6
## %bb.2:
	movq	24(%r15), %rax
	cmpb	$46, (%rax)
	jne	LBB0_6
## %bb.3:
	movq	%r15, 8(%r15)
	movq	24(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_53
## %bb.4:
	movq	%r15, 24(%rbx)
	jmp	LBB0_5
LBB0_6:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%r15), %rcx
	leaq	L_.str(%rip), %rdx
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_archive_set_error
LBB0_7:
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_57
LBB0_14:
	movq	%rcx, %r15
	movq	%rcx, %r12
	cmpb	$0, (%r15)
	je	LBB0_45
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r14
	leaq	-360(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_archive_string_init
	movl	%r15d, %edx
	subl	%r12d, %edx
	addl	-308(%rbp), %edx                ## 4-byte Folded Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_archive_strncat
	movq	-360(%rbp), %rsi
	movslq	-352(%rbp), %rax
	cmpb	$47, -1(%rax,%rsi)
	jne	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=1
	movb	$0, -1(%rsi,%rax)
	decl	-352(%rbp)
	movq	-360(%rbp), %rsi
LBB0_38:                                ##   in Loop: Header=BB0_36 Depth=1
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	leaq	-336(%rbp), %rdx
	callq	_mtree_entry_create_virtual_dir
	movl	%eax, %r12d
	leaq	-360(%rbp), %rdi
	callq	_archive_string_free
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_57
## %bb.39:                              ##   in Loop: Header=BB0_36 Depth=1
	movq	-336(%rbp), %rax
	movq	48(%rax), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_40
## %bb.41:                              ##   in Loop: Header=BB0_36 Depth=1
	movq	(%r13), %rdi
	addq	$8, %rdi
	movq	-336(%rbp), %rsi
	callq	___archive_rb_tree_insert_node
	movq	-336(%rbp), %rsi
	movq	%r13, 8(%rsi)
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_36 Depth=1
	movq	-336(%rbp), %rsi
	movq	%rsi, 8(%rsi)
	movq	%rsi, 24(%r14)
LBB0_42:                                ##   in Loop: Header=BB0_36 Depth=1
	movq	-328(%rbp), %r12                ## 8-byte Reload
	movl	-308(%rbp), %ebx                ## 4-byte Reload
	movq	%r14, %rdi
	callq	_mtree_entry_register_add
	movq	-336(%rbp), %r13
	leaq	(%r15,%rbx), %rax
	xorl	%ecx, %ecx
	cmpb	$47, (%r15,%rbx)
	sete	%cl
	movq	%rcx, %r15
	addq	%rax, %r15
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r15, %rdx
	callq	_get_path_component
	movl	%eax, -308(%rbp)                ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_43
## %bb.44:                              ##   in Loop: Header=BB0_36 Depth=1
	cmpb	$0, (%r15)
	movq	-376(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_36
LBB0_45:
	movq	%r13, 16(%rbx)
	movq	%rbx, %rdi
	callq	_archive_string_empty
	leaq	32(%r13), %r15
	movq	%r15, %rdi
	callq	_archive_strlen
	movq	%rax, %r12
	leaq	16(%r13), %r14
	movq	%r14, %rdi
	callq	_archive_strlen
	leaq	(%r12,%rax), %rsi
	addq	$2, %rsi
	movq	%rbx, %rdi
	callq	_archive_string_ensure
	movq	%r15, %rdi
	callq	_archive_strlen
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_archive_strlen
	addq	%r12, %rax
	jne	LBB0_47
## %bb.46:
	movq	8(%rbx), %rax
	movb	$0, (%rax)
	jmp	LBB0_50
LBB0_10:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	addq	$8, %rdi
	movq	%r15, %rsi
	callq	___archive_rb_tree_insert_node
	movq	16(%rbx), %rcx
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	%rcx, 8(%r15)
	jmp	LBB0_5
LBB0_47:
	movq	%r15, %rdi
	callq	_archive_strlen
	testq	%rax, %rax
	jle	LBB0_49
## %bb.48:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_archive_string_copy
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_archive_strappend_char
LBB0_49:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_archive_string_concat
LBB0_50:
	movq	(%r13), %rdi
	addq	$8, %rdi
	movq	-344(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rsi
	callq	___archive_rb_tree_insert_node
	testl	%eax, %eax
	je	LBB0_51
## %bb.59:
	movq	%r13, 8(%r15)
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mtree_entry_register_add
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_57
LBB0_51:
	movq	(%r13), %rdi
	addq	$8, %rdi
	movq	24(%r15), %rsi
	callq	___archive_rb_tree_find_node
LBB0_52:
	movq	-368(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_53
LBB0_43:
	leaq	-360(%rbp), %rdi
	callq	_archive_string_free
LBB0_17:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_57
LBB0_11:
	movq	(%rcx), %rdi
	addq	$8, %rdi
	movq	24(%r15), %rsi
	callq	___archive_rb_tree_find_node
LBB0_53:
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	movq	%rax, %rsi
	movq	%r15, %rdx
	movq	%rax, %rbx
	callq	_mtree_entry_exchange_same_entry
	movl	%eax, %r12d
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jl	LBB0_57
## %bb.54:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_56
## %bb.55:
	movq	$0, (%rax)
LBB0_56:
	movq	%rbx, (%r13)
	movq	%r15, %rdi
	callq	_mtree_entry_free
	movl	(%r14), %r12d
LBB0_57:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_60
## %bb.58:
	movl	%r12d, %eax
	addq	$344, %rsp                      ## imm = 0x158
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movl	%r12d, -308(%rbp)               ## 4-byte Spill
LBB0_34:
	movq	-328(%rbp), %r12                ## 8-byte Reload
	cmpb	$0, (%r15)
	jne	LBB0_36
	jmp	LBB0_45
LBB0_29:
	movq	-344(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_52
LBB0_31:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	48(%rax), %rcx
	movq	-344(%rbp), %rax                ## 8-byte Reload
	movq	48(%rax), %r8
	leaq	L_.str.2(%rip), %rdx
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_archive_set_error
	jmp	LBB0_7
LBB0_60:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal programming error in generating canonical name for %s"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"A name buffer is too small"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.2:                               ## @.str.2
	.asciz	"`%s' is not directory, we cannot insert `%s' "

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
L_.str.3:                               ## @.str.3
	.asciz	"."

	.comm	_NAME_MAX,4,2                   ## @NAME_MAX
	.comm	__MAX_FNAME,4,2                 ## @_MAX_FNAME
	.no_dead_strip	_mtree_entry_tree_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtree_entry_tree_add
_mtree_entry_tree_add:                  ; @mtree_entry_tree_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #416
	.cfi_def_cfa_offset 416
	stp	x28, x27, [sp, #320]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #336]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #352]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #368]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #384]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #400]            ; 16-byte Folded Spill
	add	x29, sp, #400
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x22, [x0, #8]
	ldr	x19, [x1]
	mov	x23, x19
	ldr	x8, [x23, #32]!
	cbz	x8, LBB0_26
; %bb.1:
	ldr	x24, [x19, #40]
	mov	x0, x22
	bl	_archive_strlen
	mov	x25, x0
	mov	x0, x23
	bl	_archive_strlen
	cmp	x25, x0
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x22, #8]
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_32
LBB0_3:
	ldr	x23, [x22, #24]
	add	x0, sp, #48
	mov	w1, #256
	mov	x2, x24
	bl	_get_path_component
	mov	x26, x0
	mov	x25, x24
	cbz	w0, LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w26, #31, LBB0_42
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, #1
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [sp, #48]
	cmp	w8, #46
	ccmp	x23, #0, #4, eq
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #24]
	cmp	x23, x8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x25, #1]!
	cmp	w8, #47
	cinc	x25, x25, eq
	add	x0, sp, #48
	mov	w1, #256
	mov	x2, x25
	bl	_get_path_component
	mov	x26, x0
	cbnz	w0, LBB0_4
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #48
	mov	x0, x23
	bl	_mtree_entry_find_child
	cbz	x0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	ldrb	w8, [x25]
	cbz	w8, LBB0_48
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	cbz	x8, LBB0_52
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x25, w26, uxtw
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #47
	csel	x25, x8, x9, ne
	add	x0, sp, #48
	mov	w1, #256
	mov	x2, x25
	bl	_get_path_component
	mov	x26, x0
	mov	x23, x27
	cbnz	w0, LBB0_4
; %bb.13:
	mov	x23, x27
LBB0_14:
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	ldrb	w8, [x25]
	cbz	w8, LBB0_24
; %bb.15:
Lloh3:
	adrp	x21, _ARCHIVE_WARN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh5:
	adrp	x27, l_.str.3@PAGE
Lloh6:
	add	x27, x27, l_.str.3@PAGEOFF
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	bl	_archive_string_init
	sub	w8, w25, w24
	add	w2, w26, w8
	add	x0, sp, #24
	mov	x1, x24
	bl	_archive_strncat
	ldr	x1, [sp, #24]
	ldrsw	x8, [sp, #32]
	sub	x8, x8, #1
	ldrb	w9, [x1, x8]
	cmp	w9, #47
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	strb	wzr, [x1, x8]
	ldr	w8, [sp, #32]
	sub	w8, w8, #1
	str	w8, [sp, #32]
	ldr	x1, [sp, #24]
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x2, sp, #40
	mov	x0, x20
	bl	_mtree_entry_create_virtual_dir
	mov	x28, x0
	add	x0, sp, #24
	bl	_archive_string_free
	ldr	w8, [x21]
	cmp	w28, w8
	b.lt	LBB0_44
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [sp, #40]
	ldr	x0, [x8, #48]
	mov	x1, x27
	bl	_strcmp
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x23]
	add	x0, x8, #8
	ldr	x1, [sp, #40]
	bl	___archive_rb_tree_insert_node
	ldr	x1, [sp, #40]
	str	x23, [x1, #8]
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x1, [sp, #40]
	str	x1, [x1, #8]
	str	x1, [x22, #24]
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w26, w26
	mov	x0, x22
	bl	_mtree_entry_register_add
	ldr	x23, [sp, #40]
	add	x8, x25, x26
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #47
	csel	x25, x8, x9, ne
	add	x0, sp, #48
	mov	w1, #256
	mov	x2, x25
	bl	_get_path_component
	tbnz	w0, #31, LBB0_41
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x26, x0
	ldrb	w8, [x25]
	cbnz	w8, LBB0_16
LBB0_24:
	str	x23, [x22, #16]
	mov	x0, x22
	bl	_archive_string_empty
	add	x25, x23, #32
	mov	x0, x25
	bl	_archive_strlen
	mov	x26, x0
	add	x24, x23, #16
	mov	x0, x24
	bl	_archive_strlen
	add	x8, x26, x0
	add	x1, x8, #2
	mov	x0, x22
	bl	_archive_string_ensure
	mov	x0, x25
	bl	_archive_strlen
	mov	x26, x0
	mov	x0, x24
	bl	_archive_strlen
	cmn	x26, x0
	b.ne	LBB0_34
; %bb.25:
	ldr	x8, [x22, #8]
	strb	wzr, [x8]
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_37
LBB0_26:
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.ne	LBB0_30
; %bb.27:
	ldr	x8, [x19, #24]
	ldrb	w8, [x8]
	cmp	w8, #46
	b.ne	LBB0_30
; %bb.28:
	str	x19, [x19, #8]
	ldr	x27, [x22, #24]
	cbnz	x27, LBB0_48
; %bb.29:
	str	x19, [x22, #24]
	b	LBB0_39
LBB0_30:
Lloh7:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	x8, [x19, #48]
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
LBB0_31:
	mov	x0, x20
	bl	_archive_set_error
Lloh12:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
	b	LBB0_43
LBB0_32:
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	add	x0, x8, #8
	mov	x1, x19
	bl	___archive_rb_tree_insert_node
	ldr	x8, [x22, #16]
	cbz	w0, LBB0_46
; %bb.33:
	str	x8, [x19, #8]
	b	LBB0_39
LBB0_34:
	mov	x0, x25
	bl	_archive_strlen
	cmp	x0, #1
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	b.lt	LBB0_36
; %bb.35:
	mov	x0, x22
	mov	x1, x25
	bl	_archive_string_copy
	mov	x0, x22
	mov	w1, #47
	bl	_archive_strappend_char
LBB0_36:
	mov	x0, x22
	mov	x1, x24
	bl	_archive_string_concat
LBB0_37:
	ldr	x8, [x23]
	add	x0, x8, #8
	mov	x1, x19
	bl	___archive_rb_tree_insert_node
	cbz	w0, LBB0_40
; %bb.38:
	str	x23, [x19, #8]
LBB0_39:
	mov	x0, x22
	mov	x1, x19
	bl	_mtree_entry_register_add
Lloh14:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_43
LBB0_40:
	ldr	x8, [x23]
	b	LBB0_47
LBB0_41:
	add	x0, sp, #24
	bl	_archive_string_free
LBB0_42:
Lloh16:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_archive_set_error
Lloh21:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_43:
	ldr	w28, [x8]
LBB0_44:
	ldur	x8, [x29, #-96]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_53
; %bb.45:
	mov	x0, x28
	ldp	x29, x30, [sp, #400]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #384]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #368]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #352]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #336]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #416
	ret
LBB0_46:
	ldr	x8, [x8]
LBB0_47:
	add	x0, x8, #8
	ldr	x1, [x19, #24]
	bl	___archive_rb_tree_find_node
	mov	x27, x0
LBB0_48:
	mov	x0, x20
	mov	x1, x27
	mov	x2, x19
	bl	_mtree_entry_exchange_same_entry
	mov	x28, x0
Lloh26:
	adrp	x20, _ARCHIVE_WARN@GOTPAGE
Lloh27:
	ldr	x20, [x20, _ARCHIVE_WARN@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.lt	LBB0_44
; %bb.49:
	ldr	x8, [x27]
	cbz	x8, LBB0_51
; %bb.50:
	str	xzr, [x8]
LBB0_51:
	str	x27, [x21]
	mov	x0, x19
	bl	_mtree_entry_free
	ldr	w28, [x20]
	b	LBB0_44
LBB0_52:
Lloh28:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	x8, [x27, #48]
	ldr	x9, [x19, #48]
	stp	x8, x9, [sp]
Lloh31:
	adrp	x2, l_.str.2@PAGE
Lloh32:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_31
LBB0_53:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal programming error in generating canonical name for %s"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"A name buffer is too small"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.2:                               ; @.str.2
	.asciz	"`%s' is not directory, we cannot insert `%s' "

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
l_.str.3:                               ; @.str.3
	.asciz	"."

	.comm	_NAME_MAX,4,2                   ; @NAME_MAX
	.comm	__MAX_FNAME,4,2                 ; @_MAX_FNAME
	.no_dead_strip	_mtree_entry_tree_add
.subsections_via_symbols
