	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_ResetEntity
_CG_ResetEntity:                        ## @CG_ResetEntity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_cg@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_EVENT_VALID_MSEC@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	cmpq	%rcx, (%rdi)
	jge	LBB0_2
## %bb.1:
	movq	$0, 40(%rbx)
LBB0_2:
	movq	8(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	20(%rbx), %edi
	movl	28(%rbx), %esi
	callq	_VectorCopy
	movl	16(%rbx), %edi
	movl	24(%rbx), %esi
	callq	_VectorCopy
	movq	8(%rbx), %rax
	movq	_ET_PLAYER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CG_ResetPlayerEntity           ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,16,3                        ## @cg
	.comm	_EVENT_VALID_MSEC,8,3           ## @EVENT_VALID_MSEC
	.comm	_ET_PLAYER,8,3                  ## @ET_PLAYER
	.no_dead_strip	_CG_ResetEntity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_ResetEntity
_CG_ResetEntity:                        ; @CG_ResetEntity
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _cg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
	ldr	x10, [x8]
Lloh2:
	adrp	x11, _EVENT_VALID_MSEC@GOTPAGE
Lloh3:
	ldr	x11, [x11, _EVENT_VALID_MSEC@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	sub	x10, x10, x11
	cmp	x9, x10
	b.ge	LBB0_2
; %bb.1:
	str	xzr, [x19, #40]
LBB0_2:
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	w0, [x19, #20]
	ldr	w1, [x19, #28]
	bl	_VectorCopy
	ldr	w0, [x19, #16]
	ldr	w1, [x19, #24]
	bl	_VectorCopy
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _ET_PLAYER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ET_PLAYER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CG_ResetPlayerEntity
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,16,3                        ; @cg
	.comm	_EVENT_VALID_MSEC,8,3           ; @EVENT_VALID_MSEC
	.comm	_ET_PLAYER,8,3                  ; @ET_PLAYER
	.no_dead_strip	_CG_ResetEntity
.subsections_via_symbols
