	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_directory
_write_directory:                       ## @write_directory
	.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	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	32(%rbx), %rax
	movq	%rax, (%rdi)
	movq	(%rbx), %rax
	movslq	8(%rbx), %rcx
	movb	$0, -1(%rcx,%rax)
	callq	_write_directory
	movl	$-1, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	24(%rbx), %rdi
	movq	(%rbx), %rsi
	movslq	12(%rbx), %rdx
	movq	%rdx, %rcx
	addq	%rsi, %rcx
	movl	20(%rbx), %r8d
	movl	16(%rbx), %r9d
	movq	%r14, (%rsp)
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_write_archive_entry
	movq	_READ_TREE_RECURSIVE@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	setne	%r15b
	negl	%r15d
LBB0_4:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ_TREE_RECURSIVE,8,3        ## @READ_TREE_RECURSIVE
	.no_dead_strip	_write_directory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_directory
_write_directory:                       ; @write_directory
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #32]
	str	x8, [x0]
	ldr	x8, [x19]
	ldrsw	x9, [x19, #8]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
	bl	_write_directory
	cbz	w0, LBB0_4
; %bb.2:
	mov	w20, #-1
	b	LBB0_5
LBB0_3:
	mov	w20, #0
	b	LBB0_6
LBB0_4:
	add	x0, x19, #24
	ldr	x1, [x19]
	ldp	w2, w5, [x19, #12]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
	add	x3, x1, x2
	ldr	w4, [x19, #20]
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x6, x20
	bl	_write_archive_entry
Lloh0:
	adrp	x8, _READ_TREE_RECURSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ_TREE_RECURSIVE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	csetm	w20, ne
LBB0_5:
	mov	x0, x19
	bl	_free
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_READ_TREE_RECURSIVE,8,3        ; @READ_TREE_RECURSIVE
	.no_dead_strip	_write_directory
.subsections_via_symbols
