	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lazy_vacuum_page
_lazy_vacuum_page:                      ## @lazy_vacuum_page
	.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
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, %r13
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edx, %edi
	callq	_BufferGetPage
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_MaxOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	_PROGRESS_VACUUM_HEAP_BLKS_VACUUMED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_pgstat_progress_update_param
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	cmpl	%r12d, (%r13)
	jle	LBB0_1
## %bb.2:
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movslq	%r12d, %r12
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%r12,4), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%r12, %rdi
	callq	_ItemPointerGetBlockNumber
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rdi
	addq	%r12, %rdi
	callq	_ItemPointerGetOffsetNumber
	movl	%eax, %r14d
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_PageGetItemId
	movl	%eax, %edi
	callq	_ItemIdSetUnused
	leaq	1(%rbx), %r15
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax,%rbx,4)
	movslq	(%r13), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%rbx, %rcx
	incq	%rcx
	addq	$4, %r12
	movq	%r15, %rbx
	cmpq	%rax, %rcx
	jl	LBB0_3
## %bb.5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%r15, %rax
	jmp	LBB0_7
LBB0_1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rbx, %rax
	movq	%rbx, %r15
LBB0_7:
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_8:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	-72(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_PageRepairFragmentation
	movl	%r14d, %edi
	callq	_MarkBufferDirty
	movl	%ebx, %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	4(%r13), %eax
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r15
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	callq	_log_heap_clean
	addq	$32, %rsp
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_PageSetLSN
LBB0_10:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	leaq	-88(%rbp), %rdx
	leaq	-84(%rbp), %rcx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_heap_page_is_all_visible
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	%r12d, %edi
	callq	_PageSetAllVisible
LBB0_12:
	movl	%r12d, %edi
	callq	_PageIsAllVisible
	testq	%rax, %rax
	movq	-104(%rbp), %r13                ## 8-byte Reload
	je	LBB0_15
## %bb.13:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_visibilitymap_get_status
	movq	_VISIBILITYMAP_ALL_VISIBLE@GOTPCREL(%rip), %rcx
	movl	%r14d, %r15d
	movl	(%rcx), %r14d
	xorl	%ecx, %ecx
	testl	%eax, %r14d
	cmovnel	%ecx, %r14d
	movq	_VISIBILITYMAP_ALL_FROZEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	-84(%rbp), %ebx
	testl	%ebx, %ebx
	cmovnel	%edx, %ebx
	testl	%eax, %edx
	cmovnel	%ecx, %ebx
	movl	(%r13), %edi
	callq	_BufferIsValid
	movl	%eax, %edi
	callq	_Assert
	orl	%r14d, %ebx
	je	LBB0_15
## %bb.14:
	movl	%r15d, %edx
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movl	-88(%rbp), %r9d
	subq	$8, %rsp
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	pushq	%rbx
	callq	_visibilitymap_set
	addq	$16, %rsp
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_17
## %bb.16:
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxOffsetNumber,4,2            ## @MaxOffsetNumber
	.comm	_PROGRESS_VACUUM_HEAP_BLKS_VACUUMED,4,2 ## @PROGRESS_VACUUM_HEAP_BLKS_VACUUMED
	.comm	_VISIBILITYMAP_ALL_VISIBLE,4,2  ## @VISIBILITYMAP_ALL_VISIBLE
	.comm	_VISIBILITYMAP_ALL_FROZEN,4,2   ## @VISIBILITYMAP_ALL_FROZEN
	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
	.no_dead_strip	_lazy_vacuum_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lazy_vacuum_page
_lazy_vacuum_page:                      ; @lazy_vacuum_page
	.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, #32
	mov	x21, x5
	mov	x25, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x27, 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	x24, x0
Lloh3:
	adrp	x8, _MaxOffsetNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxOffsetNumber@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	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, #0x7fffffff0
	sub	x26, x9, x8
	mov	sp, x26
Lloh8:
	adrp	x8, _PROGRESS_VACUUM_HEAP_BLKS_VACUUMED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PROGRESS_VACUUM_HEAP_BLKS_VACUUMED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_pgstat_progress_update_param
	bl	_START_CRIT_SECTION
	ldr	w8, [x25]
	cmp	w8, w23
	b.le	LBB0_4
; %bb.1:
	stur	w27, [x29, #-108]               ; 4-byte Folded Spill
	stur	x21, [x29, #-104]               ; 8-byte Folded Spill
	mov	x27, #0
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sxtw	x28, w23
	sbfiz	x21, x23, #2, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #8]
	add	x0, x8, x21
	bl	_ItemPointerGetBlockNumber
	cmp	x0, x20
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25, #8]
	add	x0, x8, x21
	bl	_ItemPointerGetOffsetNumber
	mov	x23, x0
	mov	x0, x24
	mov	x1, x23
	bl	_PageGetItemId
	bl	_ItemIdSetUnused
	str	w23, [x26, x27, lsl #2]
	add	x22, x27, #1
	ldrsw	x8, [x25]
	add	x21, x21, #4
	add	x23, x28, x22
	cmp	x23, x8
	mov	x27, x22
	b.lt	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w22, #0
	b	LBB0_7
LBB0_5:
	add	x23, x28, x27
	mov	x22, x27
LBB0_6:
	ldur	x21, [x29, #-104]               ; 8-byte Folded Reload
	ldur	w27, [x29, #-108]               ; 4-byte Folded Reload
LBB0_7:
	mov	x0, x24
	bl	_PageRepairFragmentation
	mov	x0, x19
	bl	_MarkBufferDirty
	mov	x0, x27
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x25, #4]
	str	w8, [sp, #-16]!
	mov	x0, x27
	mov	x1, x19
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x6, x26
	mov	x7, x22
	bl	_log_heap_clean
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x24
	bl	_PageSetLSN
LBB0_9:
	bl	_END_CRIT_SECTION
	sub	x2, x29, #92
	sub	x3, x29, #96
	mov	x0, x27
	mov	x1, x19
	bl	_heap_page_is_all_visible
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x24
	bl	_PageSetAllVisible
LBB0_11:
	mov	x0, x24
	bl	_PageIsAllVisible
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x27
	mov	x1, x20
	mov	x2, x21
	bl	_visibilitymap_get_status
Lloh11:
	adrp	x8, _VISIBILITYMAP_ALL_VISIBLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VISIBILITYMAP_ALL_VISIBLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	csel	w8, w8, wzr, eq
Lloh14:
	adrp	x9, _VISIBILITYMAP_ALL_FROZEN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VISIBILITYMAP_ALL_FROZEN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w10, w9, w0
	ldur	w11, [x29, #-96]
	cmp	w11, #0
	ccmp	w10, #0, #0, ne
	csel	w9, w9, wzr, eq
	orr	w24, w9, w8
	ldr	w0, [x21]
	bl	_BufferIsValid
	bl	_Assert
	cbz	w24, LBB0_14
; %bb.13:
Lloh17:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	ldr	w4, [x21]
	ldur	w5, [x29, #-92]
	mov	x0, x27
	mov	x1, x20
	mov	x2, x19
	mov	x6, x24
	bl	_visibilitymap_set
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x23
	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_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxOffsetNumber,4,2            ; @MaxOffsetNumber
	.comm	_PROGRESS_VACUUM_HEAP_BLKS_VACUUMED,4,2 ; @PROGRESS_VACUUM_HEAP_BLKS_VACUUMED
	.comm	_VISIBILITYMAP_ALL_VISIBLE,4,2  ; @VISIBILITYMAP_ALL_VISIBLE
	.comm	_VISIBILITYMAP_ALL_FROZEN,4,2   ; @VISIBILITYMAP_ALL_FROZEN
	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
	.no_dead_strip	_lazy_vacuum_page
.subsections_via_symbols
