	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _hash_vacuum_one_page
__hash_vacuum_one_page:                 ## @_hash_vacuum_one_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MaxOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %r14
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpq	%r14, %r15
	jg	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r15
	cmpq	%r14, %rax
	jg	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r15, %rsi
	callq	_PageGetItemId
	movl	%eax, %edi
	callq	_ItemIdIsDead
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	incl	%ebx
	movq	%r15, (%r12,%rax,8)
	jmp	LBB0_4
LBB0_5:
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.6:
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%ebx, %r8d
	callq	_index_compute_xid_horizon_for_tuples
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_BUFFER_LOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_LockBuffer
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_PageIndexMultiDelete
	movl	%r13d, %edi
	movl	%r14d, %r13d
	callq	_PageGetSpecialPointer
	movq	_LH_PAGE_HAS_DEAD_TUPLES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%rax)
	movl	%r15d, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_HashPageGetMeta
	subl	%ebx, (%rax)
	movl	%r14d, %edi
	callq	_MarkBufferDirty
	movl	%r15d, %edi
	callq	_MarkBufferDirty
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -68(%rbp)
	movl	%ebx, -72(%rbp)
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	xorl	%edi, %edi
	movl	%r13d, %esi
	callq	_XLogRegisterBuffer
	movq	_SizeOfHashVacuumOnePage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdi
	callq	_XLogRegisterData
	shll	$3, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_XLogRegisterData
	movl	(%r14), %edx
	movl	$1, %edi
	movl	%r15d, %esi
	callq	_XLogRegisterBuffer
	movq	_RM_HASH_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_HASH_VACUUM_ONE_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_PageSetLSN
	movl	%r15d, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_PageSetLSN
LBB0_8:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxOffsetNumber,4,2            ## @MaxOffsetNumber
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ## @BUFFER_LOCK_EXCLUSIVE
	.comm	_LH_PAGE_HAS_DEAD_TUPLES,4,2    ## @LH_PAGE_HAS_DEAD_TUPLES
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_SizeOfHashVacuumOnePage,4,2    ## @SizeOfHashVacuumOnePage
	.comm	_RM_HASH_ID,4,2                 ## @RM_HASH_ID
	.comm	_XLOG_HASH_VACUUM_ONE_PAGE,4,2  ## @XLOG_HASH_VACUUM_ONE_PAGE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.no_dead_strip	__hash_vacuum_one_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _hash_vacuum_one_page
__hash_vacuum_one_page:                 ; @_hash_vacuum_one_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, #16
	mov	x20, x3
	mov	x19, x2
	mov	x25, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MaxOffsetNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxOffsetNumber@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	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, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	x0, x3
	bl	_BufferGetPage
	mov	x24, x0
	bl	_PageGetMaxOffsetNumber
Lloh8:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh10:
	ldr	x27, [x8]
	cmp	x27, x0
	b.gt	LBB0_9
; %bb.1:
	mov	x26, x0
	mov	w23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x27
	bl	_OffsetNumberNext
	mov	x27, x0
	cmp	x0, x26
	b.gt	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x27
	bl	_PageGetItemId
	bl	_ItemIdIsDead
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x27, [x21, w23, sxtw #3]
	add	w23, w23, #1
	b	LBB0_2
LBB0_5:
	cmp	w23, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x0, x22
	mov	x1, x25
	mov	x2, x20
	mov	x3, x21
	mov	x4, x23
	bl	_index_compute_xid_horizon_for_tuples
	mov	x25, x0
Lloh11:
	adrp	x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LockBuffer
	bl	_START_CRIT_SECTION
	mov	x0, x24
	mov	x1, x21
	mov	x2, x23
	bl	_PageIndexMultiDelete
	mov	x0, x24
	bl	_PageGetSpecialPointer
Lloh14:
	adrp	x8, _LH_PAGE_HAS_DEAD_TUPLES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LH_PAGE_HAS_DEAD_TUPLES@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
	mov	x0, x19
	bl	_BufferGetPage
	bl	_HashPageGetMeta
	ldr	w8, [x0]
	sub	w8, w8, w23
	str	w8, [x0]
	mov	x0, x20
	bl	_MarkBufferDirty
	mov	x0, x19
	bl	_MarkBufferDirty
	mov	x0, x22
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_8
; %bb.7:
	stp	w23, w25, [x29, #-96]
	bl	_XLogBeginInsert
Lloh17:
	adrp	x22, _REGBUF_STANDARD@GOTPAGE
Lloh18:
	ldr	x22, [x22, _REGBUF_STANDARD@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w0, #0
	mov	x1, x20
	bl	_XLogRegisterBuffer
Lloh19:
	adrp	x8, _SizeOfHashVacuumOnePage@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SizeOfHashVacuumOnePage@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	sub	x0, x29, #96
	bl	_XLogRegisterData
	lsl	w1, w23, #3
	mov	x0, x21
	bl	_XLogRegisterData
	ldr	w2, [x22]
	mov	w0, #1
	mov	x1, x19
	bl	_XLogRegisterBuffer
Lloh22:
	adrp	x8, _RM_HASH_ID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RM_HASH_ID@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _XLOG_HASH_VACUUM_ONE_PAGE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _XLOG_HASH_VACUUM_ONE_PAGE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x21, x0
	mov	x0, x20
	bl	_BufferGetPage
	mov	x1, x21
	bl	_PageSetLSN
	mov	x0, x19
	bl	_BufferGetPage
	mov	x1, x21
	bl	_PageSetLSN
LBB0_8:
	bl	_END_CRIT_SECTION
Lloh28:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LockBuffer
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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_11:
	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	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxOffsetNumber,4,2            ; @MaxOffsetNumber
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ; @BUFFER_LOCK_EXCLUSIVE
	.comm	_LH_PAGE_HAS_DEAD_TUPLES,4,2    ; @LH_PAGE_HAS_DEAD_TUPLES
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_SizeOfHashVacuumOnePage,4,2    ; @SizeOfHashVacuumOnePage
	.comm	_RM_HASH_ID,4,2                 ; @RM_HASH_ID
	.comm	_XLOG_HASH_VACUUM_ONE_PAGE,4,2  ; @XLOG_HASH_VACUUM_ONE_PAGE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.no_dead_strip	__hash_vacuum_one_page
.subsections_via_symbols
