	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vacuumLeafRoot
_vacuumLeafRoot:                        ## @vacuumLeafRoot
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edx, %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	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, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %r14
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpq	%r14, %r12
	jle	LBB0_2
## %bb.1:
	movq	$0, -112(%rbp)
	jmp	LBB0_14
LBB0_2:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	incq	%r14
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_SPGIST_LIVE@GOTPCREL(%rip), %rbx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	cmpq	%r12, %r14
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_PageGetItemId
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	(%rax), %rdx
	cmpq	(%rbx), %rdx
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movl	%r13d, %r14d
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_ItemPointerIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	16(%r13), %esi
	movq	%r15, %rdi
	callq	*24(%r13)
	movq	8(%r13), %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	(%rcx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, (%rax,%rcx,8)
	incq	%rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	4(%rcx)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r13d
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, -112(%rbp)
	testq	%r14, %r14
	je	LBB0_14
## %bb.11:
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movl	%r13d, %edi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_PageIndexMultiDelete
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_MarkBufferDirty
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_STORE_STATE
	movq	_SizeOfSpgxlogVacuumRoot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-112(%rbp), %rdi
	callq	_XLogRegisterData
	movl	-112(%rbp), %esi
	shll	$3, %esi
	movq	%r15, %rdi
	callq	_XLogRegisterData
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_XLogRegisterBuffer
	movq	_RM_SPGIST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_SPGIST_VACUUM_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_PageSetLSN
LBB0_13:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
LBB0_14:
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	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	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_SPGIST_LIVE,8,3                ## @SPGIST_LIVE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected SPGiST tuple state: %d"

	.comm	_SizeOfSpgxlogVacuumRoot,4,2    ## @SizeOfSpgxlogVacuumRoot
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_RM_SPGIST_ID,4,2               ## @RM_SPGIST_ID
	.comm	_XLOG_SPGIST_VACUUM_ROOT,4,2    ## @XLOG_SPGIST_VACUUM_ROOT
	.no_dead_strip	_vacuumLeafRoot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vacuumLeafRoot
_vacuumLeafRoot:                        ; @vacuumLeafRoot
	.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, #48
	mov	x23, x2
	mov	x24, 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]
	mov	x0, x2
	bl	_BufferGetPage
	mov	x19, x0
	mov	x20, sp
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
	bl	_PageGetMaxOffsetNumber
Lloh8:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh10:
	ldr	x25, [x8]
	cmp	x25, x0
	b.le	LBB0_2
; %bb.1:
	stur	xzr, [x29, #-104]
	b	LBB0_13
LBB0_2:
	stp	w24, w23, [x29, #-120]          ; 8-byte Folded Spill
	stur	x20, [x29, #-112]               ; 8-byte Folded Spill
	mov	x24, #0
	add	x23, x0, #1
Lloh11:
	adrp	x28, _SPGIST_LIVE@GOTPAGE
Lloh12:
	ldr	x28, [x28, _SPGIST_LIVE@GOTPAGEOFF]
Lloh13:
	adrp	x20, _ERROR@GOTPAGE
Lloh14:
	ldr	x20, [x20, _ERROR@GOTPAGEOFF]
Lloh15:
	adrp	x26, l_.str@PAGE
Lloh16:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20]
	mov	x1, x26
	bl	_elog
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	cmp	x23, x25
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x19
	bl	_PageGetItem
	ldr	x2, [x0]
	ldr	x8, [x28]
	cmp	x2, x8
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x0, #8
	mov	x0, x27
	bl	_ItemPointerIsValid
	bl	_Assert
	ldr	x8, [x21, #24]
	ldr	w1, [x21, #16]
	mov	x0, x27
	blr	x8
	ldr	x8, [x21, #8]
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	str	x25, [x22, x24, lsl #3]
	add	x24, x24, #1
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	b	LBB0_4
LBB0_9:
	stur	x24, [x29, #-104]
	ldur	x20, [x29, #-112]               ; 8-byte Folded Reload
	cbz	x24, LBB0_13
; %bb.10:
	bl	_START_CRIT_SECTION
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	bl	_PageIndexMultiDelete
	ldur	w23, [x29, #-116]               ; 4-byte Folded Reload
	mov	x0, x23
	bl	_MarkBufferDirty
	ldur	w0, [x29, #-120]                ; 4-byte Folded Reload
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_12
; %bb.11:
	bl	_XLogBeginInsert
	mov	x0, x21
	bl	_STORE_STATE
Lloh17:
	adrp	x8, _SizeOfSpgxlogVacuumRoot@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SizeOfSpgxlogVacuumRoot@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	sub	x0, x29, #104
	bl	_XLogRegisterData
	ldur	w8, [x29, #-104]
	lsl	w1, w8, #3
	mov	x0, x22
	bl	_XLogRegisterData
Lloh20:
	adrp	x8, _REGBUF_STANDARD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REGBUF_STANDARD@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w0, #0
	mov	x1, x23
	bl	_XLogRegisterBuffer
Lloh23:
	adrp	x8, _RM_SPGIST_ID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RM_SPGIST_ID@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _XLOG_SPGIST_VACUUM_ROOT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _XLOG_SPGIST_VACUUM_ROOT@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x1, x0
	mov	x0, x19
	bl	_PageSetLSN
LBB0_12:
	bl	_END_CRIT_SECTION
LBB0_13:
	mov	sp, x20
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxIndexTuplesPerPage,4,2      ; @MaxIndexTuplesPerPage
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_SPGIST_LIVE,8,3                ; @SPGIST_LIVE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected SPGiST tuple state: %d"

	.comm	_SizeOfSpgxlogVacuumRoot,4,2    ; @SizeOfSpgxlogVacuumRoot
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_RM_SPGIST_ID,4,2               ; @RM_SPGIST_ID
	.comm	_XLOG_SPGIST_VACUUM_ROOT,4,2    ; @XLOG_SPGIST_VACUUM_ROOT
	.no_dead_strip	_vacuumLeafRoot
.subsections_via_symbols
