	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_split
__bt_split:                             ## @_bt_split
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, %r15
	movl	%ecx, -148(%rbp)                ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	%edi, %ebx
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	callq	_IndexRelationGetNumberOfAttributes
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_IndexRelationGetNumberOfKeyAttributes
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_BufferGetPage
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %r12
	movl	%r13d, %edi
	callq	_BufferGetBlockNumber
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r9
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r15, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	16(%rbp), %r8
	callq	__bt_findsplitloc
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_PageGetTempPage
	movq	%rax, %rbx
	movl	%r13d, -152(%rbp)               ## 4-byte Spill
	movl	%r13d, %edi
	callq	_BufferGetPageSize
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	__bt_pageinit
	movq	%rbx, %rdi
	callq	_PageGetSpecialPointer
	movl	(%r12), %esi
	movl	%esi, (%rax)
	movq	_BTP_ROOT@GOTPCREL(%rip), %rdx
	movq	_BTP_SPLIT_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_BTP_HAS_GARBAGE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%esi, %ecx
	movl	%ecx, (%rax)
	movq	_BTP_INCOMPLETE_SPLIT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
	movq	8(%r12), %rcx
	movq	%rcx, 8(%rax)
	movl	24(%r12), %ecx
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	%ecx, 24(%rax)
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_PageGetLSN
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_PageSetLSN
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_P_ISLEAF
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	cmpl	$0, -56(%rbp)
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	16(%rbp), %r13
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	cmpq	-112(%rbp), %r15                ## 8-byte Folded Reload
	jne	LBB0_2
## %bb.3:
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
LBB0_5:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	cmpq	$0, (%r12)
	jne	LBB0_7
## %bb.6:
	movq	%r13, %rbx
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	cmpl	-104(%rbp), %eax                ## 4-byte Folded Reload
	je	LBB0_11
LBB0_7:
	cmpl	$0, -56(%rbp)
	je	LBB0_9
## %bb.8:
	movq	16(%rbp), %rbx
	cmpq	-112(%rbp), %r15                ## 8-byte Folded Reload
	je	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	callq	_OffsetNumberPrev
	movq	%rax, %r14
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_P_FIRSTDATAKEY
	xorl	%edi, %edi
	cmpq	%rax, %r14
	setge	%dil
	callq	_Assert
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_PageGetItemId
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rbx
LBB0_10:
	xorl	%edi, %edi
	cmpq	%r13, %rbx
	setne	%dil
	callq	_Assert
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	__bt_truncate
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IndexTupleSize
	movl	%eax, %edi
	callq	_MAXALIGN
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_2:
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	callq	_PageGetItemId
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ItemIdGetLength
	movl	%eax, %r14d
	movq	%r12, %rdi
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_PageGetItem
	movq	%rax, %r13
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_5
LBB0_4:
	movq	%r13, %rbx
LBB0_11:
	movq	%r13, %r15
	movq	_P_HIKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rbx, %rdi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	_BTreeTupleGetNAtts
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_Assert
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_BTreeTupleGetNAtts
	xorl	%edi, %edi
	cmpl	-104(%rbp), %eax                ## 4-byte Folded Reload
	setle	%dil
	callq	_Assert
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r14d, %edx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_elog
LBB0_13:
	movq	%r13, %rdi
	callq	_OffsetNumberNext
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %rbx
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_pfree
LBB0_15:
	movq	_P_NEW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	__bt_getbuf
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%rax, %r14
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_BufferGetBlockNumber
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %rbx
	movq	%r15, -176(%rbp)                ## 8-byte Spill
	movq	-136(%rbp), %r13                ## 8-byte Reload
	movq	%r15, 32(%r13)
	movl	%r12d, %edi
	callq	__bt_vacuum_cycleid
	movq	%rax, 16(%r13)
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	(%rdi), %ecx
	movl	%ecx, (%rbx)
	movq	_BTP_SPLIT_END@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_BTP_ROOT@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movq	_BTP_HAS_GARBAGE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rbx)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rbx)
	movq	32(%rdi), %rcx
	movq	%rcx, 32(%rbx)
	movl	24(%rdi), %ecx
	movl	%ecx, 24(%rbx)
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%rax, 16(%rbx)
	movq	_P_HIKEY@GOTPCREL(%rip), %r15
	movq	(%r15), %r13
	callq	_P_RIGHTMOST
	testl	%eax, %eax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_19
