	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SnapBuildFindSnapshot
_SnapBuildFindSnapshot:                 ## @SnapBuildFindSnapshot
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_TransactionIdIsNormal
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rdi
	movq	(%rbx), %rsi
	callq	_NormalTransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_errmsg_internal
	movq	(%rbx), %rsi
	movq	(%r15), %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_errdetail_internal
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	(%rbx), %rsi
	jmp	LBB0_21
LBB0_3:
	movq	(%r15), %rdi
	cmpq	8(%r15), %rdi
	jne	LBB0_8
## %bb.4:
	movl	8(%rbx), %eax
	cmpl	%r14d, %eax
	jle	LBB0_6
## %bb.5:
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
LBB0_6:
	leal	1(%r14), %eax
	movl	%eax, 8(%rbx)
LBB0_7:
	movq	%rdi, 16(%rbx)
	movq	%rdi, 24(%rbx)
	callq	_TransactionIdIsNormal
	movq	%rax, %rdi
	callq	_Assert
	movq	24(%rbx), %rdi
	callq	_TransactionIdIsNormal
	movq	%rax, %rdi
	callq	_Assert
	movq	_SNAPBUILD_CONSISTENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_SnapBuildStartNextPhaseAt
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %edx
	callq	_errmsg
	leaq	L_.str.3(%rip), %rdi
	xorl	%r12d, %r12d
LBB0_18:
	xorl	%eax, %eax
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_22
LBB0_8:
	cmpl	$0, 40(%rbx)
	je	LBB0_9
LBB0_10:
	movq	32(%rbx), %rax
	movq	_SNAPBUILD_START@GOTPCREL(%rip), %rdx
	movq	_SNAPBUILD_BUILDING_SNAPSHOT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	jne	LBB0_12
## %bb.11:
	movq	%rcx, 32(%rbx)
	movq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_SnapBuildStartNextPhaseAt
	movq	8(%r15), %rdi
	movq	%rdi, 16(%rbx)
	movq	%rdi, 24(%rbx)
	callq	_TransactionIdIsNormal
	movq	%rax, %rdi
	callq	_Assert
	movq	24(%rbx), %rdi
	callq	_TransactionIdIsNormal
	movq	%rax, %rdi
	callq	_Assert
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_20
LBB0_12:
	cmpq	%rcx, %rax
	jne	LBB0_15
## %bb.13:
	movq	%rbx, %rdi
	callq	_SnapBuildNextPhaseAt
	movq	(%r15), %rsi
	movl	%eax, %edi
	callq	_TransactionIdPrecedesOrEquals
	testq	%rax, %rax
	je	LBB0_14
## %bb.19:
	movq	_SNAPBUILD_FULL_SNAPSHOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_SnapBuildStartNextPhaseAt
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.6(%rip), %rdi
LBB0_20:
	movl	%r14d, %edx
	callq	_errmsg
	movl	16(%r15), %esi
	movq	8(%r15), %rdx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	8(%r15), %rsi
LBB0_21:
	movq	%r15, %rdi
	callq	_SnapBuildWaitSnapshot
	movl	$1, %r12d
LBB0_22:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_SnapBuildRestore
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_10
LBB0_14:
	movq	32(%rbx), %rax
LBB0_15:
	movq	_SNAPBUILD_FULL_SNAPSHOT@GOTPCREL(%rip), %rcx
	movl	$1, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.16:
	movq	%rbx, %rdi
	callq	_SnapBuildNextPhaseAt
	movq	(%r15), %rsi
	movl	%eax, %edi
	callq	_TransactionIdPrecedesOrEquals
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:
	movq	_SNAPBUILD_CONSISTENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_SnapBuildStartNextPhaseAt
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %edx
	callq	_errmsg
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skipping snapshot at %X/%X while building logical decoding snapshot, xmin horizon too low"

