	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btvacuumpage
_btvacuumpage:                          ## @btvacuumpage
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	64(%rdi), %rax
	movq	56(%rdi), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	40(%rdi), %rcx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movq	48(%rdi), %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movl	4(%rax), %ebx
	movq	_P_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_vacuum_delay_point
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RBM_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %r8d
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	_ReadBufferExtended
	movl	%eax, %r12d
	movq	_BT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_LockBuffer
	movl	%r12d, %edi
	callq	_BufferGetPage
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_PageIsNew
	testl	%eax, %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	-112(%rbp), %r14                ## 8-byte Folded Reload
	jne	LBB0_4
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	callq	__bt_checkpage
	movl	%r15d, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %rbx
	cmpq	-112(%rbp), %r14                ## 8-byte Folded Reload
	je	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	callq	__bt_page_recyclable
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_P_IGNORE
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_P_ISLEAF
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	callq	__bt_page_recyclable
	testq	%rax, %rax
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_RecordFreeIndexPage
	incl	32(%r13)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_P_ISDELETED
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	movl	24(%r13), %edi
	callq	_TransactionIdIsValid
	testl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	24(%rbx), %edi
	movl	24(%r13), %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	24(%rbx), %eax
	movl	%eax, 24(%r13)
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	__bt_relbuf
LBB0_52:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %r14
	movq	_P_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r15
	jne	LBB0_1
	jmp	LBB0_53
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_P_ISHALFDEAD
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_47:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	28(%r13), %edi
	callq	_MemoryContextReset
	movl	28(%r13), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	__bt_pagedel
	testl	%eax, %eax
	je	LBB0_51
## %bb.48:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	movl	24(%r13), %edi
	callq	_TransactionIdIsValid
	testl	%eax, %eax
	je	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	movl	24(%r13), %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_51
LBB0_50:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %eax
	movl	%eax, 24(%r13)
LBB0_51:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	jmp	LBB0_52
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_P_ISLEAF
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	_MaxOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_LockBuffer
	movl	%r12d, %edi
	callq	_LockBufferForCleanup
	cmpq	8(%r13), %r14
	jle	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, 8(%r13)
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	testq	%rax, %rax
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	je	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rax, (%rbx)
	jne	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_BTP_SPLIT_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_P_RIGHTMOST
	testl	%eax, %eax
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rax
	cmpq	-112(%rbp), %rax                ## 8-byte Folded Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmovlq	%rax, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
