	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_retro_vfs_stat_impl            ## -- Begin function retro_vfs_stat_impl
	.p2align	4, 0x90
_retro_vfs_stat_impl:                   ## @retro_vfs_stat_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	cmpb	$0, (%rdi)
	je	LBB0_10
## %bb.2:
	movq	%rsi, %r14
	leaq	-32(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_10
## %bb.3:
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	-24(%rbp), %rax
	movq	%rax, (%r14)
LBB0_5:
	movl	-32(%rbp), %edi
	callq	_S_ISDIR
	movl	%eax, %ebx
	movl	-32(%rbp), %edi
	callq	_S_ISCHR
	movq	_RETRO_VFS_STAT_IS_VALID@GOTPCREL(%rip), %rcx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movq	_RETRO_VFS_STAT_IS_DIRECTORY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_7:
	orl	(%rcx), %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_RETRO_VFS_STAT_IS_CHARACTER_SPECIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	orl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RETRO_VFS_STAT_IS_VALID,4,2    ## @RETRO_VFS_STAT_IS_VALID
	.comm	_RETRO_VFS_STAT_IS_DIRECTORY,4,2 ## @RETRO_VFS_STAT_IS_DIRECTORY
	.comm	_RETRO_VFS_STAT_IS_CHARACTER_SPECIAL,4,2 ## @RETRO_VFS_STAT_IS_CHARACTER_SPECIAL
	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ## @FILE_ATTRIBUTE_DIRECTORY
	.comm	_INVALID_FILE_ATTRIBUTES,4,2    ## @INVALID_FILE_ATTRIBUTES
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_S_IFMT,4,2                     ## @S_IFMT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_retro_vfs_stat_impl            ; -- Begin function retro_vfs_stat_impl
	.p2align	2
_retro_vfs_stat_impl:                   ; @retro_vfs_stat_impl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_7
; %bb.1:
	ldrb	w8, [x0]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x19, x1
	mov	x1, sp
	bl	_stat
	tbnz	x0, #63, LBB0_6
; %bb.3:
	cbz	x19, LBB0_5
; %bb.4:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_5:
	ldr	w0, [sp]
	bl	_S_ISDIR
	mov	x19, x0
	ldr	w0, [sp]
	bl	_S_ISCHR
Lloh0:
	adrp	x8, _RETRO_VFS_STAT_IS_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RETRO_VFS_STAT_IS_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RETRO_VFS_STAT_IS_DIRECTORY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RETRO_VFS_STAT_IS_DIRECTORY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w19, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _RETRO_VFS_STAT_IS_CHARACTER_SPECIAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RETRO_VFS_STAT_IS_CHARACTER_SPECIAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w0, #0
	csel	w9, wzr, w9, eq
	orr	w0, w8, w9
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RETRO_VFS_STAT_IS_VALID,4,2    ; @RETRO_VFS_STAT_IS_VALID
	.comm	_RETRO_VFS_STAT_IS_DIRECTORY,4,2 ; @RETRO_VFS_STAT_IS_DIRECTORY
	.comm	_RETRO_VFS_STAT_IS_CHARACTER_SPECIAL,4,2 ; @RETRO_VFS_STAT_IS_CHARACTER_SPECIAL
	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ; @FILE_ATTRIBUTE_DIRECTORY
	.comm	_INVALID_FILE_ATTRIBUTES,4,2    ; @INVALID_FILE_ATTRIBUTES
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_S_IFMT,4,2                     ; @S_IFMT
.subsections_via_symbols