## %bb.16:
	movq	(%r15), %rsi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_PageGetItemId
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ItemIdGetLength
	movl	%eax, -136(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_PageGetItem
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_BTreeTupleGetNAtts
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_Assert
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_BTreeTupleGetNAtts
	xorl	%edi, %edi
	cmpl	-104(%rbp), %eax                ## 4-byte Folded Reload
	setle	%dil
	callq	_Assert
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-136(%rbp), %edx                ## 4-byte Reload
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetPageSize
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	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	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_elog
LBB0_18:
	movq	%r13, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r13
LBB0_19:
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_P_FIRSTDATAKEY
	movq	%rax, %r12
	cmpq	%rbx, %rax
	jle	LBB0_20
LBB0_37:
	cmpq	-112(%rbp), %r12                ## 8-byte Folded Reload
	movl	-148(%rbp), %r12d               ## 4-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jg	LBB0_41
## %bb.38:
	xorl	%edi, %edi
	cmpl	$0, -56(%rbp)
	sete	%dil
	callq	_Assert
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	16(%rbp), %rdx
	movq	%r13, %rcx
	callq	__bt_pgaddtup
	testl	%eax, %eax
	jne	LBB0_40
## %bb.39:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetPageSize
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_elog
LBB0_40:
	movq	%r13, %rdi
	callq	_OffsetNumberNext
LBB0_41:
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_P_RIGHTMOST
	xorl	%ebx, %ebx
	movl	$0, %ecx
	testl	%eax, %eax
	movl	%r15d, %r13d
	jne	LBB0_47
## %bb.42:
	movq	32(%r14), %rsi
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	callq	__bt_getbuf
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %rbx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r15, 8(%rax)
	je	LBB0_44
## %bb.43:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetPageSize
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_INDEX_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	32(%r14), %r12
	movq	8(%rbx), %r13
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str.6(%rip), %rdi
	movq	%r12, %rsi
	movl	-148(%rbp), %r12d               ## 4-byte Reload
	movq	%r13, %rdx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
	callq	_errmsg_internal
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_44:
	movq	16(%rbx), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	cmpq	16(%rcx), %rax
	je	LBB0_46
## %bb.45:
	movq	_BTP_SPLIT_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
LBB0_46:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
LBB0_47:
	movq	%rcx, %r15
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_PageRestoreTempPage
	movl	-152(%rbp), %edi                ## 4-byte Reload
	callq	_MarkBufferDirty
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_MarkBufferDirty
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_P_RIGHTMOST
	testl	%eax, %eax
	je	LBB0_48
## %bb.49:
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_51
LBB0_50:
	movl	%r12d, %edi
	callq	_BufferGetPage
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	_BTP_INCOMPLETE_SPLIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%rax)
	movl	%r12d, %edi
	callq	_MarkBufferDirty
LBB0_51:
	movl	%r13d, %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_65
## %bb.52:
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movl	24(%rbx), %eax
	movl	%eax, -184(%rbp)
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -192(%rbp)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -200(%rbp)
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_SizeOfBtreeSplit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-200(%rbp), %rdi
	callq	_XLogRegisterData
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	xorl	%edi, %edi
	movl	-152(%rbp), %esi                ## 4-byte Reload
	callq	_XLogRegisterBuffer
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_XLogRegisterBuffer
	movq	%rbx, %rdi
	callq	_P_RIGHTMOST
	testl	%eax, %eax
	jne	LBB0_54
## %bb.53:
	movl	(%r14), %edx
	movl	$2, %edi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_XLogRegisterBuffer
LBB0_54:
	movl	%r12d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	movq	_P_HIKEY@GOTPCREL(%rip), %rbx
	je	LBB0_56
## %bb.55:
	movl	(%r14), %edx
	movl	$3, %edi
	movl	%r12d, %esi
	callq	_XLogRegisterBuffer
LBB0_56:
	cmpl	$0, -56(%rbp)
	je	LBB0_58
## %bb.57:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_MAXALIGN
	xorl	%edi, %edi
	movq	16(%rbp), %rsi
	movl	%eax, %edx
	callq	_XLogRegisterBufData
LBB0_58:
	movq	(%rbx), %rsi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_PageGetItemId
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IndexTupleSize
	movl	%eax, %edi
	callq	_MAXALIGN
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_XLogRegisterBufData
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rax
	movq	%rcx, %rsi
	addq	%rax, %rsi
	movq	%rcx, %r14
	movl	4(%rcx), %edx
	subl	%eax, %edx
	movl	$1, %edi
	callq	_XLogRegisterBufData
	cmpl	$0, -56(%rbp)
	jne	LBB0_59
## %bb.60:
	movq	_XLOG_BTREE_SPLIT_R@GOTPCREL(%rip), %rax
	jmp	LBB0_61
LBB0_20:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	movq	-144(%rbp), %rax                ## 8-byte Reload
	cmpq	-112(%rbp), %rax                ## 8-byte Folded Reload
	setge	%cl
	movl	%ecx, -136(%rbp)                ## 4-byte Spill
	setle	%dl
	movl	%edx, -164(%rbp)                ## 4-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	__bt_pgaddtup
	testl	%eax, %eax
	je	LBB0_34
LBB0_35:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%r13, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r13
LBB0_36:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r12
	cmpq	%rbx, %rax
	jg	LBB0_37
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_PageGetItemId
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ItemIdGetLength
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_PageGetItem
	movq	%rax, %r14
	cmpq	-112(%rbp), %r12                ## 8-byte Folded Reload
	jne	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpl	$0, -56(%rbp)
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-136(%rbp), %edi                ## 4-byte Reload
	callq	_Assert
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	16(%rbp), %rdx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	__bt_pgaddtup
	testl	%eax, %eax
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetPageSize
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -168(%rbp)                ## 4-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	movl	-168(%rbp), %edi                ## 4-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_elog
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%rbx, %rdi
	callq	_OffsetNumberNext
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_29:                                ##   in Loop: Header=BB0_21 Depth=1
	cmpq	-144(%rbp), %r12                ## 8-byte Folded Reload
	jge	LBB0_33
