	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_unlink_halfdead_page
__bt_unlink_halfdead_page:              ## @_bt_unlink_halfdead_page
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movl	%edi, %r12d
	movl	%esi, %edi
	callq	_BufferGetBlockNumber
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_BufferGetPage
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_P_ISLEAF
	xorl	%ecx, %ecx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_P_ISHALFDEAD
	testq	%rax, %rax
	setne	%al
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movzbl	%al, %edi
	callq	_Assert
	movq	_P_HIKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_PageGetItemId
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %r13
	movq	(%rbx), %r14
	movq	8(%rbx), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	%r13, -136(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BTreeTupleGetTopParent
	movq	%rax, %r13
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rcx
	movb	$1, %al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpq	(%rcx), %r13
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	jne	LBB0_5
## %bb.4:
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_8
LBB0_5:
	xorl	%edi, %edi
	cmpq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	setne	%dil
	callq	_Assert
	movq	_BT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	__bt_getbuf
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	(%rax), %r14
	movl	16(%rax), %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_LockBuffer
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %r13
	jne	LBB0_7
## %bb.6:
	movq	%rax, %r13
	jmp	LBB0_8
LBB0_7:
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movq	_P_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.16:
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_17
LBB0_9:
	movq	_BT_WRITE@GOTPCREL(%rip), %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rcx, %r14
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	__bt_relbuf
	movq	_P_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	__bt_getbuf
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_P_ISDELETED
	movq	8(%rbx), %rcx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	jne	LBB0_12
LBB0_17:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_LockBuffer
	movl	%ebx, %edi
	callq	_BufferGetPage
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_P_RIGHTMOST
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:
	movq	%r12, %rdi
	callq	_P_ISROOT
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	%r12, %rdi
	callq	_P_ISDELETED
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_elog
LBB0_21:
	cmpq	%r14, (%r12)
	je	LBB0_23
## %bb.22:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INDEX_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	movslq	%eax, %rdx
	leaq	L_.str.2(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_23:
	movq	%r12, %rdi
	callq	_P_FIRSTDATAKEY
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_PageGetMaxOffsetNumber
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_28
## %bb.24:
	cmpq	%rax, %rbx
	jle	LBB0_27
## %bb.25:
	movq	%r12, %rdi
	callq	_P_ISLEAF
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	%r12, %rdi
	callq	_P_ISHALFDEAD
	testq	%rax, %rax
	jne	LBB0_32
LBB0_27:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_elog
	jmp	LBB0_32
LBB0_28:
	cmpq	%rax, %rbx
	jne	LBB0_30
## %bb.29:
	movq	%r12, %rdi
	callq	_P_ISLEAF
	testq	%rax, %rax
	je	LBB0_31
LBB0_30:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_elog
LBB0_31:
	movq	%r12, %rdi
	callq	_P_FIRSTDATAKEY
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_PageGetItemId
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rdi
	callq	_BTreeInnerTupleGetDownLink
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_33
LBB0_32:
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
LBB0_33:
	movq	8(%r12), %rsi
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	callq	__bt_getbuf
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%rbx)
	je	LBB0_35
## %bb.34:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_INDEX_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	(%rbx), %r15
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str.3(%rip), %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	%r15, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	-96(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_35:
	movq	%rbx, %rdi
	callq	_P_RIGHTMOST
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_P_FIRSTDATAKEY
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_PageGetMaxOffsetNumber
	xorl	%ecx, %ecx
	cmpq	%rax, %rbx
	setg	%cl
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	_P_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_38
## %bb.36:
	testl	%r15d, %r15d
	je	LBB0_38
## %bb.37:
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetPage
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %rdi
	callq	_P_RIGHTMOST
	testl	%eax, %eax
	je	LBB0_38
## %bb.39:
	movq	_BTREE_METAPAGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	__bt_getbuf
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_BTPageGetMeta
	movq	%rax, %rcx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	movq	%rcx, %rdx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpl	%eax, (%rcx)
	jle	LBB0_41
## %bb.40:
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	__bt_relbuf
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_41
LBB0_38:
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-100(%rbp), %r15d               ## 4-byte Reload
LBB0_41:
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movl	%r13d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_43
## %bb.42:
	movl	%r13d, %edi
	callq	_BufferGetPage
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	%r12, 8(%rax)
	sete	%dil
	callq	_Assert
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 8(%rbx)
LBB0_43:
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetPage
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	%r12, (%rax)
	sete	%dil
	callq	_Assert
	movq	%r14, (%rbx)
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_45
## %bb.44:
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_BTreeTupleSetTopParent
LBB0_45:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetPage
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %rbx
	movq	_BTP_HALF_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	24(%rbx), %eax
	movq	_BTP_DELETED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 24(%rbx)
	xorl	%eax, %eax
	callq	_ReadNewTransactionId
	movl	%eax, 20(%rbx)
	movl	%r15d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	movl	-88(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_49
## %bb.46:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_BTREE_NOVAC_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_48
## %bb.47:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	__bt_upgrademetapage
LBB0_48:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 24(%rcx)
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	%r15d, %edi
	callq	_MarkBufferDirty
LBB0_49:
	movl	%r12d, %edi
	callq	_MarkBufferDirty
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_MarkBufferDirty
	movl	%r13d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_51
## %bb.50:
	movl	%r13d, %edi
	callq	_MarkBufferDirty
LBB0_51:
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_53
## %bb.52:
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_MarkBufferDirty
LBB0_53:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_67
## %bb.54:
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_XLogRegisterBuffer
	movl	%r13d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_56
## %bb.55:
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movl	%r13d, %esi
	callq	_XLogRegisterBuffer
LBB0_56:
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2, %edi
	movl	%r12d, %esi
	callq	_XLogRegisterBuffer
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_58
## %bb.57:
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$3, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_XLogRegisterBuffer
LBB0_58:
	movq	%r14, -200(%rbp)
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -208(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -216(%rbp)
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -224(%rbp)
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -232(%rbp)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -240(%rbp)
	movq	_SizeOfBtreeUnlinkPage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-240(%rbp), %rdi
	callq	_XLogRegisterData
	movl	%r15d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_59
## %bb.60:
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$4, %edi
	movl	%r15d, %esi
	callq	_XLogRegisterBuffer
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	_BTREE_NOVAC_VERSION@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_Assert
	movq	8(%rbx), %rax
	movq	%rax, -192(%rbp)
	movl	36(%rbx), %eax
	movl	%eax, -156(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -160(%rbp)
	movq	24(%rbx), %rax
	movq	%rax, -168(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -184(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -176(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -180(%rbp)
	leaq	-192(%rbp), %rsi
	movl	$4, %edi
	movl	$40, %edx
	callq	_XLogRegisterBufData
	movq	_XLOG_BTREE_UNLINK_PAGE_META@GOTPCREL(%rip), %rax
	jmp	LBB0_61
LBB0_59:
	movq	_XLOG_BTREE_UNLINK_PAGE@GOTPCREL(%rip), %rax
LBB0_61:
	movl	(%rax), %esi
	movq	_RM_BTREE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_XLogInsert
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_63
## %bb.62:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_PageSetLSN
LBB0_63:
	movl	%r12d, %edi
	callq	_BufferGetPage
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_PageSetLSN
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetPage
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_PageSetLSN
	movl	%r13d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_65
## %bb.64:
	movl	%r13d, %edi
	callq	_BufferGetPage
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_PageSetLSN
LBB0_65:
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_67
## %bb.66:
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetPage
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_PageSetLSN
LBB0_67:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movl	%r15d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_69
## %bb.68:
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	__bt_relbuf
LBB0_69:
	movl	%r13d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_71
## %bb.70:
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	__bt_relbuf
LBB0_71:
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	__bt_relbuf
	movl	$1, %r14d
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_73
## %bb.72:
	movl	%ebx, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	__bt_relbuf
LBB0_73:
	movl	%r14d, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_elog
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_14
## %bb.15:
	movl	%ebx, %edi
	callq	_ReleaseBuffer
	xorl	%r14d, %r14d
	jmp	LBB0_73
LBB0_14:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_ReleaseBuffer
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	__bt_relbuf
	xorl	%r14d, %r14d
	jmp	LBB0_73
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_P_HIKEY,8,3                    ## @P_HIKEY
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_BT_READ,4,2                    ## @BT_READ
	.comm	_BT_WRITE,4,2                   ## @BT_WRITE
	.comm	_P_NONE,8,3                     ## @P_NONE
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no left sibling (concurrent deletion?) of block %u in \"%s\""

	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"half-dead page changed status unexpectedly in block %u of index \"%s\""

	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ## @ERRCODE_INDEX_CORRUPTED
L_.str.2:                               ## @.str.2
	.asciz	"left link changed unexpectedly in block %u of index \"%s\""

L_.str.3:                               ## @.str.3
	.asciz	"right sibling's left-link doesn't match: block %u links to %u instead of expected %u in index \"%s\""

	.comm	_BTREE_METAPAGE,8,3             ## @BTREE_METAPAGE
	.comm	_BTP_HALF_DEAD,4,2              ## @BTP_HALF_DEAD
	.comm	_BTP_DELETED,4,2                ## @BTP_DELETED
	.comm	_BTREE_NOVAC_VERSION,8,3        ## @BTREE_NOVAC_VERSION
	.comm	_REGBUF_WILL_INIT,4,2           ## @REGBUF_WILL_INIT
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_SizeOfBtreeUnlinkPage,4,2      ## @SizeOfBtreeUnlinkPage
	.comm	_XLOG_BTREE_UNLINK_PAGE_META,4,2 ## @XLOG_BTREE_UNLINK_PAGE_META
	.comm	_XLOG_BTREE_UNLINK_PAGE,4,2     ## @XLOG_BTREE_UNLINK_PAGE
	.comm	_RM_BTREE_ID,4,2                ## @RM_BTREE_ID
	.no_dead_strip	__bt_unlink_halfdead_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_unlink_halfdead_page
__bt_unlink_halfdead_page:              ; @_bt_unlink_halfdead_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_BufferGetBlockNumber
	mov	x28, x0
Lloh0:
	adrp	x23, _InvalidBuffer@GOTPAGE
Lloh1:
	ldr	x23, [x23, _InvalidBuffer@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	mov	x0, x21
	bl	_BufferGetPage
	mov	x20, x0
	bl	_PageGetSpecialPointer
	mov	x22, x0
	bl	_P_ISLEAF
	str	x24, [sp, #40]                  ; 8-byte Folded Spill
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_P_ISHALFDEAD
	cmp	x0, #0
	cset	w0, ne
LBB0_2:
	bl	_Assert
Lloh2:
	adrp	x8, _P_HIKEY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _P_HIKEY@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x20
	bl	_PageGetItem
	mov	x25, x0
	ldr	q0, [x22]
	str	q0, [sp, #48]                   ; 16-byte Folded Spill
Lloh5:
	adrp	x20, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh6:
	ldr	x20, [x20, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x21
	bl	_LockBuffer
	bl	_CHECK_FOR_INTERRUPTS
	mov	x0, x25
	bl	_BTreeTupleGetTopParent
Lloh7:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh8:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x22, _BT_WRITE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _BT_WRITE@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	ldr	q0, [sp, #48]                   ; 16-byte Folded Reload
	fmov	x24, d0
	mov	w8, #1
	stp	w21, w8, [sp, #72]              ; 8-byte Folded Spill
	mov	x26, x28
	b	LBB0_7
LBB0_4:
	mov	x26, x0
	mov	x27, x22
	cmp	x0, x28
	cset	w0, ne
	bl	_Assert
Lloh12:
	adrp	x8, _BT_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BT_READ@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x26
	bl	__bt_getbuf
	mov	x22, x0
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	ldr	x24, [x0]
	ldr	w8, [x0, #16]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	w1, [x20]
	str	w22, [sp, #72]                  ; 4-byte Folded Spill
	mov	x0, x22
	bl	_LockBuffer
	cmp	x26, x28
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	mov	x26, x28
	mov	x22, x27
	b	LBB0_7
LBB0_6:
	mov	x22, x27
	ldr	w1, [x27]
	mov	x0, x21
	bl	_LockBuffer
	str	wzr, [sp, #76]                  ; 4-byte Folded Spill
LBB0_7:
	str	w21, [sp, #68]                  ; 4-byte Folded Spill
Lloh15:
	adrp	x27, _P_NONE@GOTPAGE
Lloh16:
	ldr	x27, [x27, _P_NONE@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x24, x8
	b.ne	LBB0_9
; %bb.8:
	ldr	w23, [x23]
	ldr	w21, [sp, #72]                  ; 4-byte Folded Reload
	b	LBB0_12
LBB0_9:
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x24
	bl	__bt_getbuf
	mov	x23, x0
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	mov	x20, x0
	bl	_P_ISDELETED
	ldr	x8, [x20, #8]
	cmp	x0, #0
	ccmp	x8, x26, #0, eq
	ldr	w21, [sp, #72]                  ; 4-byte Folded Reload
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	mov	x0, x19
	mov	x1, x23
	bl	__bt_relbuf
	ldr	x8, [x27]
	cmp	x24, x8
	b.eq	LBB0_72
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x24
	bl	__bt_getbuf
	mov	x23, x0
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	mov	x20, x0
	bl	_P_ISDELETED
	ldr	x8, [x20, #8]
	cmp	x0, #0
	ccmp	x8, x26, #0, eq
	b.ne	LBB0_10
LBB0_12:
	str	x25, [sp, #16]                  ; 8-byte Folded Spill
	ldr	w1, [x22]
	mov	x0, x21
	bl	_LockBuffer
	mov	x0, x21
	bl	_BufferGetPage
	mov	x25, x0
	bl	_PageGetSpecialPointer
	mov	x20, x0
	bl	_P_RIGHTMOST
Lloh17:
	adrp	x27, _ERROR@GOTPAGE
Lloh18:
	ldr	x27, [x27, _ERROR@GOTPAGEOFF]
	cbnz	w0, LBB0_15
; %bb.13:
	mov	x0, x20
	bl	_P_ISROOT
	cbnz	x0, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_P_ISDELETED
	cbz	x0, LBB0_16
LBB0_15:
	ldr	w21, [x27]
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x3, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x26
	bl	_elog
LBB0_16:
	ldr	x8, [x20]
Lloh21:
	adrp	x22, _ERRCODE_INDEX_CORRUPTED@GOTPAGE
Lloh22:
	ldr	x22, [x22, _ERRCODE_INDEX_CORRUPTED@GOTPAGEOFF]
	cmp	x8, x24
	b.eq	LBB0_18
; %bb.17:
	ldr	w21, [x27]
	ldr	w0, [x22]
	bl	_errcode
	mov	x0, x19
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x26
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_18:
	mov	x0, x20
	bl	_P_FIRSTDATAKEY
	mov	x21, x0
	mov	x0, x25
	bl	_PageGetMaxOffsetNumber
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_24
; %bb.19:
	cmp	x21, x0
	b.le	LBB0_22
; %bb.20:
	mov	x0, x20
	bl	_P_ISLEAF
	cbz	x0, LBB0_22
; %bb.21:
	mov	x0, x20
	bl	_P_ISHALFDEAD
	cbnz	x0, LBB0_23
LBB0_22:
	ldr	w21, [x27]
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x3, x0
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x26
	bl	_elog
LBB0_23:
	mov	x21, x27
Lloh27:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh28:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	b	LBB0_28
LBB0_24:
	cmp	x21, x0
	b.ne	LBB0_26
; %bb.25:
	mov	x0, x20
	bl	_P_ISLEAF
	cbz	x0, LBB0_27
LBB0_26:
	ldr	w21, [x27]
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x3, x0
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x26
	bl	_elog
LBB0_27:
	mov	x21, x27
	mov	x0, x20
	bl	_P_FIRSTDATAKEY
	mov	x1, x0
	mov	x0, x25
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x25
	bl	_PageGetItem
	bl	_BTreeInnerTupleGetDownLink
Lloh32:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh33:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x0, x28
	csel	x8, x8, x0, eq
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
Lloh35:
	adrp	x22, _ERRCODE_INDEX_CORRUPTED@GOTPAGE
Lloh36:
	ldr	x22, [x22, _ERRCODE_INDEX_CORRUPTED@GOTPAGEOFF]
LBB0_28:
	ldr	x1, [x20, #8]
Lloh37:
	adrp	x8, _BT_WRITE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BT_WRITE@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x25, x1
	bl	__bt_getbuf
	mov	x28, x0
	bl	_BufferGetPage
	mov	x20, x0
	bl	_PageGetSpecialPointer
	mov	x27, x0
	ldr	x8, [x0]
	cmp	x8, x26
	b.eq	LBB0_30
; %bb.29:
	ldr	w21, [x21]
	ldr	w0, [x22]
	bl	_errcode
	ldr	x22, [x27]
	mov	x0, x19
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x26, x0, [sp]
Lloh40:
	adrp	x0, l_.str.3@PAGE
Lloh41:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x25
	mov	x2, x22
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_30:
	mov	x0, x27
	bl	_P_RIGHTMOST
	mov	x21, x0
	mov	x0, x27
	bl	_P_FIRSTDATAKEY
	mov	x22, x0
	mov	x0, x20
	bl	_PageGetMaxOffsetNumber
	mov	x20, #0
	cmp	x22, x0
	cset	w8, gt
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	w8, [x9]
Lloh42:
	adrp	x8, _P_NONE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _P_NONE@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ne	LBB0_35
; %bb.31:
	cbz	w21, LBB0_35
; %bb.32:
	mov	x0, x28
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	bl	_P_RIGHTMOST
	cbz	w0, LBB0_36
; %bb.33:
Lloh45:
	adrp	x8, _BTREE_METAPAGE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _BTREE_METAPAGE@GOTPAGEOFF]
Lloh47:
	ldr	x1, [x8]
Lloh48:
	adrp	x8, _BT_WRITE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BT_WRITE@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x19
	bl	__bt_getbuf
	mov	x22, x0
	bl	_BufferGetPage
	mov	x20, x0
	bl	_BTPageGetMeta
	mov	x27, x0
	ldr	w8, [x0]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	add	w9, w9, #1
	cmp	w8, w9
	b.le	LBB0_38
; %bb.34:
	mov	x0, x19
	mov	x1, x22
	bl	__bt_relbuf
Lloh51:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh52:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh53:
	ldr	w22, [x8]
	b	LBB0_38
LBB0_35:
	mov	x27, x20
	b	LBB0_37
LBB0_36:
	mov	x20, #0
	mov	x27, #0
LBB0_37:
	ldr	w22, [sp, #24]                  ; 4-byte Folded Reload
LBB0_38:
	bl	_START_CRIT_SECTION
	mov	x0, x23
	bl	_BufferIsValid
	cbz	x0, LBB0_40
; %bb.39:
	mov	x0, x23
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	mov	x21, x0
	ldr	x8, [x0, #8]
	cmp	x8, x26
	cset	w0, eq
	bl	_Assert
	str	x25, [x21, #8]
LBB0_40:
	mov	x0, x28
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, x26
	cset	w0, eq
	bl	_Assert
	str	x24, [x21]
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_42
; %bb.41:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	bl	_BTreeTupleSetTopParent
LBB0_42:
	ldr	w21, [sp, #72]                  ; 4-byte Folded Reload
	mov	x0, x21
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	mov	x26, x0
Lloh54:
	adrp	x8, _BTP_HALF_DEAD@GOTPAGE
Lloh55:
	ldr	x8, [x8, _BTP_HALF_DEAD@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	ldr	w9, [x0, #24]
	bic	w8, w9, w8
Lloh57:
	adrp	x9, _BTP_DELETED@GOTPAGE
Lloh58:
	ldr	x9, [x9, _BTP_DELETED@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0, #24]
	bl	_ReadNewTransactionId
	str	w0, [x26, #20]
	mov	x0, x22
	bl	_BufferIsValid
	cbz	x0, LBB0_46
; %bb.43:
	ldr	x8, [x27, #8]
Lloh60:
	adrp	x9, _BTREE_NOVAC_VERSION@GOTPAGE
Lloh61:
	ldr	x9, [x9, _BTREE_NOVAC_VERSION@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_45
; %bb.44:
	mov	x0, x20
	bl	__bt_upgrademetapage
LBB0_45:
	str	x25, [x27, #24]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	str	w8, [x27]
	mov	x0, x22
	bl	_MarkBufferDirty
LBB0_46:
	mov	x0, x28
	bl	_MarkBufferDirty
	mov	x0, x21
	bl	_MarkBufferDirty
	mov	x0, x23
	bl	_BufferIsValid
	cbz	x0, LBB0_48
; %bb.47:
	mov	x0, x23
	bl	_MarkBufferDirty
LBB0_48:
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_50
; %bb.49:
	ldr	w0, [sp, #68]                   ; 4-byte Folded Reload
	bl	_MarkBufferDirty
LBB0_50:
	mov	x0, x19
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_64
; %bb.51:
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	bl	_XLogBeginInsert
Lloh63:
	adrp	x20, _REGBUF_WILL_INIT@GOTPAGE
Lloh64:
	ldr	x20, [x20, _REGBUF_WILL_INIT@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w0, #0
	mov	x1, x21
	bl	_XLogRegisterBuffer
	mov	x0, x23
	bl	_BufferIsValid
Lloh65:
	adrp	x21, _REGBUF_STANDARD@GOTPAGE
Lloh66:
	ldr	x21, [x21, _REGBUF_STANDARD@GOTPAGEOFF]
	cbz	x0, LBB0_53
; %bb.52:
	ldr	w2, [x21]
	mov	w0, #1
	mov	x1, x23
	bl	_XLogRegisterBuffer
LBB0_53:
	ldr	w2, [x21]
	mov	w0, #2
	mov	x1, x28
	bl	_XLogRegisterBuffer
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_55
; %bb.54:
	ldr	w2, [x20]
	mov	w0, #3
	ldr	w1, [sp, #68]                   ; 4-byte Folded Reload
	bl	_XLogRegisterBuffer
LBB0_55:
	stp	x25, x24, [sp, #152]
	ldr	w8, [x26, #20]
	str	w8, [sp, #144]
	ldr	q0, [sp, #48]                   ; 16-byte Folded Reload
	ext.16b	v0, v0, v0, #8
	stur	q0, [sp, #128]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [sp, #120]
Lloh67:
	adrp	x8, _SizeOfBtreeUnlinkPage@GOTPAGE
Lloh68:
	ldr	x8, [x8, _SizeOfBtreeUnlinkPage@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	add	x0, sp, #120
	bl	_XLogRegisterData
	mov	x0, x22
	bl	_BufferIsValid
	cbz	x0, LBB0_57
; %bb.56:
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w2, w9, w8
	mov	w0, #4
	mov	x1, x22
	bl	_XLogRegisterBuffer
	ldr	x8, [x27, #8]
Lloh70:
	adrp	x9, _BTREE_NOVAC_VERSION@GOTPAGE
Lloh71:
	ldr	x9, [x9, _BTREE_NOVAC_VERSION@GOTPAGEOFF]
Lloh72:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_Assert
	ldr	x8, [x27, #8]
	ldr	d0, [x27, #32]
	str	d0, [sp, #112]
	ldr	x9, [x27, #24]
	str	x8, [sp, #80]
	str	x9, [sp, #104]
	ldr	w8, [x27]
	str	w8, [sp, #88]
	ldr	d0, [x27, #16]
	stur	d0, [sp, #92]
	add	x1, sp, #80
	mov	w0, #4
	mov	w2, #40
	bl	_XLogRegisterBufData
Lloh73:
	adrp	x8, _XLOG_BTREE_UNLINK_PAGE_META@GOTPAGE
Lloh74:
	ldr	x8, [x8, _XLOG_BTREE_UNLINK_PAGE_META@GOTPAGEOFF]
	b	LBB0_58
LBB0_57:
Lloh75:
	adrp	x8, _XLOG_BTREE_UNLINK_PAGE@GOTPAGE
Lloh76:
	ldr	x8, [x8, _XLOG_BTREE_UNLINK_PAGE@GOTPAGEOFF]
LBB0_58:
	ldr	w21, [sp, #72]                  ; 4-byte Folded Reload
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w1, [x8]
Lloh77:
	adrp	x8, _RM_BTREE_ID@GOTPAGE
Lloh78:
	ldr	x8, [x8, _RM_BTREE_ID@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
	bl	_XLogInsert
	mov	x24, x0
	mov	x0, x22
	bl	_BufferIsValid
	cbz	x0, LBB0_60
; %bb.59:
	mov	x0, x20
	mov	x1, x24
	bl	_PageSetLSN
LBB0_60:
	mov	x0, x28
	bl	_BufferGetPage
	mov	x1, x24
	bl	_PageSetLSN
	mov	x0, x21
	bl	_BufferGetPage
	mov	x1, x24
	bl	_PageSetLSN
	mov	x0, x23
	bl	_BufferIsValid
	cbz	x0, LBB0_62
; %bb.61:
	mov	x0, x23
	bl	_BufferGetPage
	mov	x1, x24
	bl	_PageSetLSN
LBB0_62:
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_64
; %bb.63:
	ldr	w0, [sp, #68]                   ; 4-byte Folded Reload
	bl	_BufferGetPage
	mov	x1, x24
	bl	_PageSetLSN
LBB0_64:
	bl	_END_CRIT_SECTION
	mov	x0, x22
	bl	_BufferIsValid
	cbz	x0, LBB0_66
; %bb.65:
	mov	x0, x19
	mov	x1, x22
	bl	__bt_relbuf
LBB0_66:
	mov	x0, x23
	bl	_BufferIsValid
	cbz	x0, LBB0_68
; %bb.67:
	mov	x0, x19
	mov	x1, x23
	bl	__bt_relbuf
LBB0_68:
	mov	x0, x19
	mov	x1, x28
	bl	__bt_relbuf
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_70
; %bb.69:
	mov	x0, x19
	mov	x1, x21
	bl	__bt_relbuf
LBB0_70:
	mov	w0, #1
LBB0_71:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_72:
Lloh80:
	adrp	x8, _LOG@GOTPAGE
Lloh81:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh82:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x3, x0
Lloh83:
	adrp	x1, l_.str@PAGE
Lloh84:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x26
	bl	_elog
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB0_74
; %bb.73:
	ldr	w0, [sp, #68]                   ; 4-byte Folded Reload
	bl	_ReleaseBuffer
	mov	w0, #0
	b	LBB0_71
LBB0_74:
	mov	x0, x21
	bl	_ReleaseBuffer
	mov	x0, x19
	ldr	w1, [sp, #68]                   ; 4-byte Folded Reload
	bl	__bt_relbuf
	mov	w0, #0
	b	LBB0_71
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_P_HIKEY,8,3                    ; @P_HIKEY
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_BT_READ,4,2                    ; @BT_READ
	.comm	_BT_WRITE,4,2                   ; @BT_WRITE
	.comm	_P_NONE,8,3                     ; @P_NONE
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no left sibling (concurrent deletion?) of block %u in \"%s\""

	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"half-dead page changed status unexpectedly in block %u of index \"%s\""

	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ; @ERRCODE_INDEX_CORRUPTED
l_.str.2:                               ; @.str.2
	.asciz	"left link changed unexpectedly in block %u of index \"%s\""

l_.str.3:                               ; @.str.3
	.asciz	"right sibling's left-link doesn't match: block %u links to %u instead of expected %u in index \"%s\""

	.comm	_BTREE_METAPAGE,8,3             ; @BTREE_METAPAGE
	.comm	_BTP_HALF_DEAD,4,2              ; @BTP_HALF_DEAD
	.comm	_BTP_DELETED,4,2                ; @BTP_DELETED
	.comm	_BTREE_NOVAC_VERSION,8,3        ; @BTREE_NOVAC_VERSION
	.comm	_REGBUF_WILL_INIT,4,2           ; @REGBUF_WILL_INIT
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_SizeOfBtreeUnlinkPage,4,2      ; @SizeOfBtreeUnlinkPage
	.comm	_XLOG_BTREE_UNLINK_PAGE_META,4,2 ; @XLOG_BTREE_UNLINK_PAGE_META
	.comm	_XLOG_BTREE_UNLINK_PAGE,4,2     ; @XLOG_BTREE_UNLINK_PAGE
	.comm	_RM_BTREE_ID,4,2                ; @RM_BTREE_ID
	.no_dead_strip	__bt_unlink_halfdead_page
.subsections_via_symbols
