	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistdoinsert                   ## -- Begin function gistdoinsert
	.p2align	4, 0x90
_gistdoinsert:                          ## @gistdoinsert
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -88(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	leaq	-80(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	%ebx, -48(%rbp)
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r14, -64(%rbp)
	movq	%r12, -56(%rbp)
	movl	-88(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -80(%rbp)
	movq	_GIST_ROOT_BLKNO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movl	$0, -144(%rbp)
	movq	$0, -136(%rbp)
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)
	leaq	-160(%rbp), %rbx
	movq	%rbx, -72(%rbp)
	xorl	%r12d, %r12d
	jmp	LBB0_1
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %r12d
	movl	16(%rbx), %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rbx), %edi
	movq	_GIST_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rbx), %edi
	callq	_ReleaseBuffer
	movq	24(%rbx), %rbx
	movq	%rbx, -72(%rbp)
	xorl	%r12d, %r12d
	cmpl	$0, 16(%rbx)
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	20(%rbx), %edi
	callq	_ReleaseBuffer
	movq	24(%rbx), %rbx
	movq	%rbx, -72(%rbp)
	cmpl	$0, 16(%rbx)
	jne	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rdi
	callq	_XLogRecPtrIsInvalid
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rdi
	movq	(%rbx), %rsi
	callq	_ReadBuffer
	movl	%eax, 20(%rbx)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rbx), %edi
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	callq	_BufferGetPage
	leaq	32(%rbx), %r14
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_PageGetLSN
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_GIST_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movq	-64(%rbp), %rdi
	movl	20(%rbx), %esi
	callq	_gistcheckpage
	movl	20(%rbx), %edi
	callq	_BufferGetPage
	leaq	32(%rbx), %r14
	movq	%rax, 32(%rbx)
	movl	20(%rbx), %edi
	callq	_BufferGetLSNAtomic
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, 8(%rbx)
	movq	-64(%rbp), %rdi
	callq	_RelationNeedsWAL
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rdi
	callq	_XLogRecPtrIsInvalid
	testq	%rax, %rax
	sete	%al
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movb	$1, %al
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%al, %edi
	callq	_Assert
	movq	(%r14), %rdi
	callq	_GistFollowRight
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rbx), %edi
	movq	_GIST_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	20(%rbx), %edi
	movq	_GIST_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movq	32(%rbx), %rdi
	callq	_GistFollowRight
	testq	%rax, %rax
	je	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	-80(%rbp), %rdi
	movq	%r15, %rsi
	callq	_gistfixsplit
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	_GIST_ROOT_BLKNO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rax
	movq	32(%rbx), %rdi
	movq	8(%rax), %r13
	callq	_GistPageGetNSN
	cmpq	%rax, %r13
	jl	LBB0_20
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	callq	_GistPageIsDeleted
	testq	%rax, %rax
	je	LBB0_26
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rbx), %edi
	callq	_UnlockReleaseBuffer
	movq	24(%rbx), %rbx
	movq	%rbx, -72(%rbp)
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r12d, %r12d
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%rbx), %r13d
	jmp	LBB0_1
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	callq	_GistPageIsLeaf
	testl	%eax, %eax
	je	LBB0_27
## %bb.35:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_42
## %bb.36:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rbx), %edi
	movq	_GIST_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	20(%rbx), %edi
	movq	_GIST_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	20(%rbx), %edi
	callq	_BufferGetPage
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_PageGetLSN
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rax
	movq	32(%rbx), %rdi
	movq	_GIST_ROOT_BLKNO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_1 Depth=1
	callq	_GistPageIsLeaf
	testl	%eax, %eax
	jne	LBB0_42
## %bb.38:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rbx), %edi
	movq	_GIST_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	jmp	LBB0_21
LBB0_27:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rdi
	movq	(%r14), %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_gistchoose
	movq	(%r14), %rdi
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_PageGetItemId
	movq	(%r14), %rdi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ItemPointerGetBlockNumber
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	callq	_GistTupleIsInvalid
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errdetail
	leaq	L_.str.2(%rip), %rdi
	callq	_errhint
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_29:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rdi
	movq	%r13, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_gistgetadjusted
	testq	%rax, %rax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r13
	testl	%r12d, %r12d
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rbx), %edi
	movq	_GIST_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	20(%rbx), %edi
	movq	_GIST_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	20(%rbx), %edi
	callq	_BufferGetPage
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_PageGetLSN
	movl	$1, %r12d
	cmpq	8(%rbx), %rax
	jne	LBB0_22
LBB0_32:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_gistinserttuple
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movl	$1, %r12d
	movq	_GIST_ROOT_BLKNO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
	jmp	LBB0_22
LBB0_39:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_GistFollowRight
	testq	%rax, %rax
	jne	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rax
	movq	32(%rbx), %rdi
	movq	8(%rax), %r12
	callq	_GistPageGetNSN
	cmpq	%rax, %r12
	jge	LBB0_42
