	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_treescan                       ## -- Begin function treescan
	.p2align	4, 0x90
_treescan:                              ## @treescan
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	%ebx, %edi
	callq	_inotablookup
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.3:
	movq	_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	*%r12
	movq	_FAIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_strlcpy
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_strlcat
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_dirp@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	%rdx, %rsi
	callq	_rst_seekdir
	movl	(%r12), %edi
	callq	_rst_readdir
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	testq	%rbx, %rbx
	jne	LBB0_9
	jmp	LBB0_11
LBB0_1:
	movq	_LEAF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.2:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_6:
	movl	(%r12), %edi
	callq	_rst_readdir
	movq	%rax, %rbx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_9:
	movq	(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_12
LBB0_10:
	movl	(%r12), %edi
	callq	_rst_readdir
	movq	%rax, %rbx
LBB0_12:
	movl	(%r12), %edi
	callq	_rst_telldir
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.13:
	movq	%rax, %r15
	movslq	-56(%rbp), %r12                 ## 4-byte Folded Reload
	leaq	-1(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_strlcat
	movl	12(%rbx), %esi
	movq	%r13, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_treescan
	movq	_dirp@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	%r15, %rsi
	callq	_rst_seekdir
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r14), %edi
	callq	_rst_readdir
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_rst_telldir
	movq	%rax, %r15
	testq	%rbx, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movb	$0, (%r13,%r12)
	movslq	8(%rbx), %rax
	addq	%r12, %rax
	cmpq	%r14, %rax
	jb	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rcx
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	movq	_dirp@GOTPCREL(%rip), %r14
	jmp	LBB0_17
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_LEAF,4,2                       ## @LEAF
	.comm	_NODE,4,2                       ## @NODE
	.comm	_FAIL,8,3                       ## @FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_dirp,4,2                       ## @dirp
L_.str.1:                               ## @.str.1
	.asciz	"."

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Warning: `.' missing from directory %s\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"Warning: `..' missing from directory %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s%s: name exceeds %zu char\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_treescan                       ; -- Begin function treescan
	.p2align	2
_treescan:                              ; @treescan
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	stur	x2, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	mov	x0, x1
	bl	_inotablookup
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh8:
	adrp	x8, _NODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NODE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x22
	ldur	x3, [x29, #-96]                 ; 8-byte Folded Reload
	blr	x3
Lloh11:
	adrp	x8, _FAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FAIL@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.2:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_strlcpy
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_strlcat
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
Lloh16:
	adrp	x26, _dirp@GOTPAGE
Lloh17:
	ldr	x26, [x26, _dirp@GOTPAGEOFF]
	ldr	w0, [x26]
	ldr	x1, [x21]
	mov	x2, x1
	bl	_rst_seekdir
	ldr	w0, [x26]
	bl	_rst_readdir
	mov	x24, x0
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x24]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_7
LBB0_4:
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	bl	_fprintf
	cbnz	x24, LBB0_8
	b	LBB0_9
LBB0_5:
	ldur	x3, [x29, #-96]                 ; 8-byte Folded Reload
Lloh25:
	adrp	x8, _LEAF@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LEAF@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.6:
	mov	x0, x23
	mov	x1, x22
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	br	x3
LBB0_7:
	ldr	w0, [x26]
	bl	_rst_readdir
	mov	x24, x0
	cbz	x24, LBB0_9
LBB0_8:
	ldr	x0, [x24]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_10
LBB0_9:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x23
	bl	_fprintf
	b	LBB0_11
LBB0_10:
	ldr	w0, [x26]
	bl	_rst_readdir
	mov	x24, x0
LBB0_11:
	ldr	w0, [x26]
	bl	_rst_telldir
	cbz	x24, LBB0_17
; %bb.12:
	mov	x25, x0
	sxtw	x28, w22
	sub	x27, x19, #1
Lloh38:
	adrp	x23, l_.str.5@PAGE
Lloh39:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x1, [x24]
	mov	x0, x20
	mov	x2, x19
	bl	_strlcat
	ldr	w1, [x24, #12]
	mov	x0, x20
	ldur	x2, [x29, #-96]                 ; 8-byte Folded Reload
	bl	_treescan
	ldr	w0, [x26]
	ldr	x2, [x21]
	mov	x1, x25
	bl	_rst_seekdir
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x26]
	bl	_rst_readdir
	mov	x24, x0
	ldr	w0, [x26]
	bl	_rst_telldir
	mov	x25, x0
	cbz	x24, LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	strb	wzr, [x20, x28]
	ldrsw	x8, [x24, #8]
	add	x8, x8, w22, sxtw
	cmp	x8, x19
	b.lo	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh40:
	adrp	x8, _stderr@GOTPAGE
Lloh41:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldr	x8, [x24]
	stp	x8, x27, [sp, #-16]!
	mov	x1, x23
	mov	x2, x20
	bl	_fprintf
	add	sp, sp, #16
	b	LBB0_14
LBB0_17:
	ldur	x8, [x29, #-88]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_LEAF,4,2                       ; @LEAF
	.comm	_NODE,4,2                       ; @NODE
	.comm	_FAIL,8,3                       ; @FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_dirp,4,2                       ; @dirp
l_.str.1:                               ; @.str.1
	.asciz	"."

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Warning: `.' missing from directory %s\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"Warning: `..' missing from directory %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s%s: name exceeds %zu char\n"

.subsections_via_symbols
