	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TransactionIdLimitedForOldSnapshots ## -- Begin function TransactionIdLimitedForOldSnapshots
	.p2align	4, 0x90
_TransactionIdLimitedForOldSnapshots:   ## @TransactionIdLimitedForOldSnapshots
	.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
	movl	%esi, %ebx
	movl	%edi, %r12d
	callq	_TransactionIdIsNormal
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	movq	_old_snapshot_threshold@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	js	LBB0_24
## %bb.2:
	movl	%ebx, %edi
	callq	_RelationAllowsEarlyPruning
	testq	%rax, %rax
	je	LBB0_24
## %bb.3:
	xorl	%eax, %eax
	callq	_GetSnapshotCurrentTimestamp
	movq	%rax, %r15
	movq	_oldSnapshotControl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$56, %rdi
	callq	_SpinLockAcquire
	movq	(%rbx), %rdi
	movl	60(%rdi), %r13d
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	$56, %rdi
	callq	_SpinLockRelease
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.7:
	movq	%r15, %rdi
	callq	_AlignTimestampToMinuteBoundary
	movq	_USECS_PER_MINUTE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	imulq	(%r14), %rcx
	movq	%rax, %r15
	subq	%rcx, %r15
	movq	(%rbx), %rdi
	addq	$48, %rdi
	callq	_SpinLockAcquire
	movq	(%rbx), %rdi
	cmpq	8(%rdi), %r15
	jne	LBB0_9
## %bb.8:
	movl	52(%rdi), %ebx
	addq	$48, %rdi
	callq	_SpinLockRelease
	jmp	LBB0_20
LBB0_4:
	movq	_MyPgXact@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_TransactionIdFollows
	testq	%rax, %rax
	cmovnel	%r13d, %r12d
LBB0_6:
	movq	_USECS_PER_SEC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rax
	subq	%rax, %r15
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_SetOldSnapshotThresholdTimestamp
	movl	%r12d, %ebx
	jmp	LBB0_23
LBB0_9:
	addq	$48, %rdi
	callq	_SpinLockRelease
	cmpq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.10:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_NormalTransactionIdFollows
	movl	%r13d, %ebx
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_SetOldSnapshotThresholdTimestamp
	movl	%r13d, %ebx
	jmp	LBB0_20
LBB0_12:
	movq	_OldSnapshotTimeMapLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	(%rbx), %rsi
	movl	16(%rsi), %edi
	movl	%r12d, %ebx
	testl	%edi, %edi
	jle	LBB0_19
## %bb.13:
	movq	%r15, %rax
	movl	%r12d, %ebx
	subq	24(%rsi), %rax
	jl	LBB0_19
## %bb.14:
	movq	_USECS_PER_MINUTE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_15
## %bb.16:
	cqto
	idivq	%rcx
	jmp	LBB0_17
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_17:
	leal	-1(%rdi), %ecx
	cmpl	%eax, %edi
	cmovgl	%eax, %ecx
	addl	32(%rsi), %ecx
	movq	_OLD_SNAPSHOT_TIME_MAP_ENTRIES@GOTPCREL(%rip), %rdi
	movl	%ecx, %eax
	cltd
	idivl	(%rdi)
	movq	40(%rsi), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %ebx
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_NormalTransactionIdFollows
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_SetOldSnapshotThresholdTimestamp
LBB0_19:
	movq	_OldSnapshotTimeMapLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
LBB0_20:
	movl	%r13d, %edi
	callq	_TransactionIdIsNormal
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	cmovnel	%r13d, %ebx
LBB0_22:
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_NormalTransactionIdFollows
	testq	%rax, %rax
	je	LBB0_24
LBB0_23:
	movl	%ebx, %r12d
LBB0_24:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_old_snapshot_threshold,8,3     ## @old_snapshot_threshold
	.comm	_oldSnapshotControl,8,3         ## @oldSnapshotControl
	.comm	_MyPgXact,8,3                   ## @MyPgXact
	.comm	_USECS_PER_SEC,4,2              ## @USECS_PER_SEC
	.comm	_USECS_PER_MINUTE,8,3           ## @USECS_PER_MINUTE
	.comm	_OldSnapshotTimeMapLock,4,2     ## @OldSnapshotTimeMapLock
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_OLD_SNAPSHOT_TIME_MAP_ENTRIES,4,2 ## @OLD_SNAPSHOT_TIME_MAP_ENTRIES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TransactionIdLimitedForOldSnapshots ; -- Begin function TransactionIdLimitedForOldSnapshots
	.p2align	2
_TransactionIdLimitedForOldSnapshots:   ; @TransactionIdLimitedForOldSnapshots
	.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	x20, x1
	mov	x19, x0
	bl	_TransactionIdIsNormal
	cbz	x0, LBB0_21
; %bb.1:
Lloh0:
	adrp	x22, _old_snapshot_threshold@GOTPAGE
