	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_fat_clearLinks            ## -- Begin function _FAT_fat_clearLinks
	.p2align	4, 0x90
__FAT_fat_clearLinks:                   ## @_FAT_fat_clearLinks
	.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	_CLUSTER_FIRST@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	jg	LBB0_13
## %bb.1:
	movl	%esi, %r12d
	movq	%rdi, %r15
	cmpl	%esi, 16(%rdi)
	jl	LBB0_13
## %bb.2:
	cmpl	%r12d, 12(%r15)
	jle	LBB0_4
## %bb.3:
	movl	%r12d, 12(%r15)
LBB0_4:
	movq	_CLUSTER_EOF@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	%r12d, (%rcx)
	je	LBB0_13
## %bb.5:
	movq	_CLUSTER_FREE@GOTPCREL(%rip), %r14
	cmpl	%r12d, (%r14)
	je	LBB0_13
## %bb.6:
	movq	_CLUSTER_ERROR@GOTPCREL(%rip), %r13
	cmpl	%r12d, (%r13)
	je	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	__FAT_fat_nextCluster
	movl	%eax, %r12d
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	__FAT_fat_writeFatEntry
	movl	(%r15), %eax
	movl	8(%r15), %ecx
	cltd
	idivl	4(%r15)
	cmpl	%eax, %ecx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%ecx
	movl	%ecx, 8(%r15)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_CLUSTER_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	(%r14), %r12d
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	(%r13), %r12d
	jne	LBB0_7
LBB0_12:
	movl	$1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLUSTER_FIRST,4,2              ## @CLUSTER_FIRST
	.comm	_CLUSTER_EOF,4,2                ## @CLUSTER_EOF
	.comm	_CLUSTER_FREE,4,2               ## @CLUSTER_FREE
	.comm	_CLUSTER_ERROR,4,2              ## @CLUSTER_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_fat_clearLinks            ; -- Begin function _FAT_fat_clearLinks
	.p2align	2
__FAT_fat_clearLinks:                   ; @_FAT_fat_clearLinks
	.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
Lloh0:
	adrp	x8, _CLUSTER_FIRST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLUSTER_FIRST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.gt	LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #16]
	cmp	w8, w1
	b.ge	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	ldr	w8, [x19, #12]
	cmp	w8, w20
	b.le	LBB0_5
; %bb.4:
	str	w20, [x19, #12]
LBB0_5:
Lloh3:
	adrp	x22, _CLUSTER_EOF@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CLUSTER_EOF@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x23, _CLUSTER_FREE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CLUSTER_FREE@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh7:
	adrp	x24, _CLUSTER_ERROR@GOTPAGE
Lloh8:
	ldr	x24, [x24, _CLUSTER_ERROR@GOTPAGEOFF]
	ldr	w10, [x24]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	ccmp	w10, w20, #4, ne
	b.ne	LBB0_9
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x23]
	ldr	w10, [x24]
	cmp	w21, w8
	ccmp	w21, w9, #4, ne
	ccmp	w21, w10, #4, ne
	mov	x20, x21
	b.eq	LBB0_6
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	__FAT_fat_nextCluster
	mov	x21, x0
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	__FAT_fat_writeFatEntry
	ldp	w10, w8, [x19, #4]
	ldr	w9, [x19]
	sdiv	w9, w9, w10
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CLUSTER_FIRST,4,2              ; @CLUSTER_FIRST
	.comm	_CLUSTER_EOF,4,2                ; @CLUSTER_EOF
	.comm	_CLUSTER_FREE,4,2               ; @CLUSTER_FREE
	.comm	_CLUSTER_ERROR,4,2              ; @CLUSTER_ERROR
.subsections_via_symbols
