	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FreePageBtreeSearch
_FreePageBtreeSearch:                   ## @FreePageBtreeSearch
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_fpm_segment_base
	movq	%rax, %r12
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_relptr_access
	movl	$1, (%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	movq	16(%rax), %rax
	movq	_FREE_PAGE_INTERNAL_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	%r13, %rbx
LBB0_9:
	movq	24(%rbx), %rax
	movq	_FPM_ITEMS_PER_LEAF_PAGE@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	movl	$0, %ecx
	cmpq	(%rdx), %rax
	jb	LBB0_11
## %bb.10:
	movq	_FPM_ITEMS_PER_INTERNAL_PAGE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	(%r15), %ecx
	incl	%ecx
LBB0_11:
	movl	%ecx, (%r15)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_FreePageBtreeSearchLeaf
	movq	%rbx, 16(%r15)
	movq	%rax, 8(%r15)
	cmpq	24(%rbx), %rax
	jae	LBB0_13
## %bb.12:
	movq	(%rbx), %rcx
	xorl	%r12d, %r12d
	cmpq	%r14, (%rcx,%rax,8)
	sete	%r12b
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%edi, (%r15)
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setb	%dil
	callq	_Assert
	movq	8(%r13), %rax
	shlq	$4, %rbx
	movl	8(%rax,%rbx), %esi
	movq	%r12, %rdi
	callq	_relptr_access
	movq	%rax, %rbx
	movl	32(%rax), %esi
	movq	%r12, %rdi
	callq	_relptr_access
	xorl	%edi, %edi
	cmpq	%r13, %rax
	sete	%dil
	callq	_Assert
	movq	16(%rbx), %rax
	movq	%rbx, %r13
	movq	_FREE_PAGE_INTERNAL_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_FreePageBtreeSearchInternal
	movq	%rax, %rbx
	movq	24(%r13), %rax
	xorl	%edi, %edi
	movl	$0, %edx
	cmpq	%rax, %rbx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r13), %rdx
	movq	%rbx, %rsi
	shlq	$4, %rsi
	cmpq	%r14, (%rdx,%rsi)
	sete	%dl
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	notb	%dl
	testq	%rbx, %rbx
	setne	%cl
	andb	%dl, %cl
	movzbl	%cl, %ecx
	subq	%rcx, %rbx
	movq	_FPM_ITEMS_PER_INTERNAL_PAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	sete	%al
	movzbl	%al, %edi
	callq	_Assert
	movl	(%r15), %edi
	incl	%edi
	movq	24(%r13), %rax
	jmp	LBB0_8
LBB0_3:
	movq	$0, 16(%r15)
	xorl	%r12d, %r12d
LBB0_13:
	movl	%r12d, 4(%r15)
	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
	.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	_FreePageBtreeSearch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FreePageBtreeSearch
_FreePageBtreeSearch:                   ; @FreePageBtreeSearch
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_fpm_segment_base
	mov	x21, x0
	ldr	w1, [x22]
	bl	_relptr_access
	mov	w8, #1
	str	w8, [x19]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x24, _FREE_PAGE_INTERNAL_MAGIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FREE_PAGE_INTERNAL_MAGIC@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.2:
Lloh2:
	adrp	x25, _FPM_ITEMS_PER_INTERNAL_PAGE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _FPM_ITEMS_PER_INTERNAL_PAGE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19]
	add	w9, w8, #1
	ldr	x8, [x22, #24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w9, [x19]
	cmp	x23, x8
	cset	w0, lo
	bl	_Assert
	ldr	x8, [x22, #8]
	add	x8, x8, x23, lsl #4
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_relptr_access
	mov	x23, x0
	ldr	w1, [x0, #32]
	mov	x0, x21
	bl	_relptr_access
	cmp	x0, x22
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x23, #16]
	ldr	x9, [x24]
	mov	x22, x23
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_FreePageBtreeSearchInternal
	ldr	x8, [x22, #24]
	cmp	x0, x8
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x22, #8]
	lsl	x10, x0, #4
	ldr	x9, [x9, x10]
	cmp	x9, x20
	cset	w9, eq
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #0
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x0, #0
	cset	w10, ne
	bic	w9, w10, w9
	sub	x23, x0, x9
	ldr	x9, [x25]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #0
	b	LBB0_4
LBB0_10:
	mov	w8, #0
	str	xzr, [x19, #16]
	b	LBB0_18
LBB0_11:
	mov	x23, x22
LBB0_12:
	ldr	x8, [x23, #24]
Lloh4:
	adrp	x9, _FPM_ITEMS_PER_LEAF_PAGE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FPM_ITEMS_PER_LEAF_PAGE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_14
; %bb.13:
	mov	w8, #0
	b	LBB0_15
LBB0_14:
Lloh7:
	adrp	x9, _FPM_ITEMS_PER_INTERNAL_PAGE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FPM_ITEMS_PER_INTERNAL_PAGE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19]
	add	w8, w8, #1
LBB0_15:
	str	w8, [x19]
	mov	x0, x23
	mov	x1, x20
	bl	_FreePageBtreeSearchLeaf
	stp	x0, x23, [x19, #8]
	ldr	x8, [x23, #24]
	cmp	x0, x8
	b.hs	LBB0_17
; %bb.16:
	ldr	x8, [x23]
	ldr	x8, [x8, x0, lsl #3]
	cmp	x8, x20
	cset	w8, eq
	b	LBB0_18
LBB0_17:
	mov	w8, #0
LBB0_18:
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FREE_PAGE_INTERNAL_MAGIC,8,3   ; @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	_FreePageBtreeSearch
.subsections_via_symbols
