	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_retro_vfs_opendir_impl         ## -- Begin function retro_vfs_opendir_impl
	.p2align	4, 0x90
_retro_vfs_opendir_impl:                ## @retro_vfs_opendir_impl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	cmpb	$0, (%rdi)
	je	LBB0_6
## %bb.2:
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_strdup
	movl	%eax, 20(%r14)
	movq	%rbx, %rdi
	callq	_opendir
	movq	%rax, (%r14)
	movq	$0, 8(%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_dirent_check_error
	testl	%eax, %eax
	je	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	callq	_retro_vfs_closedir_impl
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FILE_ATTRIBUTE_HIDDEN,4,2      ## @FILE_ATTRIBUTE_HIDDEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_retro_vfs_opendir_impl         ; -- Begin function retro_vfs_opendir_impl
	.p2align	2
_retro_vfs_opendir_impl:                ; @retro_vfs_opendir_impl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_6
; %bb.2:
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_strdup
	str	w0, [x19, #20]
	mov	x0, x20
	bl	_opendir
	stp	x0, xzr, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_dirent_check_error
	cbz	w0, LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_retro_vfs_closedir_impl
LBB0_6:
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_FILE_ATTRIBUTE_HIDDEN,4,2      ; @FILE_ATTRIBUTE_HIDDEN
.subsections_via_symbols
