	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fts_stat
_fts_stat:                              ## @fts_stat
	.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
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movq	%rsi, %r14
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	setne	%cl
	jne	LBB0_2
## %bb.1:
	movq	_AT_FDCWD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_2:
	movb	%cl, %al
	movq	(%r14,%rax,8), %r12
	movq	_FTS_NOSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ISSET
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	-64(%rbp), %r15
	jmp	LBB0_5
LBB0_4:
	movq	72(%r14), %r15
LBB0_5:
	movq	_FTS_LOGICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ISSET
	testl	%r13d, %r13d
	jne	LBB0_7
## %bb.6:
	testq	%rax, %rax
	jne	LBB0_7
## %bb.11:
	movq	_AT_SYMLINK_NOFOLLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_freebsd11_fstatat
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_13
LBB0_7:
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_freebsd11_fstatat
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_AT_SYMLINK_NOFOLLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_freebsd11_fstatat
	testq	%rax, %rax
	je	LBB0_9
LBB0_13:
	movl	%r13d, 20(%r14)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_FTS_NS@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	16(%r15), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	_FTS_SLNONE@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_14:
	movl	16(%r15), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_23
## %bb.15:
	movq	(%r15), %r12
	movq	%r12, 24(%r14)
	movq	8(%r15), %rbx
	movq	%rbx, 32(%r14)
	movl	20(%r15), %eax
	movl	%eax, 64(%r14)
	movq	8(%r14), %rdi
	callq	_ISDOT
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_FTS_DOT@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_23:
	movl	16(%r15), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	_FTS_SL@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_17:
	movq	_FTS_ROOTLEVEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	56(%r14), %rcx
	movq	_FTS_D@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	56(%rcx), %rcx
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, 40(%rcx)
	jl	LBB0_28
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpq	32(%rcx), %rbx
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpq	24(%rcx), %r12
	jne	LBB0_22
## %bb.21:
	movq	%rcx, 48(%r14)
	movq	_FTS_DC@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_25:
	movl	16(%r15), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	jne	LBB0_26
## %bb.27:
	movq	_FTS_DEFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_26:
	movq	_FTS_F@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AT_FDCWD,4,2                   ## @AT_FDCWD
	.comm	_FTS_NOSTAT,4,2                 ## @FTS_NOSTAT
	.comm	_FTS_LOGICAL,4,2                ## @FTS_LOGICAL
	.comm	_errno,8,3                      ## @errno
	.comm	_AT_SYMLINK_NOFOLLOW,4,2        ## @AT_SYMLINK_NOFOLLOW
	.comm	_FTS_SLNONE,4,2                 ## @FTS_SLNONE
	.comm	_FTS_NS,4,2                     ## @FTS_NS
	.comm	_FTS_DOT,4,2                    ## @FTS_DOT
	.comm	_FTS_ROOTLEVEL,8,3              ## @FTS_ROOTLEVEL
	.comm	_FTS_DC,4,2                     ## @FTS_DC
	.comm	_FTS_D,4,2                      ## @FTS_D
	.comm	_FTS_SL,4,2                     ## @FTS_SL
	.comm	_FTS_F,4,2                      ## @FTS_F
	.comm	_FTS_DEFAULT,4,2                ## @FTS_DEFAULT
	.comm	_FTS_ISW,4,2                    ## @FTS_ISW
	.comm	_FTS_W,4,2                      ## @FTS_W
	.comm	_S_IFWHT,4,2                    ## @S_IFWHT
	.no_dead_strip	_fts_stat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fts_stat
_fts_stat:                              ; @fts_stat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x23, x2
	mov	x19, x1
	cmn	w3, #1
	cset	w8, ne
