	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MaintainOldSnapshotTimeMapping ## -- Begin function MaintainOldSnapshotTimeMapping
	.p2align	4, 0x90
_MaintainOldSnapshotTimeMapping:        ## @MaintainOldSnapshotTimeMapping
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_old_snapshot_threshold@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Assert
	movq	%r15, %rdi
	callq	_AlignTimestampToMinuteBoundary
	movq	%rax, %r14
	movq	_oldSnapshotControl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$40, %rdi
	callq	_SpinLockAcquire
	movq	(%rbx), %rax
	movq	(%rax), %r12
	movq	48(%rax), %rsi
	cmpq	%r12, %r14
	jle	LBB0_2
## %bb.1:
	movq	%r14, (%rax)
LBB0_2:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_TransactionIdFollows
	movq	_oldSnapshotControl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, 48(%rdi)
LBB0_4:
	addq	$40, %rdi
	callq	_SpinLockRelease
	cmpq	%r12, %r14
	jle	LBB0_43
## %bb.5:
	cmpq	$0, (%r13)
	je	LBB0_43
## %bb.6:
	testq	%r15, %r15
	js	LBB0_7
## %bb.10:
	movq	%rbx, %rdi
	callq	_TransactionIdIsNormal
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	_OldSnapshotTimeMapLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_oldSnapshotControl@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Assert
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movq	_OLD_SNAPSHOT_TIME_MAP_ENTRIES@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setl	%dil
	callq	_Assert
	movq	(%r12), %rax
	movl	16(%rax), %eax
	movq	_USECS_PER_MINUTE@GOTPCREL(%rip), %r13
	cltd
	idivl	(%r13)
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	callq	_Assert
	movq	(%r12), %rax
	movq	24(%rax), %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Assert
	movq	(%r12), %rax
	movq	24(%rax), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setle	%dil
	callq	_Assert
	movq	(%r12), %rsi
	movq	24(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.14:
	movq	_OldSnapshotTimeMapLock@GOTPCREL(%rip), %rbx
	movslq	16(%rsi), %rdx
	movq	%r14, %rax
	subq	%rdx, %rax
	jge	LBB0_16
## %bb.15:
	movl	(%rbx), %edi
	callq	_LWLockRelease
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_43:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_8:
	movq	%r15, %rdx
	jmp	LBB0_9
LBB0_11:
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
LBB0_13:
	movq	_OldSnapshotTimeMapLock@GOTPCREL(%rip), %r15
	movq	$0, 8(%rsi)
	movl	%r14d, 16(%rsi)
LBB0_36:
	movq	$1, 24(%rsi)
	movq	32(%rsi), %rbx
LBB0_25:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
LBB0_26:
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
LBB0_16:
	leaq	-1(%rdi), %rcx
	movslq	(%r13), %r8
	imulq	%r8, %rcx
	addq	%rdx, %rcx
	cmpq	%rcx, %r14
	jle	LBB0_17
## %bb.27:
	movq	%rax, %rcx
	orq	%r8, %rcx
	movq	%rbx, %r15
	shrq	$32, %rcx
	je	LBB0_28
## %bb.29:
	cqto
	idivq	%r8
	movq	%rax, %rcx
	jmp	LBB0_30
LBB0_17:
	movq	8(%rsi), %rdi
	movq	%rax, %rcx
	orq	%r8, %rcx
	shrq	$32, %rcx
	je	LBB0_18
## %bb.19:
	cqto
	idivq	%r8
	jmp	LBB0_20
LBB0_28:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
	movl	%eax, %ecx
LBB0_30:
	movq	_OLD_SNAPSHOT_TIME_MAP_ENTRIES@GOTPCREL(%rip), %rdx
	movl	%r14d, 16(%rsi)
	movslq	%ecx, %rax
	movq	(%rdx), %rbx
	cmpq	%rbx, %rax
	jge	LBB0_35
## %bb.31:
	testl	%ecx, %ecx
	jle	LBB0_26
## %bb.32:
	leaq	-1(%rbx), %r8
	decl	%ecx
	movabsq	$4294967296, %r9                ## imm = 0x100000000
	xorl	%r10d, %r10d
	cmpq	%rbx, %rdi
	jne	LBB0_37
LBB0_34:
	movq	8(%rsi), %rax
	movslq	%eax, %rdx
	shlq	$32, %rax
	leaq	(%rax,%r9), %rdi
	sarq	$32, %rdi
	cmpq	%r8, %rdx
	cmoveq	%r10, %rdi
	movq	%rdi, 8(%rsi)
	sarq	$29, %rax
	jmp	LBB0_41
LBB0_37:
	movq	8(%rsi), %rax
	addq	%rdi, %rax
	movq	%rax, %rdx
	orq	%rbx, %rdx
	shrq	$32, %rdx
	je	LBB0_38
## %bb.39:
	cqto
	idivq	%rbx
	jmp	LBB0_40
LBB0_38:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_40:
	incq	%rdi
	movq	%rdi, 24(%rsi)
	movslq	%edx, %rax
	shlq	$3, %rax
LBB0_41:
	addq	32(%rsi), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax)
	subl	$1, %ecx
	jb	LBB0_26
