	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_stat_r                    ## -- Begin function _FAT_stat_r
	.p2align	4, 0x90
__FAT_stat_r:                           ## @_FAT_stat_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	%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
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	__FAT_partition_getPartitionFromPath
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	leaq	1(%rax), %r14
	testq	%rax, %rax
	cmoveq	%rbx, %r14
	movq	%r14, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	%r12, %rbx
	movq	%r13, %rdi
	callq	__FAT_lock
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	__FAT_directory_entryFromPath
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	__FAT_directory_entryStat
	movq	%r13, %rdi
	callq	__FAT_unlock
	jmp	LBB0_8
LBB0_6:
	movq	%r13, %rdi
	callq	__FAT_unlock
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	$-1, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_stat_r                    ; -- Begin function _FAT_stat_r
	.p2align	2
__FAT_stat_r:                           ; @_FAT_stat_r
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	__FAT_partition_getPartitionFromPath
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x22
	mov	w1, #58
	bl	_strchr
	cmp	x0, #0
	csinc	x22, x22, x0, eq
	mov	x0, x22
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x0, x21
	bl	__FAT_lock
	add	x1, sp, #12
	mov	x0, x21
	mov	x2, x22
	mov	x3, #0
	bl	__FAT_directory_entryFromPath
	cbz	w0, LBB0_6
; %bb.5:
	add	x1, sp, #12
	mov	x0, x21
	mov	x2, x20
	bl	__FAT_directory_entryStat
	mov	x0, x21
	bl	__FAT_unlock
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	bl	__FAT_unlock
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #-1
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
