	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetTransactionSnapshot         ## -- Begin function GetTransactionSnapshot
	.p2align	4, 0x90
_GetTransactionSnapshot:                ## @GetTransactionSnapshot
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_HistoricSnapshotActive
	movq	_FirstSnapshotSet@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	testl	%ecx, %ecx
	sete	%dil
	callq	_Assert
	movq	_HistoricSnapshot@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %rax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.5:
	callq	_IsolationUsesXactSnapshot
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	_CurrentSnapshot@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	callq	_InvalidateCatalogSnapshot
	movq	_RegisteredSnapshots@GOTPCREL(%rip), %rdi
	callq	_pairingheap_is_empty
	movl	%eax, %edi
	callq	_Assert
	movq	_FirstXactSnapshot@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_Assert
	xorl	%eax, %eax
	callq	_IsInParallelMode
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_9:
	xorl	%eax, %eax
	callq	_IsolationUsesXactSnapshot
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	xorl	%eax, %eax
	callq	_IsolationIsSerializable
	movq	_CurrentSnapshotData@GOTPCREL(%rip), %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	callq	_GetSerializableTransactionSnapshot
	jmp	LBB0_15
LBB0_12:
	xorl	%eax, %eax
	callq	_InvalidateCatalogSnapshot
	movq	_CurrentSnapshotData@GOTPCREL(%rip), %rdi
	callq	_GetSnapshotData
	movq	_CurrentSnapshot@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_3
LBB0_13:
	movq	_CurrentSnapshotData@GOTPCREL(%rip), %rdi
	callq	_GetSnapshotData
	movq	_CurrentSnapshot@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$1, (%rbx)
	jmp	LBB0_3
LBB0_14:
	callq	_GetSnapshotData
LBB0_15:
	movq	_CurrentSnapshot@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_CopySnapshot
	movq	%rax, (%r15)
	movq	%rax, (%r14)
	incl	4(%rax)
	movq	_RegisteredSnapshots@GOTPCREL(%rip), %rdi
	movq	%rax, %rsi
	callq	_pairingheap_add
	movq	(%r15), %rax
	movl	$1, (%rbx)
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_FirstSnapshotSet,4,2           ## @FirstSnapshotSet
	.comm	_HistoricSnapshot,8,3           ## @HistoricSnapshot
	.comm	_RegisteredSnapshots,4,2        ## @RegisteredSnapshots
	.comm	_FirstXactSnapshot,8,3          ## @FirstXactSnapshot
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot take query snapshot during a parallel operation"

	.comm	_CurrentSnapshotData,4,2        ## @CurrentSnapshotData
	.comm	_CurrentSnapshot,8,3            ## @CurrentSnapshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetTransactionSnapshot         ; -- Begin function GetTransactionSnapshot
	.p2align	2
_GetTransactionSnapshot:                ; @GetTransactionSnapshot
	.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
	bl	_HistoricSnapshotActive
Lloh0:
	adrp	x19, _FirstSnapshotSet@GOTPAGE
Lloh1:
	ldr	x19, [x19, _FirstSnapshotSet@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
Lloh2:
	adrp	x8, _HistoricSnapshot@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HistoricSnapshot@GOTPAGEOFF]
LBB0_2:
	ldr	x0, [x8]
LBB0_3:
	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
LBB0_4:
	cbz	w8, LBB0_7
; %bb.5:
	bl	_IsolationUsesXactSnapshot
	cbz	x0, LBB0_12
; %bb.6:
Lloh4:
	adrp	x8, _CurrentSnapshot@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CurrentSnapshot@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	bl	_InvalidateCatalogSnapshot
Lloh6:
	adrp	x0, _RegisteredSnapshots@GOTPAGE
Lloh7:
	ldr	x0, [x0, _RegisteredSnapshots@GOTPAGEOFF]
	bl	_pairingheap_is_empty
	bl	_Assert
Lloh8:
	adrp	x20, _FirstXactSnapshot@GOTPAGE
Lloh9:
	ldr	x20, [x20, _FirstXactSnapshot@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	bl	_IsInParallelMode
	cbz	x0, LBB0_9
; %bb.8:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_9:
	bl	_IsolationUsesXactSnapshot
	cbz	x0, LBB0_13
; %bb.10:
	bl	_IsolationIsSerializable
	cbz	x0, LBB0_14
; %bb.11:
Lloh15:
	adrp	x0, _CurrentSnapshotData@GOTPAGE
Lloh16:
	ldr	x0, [x0, _CurrentSnapshotData@GOTPAGEOFF]
	bl	_GetSerializableTransactionSnapshot
	b	LBB0_15
LBB0_12:
	bl	_InvalidateCatalogSnapshot
Lloh17:
	adrp	x0, _CurrentSnapshotData@GOTPAGE
Lloh18:
	ldr	x0, [x0, _CurrentSnapshotData@GOTPAGEOFF]
	bl	_GetSnapshotData
Lloh19:
	adrp	x8, _CurrentSnapshot@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CurrentSnapshot@GOTPAGEOFF]
Lloh21:
	str	x0, [x8]
	b	LBB0_3
LBB0_13:
Lloh22:
	adrp	x0, _CurrentSnapshotData@GOTPAGE
Lloh23:
	ldr	x0, [x0, _CurrentSnapshotData@GOTPAGEOFF]
	bl	_GetSnapshotData
Lloh24:
	adrp	x8, _CurrentSnapshot@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CurrentSnapshot@GOTPAGEOFF]
Lloh26:
	str	x0, [x8]
	b	LBB0_16
LBB0_14:
Lloh27:
	adrp	x0, _CurrentSnapshotData@GOTPAGE
Lloh28:
	ldr	x0, [x0, _CurrentSnapshotData@GOTPAGEOFF]
	bl	_GetSnapshotData
LBB0_15:
Lloh29:
	adrp	x21, _CurrentSnapshot@GOTPAGE
Lloh30:
	ldr	x21, [x21, _CurrentSnapshot@GOTPAGEOFF]
	str	x0, [x21]
	bl	_CopySnapshot
	mov	x1, x0
	str	x0, [x21]
	str	x0, [x20]
	ldr	w8, [x0, #4]
	add	w8, w8, #1
	str	w8, [x0, #4]
Lloh31:
	adrp	x0, _RegisteredSnapshots@GOTPAGE
Lloh32:
	ldr	x0, [x0, _RegisteredSnapshots@GOTPAGEOFF]
	bl	_pairingheap_add
	ldr	x0, [x21]
LBB0_16:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_FirstSnapshotSet,4,2           ; @FirstSnapshotSet
	.comm	_HistoricSnapshot,8,3           ; @HistoricSnapshot
	.comm	_RegisteredSnapshots,4,2        ; @RegisteredSnapshots
	.comm	_FirstXactSnapshot,8,3          ; @FirstXactSnapshot
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot take query snapshot during a parallel operation"

	.comm	_CurrentSnapshotData,4,2        ; @CurrentSnapshotData
	.comm	_CurrentSnapshot,8,3            ; @CurrentSnapshot
.subsections_via_symbols
