	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freebsd11_fts_children         ## -- Begin function freebsd11_fts_children
	.p2align	4, 0x90
_freebsd11_fts_children:                ## @freebsd11_fts_children
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_FTS_NAMEONLY@GOTPCREL(%rip), %r15
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	cmpl	%ebx, (%r15)
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_3:
	movq	8(%r14), %r12
	movq	_errno@GOTPCREL(%rip), %r13
	movl	$0, (%r13)
	movq	_FTS_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ISSET
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_5:
	movq	(%r12), %rax
	movq	_FTS_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	24(%r12), %rbx
	jmp	LBB0_18
LBB0_7:
	movq	_FTS_D@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.8:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_fts_lfree
LBB0_10:
	cmpl	%ebx, (%r15)
	jne	LBB0_13
## %bb.11:
	movl	%ebx, %edi
	callq	_SET
	movq	_BNAMES@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_BCHILD@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r15d
	movq	8(%r12), %rax
	movq	_FTS_ROOTLEVEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.15:
	movq	16(%r12), %rax
	cmpb	$47, (%rax)
	je	LBB0_17
## %bb.16:
	movq	_FTS_NOCHDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ISSET
	testq	%rax, %rax
	je	LBB0_19
LBB0_17:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_fts_build
	movq	%rax, %rbx
	movq	%rax, (%r14)
LBB0_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	__open
	testl	%eax, %eax
	js	LBB0_18
## %bb.20:
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_fts_build
	movq	%rax, (%r14)
	movl	$0, %r15d
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movl	(%r13), %r15d
LBB0_22:
	movl	%r12d, %edi
	callq	_fchdir
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %eax
	testl	%r15d, %r15d
	jne	LBB0_24
## %bb.23:
	movl	(%r13), %eax
LBB0_24:
	movl	%r12d, %edi
	movl	%eax, %r12d
	callq	__close
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovsl	%r12d, %r15d
	movl	%r15d, (%r13)
	js	LBB0_18
## %bb.25:
	movq	(%r14), %rbx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_FTS_NAMEONLY,4,2               ## @FTS_NAMEONLY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_FTS_STOP,4,2                   ## @FTS_STOP
	.comm	_FTS_INIT,8,3                   ## @FTS_INIT
	.comm	_FTS_D,8,3                      ## @FTS_D
	.comm	_BNAMES,4,2                     ## @BNAMES
	.comm	_BCHILD,4,2                     ## @BCHILD
	.comm	_FTS_ROOTLEVEL,8,3              ## @FTS_ROOTLEVEL
	.comm	_FTS_NOCHDIR,4,2                ## @FTS_NOCHDIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freebsd11_fts_children         ; -- Begin function freebsd11_fts_children
	.p2align	2
_freebsd11_fts_children:                ; @freebsd11_fts_children
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _FTS_NAMEONLY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FTS_NAMEONLY@GOTPAGEOFF]
	cbz	w1, LBB0_3
; %bb.1:
	ldr	w8, [x23]
	cmp	w8, w20
	b.eq	LBB0_3
; %bb.2:
	mov	x0, #0
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	b	LBB0_17
LBB0_3:
	ldr	x21, [x19, #8]
Lloh8:
	adrp	x22, _errno@GOTPAGE
Lloh9:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	wzr, [x22]
Lloh10:
	adrp	x8, _FTS_STOP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FTS_STOP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_ISSET
	cbz	x0, LBB0_5
LBB0_4:
	mov	x0, #0
	b	LBB0_17
LBB0_5:
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _FTS_INIT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FTS_INIT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [x21, #24]
	b	LBB0_17
LBB0_7:
Lloh16:
	adrp	x9, _FTS_D@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FTS_D@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.8:
	ldr	x0, [x19]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_fts_lfree
LBB0_10:
	ldr	w8, [x23]
	cmp	w8, w20
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_SET
Lloh19:
	adrp	x8, _BNAMES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BNAMES@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh21:
	adrp	x8, _BCHILD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BCHILD@GOTPAGEOFF]
LBB0_13:
	ldr	w20, [x8]
	ldr	x8, [x21, #8]
Lloh23:
	adrp	x9, _FTS_ROOTLEVEL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FTS_ROOTLEVEL@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
	ldr	x8, [x21, #16]
	ldrb	w8, [x8]
	cmp	w8, #47
	b.eq	LBB0_16
; %bb.15:
Lloh26:
	adrp	x8, _FTS_NOCHDIR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FTS_NOCHDIR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_ISSET
	cbz	x0, LBB0_18
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_fts_build
	str	x0, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh29:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _O_CLOEXEC@GOTPAGE
Lloh33:
	ldr	x9, [x9, _O_CLOEXEC@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	__open
	tbnz	w0, #31, LBB0_4
; %bb.19:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_fts_build
	str	x0, [x19]
	ldr	w8, [x22]
	cmp	x0, #0
	csel	w23, w8, wzr, eq
	mov	x0, x21
	bl	_fchdir
	mov	x20, x0
	cmp	w23, #0
	ccmp	w0, #0, #0, eq
	ldr	w8, [x22]
	csel	w23, w8, w23, lt
	mov	x0, x21
	bl	__close
	str	w23, [x22]
	tbnz	w20, #31, LBB0_4
; %bb.20:
	ldr	x0, [x19]
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_FTS_NAMEONLY,4,2               ; @FTS_NAMEONLY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_FTS_STOP,4,2                   ; @FTS_STOP
	.comm	_FTS_INIT,8,3                   ; @FTS_INIT
	.comm	_FTS_D,8,3                      ; @FTS_D
	.comm	_BNAMES,4,2                     ; @BNAMES
	.comm	_BCHILD,4,2                     ; @BCHILD
	.comm	_FTS_ROOTLEVEL,8,3              ; @FTS_ROOTLEVEL
	.comm	_FTS_NOCHDIR,4,2                ; @FTS_NOCHDIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
.subsections_via_symbols
