	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_hostfs_readdir_r            ## -- Begin function vc_hostfs_readdir_r
	.p2align	4, 0x90
_vc_hostfs_readdir_r:                   ## @vc_hostfs_readdir_r
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_DEBUG_MINOR
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	testq	%r14, %r14
	je	LBB0_12
## %bb.2:
	movl	16(%rbx), %edi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r15
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movb	$47, (%rax,%rcx)
	movl	(%r15), %esi
	movq	(%rbx), %rdi
	movq	8(%rbx), %rcx
	incq	%rcx
	movl	$8, %edx
	callq	_vcos_safe_strcpy
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_stat
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movb	$0, (%rcx,%rdx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	16(%rbx), %edi
	callq	_readdir
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_4
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DEBUG_MINOR
	movl	16(%rbx), %edi
	callq	_rewinddir
	jmp	LBB0_12
LBB0_5:
	movq	(%r14), %rdi
	movl	(%r15), %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_vcos_safe_strcpy
	movl	-48(%rbp), %edx
	movl	%edx, 8(%r14)
	movq	_ATTR_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, 12(%r14)
	movl	-44(%rbp), %eax
	movq	_S_IWUSR@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	jne	LBB0_7
## %bb.6:
	movq	_ATTR_RDONLY@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, 12(%r14)
LBB0_7:
	movq	_S_IFDIR@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_9
## %bb.8:
	movq	_ATTR_DIRENT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 12(%r14)
LBB0_9:
	movl	-36(%rbp), %eax
	movl	%eax, 20(%r14)
	movl	-40(%rbp), %eax
	movl	%eax, 16(%r14)
	movq	(%r14), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DEBUG_MINOR
	movq	%r14, %r15
LBB0_12:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vc_hostfs_readdir_r(%p)"

	.comm	_ATTR_NORMAL,4,2                ## @ATTR_NORMAL
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_ATTR_RDONLY,4,2                ## @ATTR_RDONLY
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_ATTR_DIRENT,4,2                ## @ATTR_DIRENT
L_.str.1:                               ## @.str.1
	.asciz	"vc_hostfs_readdir_r() = '%s', %x, %x"

L_.str.2:                               ## @.str.2
	.asciz	"vc_hostfs_readdir_r() = NULL"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_hostfs_readdir_r            ; -- Begin function vc_hostfs_readdir_r
	.p2align	2
_vc_hostfs_readdir_r:                   ; @vc_hostfs_readdir_r
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBUG_MINOR
	mov	x0, #0
	cbz	x20, LBB0_12
; %bb.1:
	cbz	x19, LBB0_12
; %bb.2:
	ldr	w0, [x20, #16]
	bl	_readdir
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	mov	w22, #47
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x20]
	strb	w22, [x8, x9]
	ldr	w1, [x21]
	ldp	x0, x8, [x20]
	add	x3, x8, #1
	mov	w2, #8
	bl	_vcos_safe_strcpy
	ldr	x0, [x20]
	add	x1, sp, #32
	bl	_stat
	ldp	x8, x9, [x20]
	strb	wzr, [x8, x9]
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #16]
	bl	_readdir
	mov	x21, x0
	cbnz	x0, LBB0_4
LBB0_6:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DEBUG_MINOR
	ldr	w0, [x20, #16]
	bl	_rewinddir
	mov	x0, #0
	b	LBB0_12
LBB0_7:
	ldr	x0, [x19]
	ldr	w1, [x21]
	mov	w2, #8
	mov	x3, #0
	bl	_vcos_safe_strcpy
Lloh4:
	adrp	x8, _ATTR_NORMAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATTR_NORMAL@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x8]
	ldp	w8, w10, [sp, #32]
	stp	w8, w9, [x19, #8]
Lloh7:
	adrp	x11, _S_IWUSR@GOTPAGE
Lloh8:
	ldr	x11, [x11, _S_IWUSR@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_9
; %bb.8:
Lloh10:
	adrp	x11, _ATTR_RDONLY@GOTPAGE
Lloh11:
	ldr	x11, [x11, _ATTR_RDONLY@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	orr	w9, w11, w9
	str	w9, [x19, #12]
LBB0_9:
Lloh13:
	adrp	x11, _S_IFDIR@GOTPAGE
Lloh14:
	ldr	x11, [x11, _S_IFDIR@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_11
; %bb.10:
Lloh16:
	adrp	x10, _ATTR_DIRENT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _ATTR_DIRENT@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x19, #12]
LBB0_11:
	ldr	d0, [sp, #40]
	str	d0, [x19, #16]
	ldr	x10, [x19]
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DEBUG_MINOR
	mov	x0, x19
LBB0_12:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vc_hostfs_readdir_r(%p)"

	.comm	_ATTR_NORMAL,4,2                ; @ATTR_NORMAL
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_ATTR_RDONLY,4,2                ; @ATTR_RDONLY
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_ATTR_DIRENT,4,2                ; @ATTR_DIRENT
l_.str.1:                               ; @.str.1
	.asciz	"vc_hostfs_readdir_r() = '%s', %x, %x"

l_.str.2:                               ; @.str.2
	.asciz	"vc_hostfs_readdir_r() = NULL"

.subsections_via_symbols