L_.str.1:                               ## @.str.1
	.asciz	"initial xmin horizon of %u vs the snapshot's %u"

	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
	.comm	_SNAPBUILD_CONSISTENT,8,3       ## @SNAPBUILD_CONSISTENT
	.comm	_InvalidTransactionId,8,3       ## @InvalidTransactionId
	.comm	_LOG,4,2                        ## @LOG
L_.str.2:                               ## @.str.2
	.asciz	"logical decoding found consistent point at %X/%X"

L_.str.3:                               ## @.str.3
	.asciz	"There are no running transactions."

	.comm	_SNAPBUILD_START,8,3            ## @SNAPBUILD_START
	.comm	_SNAPBUILD_BUILDING_SNAPSHOT,8,3 ## @SNAPBUILD_BUILDING_SNAPSHOT
L_.str.4:                               ## @.str.4
	.asciz	"logical decoding found initial starting point at %X/%X"

L_.str.5:                               ## @.str.5
	.asciz	"Waiting for transactions (approximately %d) older than %u to end."

	.comm	_SNAPBUILD_FULL_SNAPSHOT,8,3    ## @SNAPBUILD_FULL_SNAPSHOT
L_.str.6:                               ## @.str.6
	.asciz	"logical decoding found initial consistent point at %X/%X"

L_.str.7:                               ## @.str.7
	.asciz	"There are no old transactions anymore."

	.no_dead_strip	_SnapBuildFindSnapshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SnapBuildFindSnapshot
_SnapBuildFindSnapshot:                 ; @SnapBuildFindSnapshot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_TransactionIdIsNormal
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x20]
	ldr	x1, [x21]
	bl	_NormalTransactionIdPrecedes
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_errmsg_internal
	ldr	x1, [x21]
	ldr	x2, [x20]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errdetail_internal
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	ldr	x1, [x21]
	b	LBB0_15
LBB0_3:
	ldp	x0, x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x21, #8]
Lloh7:
	adrp	x9, _InvalidXLogRecPtr@GOTPAGE