LBB0_30:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	movl	%r15d, %esi
	movq	%r14, %rdx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	__bt_pgaddtup
	testl	%eax, %eax
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetPageSize
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	movl	%r14d, %edi
	leaq	L_.str.4(%rip), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_elog
LBB0_32:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%rbx, %rdi
	callq	_OffsetNumberNext
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_36
LBB0_34:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetPageSize
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	movl	%ebx, %edi
	leaq	L_.str.5(%rip), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_elog
	jmp	LBB0_35
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	-164(%rbp), %edi                ## 4-byte Reload
	callq	_Assert
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	16(%rbp), %rdx
	movq	%r13, %rcx
	callq	__bt_pgaddtup
	testl	%eax, %eax
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetPageSize
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	movl	%ebx, %edi
	leaq	L_.str.3(%rip), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_elog
LBB0_28:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%r13, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r13
	cmpq	-144(%rbp), %r12                ## 8-byte Folded Reload
	jge	LBB0_33
	jmp	LBB0_30
LBB0_48:
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_MarkBufferDirty
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_51
	jmp	LBB0_50
LBB0_59:
	movq	_XLOG_BTREE_SPLIT_L@GOTPCREL(%rip), %rax
LBB0_61:
	movl	(%rax), %esi
	movq	_RM_BTREE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_XLogInsert
	movl	%eax, %ebx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_PageSetLSN
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_PageSetLSN
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_P_RIGHTMOST
	testl	%eax, %eax
	je	LBB0_62
## %bb.63:
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_64
LBB0_65:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_P_RIGHTMOST
	testl	%eax, %eax
	je	LBB0_66
## %bb.67:
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_69
LBB0_68:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	__bt_relbuf
LBB0_69:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_66:
	movl	%r13d, %edi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	__bt_relbuf
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_69
	jmp	LBB0_68
LBB0_62:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_PageSetLSN
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_65
LBB0_64:
	movl	%r12d, %edi
	callq	_BufferGetPage
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_PageSetLSN
	jmp	LBB0_65
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_BTP_ROOT,4,2                   ## @BTP_ROOT
	.comm	_BTP_SPLIT_END,4,2              ## @BTP_SPLIT_END
	.comm	_BTP_HAS_GARBAGE,4,2            ## @BTP_HAS_GARBAGE
	.comm	_BTP_INCOMPLETE_SPLIT,4,2       ## @BTP_INCOMPLETE_SPLIT
	.comm	_P_HIKEY,8,3                    ## @P_HIKEY
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add hikey to the left sibling while splitting block %u of index \"%s\""

	.comm	_P_NEW,8,3                      ## @P_NEW
	.comm	_BT_WRITE,4,2                   ## @BT_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"failed to add hikey to the right sibling while splitting block %u of index \"%s\""

L_.str.2:                               ## @.str.2
	.asciz	"failed to add new item to the left sibling while splitting block %u of index \"%s\""

L_.str.3:                               ## @.str.3
	.asciz	"failed to add new item to the right sibling while splitting block %u of index \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"failed to add old item to the left sibling while splitting block %u of index \"%s\""

L_.str.5:                               ## @.str.5
	.asciz	"failed to add old item to the right sibling while splitting block %u of index \"%s\""

	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ## @ERRCODE_INDEX_CORRUPTED
L_.str.6:                               ## @.str.6
	.asciz	"right sibling's left-link doesn't match: block %u links to %u instead of expected %u in index \"%s\""

	.comm	_SizeOfBtreeSplit,4,2           ## @SizeOfBtreeSplit
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_REGBUF_WILL_INIT,4,2           ## @REGBUF_WILL_INIT
	.comm	_XLOG_BTREE_SPLIT_L,4,2         ## @XLOG_BTREE_SPLIT_L
	.comm	_XLOG_BTREE_SPLIT_R,4,2         ## @XLOG_BTREE_SPLIT_R
	.comm	_RM_BTREE_ID,4,2                ## @RM_BTREE_ID
	.no_dead_strip	__bt_split
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_split
__bt_split:                             ; @_bt_split
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x19, x6
	mov	x21, x5
	mov	x25, x4
	mov	x26, x3
	mov	x23, x2
	mov	x24, x1
	mov	x27, x0
