	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_read_r                    ## -- Begin function _FAT_read_r
	.p2align	4, 0x90
__FAT_read_r:                           ## @_FAT_read_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rcx, %rcx
	je	LBB0_55
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	cmpl	$0, 60(%rbx)
	je	LBB0_4
## %bb.3:
	cmpl	$0, 56(%rbx)
	je	LBB0_4
## %bb.5:
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	48(%rbx), %r15
	leaq	24(%r15), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	__FAT_lock
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movq	%rdx, %rax
	subq	%rcx, %rax
	jle	LBB0_7
## %bb.6:
	movq	16(%rbx), %rsi
	movq	_CLUSTER_FREE@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_8
LBB0_7:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	__FAT_unlock
	jmp	LBB0_55
LBB0_4:
	movq	_EBADF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	movl	$-1, %r14d
LBB0_55:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	addq	%r13, %rcx
	cmpq	%rdx, %rcx
	jbe	LBB0_10
## %bb.9:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, (%rdx)
	movq	%rax, %r13
LBB0_10:
	movl	24(%rbx), %r14d
	movl	28(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	32(%rbx), %rsi
	movq	40(%rbx), %r8
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	48(%rbx), %rax
	movq	32(%rax), %rdx
	movl	(%r15), %eax
	movl	%eax, %ecx
	subl	%r14d, %ecx
	cmpq	%rcx, %r13
	movl	%r13d, %ebx
	cmovael	%ecx, %ebx
	cmpl	%eax, %ebx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	jae	LBB0_11
## %bb.12:
	movq	%r15, %rdi
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	callq	__FAT_fat_clusterToSector
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rdx
	movl	%ebx, %r8d
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r14d, %ecx
	callq	__FAT_cache_readPartialSector
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	addl	%r14d, %ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	sbbq	$-1, %r8
	xorl	%ecx, %ecx
	cmpl	%eax, %ebx
	cmovbl	%ebx, %ecx
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	movq	%r13, %r14
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	subq	%rcx, %r14
	addq	%rcx, %r12
	jmp	LBB0_13
LBB0_11:
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
	movq	%r13, %r14
LBB0_13:
	movq	8(%r15), %rcx
	movq	%rcx, %rbx
	subq	%r8, %rbx
	movl	%eax, %edi
	movq	%rbx, %rax
	imulq	%rdi, %rax
	cmpq	%rax, %r14
	ja	LBB0_17
## %bb.14:
	movq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_15
## %bb.16:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rdi
	movq	%rax, %rbx
	jmp	LBB0_17
LBB0_15:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %ebx
LBB0_17:
	testl	%ebx, %ebx
	je	LBB0_22
## %bb.18:
	movq	%r15, %rdi
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, %r12
	callq	__FAT_fat_clusterToSector
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%r12), %rsi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %edx
	movq	%r12, %rcx
	callq	__FAT_cache_readSectors
	testl	%eax, %eax
	je	LBB0_19
## %bb.21:
	movl	(%r15), %eax
	imull	%ebx, %eax
	addq	%rax, %r12
	subq	%rax, %r14
	movl	%ebx, %eax
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	addq	%rax, %r8
	movq	8(%r15), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_22:
	cmpq	%rcx, %r8
	jb	LBB0_28
## %bb.23:
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r15, %rdi
	callq	__FAT_fat_nextCluster
	movq	%rax, %rbx
	testq	%r14, %r14
	jne	LBB0_26
## %bb.24:
	movq	_CLUSTER_EOF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_26
## %bb.25:
	movq	8(%r15), %r8
	xorl	%r14d, %r14d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_26:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	__FAT_fat_isValidCluster
	testl	%eax, %eax
	je	LBB0_19
## %bb.27:
	xorl	%r8d, %r8d
	movq	%rbx, %rsi
LBB0_28:
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	cmpq	16(%r15), %r14
	jae	LBB0_30
## %bb.29:
	movq	%rsi, %rbx
LBB0_44:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ecx
	movq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_45
## %bb.46:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %r12
	jmp	LBB0_47
LBB0_40:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	8(%r15), %r8
	xorl	%r14d, %r14d
LBB0_43:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	addq	%r13, %r12
	movq	%rbx, %rsi
	cmpq	16(%r15), %r14
	jb	LBB0_44
LBB0_30:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_30 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rbx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	__FAT_fat_nextCluster
	movq	%rax, %r12
	movq	16(%r15), %rax
	addq	%rax, %r13
	leaq	1(%rbx), %rcx
	cmpq	%rcx, %r12
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=2
	addq	%r13, %rax
	cmpq	%r14, %rax
	jbe	LBB0_31
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	__FAT_fat_clusterToSector
	movq	%rax, %rsi
	movl	(%r15), %ecx
	movq	%r13, %rax
	shrq	$32, %rax
	je	LBB0_34
## %bb.35:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_36
LBB0_34:                                ##   in Loop: Header=BB0_30 Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_36:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	__FAT_cache_readSectors
	testl	%eax, %eax
	je	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_30 Depth=1
	subq	%r13, %r14
	jne	LBB0_41
