	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spgAddNodeAction
_spgAddNodeAction:                      ## @spgAddNodeAction
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %r15d
	movl	24(%rcx), %edi
	callq	_SpGistPageStoresNulls
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_addNode
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_STORE_STATE
	movq	(%r12), %rax
	movq	%rax, -120(%rbp)
	movl	$-1, -112(%rbp)
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
	movq	$0, -80(%rbp)
	movq	%rax, -96(%rbp)
	movl	$0, -88(%rbp)
	movl	24(%r12), %edi
	callq	_PageGetExactFreeSpace
	movq	(%r14), %rcx
	subq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_1
## %bb.7:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rdi
	callq	_SpGistBlockIsRoot
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rax
	movq	_InvalidBuffer@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	movq	(%r12), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	8(%r12), %r15
	movq	16(%r12), %rbx
	movl	24(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movq	%rax, -104(%rbp)
	movq	32(%r14), %rax
	movq	%rax, -80(%rbp)
	movq	%rbx, %rdi
	callq	_GBUF_INNER_PARITY
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	addl	$4, %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	leaq	-88(%rbp), %rcx
	callq	_SpGistGetBuffer
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_BufferGetBlockNumber
	movq	%rax, 16(%r12)
	movq	8(%r12), %rdi
	callq	_BufferGetPage
	movl	%eax, 24(%r12)
	cmpq	%rbx, 16(%r12)
	jne	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%r15, %rcx
	je	LBB0_13
## %bb.12:
	xorl	%edx, %edx
	cmpq	8(%r12), %rcx
	sete	%dl
	movl	$2, %eax
	subl	%edx, %eax
LBB0_13:
	movl	%eax, -112(%rbp)
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movl	24(%r12), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_SpGistPageAddNewItem
	movq	%rax, (%r12)
	movq	%rax, -96(%rbp)
	movq	8(%r12), %rdi
	callq	_MarkBufferDirty
	movq	(%r12), %rcx
	movq	16(%r12), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_saveNodeLink
	cmpq	$0, (%r13)
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rcx
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	je	LBB0_15
## %bb.14:
	movq	_SPGIST_PLACEHOLDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%rcx), %rcx
	jmp	LBB0_16
LBB0_1:
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movl	24(%r12), %edi
	movq	(%r12), %rsi
	callq	_PageIndexTupleDelete
	movl	24(%r12), %edi
	movq	(%r14), %rdx
	movq	(%r12), %rcx
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	cmpq	(%r12), %rax
	je	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_3:
	movq	8(%r12), %rdi
	callq	_MarkBufferDirty
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpq	$0, (%r13)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	leaq	-120(%rbp), %rdi
	movl	$56, %esi
	callq	_XLogRegisterData
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_XLogRegisterData
	movq	8(%r12), %rsi
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_XLogRegisterBuffer
	movq	_RM_SPGIST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_SPGIST_ADD_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movl	24(%r12), %edi
	movl	%eax, %esi
	callq	_PageSetLSN
LBB0_6:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	jmp	LBB0_28
LBB0_15:
	movq	_SPGIST_REDIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rcx
	movq	16(%r12), %rdx
LBB0_16:
	movq	%r13, %rdi
	callq	_spgFormDeadTuple
	movq	%rax, %rbx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rsi
	callq	_PageIndexTupleDelete
	movq	(%rbx), %rdx
	movl	%r15d, %edi
	movl	%ebx, %esi
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	cmpq	%r14, %rax
	je	LBB0_18
## %bb.17:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_18:
	xorl	%ebx, %ebx
	cmpq	$0, (%r13)
	setne	%bl
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_SpGistPageGetOpaque
	incl	(%rax,%rbx,4)
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_MarkBufferDirty
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_25
## %bb.19:
	cmpq	$0, (%r13)
	jne	LBB0_25