Lloh1:
	ldr	x22, [x22, _old_snapshot_threshold@GOTPAGEOFF]
	ldr	x8, [x22]
	tbnz	x8, #63, LBB0_21
; %bb.2:
	mov	x0, x20
	bl	_RelationAllowsEarlyPruning
	cbz	x0, LBB0_21
; %bb.3:
	bl	_GetSnapshotCurrentTimestamp
	mov	x21, x0
Lloh2:
	adrp	x24, _oldSnapshotControl@GOTPAGE
Lloh3:
	ldr	x24, [x24, _oldSnapshotControl@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x0, x8, #56
	bl	_SpinLockAcquire
	ldr	x8, [x24]
	ldr	w20, [x8, #60]
	ldr	x23, [x8]
	add	x0, x8, #56
	bl	_SpinLockRelease
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_AlignTimestampToMinuteBoundary
	ldr	x8, [x22]
Lloh4:
	adrp	x25, _USECS_PER_MINUTE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _USECS_PER_MINUTE@GOTPAGEOFF]
	ldr	x9, [x25]
	msub	x22, x9, x8, x0
	ldr	x8, [x24]
	add	x0, x8, #48
	bl	_SpinLockAcquire
	ldr	x8, [x24]
	ldr	x9, [x8, #8]
	cmp	x22, x9
	b.ne	LBB0_9
; %bb.5:
	ldr	w21, [x8, #52]
	add	x0, x8, #48
	bl	_SpinLockRelease
	b	LBB0_17
LBB0_6:
Lloh6:
	adrp	x8, _MyPgXact@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MyPgXact@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_TransactionIdFollows
	cmp	x0, #0
	csel	w19, w19, w20, eq
LBB0_8:
Lloh9:
	adrp	x8, _USECS_PER_SEC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USECS_PER_SEC@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	add	x8, x8, x8, lsl #2
	sub	x0, x21, x8
	mov	x1, x19
	bl	_SetOldSnapshotThresholdTimestamp
	mov	x21, x19
	b	LBB0_20
LBB0_9:
	add	x0, x8, #48
	bl	_SpinLockRelease
	cmp	x22, x23
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	bl	_NormalTransactionIdFollows
	mov	x21, x20
	cbz	x0, LBB0_17
; %bb.11:
	mov	x0, x23
	mov	x1, x20
	bl	_SetOldSnapshotThresholdTimestamp
	mov	x21, x20
	b	LBB0_17
LBB0_12:
Lloh12:
	adrp	x23, _OldSnapshotTimeMapLock@GOTPAGE
Lloh13:
	ldr	x23, [x23, _OldSnapshotTimeMapLock@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh14:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	x8, [x24]
	ldr	w9, [x8, #16]
	mov	x21, x19
	subs	w10, w9, #1
	b.lt	LBB0_16
; %bb.13:
	ldr	x11, [x8, #24]
	mov	x21, x19
	subs	x11, x22, x11
	b.lt	LBB0_16
; %bb.14:
	ldr	x12, [x25]
	sdiv	x11, x11, x12
	cmp	w9, w11
	csel	w9, w11, w10, gt
	ldr	w10, [x8, #32]
	add	w9, w9, w10
Lloh17:
	adrp	x10, _OLD_SNAPSHOT_TIME_MAP_ENTRIES@GOTPAGE
Lloh18:
	ldr	x10, [x10, _OLD_SNAPSHOT_TIME_MAP_ENTRIES@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	ldr	x8, [x8, #40]
	ldr	w21, [x8, w9, sxtw #2]
	mov	x0, x21
	mov	x1, x19
	bl	_NormalTransactionIdFollows
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x22
	mov	x1, x21
	bl	_SetOldSnapshotThresholdTimestamp
LBB0_16:
	ldr	w0, [x23]
	bl	_LWLockRelease
LBB0_17:
	mov	x0, x20
	bl	_TransactionIdIsNormal
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x20
	mov	x1, x21
	bl	_TransactionIdPrecedes
	cmp	x0, #0
	csel	w21, w21, w20, eq
LBB0_19:
	mov	x0, x21
	mov	x1, x19
	bl	_NormalTransactionIdFollows
	cbz	x0, LBB0_21
LBB0_20:
	mov	x19, x21
LBB0_21:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_old_snapshot_threshold,8,3     ; @old_snapshot_threshold
	.comm	_oldSnapshotControl,8,3         ; @oldSnapshotControl
	.comm	_MyPgXact,8,3                   ; @MyPgXact
	.comm	_USECS_PER_SEC,4,2              ; @USECS_PER_SEC
	.comm	_USECS_PER_MINUTE,8,3           ; @USECS_PER_MINUTE
	.comm	_OldSnapshotTimeMapLock,4,2     ; @OldSnapshotTimeMapLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_OLD_SNAPSHOT_TIME_MAP_ENTRIES,4,2 ; @OLD_SNAPSHOT_TIME_MAP_ENTRIES
.subsections_via_symbols
