	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_write_mtree_header
_archive_write_mtree_header:            ## @archive_write_mtree_header
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	cmpq	$0, 48(%rbx)
	je	LBB0_3
## %bb.1:
	movq	$0, 48(%rbx)
	leaq	40(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_archive_strcat
	movq	_SET_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_3
## %bb.2:
	movq	$0, 32(%rbx)
LBB0_3:
	movq	%r15, %rdi
	callq	_archive_entry_size
	movl	%eax, 24(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_archive_entry_filetype
	movq	_AE_IFDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_6:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mtree_entry_new
	movl	%eax, %r15d
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jl	LBB0_11
## %bb.7:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mtree_entry_tree_add
	movq	-40(%rbp), %rdi
	cmpl	(%r12), %eax
	jge	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	callq	_mtree_entry_free
	movl	%r14d, %r15d
	jmp	LBB0_11
LBB0_5:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_9:
	movq	%rdi, 8(%rbx)
	cmpq	$0, (%rdi)
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_sum_init
LBB0_11:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#mtree\n"

	.comm	_SET_KEYS,4,2                   ## @SET_KEYS
	.comm	_AE_IFDIR,8,3                   ## @AE_IFDIR
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.no_dead_strip	_archive_write_mtree_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_write_mtree_header
_archive_write_mtree_header:            ; @archive_write_mtree_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_3
; %bb.1:
	str	xzr, [x19, #48]
	add	x0, x19, #40
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_archive_strcat
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _SET_KEYS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SET_KEYS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	str	xzr, [x19, #32]
LBB0_3:
	mov	x0, x21
	bl	_archive_entry_size
	str	w0, [x19, #24]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_archive_entry_filetype
Lloh5:
	adrp	x8, _AE_IFDIR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_IFDIR@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_5:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_mtree_entry_new
	mov	x21, x0
Lloh8:
	adrp	x22, _ARCHIVE_WARN@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ARCHIVE_WARN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.lt	LBB0_11
; %bb.6:
	add	x1, sp, #8
	mov	x0, x20
	bl	_mtree_entry_tree_add
	mov	x20, x0
	ldr	w8, [x22]
	ldr	x0, [sp, #8]
	cmp	w20, w8
	b.ge	LBB0_9
; %bb.7:
	bl	_mtree_entry_free
	mov	x21, x20
	b	LBB0_11
LBB0_8:
Lloh10:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_9:
	str	x0, [x19, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_sum_init
LBB0_11:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#mtree\n"

	.comm	_SET_KEYS,4,2                   ; @SET_KEYS
	.comm	_AE_IFDIR,8,3                   ; @AE_IFDIR
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.no_dead_strip	_archive_write_mtree_header
.subsections_via_symbols
