	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WaitForOlderSnapshots
_WaitForOlderSnapshots:                 ## @WaitForOlderSnapshots
	.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
	movl	%esi, %ebx
	movq	_PROC_IS_AUTOVACUUM@GOTPCREL(%rip), %rax
	movq	_PROC_IN_VACUUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_GetCurrentVirtualXIDs
	movq	%rax, %r13
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_PROGRESS_WAITFOR_TOTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi
	callq	_pgstat_progress_update_param
LBB0_2:
	cmpl	$0, -44(%rbp)
	jle	LBB0_25
## %bb.3:
	xorl	%r14d, %r14d
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r14
	jge	LBB0_25
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movl	(%r13,%r14,4), %edi
	callq	_VirtualTransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_24
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PROC_IN_VACUUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PROC_IS_AUTOVACUUM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	$1, %esi
	xorl	%edx, %edx
	leaq	-48(%rbp), %r8
	callq	_GetCurrentVirtualXIDs
	movq	%rax, %rbx
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r14
	jge	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%r12
	cmpl	%r12d, -44(%rbp)
	jle	LBB0_16
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movl	(%r13,%r12,4), %edi
	callq	_VirtualTransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	-48(%rbp), %eax
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jle	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r13,%r12,4), %edi
	movl	(%rbx,%r15,4), %esi
	callq	_VirtualTransactionIdEquals
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=3
	incq	%r15
	movslq	-48(%rbp), %rax
	cmpq	%rax, %r15
	jl	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpl	%eax, %r15d
	jl	LBB0_15
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	-48(%rbp), %eax
	cmpl	%eax, %r15d
	jl	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	(%r13,%r12,4), %edi
	callq	_SetInvalidVirtualTransactionId
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_pfree
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13,%r14,4), %edi
	callq	_VirtualTransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13,%r14,4), %edi
	callq	_BackendIdGetProc
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_PROGRESS_WAITFOR_CURRENT_PID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_pgstat_progress_update_param
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13,%r14,4), %edi
	movl	$1, %esi
	callq	_VirtualXactLock
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_PROGRESS_WAITFOR_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	1(%r14), %esi
	callq	_pgstat_progress_update_param
	jmp	LBB0_24
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROC_IS_AUTOVACUUM,4,2         ## @PROC_IS_AUTOVACUUM
	.comm	_PROC_IN_VACUUM,4,2             ## @PROC_IN_VACUUM
	.comm	_PROGRESS_WAITFOR_TOTAL,4,2     ## @PROGRESS_WAITFOR_TOTAL
	.comm	_PROGRESS_WAITFOR_CURRENT_PID,4,2 ## @PROGRESS_WAITFOR_CURRENT_PID
	.comm	_PROGRESS_WAITFOR_DONE,4,2      ## @PROGRESS_WAITFOR_DONE
	.no_dead_strip	_WaitForOlderSnapshots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WaitForOlderSnapshots
_WaitForOlderSnapshots:                 ; @WaitForOlderSnapshots
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _PROC_IS_AUTOVACUUM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PROC_IS_AUTOVACUUM@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _PROC_IN_VACUUM@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PROC_IN_VACUUM@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w3, w9, w8
	add	x4, sp, #12
	mov	w1, #1
	mov	w2, #0
	bl	_GetCurrentVirtualXIDs
	mov	x21, x0
	cbz	w19, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _PROGRESS_WAITFOR_TOTAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PROGRESS_WAITFOR_TOTAL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [sp, #12]
	bl	_pgstat_progress_update_param
LBB0_2:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.3:
	mov	x25, #0
Lloh7:
	adrp	x26, _PROGRESS_WAITFOR_DONE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _PROGRESS_WAITFOR_DONE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [sp, #12]
	cmp	x25, x8
	b.ge	LBB0_27
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	w0, [x21, x25, lsl #2]
	bl	_VirtualTransactionIdIsValid
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x25, LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w3, w9, w8
	add	x4, sp, #8
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_GetCurrentVirtualXIDs
	mov	x22, x0
	ldrsw	x8, [sp, #12]
	cmp	x25, x8
	b.ge	LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, x25
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x28, x28, #1
	ldr	w8, [sp, #12]
	cmp	w8, w28
	b.le	LBB0_19
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	w0, [x21, x28, lsl #2]
	bl	_VirtualTransactionIdIsValid
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x27, #0
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w0, [x21, x28, lsl #2]
	ldr	w1, [x22, x27, lsl #2]
	bl	_VirtualTransactionIdEquals
	cbnz	x0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	add	x27, x27, #1
	ldrsw	x8, [sp, #8]
	cmp	x27, x8
	b.lt	LBB0_13
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	w27, #0
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=2
	cmp	w27, w8
	b.lt	LBB0_9
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [sp, #8]
	cmp	w27, w8
	b.lt	LBB0_9
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w0, [x21, x28, lsl #2]
	bl	_SetInvalidVirtualTransactionId
	b	LBB0_9
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_pfree
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21, x25, lsl #2]
	bl	_VirtualTransactionIdIsValid
	cbz	x0, LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w19, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21, x25, lsl #2]
	bl	_BackendIdGetProc
	cbz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh9:
	adrp	x8, _PROGRESS_WAITFOR_CURRENT_PID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PROGRESS_WAITFOR_CURRENT_PID@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_pgstat_progress_update_param
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21, x25, lsl #2]
	mov	w1, #1
	bl	_VirtualXactLock
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w19, LBB0_4
; %bb.26:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	add	w1, w25, #1
	bl	_pgstat_progress_update_param
	b	LBB0_4
LBB0_27:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PROC_IS_AUTOVACUUM,4,2         ; @PROC_IS_AUTOVACUUM
	.comm	_PROC_IN_VACUUM,4,2             ; @PROC_IN_VACUUM
	.comm	_PROGRESS_WAITFOR_TOTAL,4,2     ; @PROGRESS_WAITFOR_TOTAL
	.comm	_PROGRESS_WAITFOR_CURRENT_PID,4,2 ; @PROGRESS_WAITFOR_CURRENT_PID
	.comm	_PROGRESS_WAITFOR_DONE,4,2      ; @PROGRESS_WAITFOR_DONE
	.no_dead_strip	_WaitForOlderSnapshots
.subsections_via_symbols
