	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FreePageManagerPutInternal
_FreePageManagerPutInternal:            ## @FreePageManagerPutInternal
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_fpm_segment_base
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	testq	%r12, %r12
	setg	%dil
	callq	_Assert
	cmpl	$0, (%rbx)
	je	LBB0_3
LBB0_1:
	leaq	-120(%rbp), %rdx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_FreePageBtreeSearch
	xorl	%edi, %edi
	cmpl	$0, -96(%rbp)
	sete	%dil
	callq	_Assert
	movslq	-120(%rbp), %rcx
	movq	-104(%rbp), %r13
	testq	%rcx, %rcx
	jle	LBB0_6
## %bb.2:
	leal	-1(%rcx), %ebx
	shlq	$4, %rbx
	addq	24(%r13), %rbx
	jmp	LBB0_7
LBB0_3:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	16(%rbx), %rsi
	leaq	(%rsi,%rax), %rcx
	cmpq	%r14, %rcx
	jne	LBB0_26
## %bb.5:
	addq	%r12, %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_FreePagePopSpanLeader
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	movq	%rbx, %rdi
	jmp	LBB0_29
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	cmpl	(%r13), %ecx
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	movq	%r14, %r15
	jge	LBB0_9
## %bb.8:
	movq	%rcx, %r14
	shlq	$4, %r14
	addq	24(%r13), %r14
	testq	%rbx, %rbx
	jne	LBB0_13
	jmp	LBB0_14
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_FreePageBtreeFindRightSibling
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, %r13
	movq	24(%rax), %r14
	xorl	%ecx, %ecx
	testq	%rbx, %rbx
	jne	LBB0_13
	jmp	LBB0_14
LBB0_11:
	movq	%r14, 16(%rbx)
	jmp	LBB0_28
LBB0_12:
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_13:
	movq	8(%rbx), %rax
	addq	(%rbx), %rax
	cmpq	%r15, %rax
	jge	LBB0_19
LBB0_14:
	testq	%r14, %r14
	je	LBB0_16
## %bb.15:
	leaq	(%r12,%r15), %rax
	cmpq	(%r14), %rax
	jge	LBB0_24
LBB0_16:
	movq	-112(%rbp), %rbx
	testq	%rbx, %rbx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r15, %r14
	jle	LBB0_52
## %bb.17:
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_31
LBB0_39:
	xorl	%r12d, %r12d
	jmp	LBB0_58
LBB0_19:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	sete	%al
	movzbl	%al, %edi
	callq	_Assert
	movq	(%rbx), %rsi
	addq	%r15, %r12
	movq	%r12, %rax
	subq	%rsi, %rax
	movq	%rax, 8(%rbx)
	movq	%r12, %rax
	movb	$1, %r12b
	testq	%r14, %r14
	je	LBB0_22
## %bb.20:
	cmpq	(%r14), %rax
	jl	LBB0_22
