	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetOldestSnapshot              ## -- Begin function GetOldestSnapshot
	.p2align	4, 0x90
_GetOldestSnapshot:                     ## @GetOldestSnapshot
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_RegisteredSnapshots@GOTPCREL(%rip), %rdi
	callq	_pairingheap_is_empty
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_SnapshotData@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ph_node@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_RegisteredSnapshots@GOTPCREL(%rip), %rdi
	callq	_pairingheap_first
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pairingheap_container
	movq	%rax, %rbx
	movq	(%rax), %r14
LBB0_3:
	movq	_OldestActiveSnapshot@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	%r14, %rdi
	callq	_XLogRecPtrIsInvalid
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	cmpq	%r12, %r14
	jle	LBB0_7
LBB0_6:
	movq	(%r15), %rax
	movq	(%rax), %rbx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidXLogRecPtr,8,3          ## @InvalidXLogRecPtr
	.comm	_RegisteredSnapshots,4,2        ## @RegisteredSnapshots
	.comm	_SnapshotData,4,2               ## @SnapshotData
	.comm	_ph_node,4,2                    ## @ph_node
	.comm	_OldestActiveSnapshot,8,3       ## @OldestActiveSnapshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetOldestSnapshot              ; -- Begin function GetOldestSnapshot
	.p2align	2
_GetOldestSnapshot:                     ; @GetOldestSnapshot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x0, _RegisteredSnapshots@GOTPAGE
Lloh4:
	ldr	x0, [x0, _RegisteredSnapshots@GOTPAGEOFF]
	bl	_pairingheap_is_empty
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, #0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _SnapshotData@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SnapshotData@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
Lloh8:
	adrp	x8, _ph_node@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ph_node@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
Lloh11:
	adrp	x0, _RegisteredSnapshots@GOTPAGE
Lloh12:
	ldr	x0, [x0, _RegisteredSnapshots@GOTPAGEOFF]
	bl	_pairingheap_first
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_pairingheap_container
	mov	x19, x0
	ldr	x20, [x0]
LBB0_3:
Lloh13:
	adrp	x21, _OldestActiveSnapshot@GOTPAGE
Lloh14:
	ldr	x21, [x21, _OldestActiveSnapshot@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x8]
	ldr	x22, [x8]
	mov	x0, x20
	bl	_XLogRecPtrIsInvalid
	cmp	x0, #0
	ccmp	x20, x22, #0, eq
	b.le	LBB0_6
; %bb.5:
	ldr	x8, [x21]
	ldr	x19, [x8]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
	.comm	_RegisteredSnapshots,4,2        ; @RegisteredSnapshots
	.comm	_SnapshotData,4,2               ; @SnapshotData
	.comm	_ph_node,4,2                    ; @ph_node
	.comm	_OldestActiveSnapshot,8,3       ; @OldestActiveSnapshot
.subsections_via_symbols
