	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_CheckPlayerstateEvents      ## -- Begin function CG_CheckPlayerstateEvents
	.p2align	4, 0x90
_CG_CheckPlayerstateEvents:             ## @CG_CheckPlayerstateEvents
	.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	%rsi, %r12
	movq	%rdi, %rsi
	movq	(%rdi), %rax
	testq	%rax, %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	cmpq	(%r12), %rax
	je	LBB0_3
## %bb.2:
	movq	_cg_entities@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rsi), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rcx,%rdx,8), %rdi
	movq	%rax, 8(%rcx,%rdx,8)
	movl	40(%rsi), %eax
	movl	%eax, 16(%rcx,%rdx,8)
	movl	(%rcx,%rdx,8), %esi
	callq	_CG_EntityEvent
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_3:
	movq	_MAX_PS_EVENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.4:
	movl	16(%rsi), %eax
	movl	%eax, %ebx
	subl	%ecx, %ebx
	movq	_cg@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rsi), %rcx
	movq	_MAX_PS_EVENTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	decq	%rdx
	andq	%r15, %rdx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%rcx,%rdx,4), %r14
	movq	%r14, 24(%r13)
	leaq	16(%r13), %rdi
	movq	32(%rsi), %rax
	movl	(%rax,%rdx,4), %eax
	movl	%eax, 32(%r13)
	movl	16(%r13), %esi
	callq	_CG_EntityEvent
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	(%r13), %rax
	movq	_MAX_PREDICTED_EVENTS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%r15, %rcx
	movl	%r14d, (%rax,%rcx,4)
	incl	8(%r13)
	movl	16(%rsi), %eax
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jge	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r12), %ecx
	movslq	%ebx, %r15
	cmpl	%ecx, %ebx
	jge	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_MAX_PS_EVENTS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	subl	%edx, %ecx
	cmpl	%ecx, %ebx
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rsi), %rcx
	decl	%edx
	andl	%ebx, %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %r8d
	movq	24(%r12), %rdi
	cmpl	(%rdi,%rdx,4), %r8d
	jne	LBB0_9
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_entities,8,3                ## @cg_entities
	.comm	_cg,40,3                        ## @cg
	.comm	_MAX_PS_EVENTS,4,2              ## @MAX_PS_EVENTS
	.comm	_MAX_PREDICTED_EVENTS,4,2       ## @MAX_PREDICTED_EVENTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_CheckPlayerstateEvents      ; -- Begin function CG_CheckPlayerstateEvents
	.p2align	2
_CG_CheckPlayerstateEvents:             ; @CG_CheckPlayerstateEvents
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, _cg_entities@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cg_entities@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x20, #8]
	mov	w11, #24
	madd	x0, x10, x11, x9
	str	x8, [x0, #8]
	ldr	w8, [x20, #40]
	str	w8, [x0, #16]
	ldr	w1, [x0]
	bl	_CG_EntityEvent
LBB0_3:
Lloh3:
	adrp	x21, _MAX_PS_EVENTS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_PS_EVENTS@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.4:
	ldr	w8, [x20, #16]
	sub	w22, w8, w9
Lloh5:
	adrp	x23, _cg@GOTPAGE
Lloh6:
	ldr	x23, [x23, _cg@GOTPAGEOFF]
Lloh7:
	adrp	x24, _MAX_PREDICTED_EVENTS@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MAX_PREDICTED_EVENTS@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x20, #24]
	ldrsw	x8, [x21]
	sub	x8, x8, #1
	sxtw	x10, w22
	and	x8, x8, x10
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	lsl	x8, x8, #2
	ldrsw	x25, [x9, x8]
	str	x25, [x23, #24]
	ldr	x9, [x20, #32]
	ldr	w8, [x9, x8]
	str	w8, [x23, #32]
	mov	x0, x23
	ldr	w1, [x0, #16]!
	bl	_CG_EntityEvent
	ldr	x8, [x23]
	ldr	w9, [x24]
	sub	w9, w9, #1
	and	w9, w9, w22
	str	w25, [x8, w9, sxtw #2]
	ldr	w8, [x23, #8]
	add	w8, w8, #1
	str	w8, [x23, #8]
	ldr	w8, [x20, #16]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #16]
	cmp	w22, w9
	b.ge	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w10, [x21]
	sub	w9, w9, w10
	cmp	w22, w9
	b.le	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x20, #24]
	sub	w10, w10, #1
	and	w10, w10, w22
	sbfiz	x11, x10, #2, #32
	ldr	w12, [x9, x11]
	ldr	x13, [x19, #24]
	ldr	w11, [x13, x11]
	cmp	w12, w11
	b.eq	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	sxtw	x8, w10
	b	LBB0_6
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_entities,8,3                ; @cg_entities
	.comm	_cg,40,3                        ; @cg
	.comm	_MAX_PS_EVENTS,4,2              ; @MAX_PS_EVENTS
	.comm	_MAX_PREDICTED_EVENTS,4,2       ; @MAX_PREDICTED_EVENTS
.subsections_via_symbols
