	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ginVacuumEntryPage
_ginVacuumEntryPage:                    ## @ginVacuumEntryPage
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_BufferGetPage
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PageGetMaxOffsetNumber
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	$0, (%r14)
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	cmpq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.1:
	movq	%rbx, %r15
LBB0_21:
	xorl	%eax, %eax
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	cmovneq	%r15, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	4(%r15), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	incq	%rax
	movq	%rbx, %r15
	movq	%rax, %rbx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_GinGetDownlink
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	(%rdx), %rcx
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	%eax, (%rsi,%rcx,4)
	incq	%rcx
	movq	%rcx, (%rdx)
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	cmpq	%r12, %rbx
	je	LBB0_21
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_PageGetItemId
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_GinIsPostingTree
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_GinGetNPosting
	testl	%eax, %eax
	jle	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_GinItupIsCompressed
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_GinGetPosting
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	leaq	-44(%rbp), %r14
	movq	%r14, %rsi
	callq	_ginPostingListDecode
	movq	%rax, %rbx
	movl	-44(%rbp), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	%r14, %rcx
	callq	_ginVacuumItemPointers
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_pfree
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_GinGetNPosting
	movl	%eax, -44(%rbp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	leaq	-44(%rbp), %rcx
	callq	_ginVacuumItemPointers
	movq	%rax, %r14
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r14, %r14
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_GinMaxItemSize@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_ginCompressPostingList
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SizeOfGinPostingList
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_PageGetTempPageCopy
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_PageGetItemId
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %r13
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_gintuple_get_attrnum
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r13, %rsi
	leaq	-68(%rbp), %rdx
	callq	_gintuple_get_key
	movl	-68(%rbp), %ecx
	movl	-44(%rbp), %r10d
	movq	%r14, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	%eax, %edx
	movq	%rbx, %r8
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	$1
	pushq	%r10
	callq	_GinFormTuple
	addq	$16, %rsp
	movq	%rax, %r13
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_pfree
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_PageIndexTupleDelete
	movq	%r13, %rdi
	callq	_IndexTupleSize
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	cmpq	%rax, %r12
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_RelationGetRelationName
	movl	%r14d, %edi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_elog
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_pfree
	movq	%rbx, %rdi
	callq	_pfree
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_GinMaxItemSize,4,2             ## @GinMaxItemSize
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add item to index page in \"%s\""

	.no_dead_strip	_ginVacuumEntryPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ginVacuumEntryPage
_ginVacuumEntryPage:                    ; @ginVacuumEntryPage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x3
	mov	x20, x2
	mov	x27, x0
	mov	x0, x1
	bl	_BufferGetPage
	mov	x21, x0
	bl	_PageGetMaxOffsetNumber
	str	xzr, [x19]
Lloh0:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	cmp	x23, x0
	b.le	LBB0_3
; %bb.1:
	mov	x25, x21
LBB0_2:
	cmp	x25, x21
	csel	x0, xzr, x25, eq
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	add	x8, x27, #4
	stp	x8, x20, [sp, #16]              ; 16-byte Folded Spill
	add	x24, x0, #1
	mov	x25, x21
	str	x27, [sp, #32]                  ; 8-byte Folded Spill
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
	bl	_GinGetDownlink
	ldr	x8, [x19]
	str	w0, [x20, x8, lsl #2]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	cmp	x24, x23
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x23
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x25
	bl	_PageGetItem
	mov	x28, x0
	bl	_GinIsPostingTree
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
	bl	_GinGetNPosting
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
	bl	_GinItupIsCompressed
	mov	x26, x0
	mov	x0, x28
	bl	_GinGetPosting
	mov	x22, x0
	cbz	x26, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #44
	mov	x0, x22
	bl	_ginPostingListDecode
	mov	x22, x0
	ldr	w2, [sp, #44]
	add	x3, sp, #44
	mov	x0, x27
	mov	x1, x22
	bl	_ginVacuumItemPointers
	mov	x27, x0
	mov	x0, x22
	bl	_pfree
	cbnz	x27, LBB0_11
	b	LBB0_19
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
	bl	_GinGetNPosting
	mov	x2, x0
	str	w0, [sp, #44]
	add	x3, sp, #44
	mov	x0, x27
	mov	x1, x22
	bl	_ginVacuumItemPointers
	mov	x27, x0
	cbz	x27, LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [sp, #44]
	cmp	w1, #1
	b.lt	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh3:
	adrp	x8, _GinMaxItemSize@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GinMaxItemSize@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x27
	mov	x3, #0
	bl	_ginCompressPostingList
	mov	x26, x0
	bl	_SizeOfGinPostingList
	mov	x22, x0
	cmp	x25, x21
	b.ne	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_PageGetTempPageCopy
	mov	x25, x0
	mov	x1, x23
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x25
	bl	_PageGetItem
	mov	x28, x0
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x21
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x24
	mov	x1, x28
	bl	_gintuple_get_attrnum
	mov	x21, x0
	add	x2, sp, #40
	mov	x0, x24
	mov	x1, x28
	bl	_gintuple_get_key
	mov	x2, x0
	ldp	w3, w6, [sp, #40]
	mov	x0, x24
	mov	x1, x21
	mov	x4, x26
	mov	x5, x22
	mov	w7, #1
	bl	_GinFormTuple
	mov	x22, x0
	cbz	x26, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	bl	_pfree
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x23
	bl	_PageIndexTupleDelete
	mov	x0, x22
	bl	_IndexTupleSize
	mov	x2, x0
	mov	x0, x25
	mov	x1, x22
	mov	x3, x23
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
	cmp	x23, x0
	mov	x21, x20
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_RelationGetRelationName
	mov	x2, x0
	mov	x0, x21
	mov	x21, x20
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_pfree
	mov	x0, x27
	bl	_pfree
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x27, [sp, #32]                  ; 8-byte Folded Reload
	b	LBB0_5
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, #0
	mov	w22, #0
	cmp	x25, x21
	b.ne	LBB0_14
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_GinMaxItemSize,4,2             ; @GinMaxItemSize
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add item to index page in \"%s\""

	.no_dead_strip	_ginVacuumEntryPage
.subsections_via_symbols
