	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btvacuumscan
_btvacuumscan:                          ## @btvacuumscan
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%rdi, %r13
	movl	16(%rdi), %ebx
	movl	$0, (%rsi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rsi)
	movq	%rdi, -72(%rbp)
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)
	movl	%edx, -88(%rbp)
	movq	%rcx, -96(%rbp)
	movl	%r8d, -104(%rbp)
	movq	_BTREE_METAPAGE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -136(%rbp)
	movq	%rax, -128(%rbp)
	movq	$0, -120(%rbp)
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALLOCSET_DEFAULT_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_AllocSetContextCreate
	movl	%eax, -108(%rbp)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_RELATION_IS_LOCAL
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rbx
	incq	%rbx
	leaq	-136(%rbp), %r12
	movq	_PROGRESS_SCAN_BLOCKS_DONE@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rbx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetNumberOfBlocks
	movq	%rax, %r15
	cmpq	$0, 8(%r13)
	je	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_PROGRESS_SCAN_BLOCKS_TOTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_pgstat_progress_update_param
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r15, %rbx
	jl	LBB0_7
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_10
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_btvacuumpage
	cmpq	$0, 8(%r13)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_pgstat_progress_update_param
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_LockRelationForExtension
	movl	%r15d, %edi
	callq	_RelationGetNumberOfBlocks
	movq	%rax, %r15
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_UnlockRelationForExtension
	cmpq	$0, 8(%r13)
	jne	LBB0_5
	jmp	LBB0_6
LBB0_11:
	xorl	%eax, %eax
	callq	_XLogStandbyInfoActive
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	-128(%rbp), %rdx
	cmpq	%rdx, -136(%rbp)
	jge	LBB0_14
## %bb.13:
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RBM_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_ReadBufferExtended
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_LockBufferForCleanup
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	__bt_checkpage
	movq	-136(%rbp), %r8
	movl	%r14d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	__bt_delitems_vacuum
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	__bt_relbuf
LBB0_14:
	movl	-108(%rbp), %edi
	callq	_MemoryContextDelete
	movq	-120(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_16
## %bb.15:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_IndexFreeSpaceMapVacuum
	movq	-120(%rbp), %rax
LBB0_16:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, 16(%rcx)
	movq	%rax, 8(%rcx)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.17:
	movl	-112(%rbp), %eax
	movl	%eax, (%rcx)
LBB0_18:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTREE_METAPAGE,8,3             ## @BTREE_METAPAGE
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_bt_pagedel"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ## @ALLOCSET_DEFAULT_SIZES
	.comm	_ExclusiveLock,4,2              ## @ExclusiveLock
	.comm	_PROGRESS_SCAN_BLOCKS_TOTAL,4,2 ## @PROGRESS_SCAN_BLOCKS_TOTAL
	.comm	_PROGRESS_SCAN_BLOCKS_DONE,4,2  ## @PROGRESS_SCAN_BLOCKS_DONE
	.comm	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ## @RBM_NORMAL
	.no_dead_strip	_btvacuumscan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btvacuumscan
_btvacuumscan:                          ; @btvacuumscan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x5
	mov	x20, x1
	mov	x22, x0
	ldr	w21, [x0, #16]
	str	wzr, [x1]
	stp	xzr, xzr, [x1, #24]
	stp	x1, x0, [sp, #64]
	str	w2, [sp, #56]
	str	x3, [sp, #48]
Lloh0:
	adrp	x23, _BTREE_METAPAGE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BTREE_METAPAGE@GOTPAGEOFF]
	ldr	x8, [x23]
	stp	x8, x8, [sp, #8]
	str	xzr, [sp, #24]
Lloh2:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh3:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w4, [sp, #40]
	str	w8, [sp, #32]
Lloh5:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AllocSetContextCreate
	str	w0, [sp, #36]
	mov	x0, x21
	bl	_RELATION_IS_LOCAL
	mov	x24, x0
	ldr	x8, [x23]
	add	x25, x8, #1
Lloh13:
	adrp	x26, _ExclusiveLock@GOTPAGE
Lloh14:
	ldr	x26, [x26, _ExclusiveLock@GOTPAGEOFF]
Lloh15:
	adrp	x27, _PROGRESS_SCAN_BLOCKS_DONE@GOTPAGE
Lloh16:
	ldr	x27, [x27, _PROGRESS_SCAN_BLOCKS_DONE@GOTPAGEOFF]
Lloh17:
	adrp	x28, _PROGRESS_SCAN_BLOCKS_TOTAL@GOTPAGE
Lloh18:
	ldr	x28, [x28, _PROGRESS_SCAN_BLOCKS_TOTAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x23
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cbz	w24, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_RelationGetNumberOfBlocks
	mov	x23, x0
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x28]
	mov	x1, x23
	bl	_pgstat_progress_update_param
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x25, x23
	b.lt	LBB0_7
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x25, x25, #1
	cmp	x23, x25
	b.eq	LBB0_1
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #8
	mov	x1, x25
	mov	x2, x25
	bl	_btvacuumpage
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x27]
	mov	x1, x25
	bl	_pgstat_progress_update_param
	b	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x26]
	mov	x0, x21
	bl	_LockRelationForExtension
	mov	x0, x21
	bl	_RelationGetNumberOfBlocks
	mov	x23, x0
	ldr	w1, [x26]
	mov	x0, x21
	bl	_UnlockRelationForExtension
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_4
	b	LBB0_5
LBB0_10:
	bl	_XLogStandbyInfoActive
	cbz	x0, LBB0_13
; %bb.11:
	ldp	x8, x2, [sp, #8]
	cmp	x8, x2
	b.ge	LBB0_13
; %bb.12:
Lloh19:
	adrp	x8, _MAIN_FORKNUM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAIN_FORKNUM@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _RBM_NORMAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RBM_NORMAL@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	ldr	w4, [x22]
	mov	x0, x21
	bl	_ReadBufferExtended
	mov	x22, x0
	bl	_LockBufferForCleanup
	mov	x0, x21
	mov	x1, x22
	bl	__bt_checkpage
	ldr	x4, [sp, #8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	mov	w3, #0
	bl	__bt_delitems_vacuum
	mov	x0, x21
	mov	x1, x22
	bl	__bt_relbuf
LBB0_13:
	ldr	w0, [sp, #36]
	bl	_MemoryContextDelete
	ldr	x8, [sp, #24]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_IndexFreeSpaceMapVacuum
	ldr	x8, [sp, #24]
LBB0_15:
	stp	x8, x23, [x20, #8]
	cbz	x19, LBB0_17
; %bb.16:
	ldr	w8, [sp, #32]
	str	w8, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BTREE_METAPAGE,8,3             ; @BTREE_METAPAGE
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_bt_pagedel"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ; @ALLOCSET_DEFAULT_SIZES
	.comm	_ExclusiveLock,4,2              ; @ExclusiveLock
	.comm	_PROGRESS_SCAN_BLOCKS_TOTAL,4,2 ; @PROGRESS_SCAN_BLOCKS_TOTAL
	.comm	_PROGRESS_SCAN_BLOCKS_DONE,4,2  ; @PROGRESS_SCAN_BLOCKS_DONE
	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ; @RBM_NORMAL
	.no_dead_strip	_btvacuumscan
.subsections_via_symbols
