	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_directory_removeEntry     ## -- Begin function _FAT_directory_removeEntry
	.p2align	4, 0x90
__FAT_directory_removeEntry:            ## @_FAT_directory_removeEntry
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	40(%rsi), %rax
	movq	%rax, -64(%rbp)
	movups	24(%rsi), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	(%rsi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	16(%rsi), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_DIR_ENTRY_DATA_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ebx
	movq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	__FAT_fat_clusterToSector
	addq	-72(%rbp), %rax
	movl	(%r15), %r8d
	movl	-64(%rbp), %ecx
	imull	%r8d, %ecx
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	__FAT_cache_readPartialSector
	movq	_DIR_ENTRY_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	(%r12), %ebx
	movq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	__FAT_fat_clusterToSector
	addq	-72(%rbp), %rax
	movl	(%r15), %r8d
	movl	-64(%rbp), %ecx
	imull	%r8d, %ecx
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	__FAT_cache_writePartialSector
	movq	-80(%rbp), %rax
	xorq	-112(%rbp), %rax                ## 8-byte Folded Reload
	movq	-72(%rbp), %rcx
	xorq	-104(%rbp), %rcx                ## 8-byte Folded Reload
	orq	%rax, %rcx
	setne	%bl
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -64(%rbp)
	setne	%r13b
	movq	%r12, %rdi
	leaq	-80(%rbp), %rsi
	xorl	%edx, %edx
	callq	__FAT_directory_incrementDirEntryPosition
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	orb	%r13b, %bl
	jne	LBB0_1
LBB0_3:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%al
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_5
## %bb.4:
	movb	%al, %cl
	movl	%ecx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ## @DIR_ENTRY_DATA_SIZE
	.comm	_DIR_ENTRY_FREE,4,2             ## @DIR_ENTRY_FREE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_directory_removeEntry     ; -- Begin function _FAT_directory_removeEntry
	.p2align	2
__FAT_directory_removeEntry:            ; @_FAT_directory_removeEntry
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldur	q0, [x1, #24]
	stur	q0, [x29, #-112]
	ldr	x8, [x1, #40]
	stur	x8, [x29, #-96]
	ldp	x23, x24, [x1]
	ldr	w25, [x1, #16]
Lloh3:
	adrp	x26, _DIR_ENTRY_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _DIR_ENTRY_DATA_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x27, _DIR_ENTRY_FREE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _DIR_ENTRY_FREE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19]
	ldur	x1, [x29, #-112]
	mov	x0, x19
	bl	__FAT_fat_clusterToSector
	ldur	x8, [x29, #-104]
	add	x2, x8, x0
	ldur	w8, [x29, #-96]
	ldr	w4, [x26]
	mul	w3, w4, w8
	mov	x0, x21
	mov	x1, x20
	bl	__FAT_cache_readPartialSector
	ldr	w8, [x27]
	str	w8, [x20]
	ldr	w21, [x19]
	ldur	x1, [x29, #-112]
	mov	x0, x19
	bl	__FAT_fat_clusterToSector
	ldur	x8, [x29, #-104]
	add	x2, x8, x0
	ldur	w8, [x29, #-96]
	ldr	w4, [x26]
	mul	w3, w4, w8
	mov	x0, x21
	mov	x1, x20
	bl	__FAT_cache_writePartialSector
	ldp	x8, x9, [x29, #-112]
	cmp	x8, x23
	ccmp	x9, x24, #0, eq
	ldur	w8, [x29, #-96]
	ccmp	w8, w25, #0, eq
	cset	w21, ne
	sub	x1, x29, #112
	mov	x0, x19
	mov	w2, #0
	bl	__FAT_directory_incrementDirEntryPosition
	cbz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	tbnz	w21, #0, LBB0_1
LBB0_3:
	cmp	w0, #0
	cset	w0, ne
	mov	sp, x22
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ; @DIR_ENTRY_DATA_SIZE
	.comm	_DIR_ENTRY_FREE,4,2             ; @DIR_ENTRY_FREE
.subsections_via_symbols
