	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftree_arg
_ftree_arg:                             ## @ftree_arg
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ftsp@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_fts_close
	movq	$0, (%r14)
LBB0_2:
	movq	_fthead@GOTPCREL(%rip), %r15
	movq	_farray@GOTPCREL(%rip), %r12
	movq	_ftcur@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rdi
	movq	_ftsopts@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_fts_open
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_20
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rcx), %rax
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 8(%rax)
	jne	LBB0_13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_PAXPATHLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movb	$0, (%rax)
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, (%r13)
	cmpq	$0, 8(%rax)
	je	LBB0_3
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_cwdfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fchdir
	testq	%rax, %rax
	js	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_chdir
	testq	%rax, %rax
	jns	LBB0_5
## %bb.15:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_syswarn
	jmp	LBB0_19
LBB0_18:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_syswarn
LBB0_19:
	movl	$-1, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ftsp,8,3                       ## @ftsp
	.comm	_fthead,8,3                     ## @fthead
	.comm	_farray,8,3                     ## @farray
	.comm	_PAXPATHLEN,8,3                 ## @PAXPATHLEN
	.comm	_stdin,4,2                      ## @stdin
	.comm	_ftcur,8,3                      ## @ftcur
	.comm	_cwdfd,4,2                      ## @cwdfd
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't fchdir to starting directory"

L_.str.1:                               ## @.str.1
	.asciz	"Can't chdir to %s"

	.comm	_ftsopts,4,2                    ## @ftsopts
	.no_dead_strip	_ftree_arg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftree_arg
_ftree_arg:                             ; @ftree_arg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
Lloh0:
	adrp	x19, _ftsp@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ftsp@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_fts_close
	str	xzr, [x19]
LBB0_2:
Lloh2:
	adrp	x20, _fthead@GOTPAGE
Lloh3:
	ldr	x20, [x20, _fthead@GOTPAGEOFF]
Lloh4:
	adrp	x21, _farray@GOTPAGE
Lloh5:
	ldr	x21, [x21, _farray@GOTPAGEOFF]
Lloh6:
	adrp	x22, _PAXPATHLEN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _PAXPATHLEN@GOTPAGEOFF]
Lloh8:
	adrp	x24, _stdin@GOTPAGE
Lloh9:
	ldr	x24, [x24, _stdin@GOTPAGEOFF]
Lloh10:
	adrp	x25, _ftsopts@GOTPAGE
Lloh11:
	ldr	x25, [x25, _ftsopts@GOTPAGEOFF]
Lloh12:
	adrp	x23, _ftcur@GOTPAGE
Lloh13:
	ldr	x23, [x23, _ftcur@GOTPAGEOFF]
Lloh14:
	adrp	x26, _cwdfd@GOTPAGE
Lloh15:
	ldr	x26, [x26, _cwdfd@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x8]
	ldr	x9, [x21]
	str	w8, [x9]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x21]
	ldr	w1, [x25]
	mov	x2, #0
	bl	_fts_open
	str	x0, [x19]
	cbnz	x0, LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x23]
	cbz	x9, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x9, #16]
	str	x8, [x23]
	cbz	x8, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_13
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldr	x8, [x22]
	add	x1, x8, #1
	ldr	w2, [x24]
	bl	_fgets
	cbz	x0, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8]
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x0]
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x23]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	bl	_fchdir
	tbnz	x0, #63, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_chdir
	tbz	x0, #63, LBB0_5
; %bb.15:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	x8, [x23]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_16:
	mov	w0, #0
	b	LBB0_20
LBB0_17:
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
LBB0_18:
	mov	w0, #1
	bl	_syswarn
LBB0_19:
	mov	w0, #-1
LBB0_20:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ftsp,8,3                       ; @ftsp
	.comm	_fthead,8,3                     ; @fthead
	.comm	_farray,8,3                     ; @farray
	.comm	_PAXPATHLEN,8,3                 ; @PAXPATHLEN
	.comm	_stdin,4,2                      ; @stdin
	.comm	_ftcur,8,3                      ; @ftcur
	.comm	_cwdfd,4,2                      ; @cwdfd
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't fchdir to starting directory"

l_.str.1:                               ; @.str.1
	.asciz	"Can't chdir to %s"

	.comm	_ftsopts,4,2                    ; @ftsopts
	.no_dead_strip	_ftree_arg
.subsections_via_symbols
