	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_fat_trimChain             ## -- Begin function _FAT_fat_trimChain
	.p2align	4, 0x90
__FAT_fat_trimChain:                    ## @_FAT_fat_trimChain
	.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	%rsi, %r15
	movq	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	__FAT_fat_nextCluster
	movq	_CLUSTER_FREE@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	cmpq	%rdi, %rax
	sete	%sil
	movq	_CLUSTER_EOF@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	cmpq	%rdx, %rax
	sete	%cl
	cmpl	$1, %ebx
	je	LBB0_9
## %bb.3:
	cmpq	%rdi, %rax
	je	LBB0_9
## %bb.4:
	cmpq	%rdx, %rax
	je	LBB0_9
## %bb.5:
	addl	$-2, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	__FAT_fat_nextCluster
	movq	(%r13), %rdi
	cmpq	%rdi, %rax
	sete	%sil
	movq	(%r12), %rdx
	cmpq	%rdx, %rax
	sete	%cl
	subl	$1, %ebx
	jb	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdi, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdx, %rax
	jne	LBB0_6
LBB0_9:
	testb	%sil, %sil
	jne	LBB0_12
## %bb.10:
	testb	%cl, %cl
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	__FAT_fat_clearLinks
	movq	(%r12), %rdx
LBB0_12:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	__FAT_fat_writeFatEntry
	jmp	LBB0_13
LBB0_1:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	__FAT_fat_clearLinks
	movq	_CLUSTER_FREE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_13:
	movq	%r15, %rax
	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_EOF,8,3                ## @CLUSTER_EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_fat_trimChain             ; -- Begin function _FAT_fat_trimChain
	.p2align	2
__FAT_fat_trimChain:                    ; @_FAT_fat_trimChain
	.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, x1
	mov	x20, x0
	cbz	w2, LBB0_10
; %bb.1:
	mov	x21, x2
	mov	x0, x20
	mov	x1, x19
	bl	__FAT_fat_nextCluster
	mov	x1, x0
Lloh0:
	adrp	x23, _CLUSTER_FREE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CLUSTER_FREE@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x0, x10
	cset	w8, eq
Lloh2:
	adrp	x22, _CLUSTER_EOF@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CLUSTER_EOF@GOTPAGEOFF]
	ldr	x2, [x22]
	cmp	x0, x2
	cset	w9, eq
	cmp	w21, #1
	b.eq	LBB0_6
; %bb.2:
	cmp	x1, x10
	ccmp	x1, x2, #4, ne
	b.eq	LBB0_6
; %bb.3:
	sub	w21, w21, #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x19, x1
	mov	x0, x20
	bl	__FAT_fat_nextCluster
	mov	x1, x0
	ldr	x10, [x23]
	cmp	x0, x10
	cset	w8, eq
	ldr	x2, [x22]
	cmp	x0, x2
	cset	w9, eq
	cbz	w21, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w21, w21, #1
	cmp	x1, x10
	ccmp	x1, x2, #4, ne
	b.ne	LBB0_4
LBB0_6:
	tbnz	w8, #0, LBB0_9
; %bb.7:
	tbnz	w9, #0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	__FAT_fat_clearLinks
	ldr	x2, [x22]
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	__FAT_fat_writeFatEntry
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	__FAT_fat_clearLinks
Lloh4:
	adrp	x8, _CLUSTER_FREE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CLUSTER_FREE@GOTPAGEOFF]
Lloh6:
	ldr	x19, [x8]
LBB0_11:
	mov	x0, x19
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CLUSTER_FREE,8,3               ; @CLUSTER_FREE
	.comm	_CLUSTER_EOF,8,3                ; @CLUSTER_EOF
.subsections_via_symbols
