	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_insert_parent
__bt_insert_parent:                     ## @_bt_insert_parent
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r15d
	testl	%r8d, %r8d
	je	LBB0_1
## %bb.6:
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_Assert
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	__bt_newroot
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	__bt_relbuf
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	__bt_relbuf
	movl	%r15d, %edi
	movq	%r14, %rsi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__bt_relbuf                     ## TAILCALL
LBB0_1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BufferGetBlockNumber
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_BufferGetBlockNumber
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BufferGetPage
	movl	%eax, %ebx
	testq	%r13, %r13
	jne	LBB0_3
## %bb.2:
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movl	%ebx, %edi
	callq	_PageGetSpecialPointer
	movq	(%rax), %rsi
	incq	%rsi
	movl	%r15d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	__bt_get_endpoint
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_BufferGetBlockNumber
	movq	%rax, -80(%rbp)
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	movq	$0, -88(%rbp)
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	__bt_relbuf
	leaq	-96(%rbp), %r13
LBB0_3:
	movq	_P_HIKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_PageGetItemId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rdi
	callq	_CopyIndexTuple
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_BTreeInnerTupleSetDownLink
	movl	%r15d, %edi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	__bt_getstackbuf
	movq	%rax, %rbx
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	__bt_relbuf
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_INDEX_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_errmsg_internal
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movq	(%r13), %rax
	movq	8(%r13), %r8
	incq	%rax
	movl	%r15d, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r9
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	__bt_insertonpg
	addq	$16, %rsp
	movq	%rbx, %rdi
	callq	_pfree
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG2,4,2                     ## @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"concurrent ROOT page split"

	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_P_HIKEY,4,2                    ## @P_HIKEY
	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ## @ERRCODE_INDEX_CORRUPTED
L_.str.1:                               ## @.str.1
	.asciz	"failed to re-find parent key in index \"%s\" for split pages %u/%u"

	.no_dead_strip	__bt_insert_parent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_insert_parent
__bt_insert_parent:                     ; @_bt_insert_parent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x5
	mov	x25, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	cbz	w4, LBB0_2
; %bb.1:
	cmp	x25, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x21
	bl	_Assert
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	__bt_newroot
	mov	x1, x0
	mov	x0, x20
	bl	__bt_relbuf
	mov	x0, x20
	mov	x1, x22
	bl	__bt_relbuf
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	__bt_relbuf
LBB0_2:
	mov	x0, x19
	bl	_BufferGetBlockNumber
	mov	x23, x0
	mov	x0, x22
	bl	_BufferGetBlockNumber
	mov	x24, x0
	mov	x0, x19
	bl	_BufferGetPage
	mov	x26, x0
	cbnz	x25, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _DEBUG2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG2@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	mov	x0, x26
	bl	_PageGetSpecialPointer
	ldr	x8, [x0]
	add	x1, x8, #1
	mov	x0, x20
	mov	w2, #0
	mov	x3, #0
	bl	__bt_get_endpoint
	mov	x25, x0
	bl	_BufferGetBlockNumber
	str	x0, [sp, #24]
Lloh5:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh6:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	stp	x8, xzr, [sp, #8]
	mov	x0, x20
	mov	x1, x25
	bl	__bt_relbuf
	add	x25, sp, #8
LBB0_4:
Lloh8:
	adrp	x8, _P_HIKEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _P_HIKEY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x26
	bl	_PageGetItem
	bl	_CopyIndexTuple
	mov	x26, x0
	mov	x1, x24
	bl	_BTreeInnerTupleSetDownLink
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	bl	__bt_getstackbuf
	mov	x27, x0
	mov	x0, x20
	mov	x1, x22
	bl	__bt_relbuf
Lloh11:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh12:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x27, x8
	b.ne	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
Lloh17:
	adrp	x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x23
	mov	x3, x24
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_6:
	ldp	x8, x4, [x25]
	add	x6, x8, #1
	mov	x0, x20
	mov	x1, #0
	mov	x2, x27
	mov	x3, x19
	mov	x5, x26
	mov	x7, x21
	bl	__bt_insertonpg
	mov	x0, x26
	bl	_pfree
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG2,4,2                     ; @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"concurrent ROOT page split"

	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_P_HIKEY,4,2                    ; @P_HIKEY
	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ; @ERRCODE_INDEX_CORRUPTED
l_.str.1:                               ; @.str.1
	.asciz	"failed to re-find parent key in index \"%s\" for split pages %u/%u"

	.no_dead_strip	__bt_insert_parent
.subsections_via_symbols
