	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gistvacuumscan
_gistvacuumscan:                        ## @gistvacuumscan
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movl	$0, (%rsi)
	movq	$0, 8(%rsi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rsi)
	movl	56(%rsi), %edi
	callq	_MemoryContextReset
	movl	56(%r14), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_intset_create
	movq	%rax, 48(%r14)
	xorl	%eax, %eax
	callq	_intset_create
	movq	%rax, 40(%r14)
	movl	%r13d, %edi
	callq	_MemoryContextSwitchTo
	movq	%rbx, -64(%rbp)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)
	movl	%r12d, -80(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -88(%rbp)
	movl	%r15d, %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_GetInsertRecPtr
	jmp	LBB0_3
LBB0_2:
	movl	%r15d, %edi
	callq	_gistGetFakeLSN
LBB0_3:
	movl	%eax, -96(%rbp)
	movl	%r15d, %edi
	callq	_RELATION_IS_LOCAL
	movl	%eax, %r12d
	movq	_GIST_ROOT_BLKNO@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	-96(%rbp), %r13
	testl	%r12d, %r12d
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:
	movl	%r15d, %edi
	callq	_RelationGetNumberOfBlocks
	movq	%rax, %r14
	cmpq	%r14, %rbx
	jl	LBB0_8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockRelationForExtension
	movl	%r15d, %edi
	callq	_RelationGetNumberOfBlocks
	movq	%rax, %r14
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_UnlockRelationForExtension
	cmpq	%r14, %rbx
	jge	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_gistvacuumpage
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_8
## %bb.9:
	movq	%r14, %rbx
	testl	%r12d, %r12d
	jne	LBB0_5
	jmp	LBB0_6
LBB0_10:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 8(%rbx)
	jle	LBB0_12
## %bb.11:
	movl	%r15d, %edi
	callq	_IndexFreeSpaceMapVacuum
LBB0_12:
	movq	%r14, 16(%rbx)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIST_ROOT_BLKNO,8,3            ## @GIST_ROOT_BLKNO
	.comm	_ExclusiveLock,4,2              ## @ExclusiveLock
	.no_dead_strip	_gistvacuumscan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gistvacuumscan
_gistvacuumscan:                        ; @gistvacuumscan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	ldr	w20, [x0]
	str	wzr, [x1]
	str	xzr, [x1, #8]
	stp	xzr, xzr, [x1, #24]
	ldr	w0, [x1, #56]
	bl	_MemoryContextReset
	ldr	w0, [x19, #56]
	bl	_MemoryContextSwitchTo
	mov	x24, x0
	bl	_intset_create
	str	x0, [x19, #48]
	bl	_intset_create
	str	x0, [x19, #40]
	mov	x0, x24
	bl	_MemoryContextSwitchTo
	stp	x19, x23, [sp, #32]
	str	w22, [sp, #24]
	str	x21, [sp, #16]
	mov	x0, x20
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_2
; %bb.1:
	bl	_GetInsertRecPtr
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_gistGetFakeLSN
LBB0_3:
	str	w0, [sp, #8]
	mov	x0, x20
	bl	_RELATION_IS_LOCAL
	mov	x21, x0
Lloh0:
	adrp	x8, _GIST_ROOT_BLKNO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIST_ROOT_BLKNO@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x24, _ExclusiveLock@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ExclusiveLock@GOTPAGEOFF]
	cbz	w21, LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_RelationGetNumberOfBlocks
	mov	x23, x0
	cmp	x22, x23
	b.lt	LBB0_6
	b	LBB0_8
LBB0_5:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_LockRelationForExtension
	mov	x0, x20
	bl	_RelationGetNumberOfBlocks
	mov	x23, x0
	ldr	w1, [x24]
	mov	x0, x20
	bl	_UnlockRelationForExtension
	cmp	x22, x23
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x22
	bl	_gistvacuumpage
	add	x22, x22, #1
	cmp	x23, x22
	b.ne	LBB0_6
; %bb.7:
	mov	x22, x23
	cbnz	w21, LBB0_4
	b	LBB0_5
LBB0_8:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_IndexFreeSpaceMapVacuum
LBB0_10:
	str	x23, [x19, #16]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GIST_ROOT_BLKNO,8,3            ; @GIST_ROOT_BLKNO
	.comm	_ExclusiveLock,4,2              ; @ExclusiveLock
	.no_dead_strip	_gistvacuumscan
.subsections_via_symbols