## %bb.39:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	_CLUSTER_EOF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_40
LBB0_41:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	__FAT_fat_isValidCluster
	testl	%eax, %eax
	je	LBB0_37
## %bb.42:                              ##   in Loop: Header=BB0_30 Depth=1
	xorl	%r8d, %r8d
	movq	%r12, %rbx
	jmp	LBB0_43
LBB0_19:
	movq	_EIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_20
LBB0_37:
	movq	_EIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-112(%rbp), %r13                ## 8-byte Reload
LBB0_20:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_54
LBB0_45:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r12d
LBB0_47:
	movq	-112(%rbp), %r13                ## 8-byte Reload
	testl	%r12d, %r12d
	je	LBB0_51
## %bb.48:
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	__FAT_fat_clusterToSector
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%rax, %rsi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	__FAT_cache_readSectors
	testl	%eax, %eax
	je	LBB0_49
## %bb.50:
	movl	(%r15), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	imull	%ecx, %eax
	addq	%rax, %r12
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	subq	%rax, %r14
	movl	%ecx, %eax
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	addq	%rax, %r8
LBB0_51:
	testq	%r14, %r14
	je	LBB0_53
## %bb.52:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r8, %r15
	callq	__FAT_fat_clusterToSector
	leaq	(%rax,%r15), %rdx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	__FAT_cache_readPartialSector
	movq	%r15, %r8
	addl	%r14d, -92(%rbp)                ## 4-byte Folded Spill
	xorl	%r14d, %r14d
LBB0_53:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_54
LBB0_49:
	movq	_EIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_54:
	subq	%r14, %r13
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 24(%rax)
	movl	%ecx, 28(%rax)
	movq	%rbx, 32(%rax)
	movq	%r8, 40(%rax)
	addq	%r13, (%rax)
	callq	__FAT_unlock
	movl	%r13d, %r14d
	jmp	LBB0_55
	.cfi_endproc
                                        ## -- End function
	.comm	_EBADF,8,3                      ## @EBADF
	.comm	_CLUSTER_FREE,8,3               ## @CLUSTER_FREE
	.comm	_EOVERFLOW,8,3                  ## @EOVERFLOW
	.comm	_EIO,8,3                        ## @EIO
	.comm	_CLUSTER_EOF,8,3                ## @CLUSTER_EOF
	.comm	_LIMIT_SECTORS,8,3              ## @LIMIT_SECTORS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_read_r                    ; -- Begin function _FAT_read_r
	.p2align	2
__FAT_read_r:                           ; @_FAT_read_r
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	cbz	x3, LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x24, x0
	cbz	x1, LBB0_7
