	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetTransactionSnapshot
_SetTransactionSnapshot:                ## @SetTransactionSnapshot
	.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
	movq	%rcx, %r12
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_FirstSnapshotSet@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_Assert
	xorl	%eax, %eax
	callq	_InvalidateCatalogSnapshot
	movq	_RegisteredSnapshots@GOTPCREL(%rip), %rdi
	callq	_pairingheap_is_empty
	movl	%eax, %edi
	callq	_Assert
	movq	_FirstXactSnapshot@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_Assert
	xorl	%eax, %eax
	callq	_HistoricSnapshotActive
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_CurrentSnapshotData@GOTPCREL(%rip), %rdi
	callq	_GetSnapshotData
	movq	_CurrentSnapshot@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	movl	28(%r15), %ecx
	movl	%ecx, 16(%rax)
	movl	24(%r15), %ecx
	movl	%ecx, 36(%rax)
	movl	(%r15), %r14d
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	callq	_GetMaxSnapshotXidCount
	xorl	%edi, %edi
	cmpl	%eax, %r14d
	setle	%dil
	callq	_Assert
	movq	(%r13), %rax
	movl	32(%rax), %edi
	movl	(%r15), %edx
	movl	20(%r15), %esi
	shll	$2, %edx
	callq	_memcpy
	movl	4(%r15), %ebx
	movq	(%r13), %rax
	movl	%ebx, 4(%rax)
	xorl	%eax, %eax
	callq	_GetMaxSnapshotSubxidCount
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setle	%dil
	callq	_Assert
	movq	(%r13), %rax
	movl	28(%rax), %edi
	movl	4(%r15), %edx
	movl	16(%r15), %esi
	shll	$2, %edx
	callq	_memcpy
	movl	12(%r15), %eax
	movq	(%r13), %rcx
	movl	%eax, 24(%rcx)
	movl	8(%r15), %eax
	movl	%eax, 20(%rcx)
	movl	16(%rcx), %edi
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	movq	%r12, %rsi
	callq	_ProcArrayInstallRestoredXmin
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_6
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errdetail
	jmp	LBB0_5
