	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gistvacuumpage
_gistvacuumpage:                        ## @gistvacuumpage
	.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
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rdi), %r12
	movq	24(%rdi), %rcx
	movq	8(%rdi), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movl	4(%rcx), %r14d
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_vacuum_delay_point
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RBM_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %r8d
	movl	%r14d, %edi
	movq	%r13, %rdx
	callq	_ReadBufferExtended
	movl	%eax, %ebx
	movq	_GIST_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_LockBuffer
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_BufferGetPage
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_gistPageRecyclable
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_RecordFreeIndexPage
	incl	16(%r12)
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_GistPageIsDeleted
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	12(%r12)
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_UnlockReleaseBuffer
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r13
	jne	LBB0_1
	jmp	LBB0_35
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_GistPageIsLeaf
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	_MaxOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r15, %rdi
	callq	_GistPageGetOpaque
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_GistFollowRight
	testq	%rax, %rax
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_GistPageGetNSN
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rax
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rcx
	cmovneq	%rax, %rcx
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	cmovlq	%rcx, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, -112(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_30
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	%r12, %r14
	jg	LBB0_30
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	%r14, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r14
	cmpq	%r12, %rax
	jg	LBB0_23
LBB0_15:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_PageGetItemId
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_PageGetItem
	movslq	%eax, %rdi
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	callq	*-112(%rbp)                     ## 8-byte Folded Reload
	testq	%rax, %rax
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movslq	%ebx, %rax
	incl	%ebx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%r14, (%rcx,%rax,8)
	jmp	LBB0_14
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %r12
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	%r12, %rbx
	jle	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, %r13
	jne	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	callq	_intset_add_member
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=2
	movq	%rbx, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %rbx
	cmpq	%r12, %rax
	jg	LBB0_18
LBB0_21:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_PageGetItemId
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_PageGetItem
	movslq	%eax, %rdi
	callq	_GistTupleIsInvalid
	testq	%rax, %rax
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-52(%rbp), %edi                 ## 4-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
	jmp	LBB0_20
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_30
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_MarkBufferDirty
	movq	%r15, %rdi
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_PageIndexMultiDelete
	movq	%r15, %rdi
	callq	_GistMarkTuplesDeleted
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_gistXLogUpdate
	jmp	LBB0_29
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_5
LBB0_28:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	callq	_gistGetFakeLSN
LBB0_29:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %esi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_PageSetLSN
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	addl	%ebx, 4(%r14)
	movq	%r15, %rdi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %r12
LBB0_30:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	incl	%r12d
	jne	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%r12), %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_intset_add_member
	jmp	LBB0_34
LBB0_33:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	addl	%r12d, 8(%rbx)
	movq	%rbx, %r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
LBB0_34:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rsp
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_6
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ## @RBM_NORMAL
	.comm	_GIST_EXCLUSIVE,4,2             ## @GIST_EXCLUSIVE
	.comm	_MaxOffsetNumber,4,2            ## @MaxOffsetNumber
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_LOG,4,2                        ## @LOG
	.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."

	.no_dead_strip	_gistvacuumpage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gistvacuumpage
