	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	_FTS_NOSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ISSET
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	-56(%rbp), %r15
	jmp	LBB0_3
LBB0_2:
	movq	64(%r14), %r15
LBB0_3:
	movq	_FTS_LOGICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ISSET
	movl	56(%r14), %edi
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_5
## %bb.8:
	movq	%r15, %rsi
	callq	_freebsd11_lstat
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_10
LBB0_5:
	movq	%r15, %rsi
	callq	_freebsd11_stat
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	movl	56(%r14), %edi
	movq	%r15, %rsi
	callq	_freebsd11_lstat
	testq	%rax, %rax
	je	LBB0_7
LBB0_10:
	movl	%ebx, 4(%r14)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_FTS_NS@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_11:
	movl	16(%r15), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:
	movq	(%r15), %r12
	movq	%r12, 8(%r14)
	movq	8(%r15), %rbx
	movq	%rbx, 16(%r14)
	movl	20(%r15), %eax
	movl	%eax, 52(%r14)
	movl	48(%r14), %edi
	callq	_ISDOT
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_FTS_DOT@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_20:
	movl	16(%r15), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	_FTS_SL@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_7:
	movq	$0, (%r12)
	movq	_FTS_SLNONE@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_FTS_ROOTLEVEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	40(%r14), %rcx
	movq	_FTS_D@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	40(%rcx), %rcx
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, 24(%rcx)
	jl	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	16(%rcx), %rbx
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	8(%rcx), %r12
	jne	LBB0_19
## %bb.18:
	movq	%rcx, 32(%r14)
	movq	_FTS_DC@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_22:
	movl	16(%r15), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	jne	LBB0_23
## %bb.24:
	movq	_FTS_DEFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_23:
	movq	_FTS_F@GOTPCREL(%rip), %rax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_FTS_NOSTAT,4,2                 ## @FTS_NOSTAT
	.comm	_FTS_LOGICAL,4,2                ## @FTS_LOGICAL
	.comm	_errno,8,3                      ## @errno
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _FTS_NOSTAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FTS_NOSTAT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ISSET
	cbz	x0, LBB0_2
; %bb.1:
	add	x20, sp, #8
	b	LBB0_3
LBB0_2:
	ldr	x20, [x19, #64]
LBB0_3:
Lloh3:
	adrp	x8, _FTS_LOGICAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FTS_LOGICAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ISSET
	mov	x8, x0
	ldr	w0, [x19, #56]
	cbnz	w21, LBB0_7
; %bb.4:
	cbnz	x8, LBB0_7
; %bb.5:
	mov	x1, x20
	bl	_freebsd11_lstat
	cbz	x0, LBB0_10
; %bb.6:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
	b	LBB0_9
LBB0_7:
	mov	x1, x20
	bl	_freebsd11_stat
	cbz	x0, LBB0_10
; %bb.8:
Lloh9:
	adrp	x22, _errno@GOTPAGE
Lloh10:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	x21, [x22]
	ldr	w0, [x19, #56]
	mov	x1, x20
	bl	_freebsd11_lstat
	cbz	x0, LBB0_15
LBB0_9:
	str	w21, [x19, #4]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh11:
	adrp	x8, _FTS_NS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FTS_NS@GOTPAGEOFF]
	b	LBB0_24
LBB0_10:
	ldr	w0, [x20, #16]
	bl	_S_ISDIR
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x21, [x20]
	str	x21, [x19, #8]
	ldr	x22, [x20, #8]
	str	x22, [x19, #16]
	ldr	w8, [x20, #20]
	str	w8, [x19, #52]
	ldr	w0, [x19, #48]
	bl	_ISDOT
	cbz	x0, LBB0_16
; %bb.12:
Lloh13:
	adrp	x8, _FTS_DOT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FTS_DOT@GOTPAGEOFF]
	b	LBB0_24
LBB0_13:
	ldr	w0, [x20, #16]
	bl	_S_ISLNK
	cbz	x0, LBB0_18
; %bb.14:
Lloh15:
	adrp	x8, _FTS_SL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FTS_SL@GOTPAGEOFF]
	b	LBB0_24
LBB0_15:
	str	xzr, [x22]
Lloh17:
	adrp	x8, _FTS_SLNONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FTS_SLNONE@GOTPAGEOFF]
	b	LBB0_24
LBB0_16:
Lloh19:
	adrp	x8, _FTS_ROOTLEVEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FTS_ROOTLEVEL@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x8]
	ldr	x9, [x19, #40]
	ldr	x8, [x9, #24]
	cmp	x8, x10
	b.ge	LBB0_19
; %bb.17:
Lloh22:
	adrp	x8, _FTS_D@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FTS_D@GOTPAGEOFF]
	b	LBB0_24
LBB0_18:
	ldr	w0, [x20, #16]
	bl	_S_ISREG
Lloh24:
	adrp	x8, _FTS_F@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FTS_F@GOTPAGEOFF]
Lloh26:
	adrp	x9, _FTS_DEFAULT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FTS_DEFAULT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_24
LBB0_19:
Lloh28:
	adrp	x8, _FTS_D@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FTS_D@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x9, [x9, #40]
	ldr	x11, [x9, #24]
	cmp	x11, x10
	b.lt	LBB0_24
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, #16]
	cmp	x22, x11
	b.ne	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x11, [x9, #8]
	cmp	x21, x11
	b.ne	LBB0_20
; %bb.23:
	str	x9, [x19, #32]
Lloh30:
	adrp	x8, _FTS_DC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FTS_DC@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_FTS_NOSTAT,4,2                 ; @FTS_NOSTAT
	.comm	_FTS_LOGICAL,4,2                ; @FTS_LOGICAL
	.comm	_errno,8,3                      ; @errno
	.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