LBB0_41:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	callq	_GistPageIsDeleted
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_42
LBB0_34:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rbx), %edi
	movq	_GIST_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	$48, %edi
	callq	_palloc0
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	%rbx, 24(%rax)
	movq	%r14, 40(%rax)
	movq	%rax, -72(%rbp)
	xorl	%r12d, %r12d
	movq	%rax, %rbx
	movl	16(%rax), %r13d
	jmp	LBB0_1
LBB0_42:
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	callq	_gistinserttuple
	movl	20(%rbx), %edi
	movq	_GIST_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movl	20(%rbx), %edi
	callq	_ReleaseBuffer
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_43
## %bb.44:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIST_ROOT_BLKNO,8,3            ## @GIST_ROOT_BLKNO
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_GIST_UNLOCK,4,2                ## @GIST_UNLOCK
	.comm	_GIST_SHARE,4,2                 ## @GIST_SHARE
	.comm	_GIST_EXCLUSIVE,4,2             ## @GIST_EXCLUSIVE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index \"%s\" contains an inner tuple marked as invalid"

L_.str.1:                               ## @.str.1
	.asciz	"This is caused by an incomplete page split at crash recovery before upgrading to PostgreSQL 9.1."

L_.str.2:                               ## @.str.2
	.asciz	"Please REINDEX it."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistdoinsert                   ; -- Begin function gistdoinsert
	.p2align	2