Lloh8:
	ldr	x9, [x9, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w8, w9, #4, gt
	b.ne	LBB0_6
; %bb.5:
	add	w8, w19, #1
	str	w8, [x21, #8]
LBB0_6:
	stp	x0, x0, [x21, #16]
	bl	_TransactionIdIsNormal
	bl	_Assert
	ldr	x0, [x21, #24]
	bl	_TransactionIdIsNormal
	bl	_Assert
Lloh10:
	adrp	x8, _SNAPBUILD_CONSISTENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SNAPBUILD_CONSISTENT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x21, #32]
Lloh13:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh14:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_SnapBuildStartNextPhaseAt
Lloh16:
	adrp	x8, _LOG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_errmsg
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_7:
	mov	w0, #0
	b	LBB0_17
LBB0_8:
	ldr	w8, [x21, #40]
	cbz	w8, LBB0_18
LBB0_9:
Lloh23:
	adrp	x9, _SNAPBUILD_START@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SNAPBUILD_START@GOTPAGEOFF]
	ldr	x8, [x21, #32]
Lloh25:
	ldr	x10, [x9]
Lloh26:
	adrp	x9, _SNAPBUILD_BUILDING_SNAPSHOT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SNAPBUILD_BUILDING_SNAPSHOT@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x10
	b.ne	LBB0_11
; %bb.10:
	str	x9, [x21, #32]
	ldr	x1, [x20, #8]
	mov	x0, x21
	bl	_SnapBuildStartNextPhaseAt
	ldr	x0, [x20, #8]
	stp	x0, x0, [x21, #16]
	bl	_TransactionIdIsNormal
	bl	_Assert
	ldr	x0, [x21, #24]
	bl	_TransactionIdIsNormal
	bl	_Assert
Lloh29:
	adrp	x8, _LOG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh31:
	ldr	w21, [x8]
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_11:
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.12:
	mov	x0, x21
	bl	_SnapBuildNextPhaseAt
	ldr	x1, [x20]
	bl	_TransactionIdPrecedesOrEquals
	cbz	x0, LBB0_19
; %bb.13:
Lloh34:
	adrp	x8, _SNAPBUILD_FULL_SNAPSHOT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SNAPBUILD_FULL_SNAPSHOT@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	str	x8, [x21, #32]
	ldr	x1, [x20, #8]
	mov	x0, x21
	bl	_SnapBuildStartNextPhaseAt
Lloh37:
	adrp	x8, _LOG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh39:
	ldr	w21, [x8]
Lloh40:
	adrp	x0, l_.str.6@PAGE
Lloh41:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_14:
	mov	x2, x19
	bl	_errmsg
	ldr	x8, [x20, #8]
	ldr	w9, [x20, #16]
	stp	x9, x8, [sp]
Lloh42:
	adrp	x0, l_.str.5@PAGE
Lloh43:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
	ldr	x1, [x20, #8]
LBB0_15:
	mov	x0, x20
	bl	_SnapBuildWaitSnapshot
LBB0_16:
	mov	w0, #1
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_18:
	mov	x0, x21
	mov	x1, x19
	bl	_SnapBuildRestore
	cbnz	x0, LBB0_7
	b	LBB0_9
LBB0_19:
	ldr	x8, [x21, #32]
LBB0_20:
Lloh44:
	adrp	x9, _SNAPBUILD_FULL_SNAPSHOT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _SNAPBUILD_FULL_SNAPSHOT@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.21:
	mov	x0, x21
	bl	_SnapBuildNextPhaseAt
	ldr	x1, [x20]
	bl	_TransactionIdPrecedesOrEquals
	cbz	x0, LBB0_16
; %bb.22:
Lloh47:
	adrp	x8, _SNAPBUILD_CONSISTENT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SNAPBUILD_CONSISTENT@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	str	x8, [x21, #32]
Lloh50:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh51:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh52:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_SnapBuildStartNextPhaseAt
Lloh53:
	adrp	x8, _LOG@GOTPAGE
Lloh54:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh55:
	ldr	w20, [x8]
Lloh56:
	adrp	x0, l_.str.2@PAGE
Lloh57:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_errmsg
Lloh58:
	adrp	x0, l_.str.7@PAGE
Lloh59:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	b	LBB0_16
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skipping snapshot at %X/%X while building logical decoding snapshot, xmin horizon too low"

l_.str.1:                               ; @.str.1
	.asciz	"initial xmin horizon of %u vs the snapshot's %u"

	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
	.comm	_SNAPBUILD_CONSISTENT,8,3       ; @SNAPBUILD_CONSISTENT
	.comm	_InvalidTransactionId,8,3       ; @InvalidTransactionId
	.comm	_LOG,4,2                        ; @LOG
l_.str.2:                               ; @.str.2
	.asciz	"logical decoding found consistent point at %X/%X"

l_.str.3:                               ; @.str.3
	.asciz	"There are no running transactions."

	.comm	_SNAPBUILD_START,8,3            ; @SNAPBUILD_START
	.comm	_SNAPBUILD_BUILDING_SNAPSHOT,8,3 ; @SNAPBUILD_BUILDING_SNAPSHOT
l_.str.4:                               ; @.str.4
	.asciz	"logical decoding found initial starting point at %X/%X"

l_.str.5:                               ; @.str.5
	.asciz	"Waiting for transactions (approximately %d) older than %u to end."

	.comm	_SNAPBUILD_FULL_SNAPSHOT,8,3    ; @SNAPBUILD_FULL_SNAPSHOT
l_.str.6:                               ; @.str.6
	.asciz	"logical decoding found initial consistent point at %X/%X"

l_.str.7:                               ; @.str.7
	.asciz	"There are no old transactions anymore."

	.no_dead_strip	_SnapBuildFindSnapshot
.subsections_via_symbols
