	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FreePageBtreeFindRightSibling
_FreePageBtreeFindRightSibling:         ## @FreePageBtreeFindRightSibling
	.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, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_FreePageBtreeFirstKey
	movl	%eax, %r13d
	movl	16(%r14), %esi
	movq	%r15, %rdi
	callq	_relptr_access
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_FreePageBtreeSearchInternal
	movl	(%rbx), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	sete	%al
	movzbl	%al, %edi
	callq	_Assert
	movq	%rbx, %rdi
	callq	_FreePageBtreeFirstKey
	movl	%eax, %r13d
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_relptr_access
	movq	%rax, %rbx
	incl	%r14d
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_9
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_5:
	movq	24(%rbx), %rcx
	movslq	%eax, %r12
	xorl	%edi, %edi
	cmpl	%r13d, (%rcx,%r12,8)
	sete	%dil
	callq	_Assert
	movq	24(%rbx), %rax
	movl	12(%rax,%r12,8), %esi
	movq	%r15, %rdi
	callq	_relptr_access
	movq	%rax, %r12
	cmpl	$1, %r14d
	je	LBB0_8
## %bb.6:
	movq	_FREE_PAGE_INTERNAL_MAGIC@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_Assert
	movq	24(%r12), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_relptr_access
	movq	%rax, %r12
	decl	%r14d
	cmpl	$1, %r14d
	ja	LBB0_7
LBB0_8:
	movq	8(%r12), %rax
	xorl	%edi, %edi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	8(%rcx), %rax
	sete	%dil
	callq	_Assert
LBB0_9:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FREE_PAGE_INTERNAL_MAGIC,8,3   ## @FREE_PAGE_INTERNAL_MAGIC
	.no_dead_strip	_FreePageBtreeFindRightSibling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FreePageBtreeFindRightSibling
_FreePageBtreeFindRightSibling:         ; @FreePageBtreeFindRightSibling
	.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	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_FreePageBtreeFirstKey
	mov	x22, x0
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_relptr_access
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.1:
	mov	w23, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_FreePageBtreeSearchInternal
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x21]
	sub	w8, w8, #1
	cmp	w0, w8
	b.lt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cset	w0, eq
	bl	_Assert
	mov	x0, x21
	bl	_FreePageBtreeFirstKey
	mov	x22, x0
	ldr	w1, [x21, #16]
	mov	x0, x20
	bl	_relptr_access
	mov	x21, x0
	add	w23, w23, #1
	cbnz	x0, LBB0_2
	b	LBB0_8
LBB0_4:
	ldr	x8, [x21, #24]
	sbfiz	x24, x0, #3, #32
	ldr	w8, [x8, x24]
	cmp	w8, w22
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x21, #24]
	add	x8, x24, x8
	ldr	w1, [x8, #12]
	mov	x0, x20
	bl	_relptr_access
	mov	x21, x0
	cmp	w23, #1
	b.eq	LBB0_7
; %bb.5:
Lloh0:
	adrp	x22, _FREE_PAGE_INTERNAL_MAGIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FREE_PAGE_INTERNAL_MAGIC@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x21, #24]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_relptr_access
	mov	x21, x0
	sub	w23, w23, #1
	cmp	w23, #1
	b.hi	LBB0_6
LBB0_7:
	ldr	x8, [x21, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FREE_PAGE_INTERNAL_MAGIC,8,3   ; @FREE_PAGE_INTERNAL_MAGIC
	.no_dead_strip	_FreePageBtreeFindRightSibling
.subsections_via_symbols