## %bb.21:
	sete	%al
	movzbl	%al, %edi
	callq	_Assert
	movq	(%r14), %rsi
	movq	%rsi, %rax
	subq	(%rbx), %rax
	addq	8(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_FreePagePopSpanLeader
	movq	(%rbx), %rsi
	xorl	%r12d, %r12d
LBB0_22:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_FreePagePopSpanLeader
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	movq	%r14, %rdi
	callq	_FreePagePushSpanLeader
	movq	8(%rbx), %rbx
	testb	%r12b, %r12b
	je	LBB0_30
## %bb.23:
	movq	%rbx, %r12
	jmp	LBB0_58
LBB0_24:
	sete	%al
	movzbl	%al, %edi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_Assert
	movq	(%r14), %rsi
	movq	%rsi, %r12
	movq	%r15, %rbx
	subq	%r15, %r12
	addq	8(%r14), %r12
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_FreePagePopSpanLeader
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_FreePagePushSpanLeader
	movq	%rbx, (%r14)
	movq	%r12, 8(%r14)
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_58
## %bb.25:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_FreePageBtreeAdjustAncestorKeys
	movq	8(%r14), %r12
	jmp	LBB0_58
LBB0_26:
	leaq	(%r12,%r14), %rax
	cmpq	%rsi, %rax
	jne	LBB0_37
## %bb.27:
	movq	%rbx, %rdi
	callq	_FreePagePopSpanLeader
	movq	%r14, 16(%rbx)
	addq	8(%rbx), %r12
LBB0_28:
	movq	%r12, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
LBB0_29:
	callq	_FreePagePushSpanLeader
	movq	8(%rbx), %r12
	jmp	LBB0_58
LBB0_30:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_FreePageBtreeRemove
	movq	%rbx, %r12
	jmp	LBB0_58
LBB0_31:
	subq	24(%r13), %rbx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_41
## %bb.32:
	testq	%rbx, %rbx
	jle	LBB0_40
## %bb.33:
	leaq	-136(%rbp), %r15
	movq	_FATAL@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r14
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_35 Depth=1
	movq	-136(%rbp), %rsi
	movq	%r13, %rdi
	callq	_FreePageBtreeRecycle
	decq	%rbx
	je	LBB0_40
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_FreePageManagerGetInternal
	testq	%rax, %rax
	jne	LBB0_34
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_elog
	jmp	LBB0_34
LBB0_37:
	movl	36(%rbx), %edi
	callq	_relptr_is_null
	testl	%eax, %eax
	je	LBB0_59
## %bb.38:
	testl	%r15d, %r15d
	jne	LBB0_39
## %bb.60:
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	leaq	-120(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_FreePageManagerGetInternal
	testq	%rax, %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_62
## %bb.61:
	movq	-120(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_fpm_page_to_pointer
	movq	%rax, %r15
	jmp	LBB0_63
LBB0_40:
	leaq	-120(%rbp), %rdx
	movq	%r13, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_FreePageBtreeSearch
	movq	-112(%rbp), %rax
	xorl	%edi, %edi
	cmpq	24(%r13), %rax
	setle	%dil
	callq	_Assert
	cmpq	$0, -112(%rbp)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_52
LBB0_41:
	movq	-104(%rbp), %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_relptr_access
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_FreePageBtreeSplitPage
	testq	%r15, %r15
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	je	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	16(%rax), %rcx
	cmpq	(%rcx), %r14
	movq	%rax, %r12
	cmovlq	%r13, %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_FreePageBtreeSearchInternal
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_FreePageBtreeInsertInternal
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_relptr_store
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_48
## %bb.44:                              ##   in Loop: Header=BB0_42 Depth=1
	cmpq	%r13, %r12
	je	LBB0_47
	jmp	LBB0_48
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	24(%rax), %rcx
	cmpq	(%rcx), %r14
	movq	%rax, %rbx
	cmovlq	%r13, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_FreePageBtreeSearchLeaf
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_FreePageBtreeInsertLeaf
	testq	%r15, %r15
	jne	LBB0_48
## %bb.46:                              ##   in Loop: Header=BB0_42 Depth=1
	cmpq	%r13, %rbx
	jne	LBB0_48
LBB0_47:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_FreePageBtreeAdjustAncestorKeys
LBB0_48:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_55
## %bb.49:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	16(%rcx), %rax
	movq	(%rax), %r14
	movslq	(%rdi), %rax
	movq	%rdi, %r13
	movq	%rcx, %r15
	movq	_FPM_ITEMS_PER_INTERNAL_PAGE@GOTPCREL(%rip), %rdx
	cmpq	%rax, (%rdx)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_42
## %bb.50:
	movq	%rcx, %r13
	movq	%rdi, %r15
	movq	%r14, %rsi
	callq	_FreePageBtreeSearchInternal
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	movq	%r14, %rcx
	movq	%r15, %r14
	movq	%r13, %r8
	callq	_FreePageBtreeInsertInternal
	movl	4(%r13), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_relptr_store
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_56
## %bb.51:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_FreePageBtreeAdjustAncestorKeys
	jmp	LBB0_56
LBB0_52:
	movq	-104(%rbp), %rax
	movslq	(%rax), %rax
	movq	_FPM_ITEMS_PER_LEAF_PAGE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	%rax, (%rcx)
	setg	%dil
	callq	_Assert
	movq	-104(%rbp), %rdi
	movslq	-120(%rbp), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_FreePageBtreeInsertLeaf
	cmpl	$0, -120(%rbp)
	jne	LBB0_54
## %bb.53:
	movq	-104(%rbp), %rsi
	movq	%r13, %rdi
	callq	_FreePageBtreeAdjustAncestorKeys
LBB0_54:
	movq	%r13, %rdi
	movq	%r14, %rsi
	jmp	LBB0_57
LBB0_55:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_FreePageBtreeGetRecycled
	movq	%rax, %r14
	movq	_FREE_PAGE_INTERNAL_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	$2, (%r14)
	movl	4(%r14), %esi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_relptr_store
	movq	%r13, %rdi
	callq	_FreePageBtreeFirstKey
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	movl	8(%rcx), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_relptr_store
	movl	4(%r13), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_relptr_store
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_FreePageBtreeFirstKey
	movq	16(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	24(%rcx), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_relptr_store
	movl	4(%rbx), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_relptr_store
	movl	32(%r15), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_relptr_store
	incl	(%r15)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_56:
	movq	%r15, %rdi
	movq	%rbx, %rsi
LBB0_57:
	movq	%r12, %rdx
	callq	_FreePagePushSpanLeader
LBB0_58:
	movq	%r12, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_59:
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_FreePageBtreeGetRecycled
	movq	%rax, %r15
	jmp	LBB0_63
LBB0_62:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
                                        ## implicit-def: $r15
LBB0_63:
	leaq	8(%rbx), %r14
	movq	_FREE_PAGE_LEAF_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movl	$1, (%r15)
	movl	4(%r15), %esi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_relptr_store
	movq	24(%r15), %rax
	movdqu	8(%rbx), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, (%rax)
	movl	32(%rbx), %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_relptr_store
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, (%r14)
	movl	$1, (%rbx)
	movq	24(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_65
## %bb.64:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_1
LBB0_65:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, (%rax)
	movq	%r12, 8(%rax)
	movq	%rbx, %rdi
	jmp	LBB0_57
	.cfi_endproc
                                        ## -- End function
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"free page manager btree is corrupt"

	.comm	_FREE_PAGE_LEAF_MAGIC,4,2       ## @FREE_PAGE_LEAF_MAGIC
	.comm	_FREE_PAGE_INTERNAL_MAGIC,4,2   ## @FREE_PAGE_INTERNAL_MAGIC
	.comm	_FPM_ITEMS_PER_INTERNAL_PAGE,8,3 ## @FPM_ITEMS_PER_INTERNAL_PAGE
	.comm	_FPM_ITEMS_PER_LEAF_PAGE,8,3    ## @FPM_ITEMS_PER_LEAF_PAGE
	.no_dead_strip	_FreePageManagerPutInternal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FreePageManagerPutInternal
_FreePageManagerPutInternal:            ; @FreePageManagerPutInternal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x23, x3
	mov	x20, x2
	mov	x27, x1
	mov	x19, x0
	bl	_fpm_segment_base
	mov	x22, x0
	cmp	x20, #0
	cset	w0, gt
	bl	_Assert
	ldr	w8, [x19]
	cbz	w8, LBB0_3
LBB0_1:
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x27
	bl	_FreePageBtreeSearch
	ldr	w8, [sp, #40]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldrsw	x25, [sp, #16]
	ldr	x24, [sp, #32]
	cmp	w25, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	x8, [x24, #24]
	sub	w9, w25, #1
	add	x21, x8, w9, uxtw #4
	b	LBB0_7
LBB0_3:
	mov	x21, x19
	ldr	x8, [x21, #8]!
	cbz	x8, LBB0_11
; %bb.4:
	ldr	x1, [x19, #16]
	add	x9, x1, x8
	cmp	x9, x27
	b.ne	LBB0_24
; %bb.5:
	add	x8, x8, x20
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_FreePagePopSpanLeader
	ldp	x2, x1, [x19, #8]
	mov	x0, x19
	b	LBB0_26
LBB0_6:
	mov	x21, #0
LBB0_7:
	ldr	w8, [x24]
	cmp	w25, w8
	b.ge	LBB0_9
; %bb.8:
	ldr	x8, [x24, #24]
	add	x26, x8, x25, lsl #4
	cbnz	x21, LBB0_13
	b	LBB0_14
LBB0_9:
	mov	x0, x22
	mov	x1, x24
	bl	_FreePageBtreeFindRightSibling
	mov	x24, x0
	mov	x25, #0
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x26, [x24, #24]
	cbnz	x21, LBB0_13
	b	LBB0_14
LBB0_11:
	stp	x20, x27, [x19, #8]
	mov	x0, x19
	mov	x1, x27
	mov	x2, x20
	b	LBB0_26
LBB0_12:
	mov	x26, #0
	cbz	x21, LBB0_14
LBB0_13:
	ldp	x8, x9, [x21]
	add	x8, x9, x8
	cmp	x8, x27
	b.ge	LBB0_19
LBB0_14:
	cbz	x26, LBB0_16
; %bb.15:
	ldr	x8, [x26]
	add	x9, x20, x27
	cmp	x9, x8
	b.ge	LBB0_22
LBB0_16:
	ldr	x8, [sp, #24]
	cmp	x8, #1
	b.lt	LBB0_48
; %bb.17:
	cbz	w23, LBB0_27
LBB0_18:
	mov	x20, #0
	b	LBB0_60
LBB0_19:
	cset	w0, eq
	bl	_Assert
	ldr	x1, [x21]
	add	x8, x20, x27
	sub	x9, x8, x1
	str	x9, [x21, #8]
	cbz	x26, LBB0_21
; %bb.20:
	ldr	x9, [x26]
	cmp	x8, x9
	b.ge	LBB0_33
LBB0_21:
	mov	w22, #1
	b	LBB0_34
LBB0_22:
	cset	w0, eq
	bl	_Assert
	ldp	x1, x8, [x26]
	sub	x9, x1, x27
	add	x20, x9, x8
	mov	x0, x19
	bl	_FreePagePopSpanLeader
	mov	x0, x19
	mov	x1, x27
	mov	x2, x20
	bl	_FreePagePushSpanLeader
	stp	x27, x20, [x26]
	cbnz	x25, LBB0_60
; %bb.23:
	mov	x0, x19
	mov	x1, x24
	bl	_FreePageBtreeAdjustAncestorKeys
	ldr	x20, [x26, #8]
	b	LBB0_60
LBB0_24:
	add	x8, x20, x27
	cmp	x8, x1
	b.ne	LBB0_36
; %bb.25:
	mov	x0, x19
	bl	_FreePagePopSpanLeader
	ldr	x8, [x19, #8]
	add	x2, x8, x20
	stp	x2, x27, [x19, #8]
	mov	x0, x19
	mov	x1, x27
LBB0_26:
	bl	_FreePagePushSpanLeader
	ldr	x20, [x19, #8]
	b	LBB0_60
LBB0_27:
	ldr	x9, [x19, #24]
	subs	x21, x8, x9
	b.le	LBB0_41
; %bb.28:
	cmp	x21, #1
	b.lt	LBB0_40
; %bb.29:
Lloh0:
	adrp	x24, _FATAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FATAL@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_FreePageBtreeRecycle
	subs	x21, x21, #1
	b.eq	LBB0_40
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #1
	bl	_FreePageManagerGetInternal
	cbnz	x0, LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w0, [x24]
	mov	x1, x23
	bl	_elog
	b	LBB0_30
LBB0_33:
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x21]
	ldp	x1, x9, [x26]
	sub	x8, x1, x8
	add	x8, x8, x9
	str	x8, [x21, #8]
	mov	x0, x19
	bl	_FreePagePopSpanLeader
	mov	w22, #0
	ldr	x1, [x21]
LBB0_34:
	mov	x0, x19
	bl	_FreePagePopSpanLeader
	ldp	x1, x2, [x21]
	mov	x0, x19
	bl	_FreePagePushSpanLeader
	ldr	x20, [x21, #8]
	tbnz	w22, #0, LBB0_60
; %bb.35:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_FreePageBtreeRemove
	b	LBB0_60
LBB0_36:
	ldr	w0, [x19, #36]
	bl	_relptr_is_null
	cbz	w0, LBB0_54
; %bb.37:
	cbnz	w23, LBB0_18
; %bb.38:
	add	x2, sp, #16
	mov	x0, x19
	mov	w1, #1
	bl	_FreePageManagerGetInternal
	cbz	x0, LBB0_55
; %bb.39:
	ldr	x1, [sp, #16]
	mov	x0, x22
	bl	_fpm_page_to_pointer
	mov	x24, x0
	b	LBB0_56
LBB0_40:
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x27
	bl	_FreePageBtreeSearch
	ldr	x8, [sp, #24]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	cset	w0, le
	bl	_Assert
	ldr	x8, [sp, #24]
	cmp	x8, #1
	b.lt	LBB0_48
LBB0_41:
	mov	x26, x27
	mov	x27, #0
	ldr	x24, [sp, #32]
	str	x26, [sp]                       ; 8-byte Folded Spill
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24, #4]
	mov	x0, x22
	bl	_relptr_access
	mov	x25, x0
	mov	x0, x19
	mov	x1, x24
	bl	_FreePageBtreeSplitPage
	mov	x23, x0
	cbz	x27, LBB0_47
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=1
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	cmp	x26, x8
	csel	x28, x24, x23, lt
	mov	x0, x28
	mov	x1, x26
	bl	_FreePageBtreeSearchInternal
	mov	x21, x0
	mov	x0, x22
	mov	x1, x28
	mov	x2, x21
	mov	x3, x26
	mov	x4, x27
	bl	_FreePageBtreeInsertInternal
	ldr	w1, [x27, #4]
	mov	x0, x22
	mov	x2, x28
	bl	_relptr_store
	cmp	x21, #0
	ccmp	x28, x24, #0, eq
	b.ne	LBB0_45
LBB0_44:                                ;   in Loop: Header=BB0_42 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_FreePageBtreeAdjustAncestorKeys
LBB0_45:                                ;   in Loop: Header=BB0_42 Depth=1
	cbz	x25, LBB0_50
; %bb.46:                               ;   in Loop: Header=BB0_42 Depth=1
	ldr	x8, [x23, #16]
	ldr	x26, [x8]
	ldrsw	x8, [x25]
Lloh4:
	adrp	x9, _FPM_ITEMS_PER_INTERNAL_PAGE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FPM_ITEMS_PER_INTERNAL_PAGE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	mov	x24, x25
	mov	x27, x23
	cmp	x9, x8
	b.le	LBB0_42
	b	LBB0_51
LBB0_47:                                ;   in Loop: Header=BB0_42 Depth=1
	ldr	x8, [x23, #24]
	ldr	x8, [x8]
	cmp	x26, x8
	csel	x27, x24, x23, lt
	mov	x0, x27
	mov	x1, x26
	bl	_FreePageBtreeSearchLeaf
	mov	x28, x0
	mov	x0, x27
	mov	x1, x28
	mov	x2, x26
	mov	x3, x20
	bl	_FreePageBtreeInsertLeaf
	cmp	x28, #0
	ccmp	x27, x24, #0, eq
	b.eq	LBB0_44
	b	LBB0_45
LBB0_48:
	ldr	x8, [sp, #32]
	ldrsw	x8, [x8]
Lloh7:
	adrp	x9, _FPM_ITEMS_PER_LEAF_PAGE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FPM_ITEMS_PER_LEAF_PAGE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	cset	w0, gt
	bl	_Assert
	ldr	x0, [sp, #32]
	ldrsw	x1, [sp, #16]
	mov	x2, x27
	mov	x3, x20
	bl	_FreePageBtreeInsertLeaf
	ldr	w8, [sp, #16]
	cbnz	w8, LBB0_58
; %bb.49:
	ldr	x1, [sp, #32]
	mov	x0, x19
	bl	_FreePageBtreeAdjustAncestorKeys
	b	LBB0_58
LBB0_50:
	mov	x0, x19
	bl	_FreePageBtreeGetRecycled
	mov	x25, x0
Lloh10:
	adrp	x8, _FREE_PAGE_INTERNAL_MAGIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FREE_PAGE_INTERNAL_MAGIC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	mov	w8, #2
	str	w8, [x0]
	ldr	w1, [x0, #4]
	mov	x0, x22
	mov	x2, #0
	bl	_relptr_store
	mov	x0, x24
	bl	_FreePageBtreeFirstKey
	ldr	x8, [x25, #16]
	str	x0, [x8]
	ldr	w1, [x8, #8]
	mov	x0, x22
	mov	x2, x24
	bl	_relptr_store
	ldr	w1, [x24, #4]
	mov	x0, x22
	mov	x2, x25
	bl	_relptr_store
	mov	x0, x23
	bl	_FreePageBtreeFirstKey
	ldr	x8, [x25, #16]
	str	x0, [x8, #16]
	ldr	w1, [x8, #24]
	mov	x0, x22
	mov	x2, x23
	bl	_relptr_store
	ldr	w1, [x23, #4]
	mov	x0, x22
	mov	x2, x25
	bl	_relptr_store
	ldr	w1, [x19, #32]
	mov	x0, x22
	mov	x2, x25
	bl	_relptr_store
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	x22, [sp]                       ; 8-byte Folded Reload
	b	LBB0_53
LBB0_51:
	mov	x0, x25
	mov	x1, x26
	bl	_FreePageBtreeSearchInternal
	mov	x21, x0
	mov	x0, x22
	mov	x1, x25
	mov	x2, x21
	mov	x3, x26
	mov	x4, x23
	bl	_FreePageBtreeInsertInternal
	ldr	w1, [x23, #4]
	mov	x0, x22
	mov	x2, x25
	bl	_relptr_store
	ldr	x22, [sp]                       ; 8-byte Folded Reload
	cbnz	x21, LBB0_53
; %bb.52:
	mov	x0, x19
	mov	x1, x25
	bl	_FreePageBtreeAdjustAncestorKeys
LBB0_53:
	mov	x0, x19
	mov	x1, x22
	b	LBB0_59
LBB0_54:
	mov	x0, x19
	bl	_FreePageBtreeGetRecycled
	mov	x24, x0
	b	LBB0_56
LBB0_55:
Lloh13:
	adrp	x8, _FATAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
                                        ; implicit-def: $x24
LBB0_56:
Lloh18:
	adrp	x8, _FREE_PAGE_LEAF_MAGIC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FREE_PAGE_LEAF_MAGIC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x24, #8]
	mov	w25, #1
	str	w25, [x24]
	ldr	w1, [x24, #4]
	mov	x0, x22
	mov	x2, #0
	bl	_relptr_store
	ldr	x8, [x24, #24]
	ldur	q0, [x19, #8]
	ext.16b	v0, v0, v0, #8
	str	q0, [x8]
	ldr	w1, [x19, #32]
	mov	x0, x22
	mov	x2, x24
	bl	_relptr_store
	stp	xzr, xzr, [x21]
	str	w25, [x19]
	ldr	x8, [x24, #24]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_1
; %bb.57:
	stp	x27, x20, [x8]
LBB0_58:
	mov	x0, x19
	mov	x1, x27
LBB0_59:
	mov	x2, x20
	bl	_FreePagePushSpanLeader
LBB0_60:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"free page manager btree is corrupt"

	.comm	_FREE_PAGE_LEAF_MAGIC,4,2       ; @FREE_PAGE_LEAF_MAGIC
	.comm	_FREE_PAGE_INTERNAL_MAGIC,4,2   ; @FREE_PAGE_INTERNAL_MAGIC
	.comm	_FPM_ITEMS_PER_INTERNAL_PAGE,8,3 ; @FPM_ITEMS_PER_INTERNAL_PAGE
	.comm	_FPM_ITEMS_PER_LEAF_PAGE,8,3    ; @FPM_ITEMS_PER_LEAF_PAGE
	.no_dead_strip	_FreePageManagerPutInternal
.subsections_via_symbols
