	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PushActiveSnapshot             ## -- Begin function PushActiveSnapshot
	.p2align	4, 0x90
_PushActiveSnapshot:                    ## @PushActiveSnapshot
	.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	%rdi, %rbx
	movq	_InvalidSnapshot@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setne	%dil
	callq	_Assert
	movq	_TopTransactionContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$24, %esi
	callq	_MemoryContextAlloc
	movq	%rax, %r14
	movq	_CurrentSnapshot@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_SecondarySnapshot@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_3
## %bb.2:
	cmpl	$0, 4(%rbx)
	jne	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_CopySnapshot
	movq	%rax, %rbx
LBB0_4:
	movq	%rbx, (%r14)
	movq	_ActiveSnapshot@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, 16(%r14)
	xorl	%eax, %eax
	callq	_GetCurrentTransactionNestLevel
	movl	%eax, 8(%r14)
	movq	(%r14), %rax
	incl	(%rax)
	movq	%r14, (%rbx)
	movq	_OldestActiveSnapshot@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%r14, (%rax)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidSnapshot,8,3            ## @InvalidSnapshot
	.comm	_TopTransactionContext,4,2      ## @TopTransactionContext
	.comm	_CurrentSnapshot,8,3            ## @CurrentSnapshot
	.comm	_SecondarySnapshot,8,3          ## @SecondarySnapshot
	.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	_PushActiveSnapshot             ; -- Begin function PushActiveSnapshot
	.p2align	2
_PushActiveSnapshot:                    ; @PushActiveSnapshot
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _InvalidSnapshot@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidSnapshot@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	cset	w0, ne
	bl	_Assert
Lloh3:
	adrp	x8, _TopTransactionContext@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TopTransactionContext@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #24
	bl	_MemoryContextAlloc
	mov	x19, x0
Lloh6:
	adrp	x8, _CurrentSnapshot@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CurrentSnapshot@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _SecondarySnapshot@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SecondarySnapshot@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x20
	ccmp	x9, x20, #4, ne
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_CopySnapshot
	mov	x20, x0
LBB0_3:
	str	x20, [x19]
Lloh12:
	adrp	x20, _ActiveSnapshot@GOTPAGE
Lloh13:
	ldr	x20, [x20, _ActiveSnapshot@GOTPAGEOFF]
	ldr	x8, [x20]
	str	x8, [x19, #16]
	bl	_GetCurrentTransactionNestLevel
	str	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	str	x19, [x20]
Lloh14:
	adrp	x8, _OldestActiveSnapshot@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OldestActiveSnapshot@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_5
; %bb.4:
	str	x19, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidSnapshot,8,3            ; @InvalidSnapshot
	.comm	_TopTransactionContext,4,2      ; @TopTransactionContext
	.comm	_CurrentSnapshot,8,3            ; @CurrentSnapshot
	.comm	_SecondarySnapshot,8,3          ; @SecondarySnapshot
	.comm	_ActiveSnapshot,8,3             ; @ActiveSnapshot
	.comm	_OldestActiveSnapshot,8,3       ; @OldestActiveSnapshot
.subsections_via_symbols
