	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PopActiveSnapshot              ## -- Begin function PopActiveSnapshot
	.p2align	4, 0x90
_PopActiveSnapshot:                     ## @PopActiveSnapshot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_ActiveSnapshot@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rcx)
	setg	%dil
	callq	_Assert
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	decq	(%rax)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rax)
	jne	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	callq	_FreeSnapshot
	movq	(%r14), %rdi
LBB0_3:
	callq	_pfree
	movq	%rbx, (%r14)
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.4:
	movq	_OldestActiveSnapshot@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SnapshotResetXmin              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ActiveSnapshot,8,3             ## @ActiveSnapshot
	.comm	_OldestActiveSnapshot,8,3       ## @OldestActiveSnapshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PopActiveSnapshot              ; -- Begin function PopActiveSnapshot
	.p2align	2
_PopActiveSnapshot:                     ; @PopActiveSnapshot
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _ActiveSnapshot@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ActiveSnapshot@GOTPAGEOFF]
	ldr	x8, [x19]
	ldp	x8, x20, [x8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_3
; %bb.2:
	mov	x0, x8
	bl	_FreeSnapshot
	ldr	x0, [x19]
LBB0_3:
	bl	_pfree
	str	x20, [x19]
	cbnz	x20, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _OldestActiveSnapshot@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OldestActiveSnapshot@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SnapshotResetXmin
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ActiveSnapshot,8,3             ; @ActiveSnapshot
	.comm	_OldestActiveSnapshot,8,3       ; @OldestActiveSnapshot
.subsections_via_symbols
