	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tryclear                       ## -- Begin function tryclear
	.p2align	4, 0x90
_tryclear:                              ## @tryclear
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_ask
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_clearchain
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_ask
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_CLUST_FIRST@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%r14, %rcx
	jbe	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movq	_FSERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	(%r12), %rdx
	xorl	%eax, %eax
	movq	%r14, %rsi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rsi
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	shlq	$4, %rsi
	movq	(%rbx,%rsi), %rsi
	incq	%rax
	cmpq	%rcx, %rsi
	jae	LBB0_7
LBB0_9:
	movq	_CLUST_EOF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r15)
	shlq	$4, %r14
	movq	%rax, 8(%rbx,%r14)
LBB0_10:
	movq	_FSFATMOD@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Clear chain starting at %u"

	.comm	_FSFATMOD,4,2                   ## @FSFATMOD
L_.str.1:                               ## @.str.1
	.asciz	"Truncate"

	.comm	_CLUST_FIRST,8,3                ## @CLUST_FIRST
	.comm	_CLUST_EOF,8,3                  ## @CLUST_EOF
	.comm	_FSERROR,4,2                    ## @FSERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tryclear                       ; -- Begin function tryclear
	.p2align	2
_tryclear:                              ; @tryclear
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	str	x2, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_ask
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_clearchain
	b	LBB0_10
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ask
	cbz	x0, LBB0_5
; %bb.3:
Lloh4:
	adrp	x8, _CLUST_FIRST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CLUST_FIRST@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x8]
	cmp	x9, x19
	b.ls	LBB0_6
; %bb.4:
	mov	x8, #0
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x8, _FSERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FSERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	mov	x8, #0
	ldr	x10, [x22]
	mov	x11, x19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x11, x10
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	x11, x11, #4
	ldr	x11, [x20, x11]
	add	x8, x8, #1
	cmp	x11, x9
	b.hs	LBB0_7
LBB0_9:
Lloh9:
	adrp	x9, _CLUST_EOF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CLUST_EOF@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	x9, [x21]
	add	x9, x20, x19, lsl #4
	str	x8, [x9, #8]
LBB0_10:
Lloh12:
	adrp	x8, _FSFATMOD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FSFATMOD@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Clear chain starting at %u"

	.comm	_FSFATMOD,4,2                   ; @FSFATMOD
l_.str.1:                               ; @.str.1
	.asciz	"Truncate"

	.comm	_CLUST_FIRST,8,3                ; @CLUST_FIRST
	.comm	_CLUST_EOF,8,3                  ; @CLUST_EOF
	.comm	_FSERROR,4,2                    ; @FSERROR
.subsections_via_symbols
