	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_insertonpg
__bt_insertonpg:                        ## @_bt_insertonpg
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movl	%r8d, -80(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%edi, %r15d
	movl	24(%rbp), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	callq	_BufferGetPage
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_P_ISLEAF
	movl	%eax, %r14d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_BufferIsValid
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	xorl	%edi, %edi
	cmpl	%ecx, %r14d
	sete	%dil
	callq	_Assert
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_P_ISLEAF
	movb	$1, %r14b
	movb	$1, %cl
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_BTreeTupleGetNAtts
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_IndexRelationGetNumberOfAttributes
	cmpq	%rax, %rbx
	sete	%cl
LBB0_2:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movzbl	%cl, %edi
	callq	_Assert
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_P_ISLEAF
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_BTreeTupleGetNAtts
	movq	%rax, %r14
	movl	%r15d, %edi
	callq	_IndexRelationGetNumberOfKeyAttributes
	cmpq	%rax, %r14
	setle	%r14b
LBB0_4:
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movzbl	%r14b, %edi
	callq	_Assert
	movq	%rbx, %rdi
	callq	_P_INCOMPLETE_SPLIT
	testl	%eax, %eax
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_BufferGetBlockNumber
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_elog
LBB0_6:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_IndexTupleSize
	movslq	%eax, %rdi
	callq	_MAXALIGN
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_PageGetFreeSpace
	cmpq	%r12, %rax
	jge	LBB0_14
## %bb.7:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_P_ISROOT
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_P_LEFTMOST
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_P_RIGHTMOST
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
LBB0_14:
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetBlockNumber
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.16:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_P_ISLEAF
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_BTREE_METAPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	__bt_getbuf
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_BTPageGetMeta
	movq	%rax, %rcx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	cmpq	8(%rbx), %rax
	jl	LBB0_18
## %bb.17:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	__bt_relbuf
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_18
LBB0_8:
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
LBB0_10:
	movq	%rbx, %rdi
	callq	_P_ISLEAF
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_RelationGetTargetBlock
	movl	%eax, %edi
	callq	_BlockNumberIsValid
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_13
LBB0_15:
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_18:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_P_ISLEAF
	testl	%eax, %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_21
## %bb.19:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_P_FIRSTDATAKEY
	cmpq	-112(%rbp), %rax                ## 8-byte Folded Reload
	jne	LBB0_21
## %bb.20:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_elog
LBB0_21:
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rcx
	callq	__bt_pgaddtup
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_elog
LBB0_23:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MarkBufferDirty
	movl	%r14d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_27
## %bb.24:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_BTREE_NOVAC_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_26
## %bb.25:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	__bt_upgrademetapage
LBB0_26:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rcx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%rax, (%rcx)
	movl	%r14d, %edi
	callq	_MarkBufferDirty
LBB0_27:
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movl	%r12d, %edi
	callq	_BufferGetPage
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_P_INCOMPLETE_SPLIT
	movl	%eax, %edi
	callq	_Assert
	movq	_BTP_INCOMPLETE_SPLIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movl	%r12d, %edi
	callq	_MarkBufferDirty
LBB0_29:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_P_RIGHTMOST
	testq	%rax, %rax
	je	LBB0_33
## %bb.30:
	movq	%rbx, %rdi
	callq	_P_ISLEAF
	testl	%eax, %eax
	je	LBB0_33
## %bb.31:
	movq	%rbx, %rdi
	callq	_P_ISROOT
	testl	%eax, %eax
	jne	LBB0_33
## %bb.32:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetBlockNumber
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
LBB0_33:
	movl	%r15d, %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_44
## %bb.34:
	movq	%r13, -120(%rbp)
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_SizeOfBtreeInsert@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-120(%rbp), %rdi
	callq	_XLogRegisterData
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_P_ISLEAF
	movl	%r15d, %r12d
	testl	%eax, %eax
	je	LBB0_36
## %bb.35:
	movq	_XLOG_BTREE_INSERT_LEAF@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_37
LBB0_11:
	movl	$1, %edi
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-56(%rbp), %r14d                ## 4-byte Reload
LBB0_13:
	callq	_Assert
	movq	%r15, (%rsp)
	movl	%r14d, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movq	-112(%rbp), %r8                 ## 8-byte Reload
	movq	%r12, %r9
	callq	__bt_split
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_BufferGetBlockNumber
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_BufferGetBlockNumber
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_PredicateLockPageSplit
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movl	-104(%rbp), %r8d                ## 4-byte Reload
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__bt_insert_parent              ## TAILCALL
LBB0_36:
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_XLogRegisterBuffer
	movq	_XLOG_BTREE_INSERT_UPPER@GOTPCREL(%rip), %rax
LBB0_37:
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_39
## %bb.38:
	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
	movl	32(%rbx), %eax
	movl	%eax, -128(%rbp)
	movdqu	(%rbx), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqa	%xmm0, -160(%rbp)
	movups	16(%rbx), %xmm0
	movaps	%xmm0, -144(%rbp)
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %rax
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$2, %edi
	movl	%r14d, %esi
	callq	_XLogRegisterBuffer
	leaq	-160(%rbp), %rsi
	movl	$2, %edi
	movl	$40, %edx
	callq	_XLogRegisterBufData
	movq	_XLOG_BTREE_INSERT_META@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_39:
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_XLogRegisterBuffer
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_IndexTupleSize
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_XLogRegisterBufData
	movq	_RM_BTREE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_XLogInsert
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_41
## %bb.40:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_PageSetLSN
LBB0_41:
	movl	%r13d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	movl	%r12d, %r15d
	je	LBB0_43
## %bb.42:
	movl	%r13d, %edi
	callq	_BufferGetPage
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_PageSetLSN
LBB0_43:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_PageSetLSN
LBB0_44:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movl	%r14d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	__bt_relbuf
LBB0_46:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_48
## %bb.47:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	__bt_relbuf
LBB0_48:
	movl	%r15d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	__bt_relbuf
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_BlockNumberIsValid
	testq	%rax, %rax
	je	LBB0_51
## %bb.49:
	movl	%r15d, %edi
	callq	__bt_getrootheight
	movq	_BTREE_FASTPATH_MIN_LEVEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_51
## %bb.50:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_RelationSetTargetBlock
LBB0_51:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot insert to incompletely split page %u"

	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_InvalidBlockNumber,4,2         ## @InvalidBlockNumber
	.comm	_BTREE_METAPAGE,4,2             ## @BTREE_METAPAGE
	.comm	_BT_WRITE,4,2                   ## @BT_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"cannot insert second negative infinity item in block %u of index \"%s\""

	.comm	_PANIC,4,2                      ## @PANIC
L_.str.2:                               ## @.str.2
	.asciz	"failed to add new item to block %u in index \"%s\""

	.comm	_BTREE_NOVAC_VERSION,8,3        ## @BTREE_NOVAC_VERSION
	.comm	_BTP_INCOMPLETE_SPLIT,4,2       ## @BTP_INCOMPLETE_SPLIT
	.comm	_SizeOfBtreeInsert,4,2          ## @SizeOfBtreeInsert
	.comm	_XLOG_BTREE_INSERT_LEAF,4,2     ## @XLOG_BTREE_INSERT_LEAF
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_XLOG_BTREE_INSERT_UPPER,4,2    ## @XLOG_BTREE_INSERT_UPPER
	.comm	_REGBUF_WILL_INIT,4,2           ## @REGBUF_WILL_INIT
	.comm	_XLOG_BTREE_INSERT_META,4,2     ## @XLOG_BTREE_INSERT_META
	.comm	_RM_BTREE_ID,4,2                ## @RM_BTREE_ID
	.comm	_BTREE_FASTPATH_MIN_LEVEL,8,3   ## @BTREE_FASTPATH_MIN_LEVEL
	.no_dead_strip	__bt_insertonpg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_insertonpg
__bt_insertonpg:                        ; @_bt_insertonpg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x25, x7
	str	x6, [sp, #40]                   ; 8-byte Folded Spill
	mov	x22, x5
	mov	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x27, x1
	mov	x19, x0
	mov	x0, x2
	bl	_BufferGetPage
	mov	x23, x0
	bl	_PageGetSpecialPointer
	mov	x26, x0
	bl	_P_ISLEAF
	mov	x28, x0
	mov	x0, x21
	bl	_BufferIsValid
	cmp	x0, #0
	cset	w8, eq
	cmp	w28, w8
	cset	w0, eq
	bl	_Assert
	mov	x0, x26
	bl	_P_ISLEAF
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x19
	bl	_BTreeTupleGetNAtts
	mov	x28, x0
	mov	x0, x19
	bl	_IndexRelationGetNumberOfAttributes
	cmp	x28, x0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_Assert
	mov	x0, x26
	bl	_P_ISLEAF
	cbz	w0, LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	x0, x22
	mov	x1, x19
	bl	_BTreeTupleGetNAtts
	mov	x28, x0
	mov	x0, x19
	bl	_IndexRelationGetNumberOfKeyAttributes
	cmp	x28, x0
	cset	w0, le
LBB0_6:
	bl	_Assert
	mov	x0, x26
	bl	_P_INCOMPLETE_SPLIT
	cbz	w0, LBB0_8
; %bb.7:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w28, [x8]
	mov	x0, x20
	bl	_BufferGetBlockNumber
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x28
	bl	_elog
LBB0_8:
	mov	x0, x22
	bl	_IndexTupleSize
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_MAXALIGN
	mov	x28, x0
	mov	x0, x23
	bl	_PageGetFreeSpace
	cmp	x0, x28
	b.ge	LBB0_11
; %bb.9:
	mov	x0, x26
	bl	_P_ISROOT
	mov	x23, x0
	mov	x0, x26
	bl	_P_LEFTMOST
	cbz	x0, LBB0_14
; %bb.10:
	mov	x0, x26
	bl	_P_RIGHTMOST
	cmp	x0, #0
	cset	w25, ne
	b	LBB0_15
LBB0_11:
Lloh5:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh6:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh7:
	ldr	w27, [x8]
Lloh8:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh9:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	mov	x0, x20
	bl	_BufferGetBlockNumber
	mov	x24, x0
	cbz	w25, LBB0_17
; %bb.12:
	mov	x0, x26
	bl	_P_ISLEAF
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh11:
	adrp	x8, _BTREE_METAPAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTREE_METAPAGE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _BT_WRITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BT_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	__bt_getbuf
	mov	x27, x0
	bl	_BufferGetPage
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	bl	_BTPageGetMeta
	mov	x25, x0
	ldr	x8, [x0]
	ldr	x9, [x26, #8]
	cmp	x8, x9
	b.lt	LBB0_18
; %bb.13:
	mov	x0, x19
	mov	x1, x27
	bl	__bt_relbuf
Lloh17:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh18:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh19:
	ldr	w27, [x8]
	b	LBB0_18
LBB0_14:
	mov	w25, #0
LBB0_15:
	mov	x0, x26
	bl	_P_ISLEAF
	cbz	w0, LBB0_36
; %bb.16:
	mov	x0, x19
	bl	_RelationGetTargetBlock
	bl	_BlockNumberIsValid
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_37
LBB0_17:
	mov	x25, #0
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
LBB0_18:
	mov	x0, x26
	bl	_P_ISLEAF
	cbnz	w0, LBB0_21
; %bb.19:
	mov	x0, x26
	bl	_P_FIRSTDATAKEY
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.20:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	mov	x0, x19
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	mov	x2, x24
	bl	_elog
LBB0_21:
	bl	_START_CRIT_SECTION
	mov	x0, x23
	mov	x1, x28
	mov	x2, x22
	ldr	x3, [sp, #40]                   ; 8-byte Folded Reload
	bl	__bt_pgaddtup
	cbnz	w0, LBB0_23
; %bb.22:
Lloh25:
	adrp	x8, _PANIC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh27:
	ldr	w28, [x8]
	mov	x0, x19
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x28
	mov	x2, x24
	bl	_elog
LBB0_23:
	mov	x0, x20
	bl	_MarkBufferDirty
	mov	x0, x27
	bl	_BufferIsValid
Lloh30:
	adrp	x28, _BTREE_NOVAC_VERSION@GOTPAGE
Lloh31:
	ldr	x28, [x28, _BTREE_NOVAC_VERSION@GOTPAGEOFF]
	cbz	x0, LBB0_27
; %bb.24:
	ldr	x8, [x25, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ge	LBB0_26
; %bb.25:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	__bt_upgrademetapage
LBB0_26:
	str	w24, [x25, #24]
	ldr	x8, [x26, #8]
	str	x8, [x25]
	mov	x0, x27
	bl	_MarkBufferDirty
LBB0_27:
	mov	x0, x21
	bl	_BufferIsValid
	cbz	x0, LBB0_29
; %bb.28:
	mov	x0, x21
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	mov	x24, x0
	bl	_P_INCOMPLETE_SPLIT
	bl	_Assert
Lloh32:
	adrp	x8, _BTP_INCOMPLETE_SPLIT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BTP_INCOMPLETE_SPLIT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x24]
	bic	w8, w9, w8
	str	w8, [x24]
	mov	x0, x21
	bl	_MarkBufferDirty
LBB0_29:
	mov	x0, x26
	bl	_P_RIGHTMOST
	cbz	x0, LBB0_33
; %bb.30:
	mov	x0, x26
	bl	_P_ISLEAF
	cbz	w0, LBB0_33
; %bb.31:
	mov	x0, x26
	bl	_P_ISROOT
	cbnz	w0, LBB0_33
; %bb.32:
	mov	x0, x20
	bl	_BufferGetBlockNumber
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
LBB0_33:
	mov	x0, x19
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_46
; %bb.34:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	x8, [sp, #88]
	bl	_XLogBeginInsert
Lloh35:
	adrp	x8, _SizeOfBtreeInsert@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SizeOfBtreeInsert@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	add	x0, sp, #88
	bl	_XLogRegisterData
	mov	x0, x26
	bl	_P_ISLEAF
Lloh38:
	adrp	x26, _REGBUF_STANDARD@GOTPAGE
Lloh39:
	ldr	x26, [x26, _REGBUF_STANDARD@GOTPAGEOFF]
	cbz	w0, LBB0_38
; %bb.35:
Lloh40:
	adrp	x8, _XLOG_BTREE_INSERT_LEAF@GOTPAGE
Lloh41:
	ldr	x8, [x8, _XLOG_BTREE_INSERT_LEAF@GOTPAGEOFF]
	b	LBB0_39
LBB0_36:
	mov	w0, #1
LBB0_37:
	bl	_Assert
	mov	x0, x19
	mov	x1, x27
	mov	x2, x20
	mov	x3, x21
	ldr	x4, [sp, #40]                   ; 8-byte Folded Reload
	mov	x5, x28
	mov	x6, x22
	bl	__bt_split
	mov	x21, x0
	mov	x0, x20
	bl	_BufferGetBlockNumber
	mov	x22, x0
	mov	x0, x21
	bl	_BufferGetBlockNumber
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_PredicateLockPageSplit
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x24
	mov	x4, x23
	mov	x5, x25
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	b	__bt_insert_parent
LBB0_38:
	ldr	w2, [x26]
	mov	w0, #1
	mov	x1, x21
	bl	_XLogRegisterBuffer
Lloh42:
	adrp	x8, _XLOG_BTREE_INSERT_UPPER@GOTPAGE
Lloh43:
	ldr	x8, [x8, _XLOG_BTREE_INSERT_UPPER@GOTPAGEOFF]
LBB0_39:
	ldr	w24, [x8]
	mov	x0, x27
	bl	_BufferIsValid
	cbz	x0, LBB0_41
; %bb.40:
	ldr	x8, [x25, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	cset	w0, ge
	bl	_Assert
	ldr	w8, [x25, #32]
	str	w8, [sp, #80]
	ldr	d0, [x25, #24]
	str	d0, [sp, #72]
	ldr	q0, [x25]
	ext.16b	v0, v0, v0, #8
	str	q0, [sp, #48]
	ldr	d0, [x25, #16]
	str	d0, [sp, #64]
Lloh44:
	adrp	x8, _REGBUF_WILL_INIT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _REGBUF_WILL_INIT@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w2, w9, w8
	mov	w0, #2
	mov	x1, x27
	bl	_XLogRegisterBuffer
	add	x1, sp, #48
	mov	w0, #2
	mov	w2, #40
	bl	_XLogRegisterBufData
Lloh47:
	adrp	x8, _XLOG_BTREE_INSERT_META@GOTPAGE
Lloh48:
	ldr	x8, [x8, _XLOG_BTREE_INSERT_META@GOTPAGEOFF]
Lloh49:
	ldr	w24, [x8]
LBB0_41:
	ldr	w2, [x26]
	mov	w0, #0
	mov	x1, x20
	bl	_XLogRegisterBuffer
	mov	x0, x22
	bl	_IndexTupleSize
	mov	x2, x0
	mov	w0, #0
	mov	x1, x22
	bl	_XLogRegisterBufData
Lloh50:
	adrp	x8, _RM_BTREE_ID@GOTPAGE
Lloh51:
	ldr	x8, [x8, _RM_BTREE_ID@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_XLogInsert
	mov	x22, x0
	mov	x0, x27
	bl	_BufferIsValid
	cbz	x0, LBB0_43
; %bb.42:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x22
	bl	_PageSetLSN
LBB0_43:
	mov	x0, x21
	bl	_BufferIsValid
	cbz	x0, LBB0_45
; %bb.44:
	mov	x0, x21
	bl	_BufferGetPage
	mov	x1, x22
	bl	_PageSetLSN
LBB0_45:
	mov	x0, x23
	mov	x1, x22
	bl	_PageSetLSN
LBB0_46:
	bl	_END_CRIT_SECTION
	mov	x0, x27
	bl	_BufferIsValid
	cbz	x0, LBB0_48
; %bb.47:
	mov	x0, x19
	mov	x1, x27
	bl	__bt_relbuf
LBB0_48:
	mov	x0, x21
	bl	_BufferIsValid
	cbz	x0, LBB0_50
; %bb.49:
	mov	x0, x19
	mov	x1, x21
	bl	__bt_relbuf
LBB0_50:
	mov	x0, x19
	mov	x1, x20
	bl	__bt_relbuf
	ldr	w20, [sp, #36]                  ; 4-byte Folded Reload
	mov	x0, x20
	bl	_BlockNumberIsValid
	cbz	x0, LBB0_53
; %bb.51:
	mov	x0, x19
	bl	__bt_getrootheight
Lloh53:
	adrp	x8, _BTREE_FASTPATH_MIN_LEVEL@GOTPAGE
Lloh54:
	ldr	x8, [x8, _BTREE_FASTPATH_MIN_LEVEL@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_53
; %bb.52:
	mov	x0, x19
	mov	x1, x20
	bl	_RelationSetTargetBlock
LBB0_53:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot insert to incompletely split page %u"

	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_InvalidBlockNumber,4,2         ; @InvalidBlockNumber
	.comm	_BTREE_METAPAGE,4,2             ; @BTREE_METAPAGE
	.comm	_BT_WRITE,4,2                   ; @BT_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"cannot insert second negative infinity item in block %u of index \"%s\""

	.comm	_PANIC,4,2                      ; @PANIC
l_.str.2:                               ; @.str.2
	.asciz	"failed to add new item to block %u in index \"%s\""

	.comm	_BTREE_NOVAC_VERSION,8,3        ; @BTREE_NOVAC_VERSION
	.comm	_BTP_INCOMPLETE_SPLIT,4,2       ; @BTP_INCOMPLETE_SPLIT
	.comm	_SizeOfBtreeInsert,4,2          ; @SizeOfBtreeInsert
	.comm	_XLOG_BTREE_INSERT_LEAF,4,2     ; @XLOG_BTREE_INSERT_LEAF
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_XLOG_BTREE_INSERT_UPPER,4,2    ; @XLOG_BTREE_INSERT_UPPER
	.comm	_REGBUF_WILL_INIT,4,2           ; @REGBUF_WILL_INIT
	.comm	_XLOG_BTREE_INSERT_META,4,2     ; @XLOG_BTREE_INSERT_META
	.comm	_RM_BTREE_ID,4,2                ; @RM_BTREE_ID
	.comm	_BTREE_FASTPATH_MIN_LEVEL,8,3   ; @BTREE_FASTPATH_MIN_LEVEL
	.no_dead_strip	__bt_insertonpg
.subsections_via_symbols
