	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lazy_vacuum_heap
_lazy_vacuum_heap:                      ## @lazy_vacuum_heap
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, -48(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_pg_rusage_init
	cmpl	$0, (%rbx)
	jle	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movq	%rbx, %r8
	leaq	-48(%rbp), %r9
	callq	_lazy_vacuum_page
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetHeapFreeSpace
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_UnlockReleaseBuffer
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	%rbx, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	callq	_RecordPageWithFreeSpace
	incl	%ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rbx
	cmpl	(%rbx), %r12d
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_vacuum_delay_point
	movslq	%r12d, %rdi
	shlq	$2, %rdi
	addq	8(%rbx), %rdi
	callq	_ItemPointerGetBlockNumber
	movl	%eax, %r13d
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RBM_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_vac_strategy@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r15d, %edi
	movl	%r13d, %edx
	callq	_ReadBufferExtended
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ConditionalLockBufferForCleanup
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	callq	_ReleaseBuffer
	incl	%r12d
	cmpl	(%rbx), %r12d
	jl	LBB0_3
LBB0_7:
	movl	-48(%rbp), %r14d
	jmp	LBB0_8
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r14d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	-48(%rbp), %edi
	callq	_ReleaseBuffer
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
LBB0_10:
	movq	_elevel@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_errmsg
	leaq	-56(%rbp), %rdi
	callq	_pg_rusage_show
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_errdetail_internal
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ## @RBM_NORMAL
	.comm	_vac_strategy,4,2               ## @vac_strategy
	.comm	_elevel,4,2                     ## @elevel
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"%s\": removed %d row versions in %d pages"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.no_dead_strip	_lazy_vacuum_heap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lazy_vacuum_heap
_lazy_vacuum_heap:                      ; @lazy_vacuum_heap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _InvalidBuffer@GOTPAGE
Lloh1:
	ldr	x24, [x24, _InvalidBuffer@GOTPAGEOFF]
	ldr	w23, [x24]
	str	w23, [sp, #8]
	add	x0, sp, #12
	bl	_pg_rusage_init
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w21, #0
	mov	w20, #0
Lloh2:
	adrp	x27, _MAIN_FORKNUM@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MAIN_FORKNUM@GOTPAGEOFF]
Lloh4:
	adrp	x28, _RBM_NORMAL@GOTPAGE
Lloh5:
	ldr	x28, [x28, _RBM_NORMAL@GOTPAGEOFF]
Lloh6:
	adrp	x26, _vac_strategy@GOTPAGE
Lloh7:
	ldr	x26, [x26, _vac_strategy@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x21
	mov	x4, x22
	bl	_lazy_vacuum_page
	mov	x21, x0
	mov	x0, x24
	bl	_BufferGetPage
	bl	_PageGetHeapFreeSpace
	mov	x25, x0
	mov	x0, x24
	bl	_UnlockReleaseBuffer
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	bl	_RecordPageWithFreeSpace
	add	w20, w20, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	cmp	w21, w8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_vacuum_delay_point
	ldr	x8, [x22, #8]
	add	x0, x8, w21, sxtw #2
	bl	_ItemPointerGetBlockNumber
	mov	x23, x0
	ldr	w1, [x27]
	ldr	w3, [x28]
	ldr	w4, [x26]
	mov	x0, x19
	mov	x2, x23
	bl	_ReadBufferExtended
	mov	x24, x0
	bl	_ConditionalLockBufferForCleanup
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_ReleaseBuffer
	add	w21, w21, #1
	b	LBB0_3
LBB0_6:
	ldr	w23, [sp, #8]
Lloh8:
	adrp	x24, _InvalidBuffer@GOTPAGE
Lloh9:
	ldr	x24, [x24, _InvalidBuffer@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	w20, #0
	mov	w21, #0
LBB0_8:
	mov	x0, x23
	bl	_BufferIsValid
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [sp, #8]
	bl	_ReleaseBuffer
	ldr	w8, [x24]
	str	w8, [sp, #8]
LBB0_10:
Lloh10:
	adrp	x8, _elevel@GOTPAGE
Lloh11:
	ldr	x8, [x8, _elevel@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_errmsg
	add	x0, sp, #12
	bl	_pg_rusage_show
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errdetail_internal
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ; @RBM_NORMAL
	.comm	_vac_strategy,4,2               ; @vac_strategy
	.comm	_elevel,4,2                     ; @elevel
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"%s\": removed %d row versions in %d pages"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.no_dead_strip	_lazy_vacuum_heap
.subsections_via_symbols
