	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsm_rebuild_page               ## -- Begin function fsm_rebuild_page
	.p2align	4, 0x90
_fsm_rebuild_page:                      ## @fsm_rebuild_page
	.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
	callq	_PageGetContents
	movq	_NonLeafNodesPerPage@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movslq	%eax, %r15
	xorl	%r14d, %r14d
	movq	_NodesPerPage@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rax
	incq	%rax
	cmpq	$1, %rax
	jbe	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rbx
	movl	%ebx, %edi
	callq	_leftchild
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	(%r12), %edx
	cmpl	%edx, %eax
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rsi
	cltq
	movq	(%rsi,%rax,8), %rax
	cmpl	%edx, %ecx
	jl	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	jge	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdx
	movslq	%ecx, %rcx
	movq	(%rdx,%rcx,8), %rsi
	movq	%rax, %rdi
	callq	_Max
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rcx
	movl	%ebx, %edx
	cmpq	%rax, (%rcx,%rdx,8)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%rcx,%rdx,8)
	movl	$1, %r14d
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NonLeafNodesPerPage,4,2        ## @NonLeafNodesPerPage
	.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_rebuild_page               ; -- Begin function fsm_rebuild_page
	.p2align	2
_fsm_rebuild_page:                      ; @fsm_rebuild_page
	.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
	bl	_PageGetContents
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _NonLeafNodesPerPage@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NonLeafNodesPerPage@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cmp	w19, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w20, #0
	sxtw	x21, w0
Lloh3:
	adrp	x22, _NodesPerPage@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NodesPerPage@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x19, #1
	cmp	x8, #1
	b.ls	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x19, x19, #1
	mov	x0, x19
	bl	_leftchild
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x9, w0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x21]
	ldr	x0, [x10, x9, lsl #3]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, #0
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	w9, w8
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x1, [x8, x9, lsl #3]
	bl	_Max
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x8, w19, uxtw #3]
	cmp	x9, x0
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x9, x19, #0xffffffff
	str	x0, [x8, x9, lsl #3]
	mov	w20, #1
	b	LBB0_2
LBB0_10:
	mov	w20, #0
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NonLeafNodesPerPage,4,2        ; @NonLeafNodesPerPage
	.comm	_NodesPerPage,4,2               ; @NodesPerPage
.subsections_via_symbols
