	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FreePageBtreeSplitPage
_FreePageBtreeSplitPage:                ## @FreePageBtreeSplitPage
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_FreePageBtreeGetRecycled
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	movl	8(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 8(%r15)
	movl	12(%r15), %edi
	movl	12(%rbx), %esi
	callq	_relptr_copy
	movslq	8(%r15), %rax
	movslq	8(%rbx), %rsi
	subq	%rax, %rsi
	movl	%esi, 8(%rbx)
	movq	(%rbx), %rax
	movq	_FREE_PAGE_LEAF_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	addq	$24, %rdi
	shlq	$2, %rsi
	addq	24(%rbx), %rsi
	movl	8(%r15), %edx
	shll	$2, %edx
	callq	_memcpy
	jmp	LBB0_3
LBB0_2:
	movq	_FREE_PAGE_INTERNAL_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	%r15, %rdi
	addq	$16, %rdi
	movslq	8(%rbx), %rsi
	shlq	$2, %rsi
	addq	16(%rbx), %rsi
	movl	8(%r15), %edx
	shll	$2, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_fpm_segment_base
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_FreePageBtreeUpdateParentPointers
LBB0_3:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FREE_PAGE_LEAF_MAGIC,8,3       ## @FREE_PAGE_LEAF_MAGIC
	.comm	_FREE_PAGE_INTERNAL_MAGIC,8,3   ## @FREE_PAGE_INTERNAL_MAGIC
	.no_dead_strip	_FreePageBtreeSplitPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FreePageBtreeSplitPage
_FreePageBtreeSplitPage:                ; @FreePageBtreeSplitPage
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_FreePageBtreeGetRecycled
	mov	x19, x0
	ldr	x8, [x21]
	str	x8, [x0]
	ldp	w8, w1, [x21, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x0, #8]
	ldr	w0, [x0, #12]
	bl	_relptr_copy
	ldr	w8, [x19, #8]
	ldr	w9, [x21, #8]
	sub	w8, w9, w8
	str	w8, [x21, #8]
	ldr	x9, [x21]
Lloh0:
	adrp	x10, _FREE_PAGE_LEAF_MAGIC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FREE_PAGE_LEAF_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	add	x0, x19, #24
	ldr	x9, [x21, #24]
	add	x1, x9, w8, sxtw #2
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	bl	_memcpy
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _FREE_PAGE_INTERNAL_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FREE_PAGE_INTERNAL_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w0, eq
	bl	_Assert
	add	x0, x19, #16
	ldr	x8, [x21, #16]
	ldrsw	x9, [x21, #8]
	add	x1, x8, x9, lsl #2
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	bl	_memcpy
	mov	x0, x20
	bl	_fpm_segment_base
	mov	x1, x19
	bl	_FreePageBtreeUpdateParentPointers
LBB0_3:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FREE_PAGE_LEAF_MAGIC,8,3       ; @FREE_PAGE_LEAF_MAGIC
	.comm	_FREE_PAGE_INTERNAL_MAGIC,8,3   ; @FREE_PAGE_INTERNAL_MAGIC
	.no_dead_strip	_FreePageBtreeSplitPage
.subsections_via_symbols
