	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SnapBuildBuildSnapshot
_SnapBuildBuildSnapshot:                ## @SnapBuildBuildSnapshot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_SNAPBUILD_FULL_SNAPSHOT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_Assert
	movl	8(%r14), %eax
	movl	24(%r14), %edi
	leal	8(,%rax,4), %esi
	callq	_MemoryContextAllocZero
	movq	%rax, %rbx
	movq	_SNAPSHOT_HISTORIC_MVCC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movl	20(%r14), %edi
	callq	_TransactionIdIsNormal
	movl	%eax, %edi
	callq	_Assert
	movl	16(%r14), %edi
	callq	_TransactionIdIsNormal
	movl	%eax, %edi
	callq	_Assert
	movl	20(%r14), %eax
	movl	%eax, 68(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 64(%rbx)
	leaq	4(%rbx), %rdi
	movq	%rdi, 56(%rbx)
	movl	8(%r14), %edx
	movl	%edx, (%rbx)
	movl	12(%r14), %esi
	shll	$2, %edx
	callq	_memcpy
	movq	56(%rbx), %rdi
	movl	(%rbx), %esi
	movq	_xidComparator@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %edx
	callq	_qsort
	movq	$0, 4(%rbx)
	movl	$0, 12(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movq	_FirstCommandId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movups	%xmm0, 16(%rbx)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNAPBUILD_FULL_SNAPSHOT,8,3    ## @SNAPBUILD_FULL_SNAPSHOT
	.comm	_SNAPSHOT_HISTORIC_MVCC,4,2     ## @SNAPSHOT_HISTORIC_MVCC
	.comm	_xidComparator,4,2              ## @xidComparator
	.comm	_FirstCommandId,4,2             ## @FirstCommandId
	.no_dead_strip	_SnapBuildBuildSnapshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SnapBuildBuildSnapshot
_SnapBuildBuildSnapshot:                ; @SnapBuildBuildSnapshot
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SNAPBUILD_FULL_SNAPSHOT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNAPBUILD_FULL_SNAPSHOT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_Assert
	ldr	w8, [x20, #8]
	lsl	w8, w8, #2
	add	w1, w8, #8
	ldr	w0, [x20, #24]
	bl	_MemoryContextAllocZero
	mov	x19, x0
Lloh3:
	adrp	x8, _SNAPSHOT_HISTORIC_MVCC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNAPSHOT_HISTORIC_MVCC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #72]
	ldr	w0, [x20, #20]
	bl	_TransactionIdIsNormal
	bl	_Assert
	ldr	w0, [x20, #16]
	bl	_TransactionIdIsNormal
	bl	_Assert
	ldr	d0, [x20, #16]
	str	d0, [x19, #64]
	add	x0, x19, #4
	str	x0, [x19, #56]
	ldp	w8, w1, [x20, #8]
	str	w8, [x19]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	x0, [x19, #56]
	ldr	w1, [x19]
Lloh6:
	adrp	x8, _xidComparator@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xidComparator@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	w2, #4
	bl	_qsort
	str	xzr, [x19, #8]
	str	wzr, [x19, #4]
Lloh9:
	adrp	x8, _FirstCommandId@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FirstCommandId@GOTPAGEOFF]
	stp	xzr, xzr, [x19, #40]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	stp	xzr, xzr, [x19, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNAPBUILD_FULL_SNAPSHOT,8,3    ; @SNAPBUILD_FULL_SNAPSHOT
	.comm	_SNAPSHOT_HISTORIC_MVCC,4,2     ; @SNAPSHOT_HISTORIC_MVCC
	.comm	_xidComparator,4,2              ; @xidComparator
	.comm	_FirstCommandId,4,2             ; @FirstCommandId
	.no_dead_strip	_SnapBuildBuildSnapshot
.subsections_via_symbols
