	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_SetInitialSnapshot          ## -- Begin function CG_SetInitialSnapshot
	.p2align	4, 0x90
_CG_SetInitialSnapshot:                 ## @CG_SetInitialSnapshot
	.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	%rdi, %r14
	movq	_cg@GOTPCREL(%rip), %rbx
	movq	%rdi, (%rbx)
	addq	$24, %rdi
	movq	_cg_entities@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	24(%r14), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$8, %rsi
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_BG_PlayerStateToEntityState
	xorl	%eax, %eax
	callq	_CG_BuildSolidList
	movl	16(%r14), %edi
	callq	_CG_ExecuteNewServerCommands
	xorl	%eax, %eax
	callq	_CG_Respawn
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rsi
	movq	(%r15), %r12
	movq	(%rsi,%rbx), %rax
	addq	%rbx, %rsi
	leaq	(%rax,%rax,2), %r15
	leaq	(%r12,%r15,4), %r13
	leaq	(%r12,%r15,4), %rdi
	addq	$8, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12,%r15,4)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12,%r15,4)
	movq	_cg@GOTPCREL(%rip), %r15
	movq	%r13, %rdi
	callq	_CG_ResetEntity
	movq	%r13, %rdi
	callq	_CG_CheckEvents
	incq	%r14
	movq	(%r15), %rax
	movq	_cg_entities@GOTPCREL(%rip), %r15
	movslq	(%rax), %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r14
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,8,3                         ## @cg
	.comm	_cg_entities,8,3                ## @cg_entities
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_SetInitialSnapshot          ; -- Begin function CG_SetInitialSnapshot
	.p2align	2
_CG_SetInitialSnapshot:                 ; @CG_SetInitialSnapshot
	.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, x0
Lloh0:
	adrp	x20, _cg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cg@GOTPAGEOFF]
	str	x0, [x20]
Lloh2:
	adrp	x21, _cg_entities@GOTPAGE
Lloh3:
	ldr	x21, [x21, _cg_entities@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x0, #24]!
	mov	w10, #12
	madd	x8, x9, x10, x8
	add	x1, x8, #8
Lloh4:
	adrp	x22, _qfalse@GOTPAGE
Lloh5:
	ldr	x22, [x22, _qfalse@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_BG_PlayerStateToEntityState
	bl	_CG_BuildSolidList
	ldr	w0, [x19, #16]
	bl	_CG_ExecuteNewServerCommands
	bl	_CG_Respawn
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	mov	w25, #12
Lloh6:
	adrp	x26, _qtrue@GOTPAGE
Lloh7:
	ldr	x26, [x26, _qtrue@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	add	x1, x8, x23
	ldr	x8, [x21]
	ldr	x9, [x1]
	madd	x19, x9, x25, x8
	add	x0, x19, #8
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x22]
	str	w8, [x19, #4]
	ldr	w8, [x26]
	str	w8, [x19]
	mov	x0, x19
	bl	_CG_ResetEntity
	mov	x0, x19
	bl	_CG_CheckEvents
	add	x24, x24, #1
	ldr	x8, [x20]
	ldrsw	x9, [x8]
	add	x23, x23, #8
	cmp	x24, x9
	b.lt	LBB0_2
LBB0_3:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,8,3                         ; @cg
	.comm	_cg_entities,8,3                ; @cg_entities
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
