	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_fat_linkFreeClusterCleared ## -- Begin function _FAT_fat_linkFreeClusterCleared
	.p2align	4, 0x90
__FAT_fat_linkFreeClusterCleared:       ## @_FAT_fat_linkFreeClusterCleared
	.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	%rdi, %r12
	callq	__FAT_fat_linkFreeCluster
	movq	%rax, %r14
	movq	_CLUSTER_FREE@GOTPCREL(%rip), %rcx
	movq	_CLUSTER_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rcx), %r14
	je	LBB0_6
## %bb.1:
	cmpq	%rax, %r14
	je	LBB0_6
## %bb.2:
	movl	12(%r12), %edi
	callq	__FAT_mem_allocate
	movq	%rax, %r15
	movl	12(%r12), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	cmpq	$0, (%r12)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %r13d
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	__FAT_fat_clusterToSector
	leaq	(%rax,%rbx), %rsi
	movl	%r13d, %edi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	__FAT_cache_writeSectors
	incq	%rbx
	cmpq	(%r12), %rbx
	jl	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	__FAT_mem_free
	movq	%r14, %rax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLUSTER_FREE,8,3               ## @CLUSTER_FREE
	.comm	_CLUSTER_ERROR,8,3              ## @CLUSTER_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_fat_linkFreeClusterCleared ; -- Begin function _FAT_fat_linkFreeClusterCleared
	.p2align	2
__FAT_fat_linkFreeClusterCleared:       ; @_FAT_fat_linkFreeClusterCleared
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	__FAT_fat_linkFreeCluster
	mov	x20, x0
Lloh0:
	adrp	x8, _CLUSTER_FREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLUSTER_FREE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CLUSTER_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CLUSTER_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x9]
	cmp	x20, x8
	ccmp	x20, x0, #4, ne
	b.eq	LBB0_5
; %bb.1:
	ldr	w0, [x19, #12]
	bl	__FAT_mem_allocate
	mov	x21, x0
	ldr	w2, [x19, #12]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	bl	__FAT_fat_clusterToSector
	add	x1, x0, x23
	mov	x0, x22
	mov	w2, #1
	mov	x3, x21
	bl	__FAT_cache_writeSectors
	add	x23, x23, #1
	ldr	x8, [x19]
	cmp	x23, x8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x21
	bl	__FAT_mem_free
	mov	x0, x20
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CLUSTER_FREE,8,3               ; @CLUSTER_FREE
	.comm	_CLUSTER_ERROR,8,3              ; @CLUSTER_ERROR
.subsections_via_symbols