LBB0_29:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_P_FIRSTDATAKEY
	movq	%rax, %r13
	movl	%r15d, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%r13, %rcx
	movq	%rax, %rdx
	cmpq	$0, -136(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_39
## %bb.30:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rdx, %rcx
	jg	LBB0_39
## %bb.31:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rbx
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=2
	movq	%rbx, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %rbx
	movq	%r13, %rdx
	cmpq	%r13, %rax
	jg	LBB0_35
LBB0_32:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rdx, %r13
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_PageGetItemId
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rdi
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	callq	*-136(%rbp)                     ## 8-byte Folded Reload
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=2
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movslq	%ecx, %rax
	incl	%ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	%rbx, (%rcx,%rax,8)
	jmp	LBB0_34
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_35:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_39
## %bb.36:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	16(%rbx), %r8
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movl	%r13d, %ecx
	callq	__bt_delitems_vacuum
	cmpq	16(%rbx), %r14
	jle	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%r14, 16(%rax)
LBB0_38:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%r13d, (%rax)
	movl	%r15d, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %rdx
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_43
LBB0_39:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_40
## %bb.41:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rax, (%rbx)
	movq	%rbx, %rax
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_44
## %bb.42:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	$0, (%rax)
	movl	%r12d, %edi
	movl	$1, %esi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	callq	_MarkBufferDirtyHint
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_43:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
LBB0_44:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rcx, %rdx
	jge	LBB0_45
LBB0_46:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	-112(%rbp), %r14                ## 8-byte Folded Reload
	movq	-120(%rbp), %rsp                ## 8-byte Reload
	jne	LBB0_12
	jmp	LBB0_47
LBB0_40:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpq	%rcx, %rdx
	jl	LBB0_46
LBB0_45:                                ##   in Loop: Header=BB0_1 Depth=1
	subl	%ecx, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %eax
	addl	%edx, %eax
	incl	%eax
	movl	%eax, 8(%rcx)
	movq	-120(%rbp), %rsp                ## 8-byte Reload
	jmp	LBB0_12
LBB0_8:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	callq	__bt_relbuf
LBB0_53:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_55
## %bb.54:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_55:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_P_NONE,8,3                     ## @P_NONE
	.comm	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ## @RBM_NORMAL
	.comm	_BT_READ,4,2                    ## @BT_READ
	.comm	_MaxOffsetNumber,4,2            ## @MaxOffsetNumber
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_BTP_SPLIT_END,4,2              ## @BTP_SPLIT_END
	.no_dead_strip	_btvacuumpage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btvacuumpage
_btvacuumpage:                          ; @btvacuumpage
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #80
	mov	x22, x2
	mov	x25, x1
	mov	x20, x0
	mov	x23, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x19, x28, [x0, #56]
	ldr	x9, [x0, #48]
	ldr	x8, [x0, #40]
	stp	x8, x9, [x29, #-104]            ; 16-byte Folded Spill
	ldr	w21, [x28, #4]
Lloh3:
	adrp	x8, _P_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _P_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x27, [x8]
	stur	x19, [x29, #-120]               ; 8-byte Folded Spill
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_34 Depth 2
	bl	_vacuum_delay_point
Lloh6:
	adrp	x8, _MAIN_FORKNUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAIN_FORKNUM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _RBM_NORMAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RBM_NORMAL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	ldr	w4, [x28]
	mov	x0, x21
	mov	x2, x25
	bl	_ReadBufferExtended
	mov	x24, x0
Lloh12:
	adrp	x8, _BT_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BT_READ@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x24
	bl	_BufferGetPage
	mov	x26, x0
	bl	_PageIsNew
	cbz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	x25, x22
	b.ne	LBB0_4
	b	LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	__bt_checkpage
	mov	x0, x26
	bl	_PageGetSpecialPointer
	mov	x23, x0
	cmp	x25, x22
	b.eq	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x26
	bl	__bt_page_recyclable
	cbnz	x0, LBB0_46
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_P_IGNORE
	cbnz	x0, LBB0_46
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_P_ISLEAF
	cbz	x0, LBB0_46
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_46
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x26
	bl	__bt_page_recyclable
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_RecordFreeIndexPage
	ldr	w8, [x20, #32]
	add	w8, w8, #1
	str	w8, [x20, #32]
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_P_ISDELETED
	cbz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldr	w0, [x20, #24]
	bl	_TransactionIdIsValid
	cbz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x23, #24]
	ldr	w1, [x20, #24]
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23, #24]
	str	w8, [x20, #24]
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	__bt_relbuf
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x25, x27
Lloh15:
	adrp	x8, _P_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _P_NONE@GOTPAGEOFF]
Lloh17:
	ldr	x27, [x8]
	cmp	x25, x27
	b.ne	LBB0_1
	b	LBB0_47
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_P_ISHALFDEAD
	cbz	x0, LBB0_22
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x20, #28]
	bl	_MemoryContextReset
	ldr	w0, [x20, #28]
	bl	_MemoryContextSwitchTo
	mov	x19, x0
	mov	x0, x21
	mov	x1, x24
	bl	__bt_pagedel
	cbz	w0, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_1 Depth=1
	ldur	x9, [x29, #-120]                ; 8-byte Folded Reload
	ldr	w8, [x9, #4]
	add	w8, w8, #1
	str	w8, [x9, #4]
	ldr	w0, [x20, #24]
	bl	_TransactionIdIsValid
	cbz	w0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x23, #24]
	ldr	w1, [x20, #24]
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23, #24]
	str	w8, [x20, #24]
LBB0_21:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_MemoryContextSwitchTo
	ldur	x19, [x29, #-120]               ; 8-byte Folded Reload
	b	LBB0_15
LBB0_22:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_P_ISLEAF
	cbz	x0, LBB0_14
; %bb.23:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, sp
	stur	x8, [x29, #-144]                ; 8-byte Folded Spill
Lloh18:
	adrp	x8, _MaxOffsetNumber@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MaxOffsetNumber@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh21:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh22:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x8, x9, x8
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	mov	sp, x8
Lloh23:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_LockBuffer
	mov	x0, x24
	bl	_LockBufferForCleanup
	ldr	x8, [x20, #8]
	cmp	x25, x8
	b.le	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_1 Depth=1
	str	x25, [x20, #8]
LBB0_25:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20]
	stp	x28, x22, [x29, #-136]          ; 16-byte Folded Spill
	cbz	x8, LBB0_30
; %bb.26:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x23]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23, #8]
Lloh26:
	adrp	x9, _BTP_SPLIT_END@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BTP_SPLIT_END@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_P_RIGHTMOST
	cbnz	w0, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x23, #16]
	cmp	x8, x22
	csel	x27, x8, x27, lt
LBB0_30:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_P_FIRSTDATAKEY
	mov	x22, x0
	mov	x0, x26
	bl	_PageGetMaxOffsetNumber
	mov	x28, x0
	mov	x10, x22
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	cbz	x8, LBB0_41
; %bb.31:                               ;   in Loop: Header=BB0_1 Depth=1
	cmp	x10, x28
	b.gt	LBB0_41
; %bb.32:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	w22, #0
	stur	x10, [x29, #-152]               ; 8-byte Folded Spill
	mov	x19, x10
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=2
	mov	x0, x19
	bl	_OffsetNumberNext
	mov	x19, x0
	cmp	x0, x28
	b.gt	LBB0_36
LBB0_34:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x26
	mov	x1, x19
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x26
	bl	_PageGetItem
	ldp	x1, x8, [x29, #-104]            ; 16-byte Folded Reload
	blr	x8
	cbz	x0, LBB0_33
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=2
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	str	x19, [x8, w22, sxtw #3]
	add	w22, w22, #1
	b	LBB0_33
LBB0_36:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w22, #1
	ldur	x19, [x29, #-120]               ; 8-byte Folded Reload
	ldur	x10, [x29, #-152]               ; 8-byte Folded Reload
	b.lt	LBB0_41
; %bb.37:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x4, [x20, #16]
	mov	x0, x21
	mov	x1, x24
	ldur	x2, [x29, #-112]                ; 8-byte Folded Reload
	mov	x3, x22
	bl	__bt_delitems_vacuum
	ldr	x8, [x20, #16]
	cmp	x25, x8
	b.le	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_1 Depth=1
	str	x25, [x20, #16]
LBB0_39:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	add	w8, w8, w22
	str	w8, [x19]
	mov	x0, x26
	bl	_PageGetMaxOffsetNumber
	mov	x28, x0
	ldur	x22, [x29, #-128]               ; 8-byte Folded Reload
	ldur	x10, [x29, #-152]               ; 8-byte Folded Reload
	cmp	x28, x10
	b.lt	LBB0_45
LBB0_40:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #8]
	sub	w9, w28, w10
	add	w8, w9, w8
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldp	x8, x28, [x29, #-144]           ; 16-byte Folded Reload
	mov	sp, x8
	b	LBB0_14
LBB0_41:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_44
; %bb.42:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x23]
	cmp	x9, x8
	b.ne	LBB0_44
; %bb.43:                               ;   in Loop: Header=BB0_1 Depth=1
	str	xzr, [x23]
	mov	x22, x10
	mov	x0, x24
	mov	w1, #1
	bl	_MarkBufferDirtyHint
	mov	x10, x22
LBB0_44:                                ;   in Loop: Header=BB0_1 Depth=1
	ldur	x22, [x29, #-128]               ; 8-byte Folded Reload
	cmp	x28, x10
	b.ge	LBB0_40
LBB0_45:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x8, x28, [x29, #-144]           ; 16-byte Folded Reload
	mov	sp, x8
	cmp	x25, x22
	b.ne	LBB0_14
	b	LBB0_17
LBB0_46:
	mov	x0, x21
	mov	x1, x24
	bl	__bt_relbuf
LBB0_47:
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_49
; %bb.48:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_49:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_P_NONE,8,3                     ; @P_NONE
	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ; @RBM_NORMAL
	.comm	_BT_READ,4,2                    ; @BT_READ
	.comm	_MaxOffsetNumber,4,2            ; @MaxOffsetNumber
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_BTP_SPLIT_END,4,2              ; @BTP_SPLIT_END
	.no_dead_strip	_btvacuumpage
.subsections_via_symbols
