	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SnapBuildInitialSnapshot       ## -- Begin function SnapBuildInitialSnapshot
	.p2align	4, 0x90
_SnapBuildInitialSnapshot:              ## @SnapBuildInitialSnapshot
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_FirstSnapshotSet@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_Assert
	movq	_XactIsoLevel@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_XACT_REPEATABLE_READ@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	(%rbx), %rax
	movq	_SNAPBUILD_CONSISTENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	cmpl	$0, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_4:
	movq	_MyPgXact@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
LBB0_6:
	movq	%rbx, %rdi
	callq	_SnapBuildBuildSnapshot
	movq	%rax, %rbx
	movl	24(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_GetMaxSnapshotXidCount
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %edi
	callq	_palloc
	movq	%rax, %r13
	movl	24(%rbx), %edi
	movl	%edi, -44(%rbp)
	movl	20(%rbx), %esi
	callq	_NormalTransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	_xidComparator@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %eax
	movslq	%r12d, %rcx
	incl	%r12d
	movl	%eax, (%r13,%rcx,4)
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %edi
	callq	_TransactionIdAdvance
	movl	-44(%rbp), %edi
	movl	20(%rbx), %esi
	callq	_NormalTransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rsi
	movl	(%rbx), %edx
	movl	(%r14), %r8d
	movq	%r15, %rdi
	movl	$4, %ecx
	callq	_bsearch
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_GetMaxSnapshotXidCount
	cmpl	%eax, %r12d
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %r15
	movq	%r13, %r14
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	callq	_errmsg
	movl	%r13d, %edi
	movq	%r14, %r13
	movq	%r15, %r14
	leaq	-44(%rbp), %r15
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_11
LBB0_13:
	movq	_SNAPSHOT_MVCC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	%r12d, (%rbx)
	movq	%r13, 8(%rbx)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FirstSnapshotSet,4,2           ## @FirstSnapshotSet
	.comm	_XactIsoLevel,8,3               ## @XactIsoLevel
	.comm	_XACT_REPEATABLE_READ,8,3       ## @XACT_REPEATABLE_READ
	.comm	_SNAPBUILD_CONSISTENT,8,3       ## @SNAPBUILD_CONSISTENT
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot build an initial slot snapshot before reaching a consistent state"

L_.str.1:                               ## @.str.1
	.asciz	"cannot build an initial slot snapshot, not all transactions are monitored anymore"

	.comm	_MyPgXact,8,3                   ## @MyPgXact
L_.str.2:                               ## @.str.2
	.asciz	"cannot build an initial slot snapshot when MyPgXact->xmin already is valid"

	.comm	_xidComparator,4,2              ## @xidComparator
	.comm	_ERRCODE_T_R_SERIALIZATION_FAILURE,4,2 ## @ERRCODE_T_R_SERIALIZATION_FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"initial slot snapshot too large"

	.comm	_SNAPSHOT_MVCC,4,2              ## @SNAPSHOT_MVCC
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SnapBuildInitialSnapshot       ; -- Begin function SnapBuildInitialSnapshot
	.p2align	2
_SnapBuildInitialSnapshot:              ; @SnapBuildInitialSnapshot
	.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	x19, x0
Lloh0:
	adrp	x8, _FirstSnapshotSet@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FirstSnapshotSet@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x8, _XactIsoLevel@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XactIsoLevel@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _XACT_REPEATABLE_READ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XACT_REPEATABLE_READ@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _SNAPBUILD_CONSISTENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SNAPBUILD_CONSISTENT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x23, _ERROR@GOTPAGE
Lloh13:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x23]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w0, [x23]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_4:
Lloh18:
	adrp	x20, _MyPgXact@GOTPAGE
Lloh19:
	ldr	x20, [x20, _MyPgXact@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x23]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_6:
	mov	x0, x19
	bl	_SnapBuildBuildSnapshot
	mov	x19, x0
	ldr	w8, [x0, #24]
	ldr	x9, [x20]
	str	w8, [x9]
	bl	_GetMaxSnapshotXidCount
	lsl	w0, w0, #2
	bl	_palloc
	mov	x20, x0
	ldp	w1, w0, [x19, #20]
	str	w0, [sp, #12]
	bl	_NormalTransactionIdPrecedes
	mov	w24, #0
	cbz	x0, LBB0_13
; %bb.7:
Lloh22:
	adrp	x25, _xidComparator@GOTPAGE
Lloh23:
	ldr	x25, [x25, _xidComparator@GOTPAGEOFF]
Lloh24:
	adrp	x26, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGE
Lloh25:
	ldr	x26, [x26, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGEOFF]
Lloh26:
	adrp	x21, l_.str.3@PAGE
Lloh27:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [sp, #12]
	str	w8, [x20, w24, sxtw #2]
	add	w24, w24, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [sp, #12]
	bl	_TransactionIdAdvance
	ldr	w0, [sp, #12]
	ldr	w1, [x19, #20]
	bl	_NormalTransactionIdPrecedes
	cbz	x0, LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19, #8]
	ldr	w2, [x19]
	ldr	w4, [x25]
	add	x0, sp, #12
	mov	w3, #4
	bl	_bsearch
	cbnz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_GetMaxSnapshotXidCount
	cmp	w24, w0
	b.lt	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w22, [x23]
	ldr	w0, [x26]
	bl	_errcode
	mov	x0, x21
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	b	LBB0_8
LBB0_13:
Lloh28:
	adrp	x8, _SNAPSHOT_MVCC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SNAPSHOT_MVCC@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	w24, [x19]
	str	x20, [x19, #8]
	mov	x0, x19
	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	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_FirstSnapshotSet,4,2           ; @FirstSnapshotSet
	.comm	_XactIsoLevel,8,3               ; @XactIsoLevel
	.comm	_XACT_REPEATABLE_READ,8,3       ; @XACT_REPEATABLE_READ
	.comm	_SNAPBUILD_CONSISTENT,8,3       ; @SNAPBUILD_CONSISTENT
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot build an initial slot snapshot before reaching a consistent state"

l_.str.1:                               ; @.str.1
	.asciz	"cannot build an initial slot snapshot, not all transactions are monitored anymore"

	.comm	_MyPgXact,8,3                   ; @MyPgXact
l_.str.2:                               ; @.str.2
	.asciz	"cannot build an initial slot snapshot when MyPgXact->xmin already is valid"

	.comm	_xidComparator,4,2              ; @xidComparator
	.comm	_ERRCODE_T_R_SERIALIZATION_FAILURE,4,2 ; @ERRCODE_T_R_SERIALIZATION_FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"initial slot snapshot too large"

	.comm	_SNAPSHOT_MVCC,4,2              ; @SNAPSHOT_MVCC
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
.subsections_via_symbols
