	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_TransitionSnapshot
_CG_TransitionSnapshot:                 ## @CG_TransitionSnapshot
	.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	_cg@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_CG_Error
LBB0_2:
	movq	24(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_CG_Error
	movq	24(%r15), %rax
LBB0_4:
	movl	40(%rax), %edi
	callq	_CG_ExecuteNewServerCommands
	movq	(%r15), %r11
	movl	(%r11), %r8d
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.5:
	movq	32(%r11), %rcx
	cmpl	$1, %r8d
	jne	LBB0_7
## %bb.6:
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_7:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edx, %edx
	movq	_cg_entities@GOTPCREL(%rip), %r10
	movq	_qfalse@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rax
	movq	(%rcx,%rdx,8), %rsi
	movq	(%rbx), %rdi
	shlq	$5, %rsi
	movq	%rdi, 24(%rax,%rsi)
	movq	(%r10), %rax
	movq	8(%rcx,%rdx,8), %rsi
	movq	(%rbx), %rdi
	shlq	$5, %rsi
	movq	%rdi, 24(%rax,%rsi)
	addq	$2, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_8
LBB0_9:
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:
	movq	_cg_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rdx,8), %rcx
	movq	_qfalse@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$5, %rcx
	movq	%rdx, 24(%rax,%rcx)
LBB0_11:
	movq	%r11, -48(%rbp)                 ## 8-byte Spill
	movq	24(%r15), %rdi
	movq	%rdi, (%r15)
	movq	_cg_entities@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	8(%rdi), %rcx
	addq	$8, %rdi
	shlq	$5, %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$16, %rsi
	movq	_qfalse@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	callq	_BG_PlayerStateToEntityState
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movq	(%r15), %rdi
	movq	8(%rdi), %rdx
	shlq	$5, %rdx
	movq	%rax, 8(%rcx,%rdx)
	cmpl	$0, (%rdi)
	jle	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r13
	movq	32(%rdi), %rax
	movq	(%rax,%rbx,8), %r14
	shlq	$5, %r14
	leaq	(%r14,%r13), %rdi
	callq	_CG_TransitionEntity
	movq	(%r15), %rdi
	movl	24(%rdi), %eax
	movl	%eax, (%r13,%r14)
	incq	%rbx
	movslq	(%rdi), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:
	movq	$0, 24(%r15)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.15:
	movl	16(%rsi), %eax
	xorl	16(%rdi), %eax
	movq	_EF_TELEPORT_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
LBB0_17:
	cmpq	$0, 8(%r15)
	je	LBB0_18
LBB0_22:
	addq	$8, %rsi
	addq	$8, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_TransitionPlayerState       ## TAILCALL
LBB0_18:
	movq	_PMF_FOLLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%rdi)
	jne	LBB0_22
## %bb.19:
	movq	_cg_nopredict@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_22
## %bb.20:
	movq	_cg_synchronousClients@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_22
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,40,3                        ## @cg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CG_TransitionSnapshot: NULL cg.snap"

L_.str.1:                               ## @.str.1
	.asciz	"CG_TransitionSnapshot: NULL cg.nextSnap"

	.comm	_cg_entities,8,3                ## @cg_entities
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_EF_TELEPORT_BIT,4,2            ## @EF_TELEPORT_BIT
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_PMF_FOLLOW,4,2                 ## @PMF_FOLLOW
	.comm	_cg_nopredict,8,3               ## @cg_nopredict
	.comm	_cg_synchronousClients,8,3      ## @cg_synchronousClients
	.no_dead_strip	_CG_TransitionSnapshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_TransitionSnapshot
_CG_TransitionSnapshot:                 ; @CG_TransitionSnapshot
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _cg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cg@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_15
; %bb.1:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_16
LBB0_2:
	ldr	w0, [x8, #40]
	bl	_CG_ExecuteNewServerCommands
	ldr	x21, [x20]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _cg_entities@GOTPAGE
Lloh3:
	ldr	x22, [x22, _cg_entities@GOTPAGEOFF]
Lloh4:
	adrp	x19, _qfalse@GOTPAGE
Lloh5:
	ldr	x19, [x19, _qfalse@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	x9, [x21, #32]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x22]
	ldr	x11, [x9], #8
	ldr	x12, [x19]
	add	x10, x10, x11, lsl #5
	str	x12, [x10, #24]
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_5:
	ldr	x0, [x20, #24]
	str	x0, [x20]
	ldr	x8, [x22]
	ldr	x9, [x0, #8]!
	add	x8, x8, x9, lsl #5
	add	x1, x8, #16
	ldr	x2, [x19]
	bl	_BG_PlayerStateToEntityState
	ldr	x9, [x19]
	ldr	x10, [x22]
	ldr	x8, [x20]
	ldr	x11, [x8, #8]
	add	x10, x10, x11, lsl #5
	str	x9, [x10, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x23, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	ldr	x8, [x8, #32]
	ldr	x8, [x8, x23, lsl #3]
	add	x19, x9, x8, lsl #5
	mov	x0, x19
	bl	_CG_TransitionEntity
	ldr	x8, [x20]
	ldr	w9, [x8, #24]
	str	w9, [x19]
	add	x23, x23, #1
	ldrsw	x9, [x8]
	cmp	x23, x9
	b.lt	LBB0_7
LBB0_8:
	str	xzr, [x20, #24]
	cbz	x21, LBB0_14
; %bb.9:
	ldr	w9, [x8, #16]
	ldr	w10, [x21, #16]
	eor	w9, w10, w9
Lloh6:
	adrp	x10, _EF_TELEPORT_BIT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EF_TELEPORT_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w9, w10
	b.eq	LBB0_11
; %bb.10:
Lloh9:
	adrp	x9, _qtrue@GOTPAGE
Lloh10:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [x20, #16]
LBB0_11:
	ldr	x9, [x20, #8]
	cbnz	x9, LBB0_13
; %bb.12:
Lloh12:
	adrp	x9, _PMF_FOLLOW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PMF_FOLLOW@GOTPAGEOFF]
	ldr	w10, [x8, #20]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w10
Lloh15:
	adrp	x10, _cg_nopredict@GOTPAGE
Lloh16:
	ldr	x10, [x10, _cg_nopredict@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
Lloh18:
	adrp	x11, _cg_synchronousClients@GOTPAGE
Lloh19:
	ldr	x11, [x11, _cg_synchronousClients@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	cmp	w9, #0
	ccmp	x10, #0, #0, eq
	ccmp	x11, #0, #0, eq
	b.eq	LBB0_14
LBB0_13:
	add	x1, x21, #8
	add	x0, x8, #8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_CG_TransitionPlayerState
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CG_Error
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_2
LBB0_16:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_CG_Error
	ldr	x8, [x20, #24]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,40,3                        ; @cg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_TransitionSnapshot: NULL cg.snap"

l_.str.1:                               ; @.str.1
	.asciz	"CG_TransitionSnapshot: NULL cg.nextSnap"

	.comm	_cg_entities,8,3                ; @cg_entities
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_EF_TELEPORT_BIT,4,2            ; @EF_TELEPORT_BIT
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_PMF_FOLLOW,4,2                 ; @PMF_FOLLOW
	.comm	_cg_nopredict,8,3               ; @cg_nopredict
	.comm	_cg_synchronousClients,8,3      ; @cg_synchronousClients
	.no_dead_strip	_CG_TransitionSnapshot
.subsections_via_symbols
