	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_fstree
_read_fstree:                           ## @read_fstree
	.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
	movq	%rdi, %r14
	callq	_opendir
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_die
LBB0_2:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_build_node
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str.2(%rip), %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_4:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_fprintf
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_free
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str.2(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_readdir
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_17
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_streq
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_streq
	testq	%rax, %rax
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_join_path
	movq	%rax, %r15
	movq	%rax, %rdi
	leaq	-64(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_die
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-64(%rbp), %ebx
	movl	%ebx, %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r14
	movl	(%r13), %edi
	callq	_xstrdup
	movl	%eax, %ebx
	movl	-60(%rbp), %esi
	movq	%r14, %rdi
	callq	_data_copy_file
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_build_property
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_add_property
	movq	%r14, %rdi
	callq	_fclose
	jmp	LBB0_5
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_6
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_read_fstree
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_xstrdup
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_name_node
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_add_child
	jmp	LBB0_6
LBB0_17:
	movq	%r12, %rdi
	callq	_closedir
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't opendir() \"%s\": %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"."

L_.str.2:                               ## @.str.2
	.asciz	".."

L_.str.3:                               ## @.str.3
	.asciz	"stat(%s): %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"rb"

	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"WARNING: Cannot open %s: %s\n"

	.no_dead_strip	_read_fstree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_fstree
_read_fstree:                           ; @read_fstree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	bl	_opendir
	mov	x20, x0
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x24]
	bl	_strerror
	mov	x2, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_die
LBB0_2:
	mov	x0, #0
	mov	x1, #0
	bl	_build_node
	mov	x21, x0
	mov	x0, x20
	bl	_readdir
	cbz	x0, LBB0_16
; %bb.3:
	mov	x28, x0
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh6:
	adrp	x23, l_.str.2@PAGE
Lloh7:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh8:
	adrp	x25, l_.str.4@PAGE
Lloh9:
	add	x25, x25, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w26, [x8]
	ldr	w0, [x24]
	bl	_strerror
	mov	x3, x0
	mov	x0, x26
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x27
	bl	_fprintf
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x27
	bl	_free
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_readdir
	mov	x28, x0
	cbz	x0, LBB0_16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	mov	x1, x22
	bl	_streq
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x28]
	mov	x1, x23
	bl	_streq
	cbnz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x28]
	mov	x0, x19
	bl	_join_path
	mov	x27, x0
	add	x1, sp, #8
	bl	_lstat
	tbz	x0, #63, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x24]
	bl	_strerror
	mov	x2, x0
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x27
	bl	_die
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w26, [sp, #8]
	mov	x0, x26
	bl	_S_ISREG
	cbz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x27
	mov	x1, x25
	bl	_fopen
	cbz	x0, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, x0
	ldr	w0, [x28]
	bl	_xstrdup
	mov	x28, x0
	ldr	w1, [sp, #12]
	mov	x0, x26
	bl	_data_copy_file
	mov	x1, x0
	mov	x0, x28
	bl	_build_property
	mov	x1, x0
	mov	x0, x21
	bl	_add_property
	mov	x0, x26
	bl	_fclose
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	bl	_S_ISDIR
	cbz	x0, LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x27
	bl	_read_fstree
	mov	x26, x0
	ldr	w0, [x28]
	bl	_xstrdup
	mov	x1, x0
	mov	x0, x26
	bl	_name_node
	mov	x1, x0
	mov	x0, x21
	bl	_add_child
	b	LBB0_5
LBB0_16:
	mov	x0, x20
	bl	_closedir
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't opendir() \"%s\": %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"."

l_.str.2:                               ; @.str.2
	.asciz	".."

l_.str.3:                               ; @.str.3
	.asciz	"stat(%s): %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"rb"

	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"WARNING: Cannot open %s: %s\n"

	.no_dead_strip	_read_fstree
.subsections_via_symbols