## %bb.42:
	movq	_oldSnapshotControl@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	24(%rsi), %rdi
	cmpq	%rbx, %rdi
	jne	LBB0_37
	jmp	LBB0_34
LBB0_35:
	movq	$0, 8(%rsi)
	jmp	LBB0_36
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
LBB0_20:
	movq	_OLD_SNAPSHOT_TIME_MAP_ENTRIES@GOTPCREL(%rip), %rcx
	movq	%rbx, %r15
	addq	%rdi, %rax
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_21
## %bb.22:
	cqto
	idivq	%rcx
	jmp	LBB0_23
LBB0_21:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_23:
	movq	32(%rsi), %rax
	movslq	%edx, %rbx
	movq	(%rax,%rbx,8), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movq	_oldSnapshotControl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$3, %rbx
	addq	32(%rax), %rbx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_old_snapshot_threshold,8,3     ## @old_snapshot_threshold
	.comm	_oldSnapshotControl,8,3         ## @oldSnapshotControl
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MaintainOldSnapshotTimeMapping called with negative whenTaken = %ld"

L_.str.1:                               ## @.str.1
	.asciz	"MaintainOldSnapshotTimeMapping called with xmin = %lu"

	.comm	_OldSnapshotTimeMapLock,4,2     ## @OldSnapshotTimeMapLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_OLD_SNAPSHOT_TIME_MAP_ENTRIES,8,3 ## @OLD_SNAPSHOT_TIME_MAP_ENTRIES
	.comm	_USECS_PER_MINUTE,4,2           ## @USECS_PER_MINUTE
L_.str.2:                               ## @.str.2
	.asciz	"MaintainOldSnapshotTimeMapping called with old whenTaken = %ld"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MaintainOldSnapshotTimeMapping ; -- Begin function MaintainOldSnapshotTimeMapping
	.p2align	2
_MaintainOldSnapshotTimeMapping:        ; @MaintainOldSnapshotTimeMapping
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _old_snapshot_threshold@GOTPAGE
Lloh1:
	ldr	x23, [x23, _old_snapshot_threshold@GOTPAGEOFF]
	ldr	x8, [x23]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_Assert
	mov	x0, x20
	bl	_AlignTimestampToMinuteBoundary
	mov	x21, x0
Lloh2:
	adrp	x22, _oldSnapshotControl@GOTPAGE