Lloh0:
	adrp	x9, _AT_FDCWD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AT_FDCWD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	csel	w22, w9, w3, eq
	ldr	x21, [x1, w8, uxtw #3]
Lloh3:
	adrp	x8, _FTS_NOSTAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FTS_NOSTAT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ISSET
	cbz	x0, LBB0_2
; %bb.1:
	add	x20, sp, #8
	b	LBB0_3
LBB0_2:
	ldr	x20, [x19, #72]
LBB0_3:
Lloh6:
	adrp	x8, _FTS_LOGICAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FTS_LOGICAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_ISSET
	cbnz	w23, LBB0_7
; %bb.4:
	cbnz	x0, LBB0_7
; %bb.5:
Lloh9:
	adrp	x8, _AT_SYMLINK_NOFOLLOW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AT_SYMLINK_NOFOLLOW@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_freebsd11_fstatat
	cbz	x0, LBB0_12
; %bb.6:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	x23, [x8]
	b	LBB0_9
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	bl	_freebsd11_fstatat
	cbz	x0, LBB0_12
; %bb.8:
Lloh15:
	adrp	x24, _errno@GOTPAGE
Lloh16:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	ldr	x23, [x24]
Lloh17:
	adrp	x8, _AT_SYMLINK_NOFOLLOW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AT_SYMLINK_NOFOLLOW@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_freebsd11_fstatat
	cbz	x0, LBB0_10
LBB0_9:
	str	w23, [x19, #20]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh20:
	adrp	x8, _FTS_NS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FTS_NS@GOTPAGEOFF]
	b	LBB0_25
LBB0_10:
	str	xzr, [x24]
	ldr	w0, [x20, #16]
	bl	_S_ISLNK
	cbz	x0, LBB0_12
; %bb.11:
Lloh22:
	adrp	x8, _FTS_SLNONE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FTS_SLNONE@GOTPAGEOFF]
	b	LBB0_25
LBB0_12:
	ldr	w0, [x20, #16]
	bl	_S_ISDIR
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x21, [x20]
	str	x21, [x19, #24]
	ldr	x22, [x20, #8]
	str	x22, [x19, #32]
	ldr	w8, [x20, #20]
	str	w8, [x19, #64]
	ldr	x0, [x19, #8]
	bl	_ISDOT
	cbz	x0, LBB0_17
; %bb.14:
Lloh24:
	adrp	x8, _FTS_DOT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FTS_DOT@GOTPAGEOFF]
	b	LBB0_25
LBB0_15:
	ldr	w0, [x20, #16]
	bl	_S_ISLNK
	cbz	x0, LBB0_19
; %bb.16:
Lloh26:
	adrp	x8, _FTS_SL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FTS_SL@GOTPAGEOFF]
	b	LBB0_25
LBB0_17:
Lloh28:
	adrp	x8, _FTS_ROOTLEVEL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FTS_ROOTLEVEL@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x8]
	ldr	x9, [x19, #56]
	ldr	x8, [x9, #40]
	cmp	x8, x10
	b.ge	LBB0_20
; %bb.18:
Lloh31:
	adrp	x8, _FTS_D@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FTS_D@GOTPAGEOFF]
	b	LBB0_25
LBB0_19:
	ldr	w0, [x20, #16]
	bl	_S_ISREG
Lloh33:
	adrp	x8, _FTS_F@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FTS_F@GOTPAGEOFF]
Lloh35:
	adrp	x9, _FTS_DEFAULT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _FTS_DEFAULT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_25
LBB0_20:
Lloh37:
	adrp	x8, _FTS_D@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FTS_D@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x9, [x9, #56]
	ldr	x11, [x9, #40]
	cmp	x11, x10
	b.lt	LBB0_25
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, #32]
	cmp	x22, x11
	b.ne	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x11, [x9, #24]
	cmp	x21, x11
	b.ne	LBB0_21
; %bb.24:
	str	x9, [x19, #48]
Lloh39:
	adrp	x8, _FTS_DC@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FTS_DC@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_AT_FDCWD,4,2                   ; @AT_FDCWD
	.comm	_FTS_NOSTAT,4,2                 ; @FTS_NOSTAT
	.comm	_FTS_LOGICAL,4,2                ; @FTS_LOGICAL
	.comm	_errno,8,3                      ; @errno
	.comm	_AT_SYMLINK_NOFOLLOW,4,2        ; @AT_SYMLINK_NOFOLLOW
	.comm	_FTS_SLNONE,4,2                 ; @FTS_SLNONE
	.comm	_FTS_NS,4,2                     ; @FTS_NS
	.comm	_FTS_DOT,4,2                    ; @FTS_DOT
	.comm	_FTS_ROOTLEVEL,8,3              ; @FTS_ROOTLEVEL
	.comm	_FTS_DC,4,2                     ; @FTS_DC
	.comm	_FTS_D,4,2                      ; @FTS_D
	.comm	_FTS_SL,4,2                     ; @FTS_SL
	.comm	_FTS_F,4,2                      ; @FTS_F
	.comm	_FTS_DEFAULT,4,2                ; @FTS_DEFAULT
	.comm	_FTS_ISW,4,2                    ; @FTS_ISW
	.comm	_FTS_W,4,2                      ; @FTS_W
	.comm	_S_IFWHT,4,2                    ; @S_IFWHT
	.no_dead_strip	_fts_stat
.subsections_via_symbols