_gistdoinsert:                          ; @gistdoinsert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x23, x4
	mov	x19, x3
	mov	x24, x2
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	mov	x20, x0
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	w8, #0
	mov	w22, #0
	str	w24, [sp, #56]
	str	x23, [sp, #48]
	str	w21, [sp, #24]
Lloh0:
	adrp	x24, _GIST_ROOT_BLKNO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GIST_ROOT_BLKNO@GOTPAGEOFF]
	ldr	x9, [x24]
	stp	x9, xzr, [sp, #64]
	str	wzr, [sp, #80]
Lloh2:
	adrp	x9, _InvalidOffsetNumber@GOTPAGE
Lloh3:
	ldr	x9, [x9, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	str	xzr, [sp, #88]
	str	x9, [sp, #104]
	add	x21, sp, #64
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	stp	x21, x20, [sp, #32]
Lloh5:
	adrp	x27, _GIST_SHARE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _GIST_SHARE@GOTPAGEOFF]
Lloh7:
	adrp	x25, _GIST_UNLOCK@GOTPAGE
Lloh8:
	ldr	x25, [x25, _GIST_UNLOCK@GOTPAGEOFF]
Lloh9:
	adrp	x20, _GIST_EXCLUSIVE@GOTPAGE
Lloh10:
	ldr	x20, [x20, _GIST_EXCLUSIVE@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #24
	mov	x1, x19
	bl	_gistfixsplit
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #20]
	bl	_UnlockReleaseBuffer
	mov	w22, #0
	ldr	x21, [x21, #24]
	str	x21, [sp, #32]
	ldr	w8, [x21, #16]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cbz	w8, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w22, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #20]
	ldr	w1, [x25]
	bl	_LockBuffer
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x21, #20]
	bl	_ReleaseBuffer
	ldr	x21, [x21, #24]
	str	x21, [sp, #32]
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21, #8]
	bl	_XLogRecPtrIsInvalid
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #40]
	ldr	x1, [x21]
	bl	_ReadBuffer
	str	w0, [x21, #20]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #20]
	cbz	w22, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_BufferGetPage
	mov	x23, x21
	str	x0, [x23, #32]!
	bl	_PageGetLSN
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x27]
	bl	_LockBuffer
	ldr	x0, [sp, #40]
	ldr	w1, [x21, #20]
	bl	_gistcheckpage
	ldr	w0, [x21, #20]
	bl	_BufferGetPage
	mov	x23, x21
	str	x0, [x23, #32]!
	ldr	w0, [x21, #20]
	bl	_BufferGetLSNAtomic
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [x21, #8]
	ldr	x0, [sp, #40]
	bl	_RelationNeedsWAL
	cbz	w0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21, #8]
	bl	_XLogRecPtrIsInvalid
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_Assert
	ldr	x0, [x23]
	bl	_GistFollowRight
	cbz	x0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w22, LBB0_1
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #20]
	ldr	w1, [x25]
	bl	_LockBuffer
	ldr	w0, [x21, #20]
	ldr	w1, [x20]
	bl	_LockBuffer
	ldr	x0, [x21, #32]
	bl	_GistFollowRight
	cbnz	x0, LBB0_1
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #1
	ldr	w8, [x21, #16]
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	ldp	x8, x0, [x21, #24]
	ldr	x26, [x8, #8]
	bl	_GistPageGetNSN
	cmp	x26, x0
	b.lt	LBB0_2
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x23]
	bl	_GistPageIsDeleted
	cbnz	x0, LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x23]
	bl	_GistPageIsLeaf
	cbz	w0, LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w22, LBB0_41
; %bb.25:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #20]
	ldr	w1, [x25]
	bl	_LockBuffer
	ldr	w0, [x21, #20]
	ldr	w1, [x20]
	bl	_LockBuffer
	ldr	w0, [x21, #20]
	bl	_BufferGetPage
	str	x0, [x21, #32]
	bl	_PageGetLSN
	str	x0, [x21, #8]
	ldr	x8, [x21]
	ldr	x9, [x24]
	ldr	x0, [x21, #32]
	cmp	x8, x9
	b.ne	LBB0_36
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_GistPageIsLeaf
	cbnz	w0, LBB0_41
; %bb.27:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #20]
	ldr	w1, [x25]
	bl	_LockBuffer
	mov	w22, #0
	ldr	w8, [x21, #16]
	b	LBB0_3
LBB0_28:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #40]
	ldr	x1, [x23]
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
	mov	x3, x19
	bl	_gistchoose
	mov	x26, x0
	ldr	x0, [x23]
	mov	x1, x26
	bl	_PageGetItemId
	mov	x1, x0
	ldr	x0, [x23]
	bl	_PageGetItem
	mov	x28, x0
	bl	_ItemPointerGetBlockNumber
	mov	x27, x0
	mov	x0, x28
	bl	_GistTupleIsInvalid
	cbz	x0, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errdetail
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_30:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #40]
	mov	x1, x28
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
	mov	x3, x19
	bl	_gistgetadjusted
	cbz	x0, LBB0_39
; %bb.31:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x0
	cbnz	w22, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #20]
	ldr	w1, [x25]
	bl	_LockBuffer
	ldr	w0, [x21, #20]
	ldr	w1, [x20]
	bl	_LockBuffer
	ldr	w0, [x21, #20]
	bl	_BufferGetPage
	str	x0, [x21, #32]
	bl	_PageGetLSN
	ldr	x8, [x21, #8]
	cmp	x0, x8
	b.ne	LBB0_35
LBB0_33:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #24
	mov	x1, x21
	mov	x2, x19
	mov	x3, x28
	mov	x4, x26
	bl	_gistinserttuple
	cbz	x0, LBB0_39
; %bb.34:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_40
LBB0_35:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #1
Lloh20:
	adrp	x27, _GIST_SHARE@GOTPAGE
Lloh21:
	ldr	x27, [x27, _GIST_SHARE@GOTPAGEOFF]
	ldr	w8, [x21, #16]
	b	LBB0_3
LBB0_36:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_GistFollowRight
	cbnz	x0, LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_3 Depth=1
	ldp	x8, x0, [x21, #24]
	ldr	x22, [x8, #8]
	bl	_GistPageGetNSN
	cmp	x22, x0
	b.ge	LBB0_41
LBB0_38:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x23]
	bl	_GistPageIsDeleted
	cbnz	x0, LBB0_2
	b	LBB0_41
LBB0_39:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #20]
	ldr	w1, [x25]
	bl	_LockBuffer
	mov	w0, #48
	bl	_palloc0
	mov	w22, #0
	str	x27, [x0]
	str	x21, [x0, #24]
	str	x26, [x0, #40]
	str	x0, [sp, #32]
	mov	x21, x0
Lloh22:
	adrp	x27, _GIST_SHARE@GOTPAGE
Lloh23:
	ldr	x27, [x27, _GIST_SHARE@GOTPAGEOFF]
	ldr	w8, [x0, #16]
	b	LBB0_3
LBB0_40:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #20]
	bl	_UnlockReleaseBuffer
	mov	w22, #0
	ldr	x21, [x21, #24]
	str	x21, [sp, #32]
Lloh24:
	adrp	x27, _GIST_SHARE@GOTPAGE
Lloh25:
	ldr	x27, [x27, _GIST_SHARE@GOTPAGEOFF]
	ldr	w8, [x21, #16]
	b	LBB0_3
LBB0_41:
Lloh26:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh27:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh28:
	ldr	x4, [x8]
	add	x0, sp, #24
	mov	x1, x21
	mov	x2, x19
	ldr	x3, [sp, #16]                   ; 8-byte Folded Reload
	bl	_gistinserttuple
	ldr	w0, [x21, #20]
	ldr	w1, [x25]
	bl	_LockBuffer
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #20]
	bl	_ReleaseBuffer
	ldr	x21, [x21, #24]
	cbnz	x21, LBB0_42
; %bb.43:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GIST_ROOT_BLKNO,8,3            ; @GIST_ROOT_BLKNO
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_GIST_UNLOCK,4,2                ; @GIST_UNLOCK
	.comm	_GIST_SHARE,4,2                 ; @GIST_SHARE
	.comm	_GIST_EXCLUSIVE,4,2             ; @GIST_EXCLUSIVE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index \"%s\" contains an inner tuple marked as invalid"

l_.str.1:                               ; @.str.1
	.asciz	"This is caused by an incomplete page split at crash recovery before upgrading to PostgreSQL 9.1."

l_.str.2:                               ; @.str.2
	.asciz	"Please REINDEX it."

.subsections_via_symbols