## %bb.20:
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_XLogRegisterBuffer
	movl	-88(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_22
## %bb.21:
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_22:
	orl	(%r14), %edx
	movq	8(%r12), %rsi
	movl	$1, %edi
	callq	_XLogRegisterBuffer
	cmpl	$2, -112(%rbp)
	jne	LBB0_24
## %bb.23:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movl	(%r14), %edx
	movl	$2, %edi
	callq	_XLogRegisterBuffer
LBB0_24:
	leaq	-120(%rbp), %rdi
	movl	$56, %esi
	callq	_XLogRegisterData
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %esi
	callq	_XLogRegisterData
	movq	_RM_SPGIST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_SPGIST_ADD_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movl	%eax, %r14d
	movl	24(%r12), %edi
	movl	%eax, %esi
	callq	_PageSetLSN
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	movl	%r14d, %esi
	callq	_PageSetLSN
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_PageSetLSN
LBB0_25:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	cmpq	8(%r12), %rbx
	je	LBB0_28
## %bb.26:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	8(%rax), %rbx
	je	LBB0_28
## %bb.27:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_SpGistSetLastUsedPage
	movq	%rbx, %rdi
	callq	_UnlockReleaseBuffer
LBB0_28:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add item of size %u to SPGiST index page"

	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_RM_SPGIST_ID,4,2               ## @RM_SPGIST_ID
	.comm	_XLOG_SPGIST_ADD_NODE,4,2       ## @XLOG_SPGIST_ADD_NODE
L_.str.1:                               ## @.str.1
	.asciz	"cannot enlarge root tuple any more"

	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
L_.str.2:                               ## @.str.2
	.asciz	"SPGiST new buffer shouldn't be same as old buffer"

	.comm	_SPGIST_PLACEHOLDER,4,2         ## @SPGIST_PLACEHOLDER
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_SPGIST_REDIRECT,4,2            ## @SPGIST_REDIRECT
	.comm	_REGBUF_WILL_INIT,4,2           ## @REGBUF_WILL_INIT
	.no_dead_strip	_spgAddNodeAction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spgAddNodeAction
_spgAddNodeAction:                      ; @spgAddNodeAction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x6
	mov	x24, x5
	mov	x22, x4
	mov	x19, x3
	mov	x25, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x3, #24]
	bl	_SpGistPageStoresNulls
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x23
	mov	x1, x25
	mov	x2, x21
	mov	x3, x24
	bl	_addNode
	mov	x21, x0
	mov	x0, x23
	bl	_STORE_STATE
	ldr	x8, [x19]
	str	x8, [sp, #8]
	mov	w8, #-1
	str	w8, [sp, #16]
Lloh0:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	xzr, [sp, #48]
	stp	x8, x8, [sp, #24]
	str	wzr, [sp, #40]
	ldr	w0, [x19, #24]
	bl	_PageGetExactFreeSpace
	ldr	x8, [x21]
	ldr	x9, [x25]
	sub	x8, x8, x9
	cmp	x0, x8
	b.ge	LBB0_7
; %bb.1:
	add	x8, sp, #8
	add	x27, x8, #32
	ldr	x0, [x19, #16]
	bl	_SpGistBlockIsRoot
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_3:
	ldr	x8, [x22, #8]
Lloh8:
	adrp	x9, _InvalidBuffer@GOTPAGE
Lloh9:
	ldr	x9, [x9, _InvalidBuffer@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	ldp	x26, x24, [x19]
	ldr	x28, [x19, #16]
	ldr	w25, [x19, #24]
	ldr	x8, [x22]
	ldr	x9, [x22, #32]
	str	x8, [sp, #24]
	str	x9, [sp, #48]
	mov	x0, x28
	bl	_GBUF_INNER_PARITY
	mov	x1, x0
	ldr	w8, [x21]
	add	w2, w8, #4
	mov	x0, x20
	mov	x3, x27
	bl	_SpGistGetBuffer
	str	x0, [x19, #8]
	bl	_BufferGetBlockNumber
	str	x0, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_BufferGetPage
	str	w0, [x19, #24]
	ldr	x8, [x19, #16]
	cmp	x8, x28
	b.ne	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_5:
	ldr	x8, [x22, #8]
	cmp	x8, x24
	b.ne	LBB0_13
; %bb.6:
	mov	w8, #0
	b	LBB0_14
LBB0_7:
	bl	_START_CRIT_SECTION
	ldr	w0, [x19, #24]
	ldr	x1, [x19]
	bl	_PageIndexTupleDelete
	ldr	w0, [x19, #24]
	ldr	x2, [x21]
	ldr	x3, [x19]
	mov	x1, x21
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_9:
	ldr	x0, [x19, #8]
	bl	_MarkBufferDirty
	mov	x0, x20
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x23]
	cbnz	x8, LBB0_12
; %bb.11:
	bl	_XLogBeginInsert
	add	x0, sp, #8
	mov	w1, #56
	bl	_XLogRegisterData
	ldr	w1, [x21]
	mov	x0, x21
	bl	_XLogRegisterData
	ldr	x1, [x19, #8]
Lloh21:
	adrp	x8, _REGBUF_STANDARD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REGBUF_STANDARD@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	w0, #0
	bl	_XLogRegisterBuffer
Lloh24:
	adrp	x8, _RM_SPGIST_ID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RM_SPGIST_ID@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _XLOG_SPGIST_ADD_NODE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _XLOG_SPGIST_ADD_NODE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x1, x0
	ldr	w0, [x19, #24]
	bl	_PageSetLSN
LBB0_12:
	bl	_END_CRIT_SECTION
	b	LBB0_27
LBB0_13:
	ldr	x9, [x19, #8]
	cmp	x8, x9
	mov	w8, #1
	cinc	w8, w8, ne
LBB0_14:
	str	w8, [sp, #16]
	bl	_START_CRIT_SECTION
	ldr	w1, [x19, #24]
	ldr	w3, [x21]
	mov	x0, x23
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	bl	_SpGistPageAddNewItem
	str	x0, [x19]
	str	x0, [sp, #32]
	ldr	x0, [x19, #8]
	bl	_MarkBufferDirty
	ldr	x2, [x19, #16]
	ldr	x3, [x19]
	mov	x0, x20
	mov	x1, x22
	bl	_saveNodeLink
	ldr	x8, [x23]
	cbz	x8, LBB0_16
; %bb.15:
Lloh30:
	adrp	x8, _SPGIST_PLACEHOLDER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SPGIST_PLACEHOLDER@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh34:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh35:
	ldr	x2, [x8]
Lloh36:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh37:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh38:
	ldr	x3, [x8]
	b	LBB0_17
LBB0_16:
Lloh39:
	adrp	x8, _SPGIST_REDIRECT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SPGIST_REDIRECT@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	ldr	x2, [x19, #16]
	ldr	x3, [x19]
LBB0_17:
	mov	x0, x23
	bl	_spgFormDeadTuple
	mov	x27, x0
	mov	x0, x25
	mov	x1, x26
	bl	_PageIndexTupleDelete
	ldr	x2, [x27]
	mov	x0, x25
	mov	x1, x27
	mov	x3, x26
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
	cmp	x0, x26
	b.eq	LBB0_19
; %bb.18:
Lloh42:
	adrp	x8, _ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	ldr	x8, [x27]
	str	x8, [sp]
Lloh45:
	adrp	x1, l_.str@PAGE
Lloh46:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_19:
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w26, ne
	mov	x0, x25
	bl	_SpGistPageGetOpaque
	lsl	x8, x26, #2
	ldr	w9, [x0, x8]
	add	w9, w9, #1
	str	w9, [x0, x8]
	mov	x0, x24
	bl	_MarkBufferDirty
	mov	x0, x20
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_24
; %bb.20:
	ldr	x8, [x23]
	cbnz	x8, LBB0_24
; %bb.21:
	bl	_XLogBeginInsert
Lloh47:
	adrp	x23, _REGBUF_STANDARD@GOTPAGE
Lloh48:
	ldr	x23, [x23, _REGBUF_STANDARD@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w0, #0
	mov	x1, x24
	bl	_XLogRegisterBuffer
	ldr	w8, [x23]
Lloh49:
	adrp	x9, _REGBUF_WILL_INIT@GOTPAGE
Lloh50:
	ldr	x9, [x9, _REGBUF_WILL_INIT@GOTPAGEOFF]
	ldr	w10, [sp, #40]
Lloh51:
	ldr	w9, [x9]
	cmp	w10, #0
	csel	w9, wzr, w9, eq
	orr	w2, w9, w8
	ldr	x1, [x19, #8]
	mov	w0, #1
	bl	_XLogRegisterBuffer
	ldr	w8, [sp, #16]
	cmp	w8, #2
	b.ne	LBB0_23
; %bb.22:
	ldr	x1, [x22, #8]
	ldr	w2, [x23]
	mov	w0, #2
	bl	_XLogRegisterBuffer
LBB0_23:
	add	x0, sp, #8
	mov	w1, #56
	bl	_XLogRegisterData
	ldr	w1, [x21]
	mov	x0, x21
	bl	_XLogRegisterData
Lloh52:
	adrp	x8, _RM_SPGIST_ID@GOTPAGE
Lloh53:
	ldr	x8, [x8, _RM_SPGIST_ID@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
Lloh55:
	adrp	x8, _XLOG_SPGIST_ADD_NODE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _XLOG_SPGIST_ADD_NODE@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x21, x0
	ldr	w0, [x19, #24]
	mov	x1, x21
	bl	_PageSetLSN
	ldr	w0, [x22, #24]
	mov	x1, x21
	bl	_PageSetLSN
	mov	x0, x25
	mov	x1, x21
	bl	_PageSetLSN
LBB0_24:
	bl	_END_CRIT_SECTION
	ldr	x8, [x19, #8]
	cmp	x24, x8
	b.eq	LBB0_27
; %bb.25:
	ldr	x8, [x22, #8]
	cmp	x24, x8
	b.eq	LBB0_27
; %bb.26:
	mov	x0, x20
	mov	x1, x24
	bl	_SpGistSetLastUsedPage
	mov	x0, x24
	bl	_UnlockReleaseBuffer
LBB0_27:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add item of size %u to SPGiST index page"

	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_RM_SPGIST_ID,4,2               ; @RM_SPGIST_ID
	.comm	_XLOG_SPGIST_ADD_NODE,4,2       ; @XLOG_SPGIST_ADD_NODE
l_.str.1:                               ; @.str.1
	.asciz	"cannot enlarge root tuple any more"

	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
l_.str.2:                               ; @.str.2
	.asciz	"SPGiST new buffer shouldn't be same as old buffer"

	.comm	_SPGIST_PLACEHOLDER,4,2         ; @SPGIST_PLACEHOLDER
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_SPGIST_REDIRECT,4,2            ; @SPGIST_REDIRECT
	.comm	_REGBUF_WILL_INIT,4,2           ; @REGBUF_WILL_INIT
	.no_dead_strip	_spgAddNodeAction
.subsections_via_symbols
