	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spgvacuumscan
_spgvacuumscan:                         ## @spgvacuumscan
	.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, %r12
	movq	32(%rdi), %rax
	movl	(%rax), %r14d
	addq	$28, %rdi
	movl	%r14d, %esi
	callq	_initSpGistState
	movq	$0, 16(%r12)
	xorl	%eax, %eax
	callq	_GetActiveSnapshot
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_SPGIST_LAST_FIXED_BLKNO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	8(%r12), %rax
	movl	$0, (%rax)
	movq	$0, 40(%rax)
	movq	$0, 8(%rax)
	movl	%r14d, %edi
	callq	_RELATION_IS_LOCAL
	movl	%eax, %r15d
	movq	_SPGIST_METAPAGE_BLKNO@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	incq	%rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rbx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	callq	_RelationGetNumberOfBlocks
	movq	%rax, %r13
	cmpq	%r13, %rbx
	jl	LBB0_5
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_LockRelationForExtension
	movl	%r14d, %edi
	callq	_RelationGetNumberOfBlocks
	movq	%rax, %r13
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_UnlockRelationForExtension
	cmpq	%r13, %rbx
	jl	LBB0_5
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_spgvacuumpage
	cmpq	$0, 16(%r12)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %rdi
	callq	_spgprocesspending
	jmp	LBB0_7
LBB0_9:
	movl	%r14d, %edi
	callq	_SpGistUpdateMetaPage
	movq	8(%r12), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	jle	LBB0_11
## %bb.10:
	movl	%r14d, %edi
	callq	_IndexFreeSpaceMapVacuum
	movq	8(%r12), %rax
	movq	8(%rax), %rcx
LBB0_11:
	movq	%r13, 24(%rax)
	movq	%rcx, 16(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPGIST_LAST_FIXED_BLKNO,8,3    ## @SPGIST_LAST_FIXED_BLKNO
	.comm	_SPGIST_METAPAGE_BLKNO,8,3      ## @SPGIST_METAPAGE_BLKNO
	.comm	_ExclusiveLock,4,2              ## @ExclusiveLock
	.no_dead_strip	_spgvacuumscan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spgvacuumscan
_spgvacuumscan:                         ; @spgvacuumscan
	.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	x19, x0
	ldr	x8, [x0, #32]
	ldr	w20, [x8]
	add	x0, x0, #28
	mov	x1, x20
	bl	_initSpGistState
	str	xzr, [x19, #16]
	bl	_GetActiveSnapshot
	ldr	w8, [x0]
	str	w8, [x19, #24]
Lloh0:
	adrp	x8, _SPGIST_LAST_FIXED_BLKNO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPGIST_LAST_FIXED_BLKNO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	x8, [x19, #8]
	str	wzr, [x8]
	str	xzr, [x8, #40]
	str	xzr, [x8, #8]
	mov	x0, x20
	bl	_RELATION_IS_LOCAL
	mov	x21, x0
Lloh3:
	adrp	x8, _SPGIST_METAPAGE_BLKNO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPGIST_METAPAGE_BLKNO@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x23, x8, #1
Lloh6:
	adrp	x24, _ExclusiveLock@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ExclusiveLock@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x22
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cbz	w21, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_RelationGetNumberOfBlocks
	mov	x22, x0
	cmp	x23, x22
	b.lt	LBB0_6
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_LockRelationForExtension
	mov	x0, x20
	bl	_RelationGetNumberOfBlocks
	mov	x22, x0
	ldr	w1, [x24]
	mov	x0, x20
	bl	_UnlockRelationForExtension
	cmp	x23, x22
	b.lt	LBB0_6
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x23, x23, #1
	cmp	x22, x23
	b.eq	LBB0_1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x23
	bl	_spgvacuumpage
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	bl	_spgprocesspending
	b	LBB0_5
LBB0_8:
	mov	x0, x20
	bl	_SpGistUpdateMetaPage
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	cmp	x9, #1
	b.lt	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_IndexFreeSpaceMapVacuum
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
LBB0_10:
	stp	x9, x22, [x8, #16]
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SPGIST_LAST_FIXED_BLKNO,8,3    ; @SPGIST_LAST_FIXED_BLKNO
	.comm	_SPGIST_METAPAGE_BLKNO,8,3      ; @SPGIST_METAPAGE_BLKNO
	.comm	_ExclusiveLock,4,2              ; @ExclusiveLock
	.no_dead_strip	_spgvacuumscan
.subsections_via_symbols
