	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FreePageBtreeSearchLeaf
_FreePageBtreeSearchLeaf:               ## @FreePageBtreeSearchLeaf
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	8(%rdi), %ebx
	movq	16(%rdi), %rax
	movq	_FREE_PAGE_LEAF_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	testl	%ebx, %ebx
	setg	%al
	movq	_FPM_ITEMS_PER_LEAF_PAGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	xorl	%r8d, %r8d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%edx, %ebx
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %r8d
	jge	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	(%r8,%rbx), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	movq	(%r15), %rdi
	movslq	%eax, %rcx
	leal	1(%rcx), %esi
	movl	%eax, %edx
	cmpl	%r14d, (%rdi,%rcx,4)
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edx
	movl	%esi, %r8d
	jmp	LBB0_5
LBB0_2:
	movl	%r8d, %eax
LBB0_6:
	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	_FPM_ITEMS_PER_LEAF_PAGE,4,2    ## @FPM_ITEMS_PER_LEAF_PAGE
	.no_dead_strip	_FreePageBtreeSearchLeaf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FreePageBtreeSearchLeaf
_FreePageBtreeSearchLeaf:               ; @FreePageBtreeSearchLeaf
	.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	x19, x1
	mov	x20, x0
	ldr	w21, [x0, #8]
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _FREE_PAGE_LEAF_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FREE_PAGE_LEAF_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	cmp	w21, #0
Lloh3:
	adrp	x8, _FPM_ITEMS_PER_LEAF_PAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FPM_ITEMS_PER_LEAF_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w21, w8, #0, gt
	cset	w0, le
	bl	_Assert
	mov	w0, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w0, w21
	b.ge	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w0, w21
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldr	x9, [x20]
	ldr	w9, [x9, w8, sxtw #2]
	cmp	w9, w19
	csel	w21, w8, w21, gt
	csinc	w0, w0, w8, gt
	b.ne	LBB0_1
; %bb.3:
	mov	x0, x8
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FREE_PAGE_LEAF_MAGIC,8,3       ; @FREE_PAGE_LEAF_MAGIC
	.comm	_FPM_ITEMS_PER_LEAF_PAGE,4,2    ; @FPM_ITEMS_PER_LEAF_PAGE
	.no_dead_strip	_FreePageBtreeSearchLeaf
.subsections_via_symbols
