	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gistkillitems
_gistkillitems:                         ## @gistkillitems
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movslq	4(%rdi), %r13
	movq	(%r13), %rax
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	movq	8(%r13), %rdi
	callq	_XLogRecPtrIsInvalid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 24(%r13)
	setne	%dil
	callq	_Assert
	movl	(%r14), %edi
	movq	(%r13), %rsi
	callq	_ReadBuffer
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_BufferIsValid
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	_GIST_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	movl	(%r14), %edi
	movl	%r15d, %esi
	callq	_gistcheckpage
	movl	%r15d, %edi
	callq	_BufferGetPage
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_BufferGetLSNAtomic
	cmpq	8(%r13), %rax
	jne	LBB0_2
## %bb.3:
	movl	%r14d, %edi
	callq	_GistPageIsLeaf
	movl	%eax, %edi
	callq	_Assert
	movl	16(%r13), %r12d
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movl	%r14d, %edi
	callq	_PageGetItemId
	movl	%eax, %edi
	callq	_ItemIdMarkDead
	incq	%rbx
	movslq	16(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
## %bb.6:
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.7:
	movl	%r14d, %edi
	callq	_GistMarkPageHasGarbage
	movl	%r15d, %edi
	movl	$1, %esi
	callq	_MarkBufferDirtyHint
LBB0_8:
	addq	$16, %r13
	movl	%r15d, %edi
	callq	_UnlockReleaseBuffer
	jmp	LBB0_9
LBB0_2:
	movl	%r15d, %edi
	callq	_UnlockReleaseBuffer
	addq	$16, %r13
LBB0_9:
	movl	$0, (%r13)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_GIST_SHARE,4,2                 ## @GIST_SHARE
	.no_dead_strip	_gistkillitems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gistkillitems
_gistkillitems:                         ; @gistkillitems
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldrsw	x21, [x0, #4]
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x9, [x9, _InvalidBlockNumber@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	ldr	x0, [x21, #8]
	bl	_XLogRecPtrIsInvalid
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x21, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	w0, [x20]
	ldr	x1, [x21]
	bl	_ReadBuffer
	mov	x19, x0
	bl	_BufferIsValid
	cbz	w0, LBB0_10
; %bb.1:
Lloh3:
	adrp	x8, _GIST_SHARE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GIST_SHARE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LockBuffer
	ldr	w0, [x20]
	mov	x1, x19
	bl	_gistcheckpage
	mov	x0, x19
	bl	_BufferGetPage
	mov	x20, x0
	mov	x0, x19
	bl	_BufferGetLSNAtomic
	ldr	x8, [x21, #8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_GistPageIsLeaf
	bl	_Assert
	mov	x22, x21
	ldr	w23, [x22, #16]!
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	ldr	w1, [x8, x24, lsl #2]
	mov	x0, x20
	bl	_PageGetItemId
	bl	_ItemIdMarkDead
	add	x24, x24, #1
	ldrsw	x8, [x21, #16]
	cmp	x24, x8
	b.lt	LBB0_4
; %bb.5:
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_GistMarkPageHasGarbage
	mov	x0, x19
	mov	w1, #1
	bl	_MarkBufferDirtyHint
LBB0_7:
	mov	x0, x19
	bl	_UnlockReleaseBuffer
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_UnlockReleaseBuffer
	add	x22, x21, #16
LBB0_9:
	str	wzr, [x22]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_GIST_SHARE,4,2                 ; @GIST_SHARE
	.no_dead_strip	_gistkillitems
.subsections_via_symbols