; %bb.2:
	ldr	w8, [x19, #60]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_7
; %bb.4:
	mov	x23, x2
	ldr	x26, [x19, #48]
	add	x21, x26, #24
	mov	x0, x21
	bl	__FAT_lock
	ldp	x9, x10, [x19]
	subs	x8, x10, x9
	b.le	LBB0_6
; %bb.5:
	ldr	x11, [x19, #16]
Lloh0:
	adrp	x12, _CLUSTER_FREE@GOTPAGE
Lloh1:
	ldr	x12, [x12, _CLUSTER_FREE@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_9
LBB0_6:
Lloh3:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x24]
	mov	x0, x21
	bl	__FAT_unlock
	mov	w20, #0
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EBADF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x24]
	mov	w20, #-1
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	add	x9, x9, x20
	cmp	x9, x10
	b.ls	LBB0_11
; %bb.10:
Lloh9:
	adrp	x9, _EOVERFLOW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EOVERFLOW@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	x9, [x24]
	mov	x20, x8
LBB0_11:
	ldp	w25, w8, [x19, #24]
	str	w8, [sp]                        ; 4-byte Folded Spill
	ldp	x27, x28, [x19, #32]
	ldr	x8, [x19, #48]
	ldr	x21, [x8, #32]
	ldr	w8, [x26]
	sub	w9, w8, w25
	cmp	x20, x9
	csel	w22, w20, w9, lo
	cmp	w22, w8
	str	x21, [sp, #24]                  ; 8-byte Folded Spill
	b.hs	LBB0_13
; %bb.12:
	mov	x0, x26
	mov	x1, x27
	bl	__FAT_fat_clusterToSector
	add	x2, x0, x28
	mov	x0, x21
	mov	x1, x23
	mov	x3, x25
	mov	x4, x22
	bl	__FAT_cache_readPartialSector
	mov	x9, x25
	sub	x25, x20, x22
	add	x23, x23, x22
	ldr	w8, [x26]
	add	w9, w22, w9
	cmp	w9, w8
	cinc	x28, x28, hs
	csel	w9, w9, wzr, lo
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	b	LBB0_14
LBB0_13:
	str	w25, [sp, #4]                   ; 4-byte Folded Spill
	mov	x25, x20
LBB0_14:
	ldr	x9, [x26, #8]
	sub	x22, x9, x28
	mov	w8, w8
	mul	x10, x22, x8
	cmp	x25, x10
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b.hi	LBB0_16
; %bb.15:
	udiv	x22, x25, x8
LBB0_16:
	cbz	w22, LBB0_19
; %bb.17:
	mov	x0, x26
	mov	x1, x27
	bl	__FAT_fat_clusterToSector
	add	x1, x0, x28
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x22
	mov	x3, x23
	bl	__FAT_cache_readSectors
	cbz	w0, LBB0_40
; %bb.18:
	ldr	w8, [x26]
	mul	w8, w8, w22
	add	x23, x23, x8
	sub	x25, x25, x8
	add	x28, x28, w22, uxtw
	ldr	x9, [x26, #8]
LBB0_19:
	cmp	x28, x9
	b.lo	LBB0_25
; %bb.20:
	mov	x0, x26
	mov	x1, x27
	bl	__FAT_fat_nextCluster
	mov	x22, x0
	cbnz	x25, LBB0_23
; %bb.21:
Lloh12:
	adrp	x8, _CLUSTER_EOF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CLUSTER_EOF@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_23
; %bb.22:
	mov	x25, #0
	ldr	x28, [x26, #8]
	b	LBB0_25
LBB0_23:
	mov	x0, x26
	mov	x1, x22
	bl	__FAT_fat_isValidCluster
	cbz	w0, LBB0_40
; %bb.24:
	mov	x28, #0
	mov	x27, x22
LBB0_25:
	ldr	x8, [x26, #16]
	cmp	x25, x8
	b.hs	LBB0_32
; %bb.26:
	mov	x22, x27
LBB0_27:
	ldr	w8, [x26]
	udiv	x27, x25, x8
	cbz	w27, LBB0_42
; %bb.28:
	mov	x0, x26
	mov	x1, x22
	bl	__FAT_fat_clusterToSector
	mov	x1, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x27
	mov	x3, x23
	bl	__FAT_cache_readSectors
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	cbz	w0, LBB0_45
; %bb.29:
	ldr	w8, [x26]
	mul	w8, w8, w27
	add	x23, x23, x8
	sub	x25, x25, x8
	add	x28, x28, w27, uxtw
	b	LBB0_43
LBB0_30:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	x25, #0
	ldr	x28, [x26, #8]
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	add	x23, x23, x21
	ldr	x8, [x26, #16]
	mov	x27, x22
	cmp	x25, x8
	b.lo	LBB0_27
LBB0_32:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_33 Depth 2
	str	x28, [sp, #16]                  ; 8-byte Folded Spill
	mov	x21, #0
	mov	x28, x27
LBB0_33:                                ;   Parent Loop BB0_32 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x28
	mov	x0, x26
	mov	x1, x28
	bl	__FAT_fat_nextCluster
	mov	x28, x0
	ldr	x8, [x26, #16]
	add	x21, x8, x21
	add	x9, x22, #1
	cmp	x0, x9
	b.ne	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	add	x8, x21, x8
	cmp	x8, x25
	b.ls	LBB0_33
LBB0_35:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	x0, x26
	mov	x1, x27
	bl	__FAT_fat_clusterToSector
	mov	x1, x0
	ldr	w8, [x26]
	udiv	x2, x21, x8
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x23
	bl	__FAT_cache_readSectors
	cbz	w0, LBB0_41
; %bb.36:                               ;   in Loop: Header=BB0_32 Depth=1
	subs	x25, x25, x21
	b.ne	LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_32 Depth=1
Lloh15:
	adrp	x8, _CLUSTER_EOF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CLUSTER_EOF@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x28, x8
	b.eq	LBB0_30
LBB0_38:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	x0, x26
	mov	x1, x28
	bl	__FAT_fat_isValidCluster
	cbz	w0, LBB0_41
; %bb.39:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x8, #0
	mov	x22, x28
	mov	x28, #0
	b	LBB0_31
LBB0_40:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x24]
	b	LBB0_47
LBB0_41:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x24]
	ldp	x21, x28, [sp, #8]              ; 16-byte Folded Reload
	b	LBB0_47
LBB0_42:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
LBB0_43:
	cbz	x25, LBB0_46
; %bb.44:
	mov	x0, x26
	mov	x1, x22
	bl	__FAT_fat_clusterToSector
	add	x2, x0, x28
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x23
	mov	w3, #0
	mov	x4, x25
	bl	__FAT_cache_readPartialSector
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	add	w8, w8, w25
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	mov	x27, x22
	mov	x25, #0
	b	LBB0_47
LBB0_45:
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x24]
LBB0_46:
	mov	x27, x22
LBB0_47:
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	stp	w9, w8, [x19, #24]
	stp	x27, x28, [x19, #32]
	ldr	x8, [x19]
	sub	x20, x20, x25
	add	x8, x8, x20
	str	x8, [x19]
	mov	x0, x21
	bl	__FAT_unlock
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EBADF,8,3                      ; @EBADF
	.comm	_CLUSTER_FREE,8,3               ; @CLUSTER_FREE
	.comm	_EOVERFLOW,8,3                  ; @EOVERFLOW
	.comm	_EIO,8,3                        ; @EIO
	.comm	_CLUSTER_EOF,8,3                ; @CLUSTER_EOF
	.comm	_LIMIT_SECTORS,8,3              ; @LIMIT_SECTORS
.subsections_via_symbols