LBB0_3:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ProcArrayInstallImportedXmin
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.2(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_errdetail
LBB0_5:
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	xorl	%eax, %eax
	callq	_IsolationUsesXactSnapshot
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	xorl	%eax, %eax
	callq	_IsolationIsSerializable
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_SetSerializableTransactionSnapshot
LBB0_9:
	movq	(%r13), %rdi
	callq	_CopySnapshot
	movq	%rax, (%r13)
	movq	_FirstXactSnapshot@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	incl	12(%rax)
	leaq	8(%rax), %rsi
	movq	_RegisteredSnapshots@GOTPCREL(%rip), %rdi
	callq	_pairingheap_add
LBB0_10:
	movq	_FirstSnapshotSet@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FirstSnapshotSet,4,2           ## @FirstSnapshotSet
	.comm	_RegisteredSnapshots,4,2        ## @RegisteredSnapshots
	.comm	_FirstXactSnapshot,8,3          ## @FirstXactSnapshot
	.comm	_CurrentSnapshotData,4,2        ## @CurrentSnapshotData
	.comm	_CurrentSnapshot,8,3            ## @CurrentSnapshot
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,2 ## @ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not import the requested snapshot"

L_.str.1:                               ## @.str.1
	.asciz	"The source transaction is not running anymore."

L_.str.2:                               ## @.str.2
	.asciz	"The source process with PID %d is not running anymore."

	.no_dead_strip	_SetTransactionSnapshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetTransactionSnapshot
_SetTransactionSnapshot:                ; @SetTransactionSnapshot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _FirstSnapshotSet@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FirstSnapshotSet@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	bl	_InvalidateCatalogSnapshot
Lloh2:
	adrp	x0, _RegisteredSnapshots@GOTPAGE
Lloh3:
	ldr	x0, [x0, _RegisteredSnapshots@GOTPAGEOFF]
	bl	_pairingheap_is_empty
	bl	_Assert
Lloh4:
	adrp	x24, _FirstXactSnapshot@GOTPAGE
Lloh5:
	ldr	x24, [x24, _FirstXactSnapshot@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	bl	_HistoricSnapshotActive
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh6:
	adrp	x0, _CurrentSnapshotData@GOTPAGE
Lloh7:
	ldr	x0, [x0, _CurrentSnapshotData@GOTPAGEOFF]
	bl	_GetSnapshotData
Lloh8:
	adrp	x25, _CurrentSnapshot@GOTPAGE
Lloh9:
	ldr	x25, [x25, _CurrentSnapshot@GOTPAGEOFF]
	str	x0, [x25]
	ldp	w9, w8, [x22, #24]
	str	w8, [x0, #16]
	str	w9, [x0, #36]
	ldr	w26, [x22]
	str	w26, [x0]
	bl	_GetMaxSnapshotXidCount
	cmp	w26, w0
	cset	w0, le
	bl	_Assert
	ldr	x8, [x25]
	ldr	w0, [x8, #32]
	ldr	w1, [x22, #20]
	ldr	w8, [x22]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	w26, [x22, #4]
	ldr	x8, [x25]
	str	w26, [x8, #4]
	bl	_GetMaxSnapshotSubxidCount
	cmp	w26, w0
	cset	w0, le
	bl	_Assert
	ldr	x8, [x25]
	ldr	w0, [x8, #28]
	ldr	w1, [x22, #16]
	ldr	w8, [x22, #4]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	x8, [x25]
	ldr	d0, [x22, #8]
	stur	d0, [x8, #20]
	ldr	w0, [x8, #16]
	cbz	x21, LBB0_3
; %bb.1:
	mov	x1, x21
	bl	_ProcArrayInstallRestoredXmin
	cbnz	w0, LBB0_6
; %bb.2:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
Lloh13:
	adrp	x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
	mov	x1, x20
	bl	_ProcArrayInstallImportedXmin
	cbnz	w0, LBB0_6
; %bb.4:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w21, [x8]
Lloh23:
	adrp	x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	str	x19, [sp]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_5:
	bl	_errdetail
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_6:
	bl	_IsolationUsesXactSnapshot
	cbz	x0, LBB0_10
; %bb.7:
	bl	_IsolationIsSerializable
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x25]
	mov	x1, x20
	mov	x2, x19
	bl	_SetSerializableTransactionSnapshot
LBB0_9:
	ldr	x0, [x25]
	bl	_CopySnapshot
	str	x0, [x25]
	str	x0, [x24]
	ldr	w8, [x0, #12]
	add	w8, w8, #1
	str	w8, [x0, #12]
	add	x1, x0, #8
Lloh30:
	adrp	x0, _RegisteredSnapshots@GOTPAGE
Lloh31:
	ldr	x0, [x0, _RegisteredSnapshots@GOTPAGEOFF]
	bl	_pairingheap_add
LBB0_10:
	mov	w8, #1
	str	w8, [x23]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_FirstSnapshotSet,4,2           ; @FirstSnapshotSet
	.comm	_RegisteredSnapshots,4,2        ; @RegisteredSnapshots
	.comm	_FirstXactSnapshot,8,3          ; @FirstXactSnapshot
	.comm	_CurrentSnapshotData,4,2        ; @CurrentSnapshotData
	.comm	_CurrentSnapshot,8,3            ; @CurrentSnapshot
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,2 ; @ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not import the requested snapshot"

l_.str.1:                               ; @.str.1
	.asciz	"The source transaction is not running anymore."

l_.str.2:                               ; @.str.2
	.asciz	"The source process with PID %d is not running anymore."

	.no_dead_strip	_SetTransactionSnapshot
.subsections_via_symbols
