	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_fstat_r                   ## -- Begin function _FAT_fstat_r
	.p2align	4, 0x90
__FAT_fstat_r:                          ## @_FAT_fstat_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	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, (%rsi)
	je	LBB0_2
## %bb.4:
	movq	%rdx, %r14
	movq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	__FAT_lock
	movl	20(%rbx), %eax
	movl	%eax, -36(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	__FAT_directory_entryFromPosition
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	__FAT_directory_entryStat
	movq	8(%rbx), %rax
	movq	%rax, 8(%r14)
	movl	4(%rbx), %eax
	movl	%eax, (%r14)
	movq	%r12, %rdi
	callq	__FAT_unlock
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	movq	_EBADF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	%r12, %rdi
	callq	__FAT_unlock
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	$-1, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_fstat_r                   ; -- Begin function _FAT_fstat_r
	.p2align	2
__FAT_fstat_r:                          ; @_FAT_fstat_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	x21, x0
	cbz	x1, LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x19, x2
	ldr	x22, [x20, #24]
	mov	x0, x22
	bl	__FAT_lock
	ldr	d0, [x20, #16]
	str	d0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x22
	bl	__FAT_directory_entryFromPosition
	cbz	w0, LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x19
	bl	__FAT_directory_entryStat
	ldr	x8, [x20, #8]
	str	x8, [x19, #8]
	ldr	w8, [x20, #4]
	str	w8, [x19]
	mov	x0, x22
	bl	__FAT_unlock
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _EBADF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x0, x22
	bl	__FAT_unlock
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	w0, #-1
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
