	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gistprunepage
_gistprunepage:                         ## @gistprunepage
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MaxIndexTuplesPerPage@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_GistPageIsLeaf
	movl	%eax, %edi
	callq	_Assert
	movl	%ebx, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %r14
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%r13d, %r13d
	cmpq	%r14, %r15
	jle	LBB0_1
LBB0_5:
	xorl	%eax, %eax
	callq	_XLogStandbyInfoActive
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_9
## %bb.8:
	movl	%r15d, %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%r13d, %r8d
	callq	_index_compute_xid_horizon_for_tuples
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_9:
	testl	%r13d, %r13d
	jg	LBB0_10
	jmp	LBB0_14
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r15
	cmpq	%r14, %rax
	jg	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_PageGetItemId
	movl	%eax, %edi
	callq	_ItemIdIsDead
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	incl	%r13d
	movq	%r15, (%r12,%rax,8)
	jmp	LBB0_4
LBB0_6:
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	testl	%r13d, %r13d
	jle	LBB0_14
LBB0_10:
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_PageIndexMultiDelete
	movl	%ebx, %edi
	callq	_GistClearPageHasGarbage
	movl	%r14d, %edi
	callq	_MarkBufferDirty
	movl	%r15d, %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_gistXLogDelete
	jmp	LBB0_13
LBB0_12:
	movl	%r15d, %edi
	callq	_gistGetFakeLSN
LBB0_13:
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PageSetLSN
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxIndexTuplesPerPage,4,2      ## @MaxIndexTuplesPerPage
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.no_dead_strip	_gistprunepage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gistprunepage
_gistprunepage:                         ; @gistprunepage
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x24, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MaxIndexTuplesPerPage@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxIndexTuplesPerPage@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh9:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	mov	x0, x1
	bl	_GistPageIsLeaf
	bl	_Assert
	mov	x0, x19
	bl	_PageGetMaxOffsetNumber
Lloh11:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh13:
	ldr	x27, [x8]
	cmp	x27, x0
	b.le	LBB0_8
; %bb.1:
	mov	w25, #0
LBB0_2:
	bl	_XLogStandbyInfoActive
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	mov	x3, x22
	mov	x4, x25
	bl	_index_compute_xid_horizon_for_tuples
	mov	x23, x0
LBB0_5:
	cmp	w25, #1
	b.lt	LBB0_14
; %bb.6:
	bl	_START_CRIT_SECTION
	mov	x0, x19
	mov	x1, x22
	mov	x2, x25
	bl	_PageIndexMultiDelete
	mov	x0, x19
	bl	_GistClearPageHasGarbage
	mov	x0, x20
	bl	_MarkBufferDirty
	mov	x0, x21
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_12
; %bb.7:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x25
	mov	x3, x23
	bl	_gistXLogDelete
	b	LBB0_13
LBB0_8:
	mov	x26, x0
	mov	w25, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x27
	bl	_OffsetNumberNext
	mov	x27, x0
	cmp	x0, x26
	b.gt	LBB0_2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x27
	bl	_PageGetItemId
	bl	_ItemIdIsDead
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	x27, [x22, w25, sxtw #3]
	add	w25, w25, #1
	b	LBB0_9
LBB0_12:
	mov	x0, x21
	bl	_gistGetFakeLSN
LBB0_13:
	mov	x1, x0
	mov	x0, x19
	bl	_PageSetLSN
	bl	_END_CRIT_SECTION
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxIndexTuplesPerPage,4,2      ; @MaxIndexTuplesPerPage
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.no_dead_strip	_gistprunepage
.subsections_via_symbols
