	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsm_truncate_avail             ## -- Begin function fsm_truncate_avail
	.p2align	4, 0x90
_fsm_truncate_avail:                    ## @fsm_truncate_avail
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	callq	_PageGetContents
	testl	%ebx, %ebx
	setns	%cl
	movq	_LeafNodesPerPage@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	movl	%eax, %r15d
	setg	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_Assert
	movq	_NonLeafNodesPerPage@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%ebx, %rdx
	addq	%rax, %rdx
	movq	_NodesPerPage@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	%rdx, (%rax)
	jle	LBB0_6
## %bb.1:
	movslq	%r15d, %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rdx,8), %rdx
	xorl	%ebx, %ebx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx)
	cmovnel	%esi, %ebx
	movq	$0, (%rdx)
	addq	$8, %rdx
	movq	(%rax), %rdi
	leaq	(%rcx,%rdi,8), %rdi
	cmpq	%rdi, %rdx
	jb	LBB0_2
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.5:
	movl	%r14d, %edi
	callq	_fsm_rebuild_page
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LeafNodesPerPage,4,2           ## @LeafNodesPerPage
	.comm	_NonLeafNodesPerPage,4,2        ## @NonLeafNodesPerPage
	.comm	_NodesPerPage,8,3               ## @NodesPerPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsm_truncate_avail             ; -- Begin function fsm_truncate_avail
	.p2align	2
_fsm_truncate_avail:                    ; @fsm_truncate_avail
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	bl	_PageGetContents
	mov	x21, x0
	cmp	w20, #0
Lloh0:
	adrp	x8, _LeafNodesPerPage@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LeafNodesPerPage@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w20, #4, ge
	cset	w0, gt
	bl	_Assert
Lloh3:
	adrp	x8, _NonLeafNodesPerPage@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NonLeafNodesPerPage@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	add	x10, x8, w20, sxtw
Lloh6:
	adrp	x8, _NodesPerPage@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NodesPerPage@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, x10
	b.le	LBB0_5
; %bb.1:
	mov	w20, #0
	sxtw	x9, w21
	ldr	x9, [x9]
	add	x10, x9, x10, lsl #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, #0
	csinc	w20, w20, wzr, eq
	str	xzr, [x10], #8
	ldr	x11, [x8]
	add	x11, x9, x11, lsl #3
	cmp	x10, x11
	b.lo	LBB0_2
; %bb.3:
	cbz	w20, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_fsm_rebuild_page
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LeafNodesPerPage,4,2           ; @LeafNodesPerPage
	.comm	_NonLeafNodesPerPage,4,2        ; @NonLeafNodesPerPage
	.comm	_NodesPerPage,8,3               ; @NodesPerPage
.subsections_via_symbols
