	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsm_set_avail                  ## -- Begin function fsm_set_avail
	.p2align	4, 0x90
_fsm_set_avail:                         ## @fsm_set_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	%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	%rdx, %r15
	movq	_NonLeafNodesPerPage@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movslq	%esi, %r14
	addq	%r14, %rbx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_PageGetContents
	movslq	%eax, %r13
	movq	_LeafNodesPerPage@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	setg	%dil
	callq	_Assert
	movq	(%r13), %rax
	cmpq	%r15, (%rax,%rbx,8)
	jne	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	cmpq	%r15, (%rax)
	jge	LBB0_9
LBB0_2:
	movq	%r15, (%rax,%rbx,8)
	movq	_NodesPerPage@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_parentof
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_leftchild
	movl	%eax, %ecx
	movq	(%r13), %rdx
	cltq
	incl	%ecx
	movq	(%rdx,%rax,8), %rax
	cmpl	(%r14), %ecx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %rcx
	movq	(%rdx,%rcx,8), %rsi
	movq	%rax, %rdi
	callq	_Max
	movq	(%r13), %rdx
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r12d, %rbx
	cmpq	%rax, (%rdx,%rbx,8)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%rdx,%rbx,8)
	testl	%r12d, %r12d
	jg	LBB0_3
LBB0_7:
	movl	$1, %r12d
	cmpq	%r15, (%rdx)
	jge	LBB0_9
## %bb.8:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_fsm_rebuild_page
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NonLeafNodesPerPage,4,2        ## @NonLeafNodesPerPage
	.comm	_LeafNodesPerPage,4,2           ## @LeafNodesPerPage
	.comm	_NodesPerPage,4,2               ## @NodesPerPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsm_set_avail                  ; -- Begin function fsm_set_avail
	.p2align	2
_fsm_set_avail:                         ; @fsm_set_avail
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NonLeafNodesPerPage@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NonLeafNodesPerPage@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x24, x8, w1, sxtw
	bl	_PageGetContents
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
Lloh3:
	adrp	x8, _LeafNodesPerPage@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LeafNodesPerPage@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x22]
	ldr	x9, [x8, x24, lsl #3]
	cmp	x9, x20
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x8]
	cmp	x9, x20
	b.ge	LBB0_10
LBB0_2:
	str	x20, [x8, x24, lsl #3]
Lloh6:
	adrp	x23, _NodesPerPage@GOTPAGE
Lloh7:
	ldr	x23, [x23, _NodesPerPage@GOTPAGEOFF]
	mov	x21, x24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_parentof
	mov	x21, x0
	bl	_leftchild
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x9, x8, #1
	ldr	x8, [x22]
	ldr	x0, [x8, w0, sxtw #3]
	ldr	w10, [x23]
	cmp	w9, w10
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x8, x9, lsl #3]
	bl	_Max
	ldr	x8, [x22]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x8, w21, sxtw #3]
	cmp	x9, x0
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x9, w21
	str	x0, [x8, x9, lsl #3]
	cmp	w21, #0
	b.gt	LBB0_3
LBB0_7:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ge	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_fsm_rebuild_page
LBB0_9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NonLeafNodesPerPage,4,2        ; @NonLeafNodesPerPage
	.comm	_LeafNodesPerPage,4,2           ; @LeafNodesPerPage
	.comm	_NodesPerPage,4,2               ; @NodesPerPage
.subsections_via_symbols