_gistvacuumpage:                        ; @gistvacuumpage
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #64
	mov	x24, x2
	mov	x26, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
	ldp	x19, x25, [x0, #24]
	ldr	x9, [x0, #16]
	stur	x0, [x29, #-152]                ; 8-byte Folded Spill
	ldr	x8, [x0, #8]
	stp	x8, x9, [x29, #-120]            ; 16-byte Folded Spill
	ldr	w22, [x19, #4]
Lloh3:
	adrp	x20, _InvalidBlockNumber@GOTPAGE
Lloh4:
	ldr	x20, [x20, _InvalidBlockNumber@GOTPAGEOFF]
	ldr	x21, [x20]
	movi.2s	v8, #1
	stp	x2, x19, [x29, #-144]           ; 16-byte Folded Spill
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x26
	bl	_RecordFreeIndexPage
	ldur	d0, [x25, #12]
	add.2s	v0, v0, v8
	stur	d0, [x25, #12]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x21
	mov	x0, x27
	bl	_UnlockReleaseBuffer
	ldr	x21, [x20]
	cmp	x26, x21
	b.eq	LBB0_35
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
	bl	_vacuum_delay_point
Lloh5:
	adrp	x8, _MAIN_FORKNUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAIN_FORKNUM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _RBM_NORMAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RBM_NORMAL@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	ldr	w4, [x19]
	mov	x0, x22
	mov	x2, x26
	bl	_ReadBufferExtended
	mov	x27, x0
Lloh11:
	adrp	x8, _GIST_EXCLUSIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GIST_EXCLUSIVE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x27
	bl	_BufferGetPage
	mov	x28, x0
	bl	_gistPageRecyclable
	cbnz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_GistPageIsDeleted
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25, #12]
	add	w8, w8, #1
	str	w8, [x25, #12]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_GistPageIsLeaf
	cbz	x0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, sp
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
Lloh14:
	adrp	x8, _MaxOffsetNumber@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MaxOffsetNumber@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh17:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh18:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	x0, x28
	bl	_GistPageGetOpaque
	mov	x19, x0
	mov	x0, x28
	bl	_PageGetMaxOffsetNumber
	mov	x23, x0
	mov	x0, x28
	bl	_GistFollowRight
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x29, #-152]                ; 8-byte Folded Reload
	ldr	x24, [x8]
	mov	x0, x28
	bl	_GistPageGetNSN
	cmp	x24, x0
	ldur	x24, [x29, #-144]               ; 8-byte Folded Reload
	b.ge	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
Lloh19:
	adrp	x9, _InvalidBlockNumber@GOTPAGE
Lloh20:
	ldr	x9, [x9, _InvalidBlockNumber@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x8, x24, #0, ne
	csel	x21, x8, x21, lt
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	cbz	x8, LBB0_30
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh22:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh24:
	ldr	x24, [x8]
	cmp	x24, x23
	b.gt	LBB0_27
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x24
	bl	_OffsetNumberNext
	mov	x24, x0
	cmp	x0, x23
	b.gt	LBB0_20
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x28
	mov	x1, x24
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x28
	bl	_PageGetItem
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	ldp	x1, x8, [x29, #-120]            ; 16-byte Folded Reload
	blr	x8
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	str	x24, [x20, w19, sxtw #3]
	add	w19, w19, #1
	b	LBB0_13
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_PageGetMaxOffsetNumber
Lloh25:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh27:
	ldr	x20, [x8]
	cmp	x20, x0
	b.le	LBB0_23
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x26, x24
	ldur	x19, [x29, #-136]               ; 8-byte Folded Reload
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	mov	x1, x24
	bl	_intset_add_member
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh28:
	adrp	x20, _InvalidBlockNumber@GOTPAGE
Lloh29:
	ldr	x20, [x20, _InvalidBlockNumber@GOTPAGEOFF]
	b	LBB0_2
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w19, #1
	ldur	x24, [x29, #-144]               ; 8-byte Folded Reload
	b.lt	LBB0_30
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_START_CRIT_SECTION
	mov	x0, x27
	bl	_MarkBufferDirty
	mov	x0, x28
	mov	x1, x20
	mov	x2, x19
	bl	_PageIndexMultiDelete
	mov	x0, x28
	bl	_GistMarkTuplesDeleted
	mov	x0, x22
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh30:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh31:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh32:
	ldr	w5, [x8]
	mov	x0, x27
	mov	x1, x20
	mov	x2, x19
	mov	x3, #0
	mov	w4, #0
	bl	_gistXLogUpdate
	b	LBB0_29
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x0
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=2
	mov	x0, x20
	bl	_OffsetNumberNext
	mov	x20, x0
	cmp	x0, x19
	b.gt	LBB0_17
LBB0_25:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x28
	mov	x1, x20
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x28
	bl	_PageGetItem
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_GistTupleIsInvalid
	cbz	x0, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
Lloh33:
	adrp	x8, _LOG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh35:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh36:
	adrp	x0, l_.str@PAGE
Lloh37:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errdetail
Lloh40:
	adrp	x0, l_.str.2@PAGE
Lloh41:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	b	LBB0_24
LBB0_27:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x24, [x29, #-144]               ; 8-byte Folded Reload
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_gistGetFakeLSN
LBB0_29:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	mov	x0, x28
	bl	_PageSetLSN
	bl	_END_CRIT_SECTION
	ldr	w8, [x25, #4]
	add	w8, w8, w19
	str	w8, [x25, #4]
	mov	x0, x28
	bl	_PageGetMaxOffsetNumber
	mov	x23, x0
LBB0_30:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh42:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh43:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	sub	w8, w23, w8
	adds	w8, w8, #1
	b.lo	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x26, x24
	ldp	x19, x23, [x29, #-136]          ; 16-byte Folded Reload
Lloh45:
	adrp	x20, _InvalidBlockNumber@GOTPAGE
Lloh46:
	ldr	x20, [x20, _InvalidBlockNumber@GOTPAGEOFF]
	b.ne	LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25, #20]
	mov	x1, x24
	bl	_intset_add_member
	mov	sp, x23
	b	LBB0_2
LBB0_33:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x25, #8]
	add	w8, w9, w8
	str	w8, [x25, #8]
	ldp	x19, x23, [x29, #-136]          ; 16-byte Folded Reload
Lloh47:
	adrp	x20, _InvalidBlockNumber@GOTPAGE
Lloh48:
	ldr	x20, [x20, _InvalidBlockNumber@GOTPAGEOFF]
LBB0_34:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	sp, x23
	b	LBB0_2
LBB0_35:
	ldur	x8, [x29, #-104]
Lloh49:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.36:
	sub	sp, x29, #96
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ; @RBM_NORMAL
	.comm	_GIST_EXCLUSIVE,4,2             ; @GIST_EXCLUSIVE
	.comm	_MaxOffsetNumber,4,2            ; @MaxOffsetNumber
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_LOG,4,2                        ; @LOG
	.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."

	.no_dead_strip	_gistvacuumpage
.subsections_via_symbols