Lloh0:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	bl	_IndexRelationGetNumberOfAttributes
	str	w0, [sp, #92]                   ; 4-byte Folded Spill
	mov	x0, x27
	bl	_IndexRelationGetNumberOfKeyAttributes
	str	w0, [sp, #52]                   ; 4-byte Folded Spill
	mov	x0, x23
	bl	_BufferGetPage
	mov	x22, x0
	bl	_PageGetSpecialPointer
	mov	x20, x0
	mov	x0, x23
	bl	_BufferGetBlockNumber
	stp	x19, x0, [sp, #72]              ; 16-byte Folded Spill
	sub	x5, x29, #84
	mov	x0, x27
	mov	x1, x22
	str	x25, [sp, #104]                 ; 8-byte Folded Spill
	mov	x2, x25
	str	w21, [sp, #68]                  ; 4-byte Folded Spill
	mov	x3, x21
	mov	x4, x19
	bl	__bt_findsplitloc
	mov	x28, x0
	mov	x0, x22
	bl	_PageGetTempPage
	mov	x21, x0
	str	w23, [sp, #28]                  ; 4-byte Folded Spill
	mov	x0, x23
	bl	_BufferGetPageSize
	mov	x1, x0
	mov	x0, x21
	bl	__bt_pageinit
	mov	x0, x21
	bl	_PageGetSpecialPointer
	mov	x19, x0
	ldr	w8, [x20]
	str	w8, [x0]
Lloh3:
	adrp	x9, _BTP_ROOT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BTP_ROOT@GOTPAGEOFF]
Lloh5:
	adrp	x10, _BTP_SPLIT_END@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BTP_SPLIT_END@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _BTP_HAS_GARBAGE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BTP_HAS_GARBAGE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x0]
Lloh12:
	adrp	x9, _BTP_INCOMPLETE_SPLIT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BTP_INCOMPLETE_SPLIT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x0]
	ldr	x8, [x20, #8]
	str	x8, [x0, #8]
	ldr	w8, [x20, #24]
	str	w8, [x0, #24]
	mov	x0, x22
	bl	_PageGetLSN
	mov	x1, x0
	mov	x0, x21
	bl	_PageSetLSN
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x20
	bl	_P_ISLEAF
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	ldur	w8, [x29, #-84]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x23, [sp, #72]                  ; 8-byte Folded Reload
	ldr	w25, [sp, #68]                  ; 4-byte Folded Reload
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	cmp	x28, x8
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x22
	mov	x1, x28
	bl	_PageGetItemId
	mov	x23, x0
	bl	_ItemIdGetLength
	mov	x25, x0
	mov	x0, x22
	mov	x1, x23
	bl	_PageGetItem
	mov	x23, x0
LBB0_3:
	str	x28, [sp, #96]                  ; 8-byte Folded Spill
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	cbz	w8, LBB0_10
; %bb.4:
	mov	x20, x24
	ldr	x8, [x24]
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
	cbnz	x8, LBB0_6
; %bb.5:
	mov	x26, x23
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #92]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.eq	LBB0_11
LBB0_6:
	ldur	w8, [x29, #-84]
	ldr	x0, [sp, #96]                   ; 8-byte Folded Reload
	cbz	w8, LBB0_8
; %bb.7:
	ldr	x24, [sp, #72]                  ; 8-byte Folded Reload
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	cmp	x0, x8
	b.eq	LBB0_9
LBB0_8:
	bl	_OffsetNumberPrev
	mov	x24, x0
	mov	x0, x28
	bl	_P_FIRSTDATAKEY
	cmp	x24, x0
	cset	w0, ge
	bl	_Assert
	mov	x0, x22
	mov	x1, x24
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x22
	bl	_PageGetItem
	mov	x24, x0
LBB0_9:
	cmp	x24, x23
	cset	w0, ne
	bl	_Assert
	mov	x0, x27
	mov	x1, x24
	mov	x2, x23
	mov	x3, x20
	bl	__bt_truncate
	mov	x26, x0
	bl	_IndexTupleSize
	bl	_MAXALIGN
	mov	x25, x0
	b	LBB0_11
LBB0_10:
	mov	x26, x23
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
LBB0_11:
Lloh15:
	adrp	x8, _P_HIKEY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _P_HIKEY@GOTPAGEOFF]
Lloh17:
	ldr	x20, [x8]
	mov	x0, x26
	mov	x1, x27
	bl	_BTreeTupleGetNAtts
	cmp	w0, #0
	cset	w0, gt
	bl	_Assert
	mov	x0, x26
	str	w27, [sp, #56]                  ; 4-byte Folded Spill
	mov	x1, x27
	bl	_BTreeTupleGetNAtts
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	cmp	w0, w8
	cset	w0, le
	bl	_Assert
	mov	x0, x21
	mov	x1, x26
	mov	x2, x25
	mov	x3, x20
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
Lloh18:
	adrp	x27, _InvalidOffsetNumber@GOTPAGE
Lloh19:
	ldr	x27, [x27, _InvalidOffsetNumber@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w24, [x8]
	ldr	w0, [sp, #56]                   ; 4-byte Folded Reload
	bl	_RelationGetRelationName
	mov	x3, x0
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	ldr	x2, [sp, #80]                   ; 8-byte Folded Reload
	bl	_elog
LBB0_13:
	mov	x0, x20
	bl	_OffsetNumberNext
	mov	x25, x0
	cmp	x26, x23
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x26
	bl	_pfree
LBB0_15:
Lloh25:
	adrp	x8, _P_NEW@GOTPAGE
Lloh26:
	ldr	x8, [x8, _P_NEW@GOTPAGEOFF]
Lloh27:
	ldr	x1, [x8]
Lloh28:
	adrp	x8, _BT_WRITE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BT_WRITE@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	ldr	w23, [sp, #56]                  ; 4-byte Folded Reload
	mov	x0, x23
	bl	__bt_getbuf
	mov	x20, x0
	bl	_BufferGetPage
	mov	x24, x0
	str	w20, [sp, #92]                  ; 4-byte Folded Spill
	mov	x0, x20
	bl	_BufferGetBlockNumber
	mov	x26, x0
	mov	x0, x24
	bl	_PageGetSpecialPointer
	mov	x20, x0
	str	x26, [sp]                       ; 8-byte Folded Spill
	str	x26, [x19, #32]
	mov	x0, x23
	bl	__bt_vacuum_cycleid
	str	x0, [x19, #16]
	ldr	w8, [x28]
	str	w8, [x20]
Lloh31:
	adrp	x9, _BTP_ROOT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BTP_ROOT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _BTP_SPLIT_END@GOTPAGE
Lloh35:
	ldr	x10, [x10, _BTP_SPLIT_END@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh37:
	adrp	x10, _BTP_HAS_GARBAGE@GOTPAGE
Lloh38:
	ldr	x10, [x10, _BTP_HAS_GARBAGE@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x20]
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	str	x8, [x20, #8]
	ldr	x8, [x28, #32]
	str	x8, [x20, #32]
	ldr	w8, [x28, #24]
	str	w8, [x20, #24]
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	str	x0, [x20, #16]
Lloh40:
	adrp	x19, _P_HIKEY@GOTPAGE
Lloh41:
	ldr	x19, [x19, _P_HIKEY@GOTPAGEOFF]
	ldr	x26, [x19]
	mov	x0, x28
	bl	_P_RIGHTMOST
	cbz	w0, LBB0_17
; %bb.16:
	mov	x27, x23
	b	LBB0_20
LBB0_17:
	ldr	x1, [x19]
	mov	x0, x22
	bl	_PageGetItemId
	mov	x19, x0
	bl	_ItemIdGetLength
	mov	x20, x0
	mov	x0, x22
	mov	x1, x19
	bl	_PageGetItem
	mov	x19, x0
	mov	x1, x23
	bl	_BTreeTupleGetNAtts
	cmp	w0, #0
	cset	w0, gt
	bl	_Assert
	mov	x0, x19
	mov	x1, x23
	bl	_BTreeTupleGetNAtts
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	cmp	w0, w8
	cset	w0, le
	bl	_Assert
	mov	x0, x24
	mov	x1, x19
	mov	x2, x20
	mov	x3, x26
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
	ldr	x8, [x27]
	cmp	x0, x8
	mov	x27, x23
	b.ne	LBB0_19
; %bb.18:
	ldr	w0, [sp, #92]                   ; 4-byte Folded Reload
	bl	_BufferGetPageSize
	mov	x2, x0
	mov	x0, x24
	mov	w1, #0
	bl	_memset
Lloh42:
	adrp	x8, _ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w19, [x8]
	mov	x0, x27
	bl	_RelationGetRelationName
	mov	x3, x0
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldr	x2, [sp, #80]                   ; 8-byte Folded Reload
	bl	_elog
LBB0_19:
	mov	x0, x26
	bl	_OffsetNumberNext
	mov	x26, x0
LBB0_20:
	mov	x0, x22
	bl	_PageGetMaxOffsetNumber
	mov	x23, x0
	mov	x0, x28
	bl	_P_FIRSTDATAKEY
	mov	x19, x0
	cmp	x0, x23
	b.le	LBB0_27
LBB0_21:
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	cmp	x19, x8
	ldr	w23, [sp, #28]                  ; 4-byte Folded Reload
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
	b.gt	LBB0_25
; %bb.22:
	ldur	w8, [x29, #-84]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x24
	ldr	w1, [sp, #68]                   ; 4-byte Folded Reload
	ldr	x2, [sp, #72]                   ; 8-byte Folded Reload
	mov	x3, x26
	bl	__bt_pgaddtup
	cbnz	w0, LBB0_24
; %bb.23:
	ldr	w0, [sp, #92]                   ; 4-byte Folded Reload
	bl	_BufferGetPageSize
	mov	x2, x0
	mov	x0, x24
	mov	w1, #0
	bl	_memset
Lloh47:
	adrp	x8, _ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w19, [x8]
	mov	x0, x27
	bl	_RelationGetRelationName
	mov	x3, x0
Lloh50:
	adrp	x1, l_.str.3@PAGE
Lloh51:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	ldr	x2, [sp, #80]                   ; 8-byte Folded Reload
	bl	_elog
LBB0_24:
	mov	x0, x26
	bl	_OffsetNumberNext
LBB0_25:
	mov	x0, x28
	bl	_P_RIGHTMOST
	cbz	w0, LBB0_44
; %bb.26:
	mov	x19, #0
	mov	x28, #0
	ldp	w26, w20, [sp, #8]              ; 8-byte Folded Reload
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_49
LBB0_27:
	ldp	x9, x8, [sp, #96]               ; 16-byte Folded Reload
	cmp	x9, x8
	cset	w9, ge
	cset	w8, le
	stp	w8, w9, [sp, #48]               ; 8-byte Folded Spill
	b	LBB0_31
LBB0_28:                                ;   in Loop: Header=BB0_31 Depth=1
	mov	x0, x24
	mov	x1, x20
	mov	x2, x28
	mov	x3, x26
	bl	__bt_pgaddtup
	cbz	w0, LBB0_36
LBB0_29:                                ;   in Loop: Header=BB0_31 Depth=1
	mov	x0, x26
	bl	_OffsetNumberNext
	mov	x26, x0
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	mov	x0, x19
	bl	_OffsetNumberNext
	mov	x19, x0
	cmp	x0, x23
	b.gt	LBB0_21
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_PageGetItemId
	mov	x28, x0
	bl	_ItemIdGetLength
	mov	x20, x0
	mov	x0, x22
	mov	x1, x28
	bl	_PageGetItem
	mov	x28, x0
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	cmp	x19, x8
	b.ne	LBB0_40
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldur	w8, [x29, #-84]
	cbz	w8, LBB0_37
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w0, [sp, #52]                   ; 4-byte Folded Reload
	bl	_Assert
	mov	x0, x21
	ldr	w1, [sp, #68]                   ; 4-byte Folded Reload
	ldr	x2, [sp, #72]                   ; 8-byte Folded Reload
	mov	x3, x25
	bl	__bt_pgaddtup
	cbnz	w0, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w0, [sp, #92]                   ; 4-byte Folded Reload
	bl	_BufferGetPageSize
	mov	x2, x0
	mov	x0, x24
	mov	w1, #0
	bl	_memset
Lloh52:
	adrp	x8, _ERROR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh54:
	ldr	w27, [x8]
	ldr	w0, [sp, #56]                   ; 4-byte Folded Reload
	bl	_RelationGetRelationName
	mov	x3, x0
	mov	x0, x27
	ldr	w27, [sp, #56]                  ; 4-byte Folded Reload
Lloh55:
	adrp	x1, l_.str.2@PAGE
Lloh56:
	add	x1, x1, l_.str.2@PAGEOFF
	ldr	x2, [sp, #80]                   ; 8-byte Folded Reload
	bl	_elog
LBB0_35:                                ;   in Loop: Header=BB0_31 Depth=1
	mov	x0, x25
	bl	_OffsetNumberNext
	mov	x25, x0
	b	LBB0_40
LBB0_36:                                ;   in Loop: Header=BB0_31 Depth=1
	ldr	w0, [sp, #92]                   ; 4-byte Folded Reload
	bl	_BufferGetPageSize
	mov	x2, x0
	mov	x0, x24
	mov	w1, #0
	bl	_memset
Lloh57:
	adrp	x8, _ERROR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh59:
	ldr	w20, [x8]
	mov	x0, x27
	bl	_RelationGetRelationName
	mov	x3, x0
	mov	x0, x20
Lloh60:
	adrp	x1, l_.str.5@PAGE
Lloh61:
	add	x1, x1, l_.str.5@PAGEOFF
	ldr	x2, [sp, #80]                   ; 8-byte Folded Reload
	bl	_elog
	b	LBB0_29
LBB0_37:                                ;   in Loop: Header=BB0_31 Depth=1
	ldr	w0, [sp, #48]                   ; 4-byte Folded Reload
	bl	_Assert
	mov	x0, x24
	ldr	w1, [sp, #68]                   ; 4-byte Folded Reload
	ldr	x2, [sp, #72]                   ; 8-byte Folded Reload
	mov	x3, x26
	bl	__bt_pgaddtup
	cbnz	w0, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w0, [sp, #92]                   ; 4-byte Folded Reload
	bl	_BufferGetPageSize
	mov	x2, x0
	mov	x0, x24
	mov	w1, #0
	bl	_memset
Lloh62:
	adrp	x8, _ERROR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh64:
	ldr	w27, [x8]
	ldr	w0, [sp, #56]                   ; 4-byte Folded Reload
	bl	_RelationGetRelationName
	mov	x3, x0
	mov	x0, x27
	ldr	w27, [sp, #56]                  ; 4-byte Folded Reload
Lloh65:
	adrp	x1, l_.str.3@PAGE
Lloh66:
	add	x1, x1, l_.str.3@PAGEOFF
	ldr	x2, [sp, #80]                   ; 8-byte Folded Reload
	bl	_elog
LBB0_39:                                ;   in Loop: Header=BB0_31 Depth=1
	mov	x0, x26
	bl	_OffsetNumberNext
	mov	x26, x0
LBB0_40:                                ;   in Loop: Header=BB0_31 Depth=1
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	cmp	x19, x8
	b.ge	LBB0_28
; %bb.41:                               ;   in Loop: Header=BB0_31 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x28
	mov	x3, x25
	bl	__bt_pgaddtup
	cbnz	w0, LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w0, [sp, #92]                   ; 4-byte Folded Reload
	bl	_BufferGetPageSize
	mov	x2, x0
	mov	x0, x24
	mov	w1, #0
	bl	_memset
Lloh67:
	adrp	x8, _ERROR@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh69:
	ldr	w20, [x8]
	mov	x0, x27
	bl	_RelationGetRelationName
	mov	x3, x0
	mov	x0, x20
Lloh70:
	adrp	x1, l_.str.4@PAGE
Lloh71:
	add	x1, x1, l_.str.4@PAGEOFF
	ldr	x2, [sp, #80]                   ; 8-byte Folded Reload
	bl	_elog
LBB0_43:                                ;   in Loop: Header=BB0_31 Depth=1
	mov	x0, x25
	bl	_OffsetNumberNext
	mov	x25, x0
	b	LBB0_30
LBB0_44:
	ldr	x1, [x28, #32]
Lloh72:
	adrp	x8, _BT_WRITE@GOTPAGE
Lloh73:
	ldr	x8, [x8, _BT_WRITE@GOTPAGEOFF]
Lloh74:
	ldr	w2, [x8]
	mov	x0, x27
	bl	__bt_getbuf
	mov	x26, x0
	bl	_BufferGetPage
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	bl	_PageGetSpecialPointer
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x25, [sp, #80]                  ; 8-byte Folded Reload
	cmp	x8, x25
	b.eq	LBB0_46
; %bb.45:
	ldr	w0, [sp, #92]                   ; 4-byte Folded Reload
	bl	_BufferGetPageSize
	mov	x2, x0
	mov	x0, x24
	mov	w1, #0
	bl	_memset
Lloh75:
	adrp	x8, _ERROR@GOTPAGE
Lloh76:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh77:
	ldr	w20, [x8]
Lloh78:
	adrp	x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGE
Lloh79:
	ldr	x8, [x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGEOFF]
Lloh80:
	ldr	w0, [x8]
	bl	_errcode
	ldr	x23, [x28, #32]
	mov	x28, x26
	ldr	x26, [x19, #8]
	mov	x0, x27
	bl	_RelationGetRelationName
	mov	x4, x0
Lloh81:
	adrp	x0, l_.str.6@PAGE
Lloh82:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x23
	ldr	w23, [sp, #28]                  ; 4-byte Folded Reload
	mov	x2, x26
	mov	x26, x28
	mov	x3, x25
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_46:
	ldr	x8, [x19, #16]
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x9, [x25, #16]
	cmp	x8, x9
	b.eq	LBB0_48
; %bb.47:
Lloh83:
	adrp	x8, _BTP_SPLIT_END@GOTPAGE
Lloh84:
	ldr	x8, [x8, _BTP_SPLIT_END@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x25]
LBB0_48:
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x28, [sp, #56]                  ; 8-byte Folded Reload
LBB0_49:
	bl	_START_CRIT_SECTION
	mov	x0, x21
	mov	x1, x22
	bl	_PageRestoreTempPage
	mov	x0, x23
	bl	_MarkBufferDirty
	ldr	w0, [sp, #92]                   ; 4-byte Folded Reload
	bl	_MarkBufferDirty
	mov	x0, x25
	bl	_P_RIGHTMOST
	cbz	w0, LBB0_65
; %bb.50:
	ldr	w21, [sp, #44]                  ; 4-byte Folded Reload
	cbnz	w21, LBB0_52
LBB0_51:
	mov	x0, x20
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
Lloh86:
	adrp	x8, _BTP_INCOMPLETE_SPLIT@GOTPAGE
Lloh87:
	ldr	x8, [x8, _BTP_INCOMPLETE_SPLIT@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
	mov	x0, x20
	bl	_MarkBufferDirty
LBB0_52:
	mov	x0, x27
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_61
; %bb.53:
	ldr	w8, [x25, #24]
	str	w8, [sp, #128]
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	stp	x8, x9, [sp, #112]
	bl	_XLogBeginInsert
Lloh89:
	adrp	x8, _SizeOfBtreeSplit@GOTPAGE
Lloh90:
	ldr	x8, [x8, _SizeOfBtreeSplit@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
	add	x0, sp, #112
	bl	_XLogRegisterData
Lloh92:
	adrp	x19, _REGBUF_STANDARD@GOTPAGE
Lloh93:
	ldr	x19, [x19, _REGBUF_STANDARD@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	w0, #0
	mov	x1, x23
	bl	_XLogRegisterBuffer
Lloh94:
	adrp	x8, _REGBUF_WILL_INIT@GOTPAGE
Lloh95:
	ldr	x8, [x8, _REGBUF_WILL_INIT@GOTPAGEOFF]
Lloh96:
	ldr	w2, [x8]
	mov	w0, #1
	ldr	w1, [sp, #92]                   ; 4-byte Folded Reload
	bl	_XLogRegisterBuffer
	mov	x0, x25
	bl	_P_RIGHTMOST
	cbnz	w0, LBB0_55
; %bb.54:
	ldr	w2, [x19]
	mov	w0, #2
	mov	x1, x26
	bl	_XLogRegisterBuffer
LBB0_55:
	mov	x0, x20
	bl	_BufferIsValid
	cbz	x0, LBB0_57
; %bb.56:
	ldr	w2, [x19]
	mov	w0, #3
	mov	x1, x20
	bl	_XLogRegisterBuffer
LBB0_57:
	ldur	w8, [x29, #-84]
	cbz	w8, LBB0_59
; %bb.58:
	ldr	w0, [sp, #68]                   ; 4-byte Folded Reload
	bl	_MAXALIGN
	mov	x2, x0
	mov	w0, #0
	ldr	x1, [sp, #72]                   ; 8-byte Folded Reload
	bl	_XLogRegisterBufData
LBB0_59:
Lloh97:
	adrp	x8, _P_HIKEY@GOTPAGE
Lloh98:
	ldr	x8, [x8, _P_HIKEY@GOTPAGEOFF]
Lloh99:
	ldr	x1, [x8]
	mov	x0, x22
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x22
	bl	_PageGetItem
	mov	x19, x0
	bl	_IndexTupleSize
	bl	_MAXALIGN
	mov	x2, x0
	mov	w0, #0
	mov	x1, x19
	bl	_XLogRegisterBufData
	ldp	w8, w9, [x24]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x1, x24, x8
	sub	w2, w9, w8
	mov	w0, #1
	bl	_XLogRegisterBufData
	ldur	w8, [x29, #-84]
Lloh100:
	adrp	x9, _XLOG_BTREE_SPLIT_L@GOTPAGE
Lloh101:
	ldr	x9, [x9, _XLOG_BTREE_SPLIT_L@GOTPAGEOFF]
Lloh102:
	adrp	x10, _XLOG_BTREE_SPLIT_R@GOTPAGE
Lloh103:
	ldr	x10, [x10, _XLOG_BTREE_SPLIT_R@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
Lloh104:
	adrp	x8, _RM_BTREE_ID@GOTPAGE
Lloh105:
	ldr	x8, [x8, _RM_BTREE_ID@GOTPAGEOFF]
Lloh106:
	ldr	w0, [x8]
	bl	_XLogInsert
	mov	x19, x0
	mov	x0, x22
	mov	x1, x19
	bl	_PageSetLSN
	mov	x0, x24
	mov	x1, x19
	bl	_PageSetLSN
	mov	x0, x25
	bl	_P_RIGHTMOST
	cbz	w0, LBB0_67
; %bb.60:
	cbz	w21, LBB0_68
LBB0_61:
	bl	_END_CRIT_SECTION
	mov	x0, x25
	bl	_P_RIGHTMOST
	cbz	w0, LBB0_66
; %bb.62:
	cbnz	w21, LBB0_64
LBB0_63:
	mov	x0, x27
	mov	x1, x20
	bl	__bt_relbuf
LBB0_64:
	ldr	w0, [sp, #92]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_65:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	x8, [x19, #8]
	mov	x0, x26
	bl	_MarkBufferDirty
	ldr	w21, [sp, #44]                  ; 4-byte Folded Reload
	cbnz	w21, LBB0_52
	b	LBB0_51
LBB0_66:
	mov	x0, x27
	mov	x1, x26
	bl	__bt_relbuf
	cbnz	w21, LBB0_64
	b	LBB0_63
LBB0_67:
	mov	x0, x28
	mov	x1, x19
	bl	_PageSetLSN
	cbnz	w21, LBB0_61
LBB0_68:
	mov	x0, x20
	bl	_BufferGetPage
	mov	x1, x19
	bl	_PageSetLSN
	b	LBB0_61
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_BTP_ROOT,4,2                   ; @BTP_ROOT
	.comm	_BTP_SPLIT_END,4,2              ; @BTP_SPLIT_END
	.comm	_BTP_HAS_GARBAGE,4,2            ; @BTP_HAS_GARBAGE
	.comm	_BTP_INCOMPLETE_SPLIT,4,2       ; @BTP_INCOMPLETE_SPLIT
	.comm	_P_HIKEY,8,3                    ; @P_HIKEY
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add hikey to the left sibling while splitting block %u of index \"%s\""

	.comm	_P_NEW,8,3                      ; @P_NEW
	.comm	_BT_WRITE,4,2                   ; @BT_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"failed to add hikey to the right sibling while splitting block %u of index \"%s\""

l_.str.2:                               ; @.str.2
	.asciz	"failed to add new item to the left sibling while splitting block %u of index \"%s\""

l_.str.3:                               ; @.str.3
	.asciz	"failed to add new item to the right sibling while splitting block %u of index \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"failed to add old item to the left sibling while splitting block %u of index \"%s\""

l_.str.5:                               ; @.str.5
	.asciz	"failed to add old item to the right sibling while splitting block %u of index \"%s\""

	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ; @ERRCODE_INDEX_CORRUPTED
l_.str.6:                               ; @.str.6
	.asciz	"right sibling's left-link doesn't match: block %u links to %u instead of expected %u in index \"%s\""

	.comm	_SizeOfBtreeSplit,4,2           ; @SizeOfBtreeSplit
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_REGBUF_WILL_INIT,4,2           ; @REGBUF_WILL_INIT
	.comm	_XLOG_BTREE_SPLIT_L,4,2         ; @XLOG_BTREE_SPLIT_L
	.comm	_XLOG_BTREE_SPLIT_R,4,2         ; @XLOG_BTREE_SPLIT_R
	.comm	_RM_BTREE_ID,4,2                ; @RM_BTREE_ID
	.no_dead_strip	__bt_split
.subsections_via_symbols
