	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_ProcessSnapshots            ## -- Begin function CG_ProcessSnapshots
	.p2align	4, 0x90
_CG_ProcessSnapshots:                   ## @CG_ProcessSnapshots
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_cg@GOTPCREL(%rip), %rbx
	leaq	32(%rbx), %rsi
	leaq	-20(%rbp), %rdi
	callq	_trap_GetCurrentSnapshotNumber
	movl	-20(%rbp), %eax
	cmpl	(%rbx), %eax
	je	LBB0_4
## %bb.1:
	jge	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_CG_Error
	movl	-20(%rbp), %eax
LBB0_3:
	movl	%eax, (%rbx)
LBB0_4:
	cmpq	$0, 24(%rbx)
	je	LBB0_5
LBB0_10:
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%eax, %eax
	callq	_CG_TransitionSnapshot
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rbx)
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%eax, %eax
	callq	_CG_ReadNextSnapshot
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rdi
	callq	_CG_SetNextSnap
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rax), %rax
	cmpq	(%rcx), %rax
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	callq	_CG_Error
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rbx), %rcx
	movq	24(%rbx), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%rbx), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_17
	jmp	LBB0_20
LBB0_5:
	movq	_SNAPFLAG_NOT_ACTIVE@GOTPCREL(%rip), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 24(%rbx)
	jne	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CG_ReadNextSnapshot
	testq	%rax, %rax
	je	LBB0_25
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rdi
	callq	_CG_SetInitialSnapshot
	jmp	LBB0_9
LBB0_18:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.2(%rip), %rdi
	callq	_CG_Error
	movq	24(%rbx), %rax
LBB0_20:
	movq	8(%rbx), %rcx
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_22
## %bb.21:
	movq	%rax, 8(%rbx)
	movq	%rax, %rcx
LBB0_22:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	cmpq	%rcx, (%rax)
	jg	LBB0_25
## %bb.24:
	leaq	L_.str.3(%rip), %rdi
	callq	_CG_Error
LBB0_25:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,40,3                        ## @cg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CG_ProcessSnapshots: n < cg.latestSnapshotNum"

	.comm	_SNAPFLAG_NOT_ACTIVE,4,2        ## @SNAPFLAG_NOT_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"CG_ProcessSnapshots: Server time went backwards"

L_.str.2:                               ## @.str.2
	.asciz	"CG_ProcessSnapshots: cg.snap == NULL"

L_.str.3:                               ## @.str.3
	.asciz	"CG_ProcessSnapshots: cg.nextSnap->serverTime <= cg.time"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_ProcessSnapshots            ; -- Begin function CG_ProcessSnapshots
	.p2align	2
_CG_ProcessSnapshots:                   ; @CG_ProcessSnapshots
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _cg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cg@GOTPAGEOFF]
	add	x1, x20, #32
	add	x0, sp, #12
	bl	_trap_GetCurrentSnapshotNumber
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.1:
	b.ge	LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CG_Error
	ldr	w8, [sp, #12]
LBB0_3:
	str	w8, [x20]
LBB0_4:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_13
LBB0_5:
Lloh4:
	adrp	x19, l_.str.1@PAGE
Lloh5:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_CG_TransitionSnapshot
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_CG_ReadNextSnapshot
	cbz	x0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_CG_SetNextSnap
	ldp	x8, x9, [x20, #16]
	ldr	x8, [x8]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_CG_Error
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x20, #8]
	ldr	x8, [x20, #24]
	ldr	x10, [x8]
	cmp	x9, x10
	b.lt	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x20, #16]
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_6
	b	LBB0_20
LBB0_13:
Lloh6:
	adrp	x19, _SNAPFLAG_NOT_ACTIVE@GOTPAGE
Lloh7:
	ldr	x19, [x19, _SNAPFLAG_NOT_ACTIVE@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_5
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	bl	_CG_ReadNextSnapshot
	cbz	x0, LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x0]
	ldr	w9, [x19]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	bl	_CG_SetInitialSnapshot
	b	LBB0_14
LBB0_18:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_20
; %bb.19:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_CG_Error
	ldr	x8, [x20, #24]
LBB0_20:
	ldr	x9, [x20, #8]
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_22
; %bb.21:
	str	x8, [x20, #8]
	mov	x9, x8
LBB0_22:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_25
; %bb.23:
	ldr	x8, [x8]
	cmp	x8, x9
	b.gt	LBB0_25
; %bb.24:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_CG_Error
LBB0_25:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,40,3                        ; @cg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_ProcessSnapshots: n < cg.latestSnapshotNum"

	.comm	_SNAPFLAG_NOT_ACTIVE,4,2        ; @SNAPFLAG_NOT_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"CG_ProcessSnapshots: Server time went backwards"

l_.str.2:                               ; @.str.2
	.asciz	"CG_ProcessSnapshots: cg.snap == NULL"

l_.str.3:                               ; @.str.3
	.asciz	"CG_ProcessSnapshots: cg.nextSnap->serverTime <= cg.time"

.subsections_via_symbols
