	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SnapBuildExportSnapshot        ## -- Begin function SnapBuildExportSnapshot
	.p2align	4, 0x90
_SnapBuildExportSnapshot:               ## @SnapBuildExportSnapshot
	.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
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_IsTransactionOrTransactionBlock
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	_SavedResourceOwnerDuringExport@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_4:
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_ExportInProgress@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_StartTransactionCommand
	movq	_XACT_REPEATABLE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_XactIsoLevel@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_XactReadOnly@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	%r14, %rdi
	callq	_SnapBuildInitialSnapshot
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ExportSnapshot
	movq	%rax, %r14
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rcx
	movl	%edx, %r8d
	callq	_errmsg_plural
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot export a snapshot from within a transaction"

	.comm	_SavedResourceOwnerDuringExport,8,3 ## @SavedResourceOwnerDuringExport
L_.str.1:                               ## @.str.1
	.asciz	"can only export one snapshot at a time"

	.comm	_CurrentResourceOwner,8,3       ## @CurrentResourceOwner
	.comm	_ExportInProgress,4,2           ## @ExportInProgress
	.comm	_XACT_REPEATABLE_READ,4,2       ## @XACT_REPEATABLE_READ
	.comm	_XactIsoLevel,4,2               ## @XactIsoLevel
	.comm	_XactReadOnly,4,2               ## @XactReadOnly
	.comm	_LOG,4,2                        ## @LOG
L_.str.2:                               ## @.str.2
	.asciz	"exported logical decoding snapshot: \"%s\" with %u transaction ID"

L_.str.3:                               ## @.str.3
	.asciz	"exported logical decoding snapshot: \"%s\" with %u transaction IDs"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SnapBuildExportSnapshot        ; -- Begin function SnapBuildExportSnapshot
	.p2align	2
_SnapBuildExportSnapshot:               ; @SnapBuildExportSnapshot
	.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
	mov	x19, x0
	bl	_IsTransactionOrTransactionBlock
Lloh0:
	adrp	x20, _ERROR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
Lloh4:
	adrp	x21, _SavedResourceOwnerDuringExport@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SavedResourceOwnerDuringExport@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_4:
Lloh8:
	adrp	x8, _CurrentResourceOwner@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CurrentResourceOwner@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x21]
Lloh11:
	adrp	x8, _ExportInProgress@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ExportInProgress@GOTPAGEOFF]
	mov	w20, #1
Lloh13:
	str	w20, [x8]
	bl	_StartTransactionCommand
Lloh14:
	adrp	x8, _XACT_REPEATABLE_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XACT_REPEATABLE_READ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _XactIsoLevel@GOTPAGE
Lloh18:
	ldr	x9, [x9, _XactIsoLevel@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
Lloh20:
	adrp	x8, _XactReadOnly@GOTPAGE
Lloh21:
	ldr	x8, [x8, _XactReadOnly@GOTPAGEOFF]
Lloh22:
	str	w20, [x8]
	mov	x0, x19
	bl	_SnapBuildInitialSnapshot
	mov	x19, x0
	bl	_ExportSnapshot
	mov	x20, x0
Lloh23:
	adrp	x8, _LOG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
	ldr	w2, [x19]
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, x20
	mov	x4, x2
	bl	_errmsg_plural
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
	mov	x0, x20
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot export a snapshot from within a transaction"

	.comm	_SavedResourceOwnerDuringExport,8,3 ; @SavedResourceOwnerDuringExport
l_.str.1:                               ; @.str.1
	.asciz	"can only export one snapshot at a time"

	.comm	_CurrentResourceOwner,8,3       ; @CurrentResourceOwner
	.comm	_ExportInProgress,4,2           ; @ExportInProgress
	.comm	_XACT_REPEATABLE_READ,4,2       ; @XACT_REPEATABLE_READ
	.comm	_XactIsoLevel,4,2               ; @XactIsoLevel
	.comm	_XactReadOnly,4,2               ; @XactReadOnly
	.comm	_LOG,4,2                        ; @LOG
l_.str.2:                               ; @.str.2
	.asciz	"exported logical decoding snapshot: \"%s\" with %u transaction ID"

l_.str.3:                               ; @.str.3
	.asciz	"exported logical decoding snapshot: \"%s\" with %u transaction IDs"

.subsections_via_symbols
