	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BG_AddPredictableEventToPlayerstate ## -- Begin function BG_AddPredictableEventToPlayerstate
	.p2align	4, 0x90
_BG_AddPredictableEventToPlayerstate:   ## @BG_AddPredictableEventToPlayerstate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdx), %r9
	movslq	(%rdx), %rcx
	movq	_MAX_PS_EVENTS@GOTPCREL(%rip), %r8
	movslq	(%r8), %rax
	decq	%rax
	andq	%rcx, %rax
	movl	%edi, (%r9,%rax,4)
	movq	16(%rdx), %rax
	movslq	(%rdx), %rcx
	movslq	(%r8), %rdi
	decq	%rdi
	andq	%rcx, %rdi
	movl	%esi, (%rax,%rdi,4)
	incl	(%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PS_EVENTS,4,2              ## @MAX_PS_EVENTS
	.comm	_eventnames,8,3                 ## @eventnames
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BG_AddPredictableEventToPlayerstate ; -- Begin function BG_AddPredictableEventToPlayerstate
	.p2align	2
_BG_AddPredictableEventToPlayerstate:   ; @BG_AddPredictableEventToPlayerstate
	.cfi_startproc
; %bb.0:
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _MAX_PS_EVENTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_PS_EVENTS@GOTPAGEOFF]
	ldr	w10, [x9]
	sub	w10, w10, #1
	and	w8, w10, w8
	ldp	x10, x11, [x2, #8]
	str	w0, [x10, w8, sxtw #2]
	ldr	w8, [x2]
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w8, w9, w8
	str	w1, [x11, w8, sxtw #2]
	ldr	w8, [x2]
	add	w8, w8, #1
	str	w8, [x2]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PS_EVENTS,4,2              ; @MAX_PS_EVENTS
	.comm	_eventnames,8,3                 ; @eventnames
.subsections_via_symbols