Lloh3:
	ldr	x22, [x22, _oldSnapshotControl@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, #40
	bl	_SpinLockAcquire
	ldr	x8, [x22]
	ldr	x1, [x8, #48]
	ldr	x24, [x8]
	cmp	x21, x24
	b.le	LBB0_2
; %bb.1:
	str	x21, [x8]
LBB0_2:
	mov	x0, x19
	bl	_TransactionIdFollows
	ldr	x8, [x22]
	cbz	x0, LBB0_4
; %bb.3:
	str	x19, [x8, #48]
LBB0_4:
	add	x0, x8, #40
	bl	_SpinLockRelease
	ldr	x8, [x23]
	cmp	x21, x24
	ccmp	x8, #0, #4, gt
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	tbnz	x20, #63, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_TransactionIdIsNormal
	cbz	w0, LBB0_13
; %bb.8:
Lloh4:
	adrp	x23, _OldSnapshotTimeMapLock@GOTPAGE
Lloh5:
	ldr	x23, [x23, _OldSnapshotTimeMapLock@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh6:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_Assert
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
Lloh9:
	adrp	x24, _OLD_SNAPSHOT_TIME_MAP_ENTRIES@GOTPAGE
Lloh10:
	ldr	x24, [x24, _OLD_SNAPSHOT_TIME_MAP_ENTRIES@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	cset	w0, lt
	bl	_Assert
	ldr	x8, [x22]
Lloh11:
	adrp	x25, _USECS_PER_MINUTE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _USECS_PER_MINUTE@GOTPAGEOFF]
	ldr	w8, [x8, #16]
	ldr	w9, [x25]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_Assert
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	x9, [x24]
	cmp	x8, x9
	cset	w0, le
	bl	_Assert
	ldr	x8, [x22]
	ldr	x11, [x8, #24]
	cbz	x11, LBB0_15
; %bb.9:
	ldrsw	x12, [x8, #16]
	subs	x9, x21, x12
	b.ge	LBB0_19
; %bb.10:
	ldr	w0, [x23]
	bl	_LWLockRelease
Lloh13:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh18:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
LBB0_12:
	mov	x2, x20
	b	LBB0_14
LBB0_13:
Lloh23:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_elog
LBB0_15:
	str	xzr, [x8, #8]
	str	w21, [x8, #16]
LBB0_16:
	mov	w9, #1
	str	x9, [x8, #24]
	ldr	x8, [x8, #32]
LBB0_17:
	str	x19, [x8]
LBB0_18:
	ldr	w0, [x23]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_LWLockRelease
LBB0_19:
	sub	x13, x11, #1
	ldrsw	x10, [x25]
	madd	x12, x13, x10, x12
	cmp	x21, x12
	b.le	LBB0_27
; %bb.20:
	sdiv	x10, x9, x10
	str	w21, [x8, #16]
	ldr	x9, [x24]
	cmp	x9, w10, sxtw
	b.le	LBB0_29
; %bb.21:
	subs	w10, w10, #1
	b.lt	LBB0_18
; %bb.22:
	sub	x12, x9, #1
	mov	x13, #4294967296
	cmp	x11, x9
	b.ne	LBB0_24
LBB0_23:
	ldr	x11, [x8, #8]
	lsl	x14, x11, #32
	add	x15, x14, x13
	asr	x15, x15, #32
	cmp	x12, w11, sxtw
	csel	x11, xzr, x15, eq
	str	x11, [x8, #8]
	ldr	x8, [x8, #32]
	add	x8, x8, x14, asr #29
	b	LBB0_25
LBB0_24:
	ldr	x14, [x8, #8]
	add	x14, x14, x11
	sdiv	x15, x14, x9
	msub	w14, w15, w9, w14
	add	x11, x11, #1
	str	x11, [x8, #24]
	ldr	x8, [x8, #32]
	lsl	x11, x14, #32
	add	x8, x8, x11, asr #29
LBB0_25:
	str	x19, [x8]
	cbz	w10, LBB0_18
; %bb.26:
	ldr	x8, [x22]
	ldr	x11, [x8, #24]
	sub	w10, w10, #1
	cmp	x11, x9
	b.ne	LBB0_24
	b	LBB0_23
LBB0_27:
	ldr	x11, [x8, #8]
	sdiv	x9, x9, x10
	add	x9, x9, x11
	ldr	x10, [x24]
	sdiv	x11, x9, x10
	msub	x20, x11, x10, x9
	ldr	x8, [x8, #32]
	sbfiz	x9, x20, #3, #32
	ldr	x0, [x8, x9]
	mov	x1, x19
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_18
; %bb.28:
	sxtw	x8, w20
	ldr	x9, [x22]
	ldr	x9, [x9, #32]
	add	x8, x9, x8, lsl #3
	b	LBB0_17
LBB0_29:
	str	xzr, [x8, #8]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_old_snapshot_threshold,8,3     ; @old_snapshot_threshold
	.comm	_oldSnapshotControl,8,3         ; @oldSnapshotControl
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MaintainOldSnapshotTimeMapping called with negative whenTaken = %ld"

l_.str.1:                               ; @.str.1
	.asciz	"MaintainOldSnapshotTimeMapping called with xmin = %lu"

	.comm	_OldSnapshotTimeMapLock,4,2     ; @OldSnapshotTimeMapLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_OLD_SNAPSHOT_TIME_MAP_ENTRIES,8,3 ; @OLD_SNAPSHOT_TIME_MAP_ENTRIES
	.comm	_USECS_PER_MINUTE,4,2           ; @USECS_PER_MINUTE
l_.str.2:                               ; @.str.2
	.asciz	"MaintainOldSnapshotTimeMapping called with old whenTaken = %ld"

.subsections_via_symbols
