	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FreePageBtreeAdjustAncestorKeys
_FreePageBtreeAdjustAncestorKeys:       ## @FreePageBtreeAdjustAncestorKeys
	.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	%rsi, %r12
	callq	_fpm_segment_base
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpq	$0, 16(%r12)
	setg	%dil
	callq	_Assert
	movq	24(%r12), %rax
	movq	_FREE_PAGE_LEAF_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	16(%r12), %rax
	movq	_FPM_ITEMS_PER_LEAF_PAGE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setle	%dil
	callq	_Assert
	movq	8(%r12), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_FREE_PAGE_INTERNAL_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	16(%r12), %rax
	movq	_FPM_ITEMS_PER_INTERNAL_PAGE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setle	%dil
	callq	_Assert
	movq	(%r12), %rax
LBB0_3:
	movq	(%rax), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	sete	%al
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%al, %edi
	callq	_Assert
	decq	%r13
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movq	%r13, %rcx
	shlq	$4, %rcx
	movq	%r15, (%rax,%rcx)
	movq	%rbx, %r12
	testq	%r13, %r13
	jne	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r12), %esi
	movq	%r14, %rdi
	callq	_relptr_access
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_FreePageBtreeSearchInternal
	movq	%rax, %r13
	cmpq	16(%rbx), %rax
	jae	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movq	%r13, %rcx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %esi
	movq	%r14, %rdi
	callq	_relptr_access
	cmpq	%r12, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r13, %r13
	setne	%al
	jmp	LBB0_9
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FREE_PAGE_LEAF_MAGIC,8,3       ## @FREE_PAGE_LEAF_MAGIC
	.comm	_FPM_ITEMS_PER_LEAF_PAGE,8,3    ## @FPM_ITEMS_PER_LEAF_PAGE
	.comm	_FREE_PAGE_INTERNAL_MAGIC,8,3   ## @FREE_PAGE_INTERNAL_MAGIC
	.comm	_FPM_ITEMS_PER_INTERNAL_PAGE,8,3 ## @FPM_ITEMS_PER_INTERNAL_PAGE
	.no_dead_strip	_FreePageBtreeAdjustAncestorKeys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FreePageBtreeAdjustAncestorKeys
_FreePageBtreeAdjustAncestorKeys:       ; @FreePageBtreeAdjustAncestorKeys
	.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, x1
	bl	_fpm_segment_base
	mov	x19, x0
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x20, #24]
Lloh0:
	adrp	x9, _FREE_PAGE_LEAF_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FREE_PAGE_LEAF_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x9, _FPM_ITEMS_PER_LEAF_PAGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FPM_ITEMS_PER_LEAF_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, le
	bl	_Assert
	ldr	x8, [x20, #8]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x9, _FREE_PAGE_INTERNAL_MAGIC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FREE_PAGE_INTERNAL_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20, #16]
Lloh9:
	adrp	x9, _FPM_ITEMS_PER_INTERNAL_PAGE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FPM_ITEMS_PER_INTERNAL_PAGE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, le
	bl	_Assert
	ldr	x8, [x20]
LBB0_3:
	ldr	x21, [x8]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	cset	w0, eq
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_Assert
	sub	x23, x23, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	lsl	x9, x23, #4
	str	x21, [x8, x9]
	mov	x20, x22
	cbnz	x23, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #32]
	mov	x0, x19
	bl	_relptr_access
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	mov	x1, x21
	bl	_FreePageBtreeSearchInternal
	mov	x23, x0
	ldr	x8, [x22, #16]
	cmp	x0, x8
	b.hs	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	add	x8, x8, x23, lsl #4
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_relptr_access
	cmp	x0, x20
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x23, #0
	cset	w0, ne
	b	LBB0_5
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FREE_PAGE_LEAF_MAGIC,8,3       ; @FREE_PAGE_LEAF_MAGIC
	.comm	_FPM_ITEMS_PER_LEAF_PAGE,8,3    ; @FPM_ITEMS_PER_LEAF_PAGE
	.comm	_FREE_PAGE_INTERNAL_MAGIC,8,3   ; @FREE_PAGE_INTERNAL_MAGIC
	.comm	_FPM_ITEMS_PER_INTERNAL_PAGE,8,3 ; @FPM_ITEMS_PER_INTERNAL_PAGE
	.no_dead_strip	_FreePageBtreeAdjustAncestorKeys
.subsections_via_symbols
