	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EstimateSnapshotSpace          ## -- Begin function EstimateSnapshotSpace
	.p2align	4, 0x90
_EstimateSnapshotSpace:                 ## @EstimateSnapshotSpace
	.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, %rbx
	movq	_InvalidSnapshot@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setne	%dil
	callq	_Assert
	movq	(%rbx), %rax
	movq	_SNAPSHOT_MVCC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	8(%rbx), %rdi
	movl	$4, %esi
	callq	_mul_size
	movl	$4, %edi
	movl	%eax, %esi
	callq	_add_size
	movl	%eax, %r14d
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	jle	LBB0_3
## %bb.1:
	cmpl	$0, 32(%rbx)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
LBB0_4:
	movl	$4, %esi
	callq	_mul_size
	movl	%r14d, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_add_size                       ## TAILCALL
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidSnapshot,8,3            ## @InvalidSnapshot
	.comm	_SNAPSHOT_MVCC,8,3              ## @SNAPSHOT_MVCC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EstimateSnapshotSpace          ; -- Begin function EstimateSnapshotSpace
	.p2align	2
_EstimateSnapshotSpace:                 ; @EstimateSnapshotSpace
	.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	x19, x0
Lloh0:
	adrp	x8, _InvalidSnapshot@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidSnapshot@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _SNAPSHOT_MVCC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNAPSHOT_MVCC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x19, #8]
	mov	w1, #4
	bl	_mul_size
	mov	x1, x0
	mov	w0, #4
	bl	_add_size
	mov	x20, x0
	ldr	x0, [x19, #16]
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
LBB0_3:
	mov	w1, #4
	bl	_mul_size
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_add_size
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidSnapshot,8,3            ; @InvalidSnapshot
	.comm	_SNAPSHOT_MVCC,8,3              ; @SNAPSHOT_MVCC
.subsections_via_symbols
