	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_statvfs_r                 ## -- Begin function _FAT_statvfs_r
	.p2align	4, 0x90
__FAT_statvfs_r:                        ## @_FAT_statvfs_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	__FAT_partition_getPartitionFromPath
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	__FAT_lock
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	__FAT_partition_createFSinfo
LBB0_4:
	movq	(%rbx), %rax
	movq	_FS_FAT32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	32(%rbx), %eax
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$-1, %r12d
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	callq	__FAT_fat_freeClusterCount
LBB0_7:
	movl	48(%rbx), %ecx
	movl	%ecx, 52(%r15)
	movl	%ecx, 48(%r15)
	movq	40(%rbx), %rcx
	movq	_CLUSTER_FIRST@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	incq	%rcx
	movq	%rcx, 40(%r15)
	movq	%rcx, 32(%r15)
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 4(%r15)
	movl	24(%rbx), %edi
	callq	__FAT_disc_hostType
	movl	%eax, 24(%r15)
	movq	_ST_NOSUID@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpq	$0, 16(%rbx)
	movl	$0, %ecx
	je	LBB0_9
## %bb.8:
	movq	_ST_RDONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_9:
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_NAME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	%r14, %rdi
	callq	__FAT_unlock
LBB0_10:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCAN"

	.comm	_FS_FAT32,8,3                   ## @FS_FAT32
	.comm	_CLUSTER_FIRST,8,3              ## @CLUSTER_FIRST
	.comm	_ST_NOSUID,4,2                  ## @ST_NOSUID
	.comm	_ST_RDONLY,4,2                  ## @ST_RDONLY
	.comm	_NAME_MAX,4,2                   ## @NAME_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_statvfs_r                 ; -- Begin function _FAT_statvfs_r
	.p2align	2
__FAT_statvfs_r:                        ; @_FAT_statvfs_r
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	__FAT_partition_getPartitionFromPath
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	__FAT_lock
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	__FAT_partition_createFSinfo
LBB0_3:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _FS_FAT32@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FS_FAT32@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x21, #32]
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	w0, #-1
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	bl	__FAT_fat_freeClusterCount
LBB0_7:
	ldr	w8, [x21, #48]
	stp	w8, w8, [x19, #48]
	ldr	x8, [x21, #40]
Lloh8:
	adrp	x9, _CLUSTER_FIRST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CLUSTER_FIRST@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	sub	x8, x8, x9
	add	x8, x8, #1
	stp	x8, x8, [x19, #32]
	dup.4s	v0, w0
	stur	q0, [x19, #4]
	ldr	w0, [x21, #24]
	bl	__FAT_disc_hostType
Lloh11:
	adrp	x8, _ST_NOSUID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ST_NOSUID@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x21, #16]
Lloh14:
	adrp	x10, _ST_RDONLY@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ST_RDONLY@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
	str	w8, [x19]
Lloh17:
	adrp	x8, _NAME_MAX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NAME_MAX@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #20]
	mov	x0, x20
	bl	__FAT_unlock
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCAN"

	.comm	_FS_FAT32,8,3                   ; @FS_FAT32
	.comm	_CLUSTER_FIRST,8,3              ; @CLUSTER_FIRST
	.comm	_ST_NOSUID,4,2                  ; @ST_NOSUID
	.comm	_ST_RDONLY,4,2                  ; @ST_RDONLY
	.comm	_NAME_MAX,4,2                   ; @NAME_MAX
.subsections_via_symbols
