	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_AddEvent                     ## -- Begin function G_AddEvent
	.p2align	4, 0x90
_G_AddEvent:                            ## @G_AddEvent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	movq	16(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_3
## %bb.2:
	movq	_EV_EVENT_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	(%r9), %ecx
	andl	%r8d, %ecx
	movq	_EV_EVENT_BIT1@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
	andl	%r8d, %ecx
	orl	%esi, %ecx
	movl	%ecx, (%r9)
	movl	%edx, 4(%r9)
	movq	_level@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, 8(%r9)
	jmp	LBB0_4
LBB0_5:
	movl	12(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_G_Printf                       ## TAILCALL
LBB0_3:
	movq	_EV_EVENT_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	4(%rdi), %ecx
	andl	%r8d, %ecx
	movq	_EV_EVENT_BIT1@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
	andl	%r8d, %ecx
	orl	%esi, %ecx
	movl	%ecx, 4(%rdi)
	movl	%edx, 8(%rdi)
	movq	_level@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_4:
	movl	%ecx, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"G_AddEvent: zero event added for entity %i\n"

	.comm	_EV_EVENT_BITS,4,2              ## @EV_EVENT_BITS
	.comm	_EV_EVENT_BIT1,4,2              ## @EV_EVENT_BIT1
	.comm	_level,4,2                      ## @level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_AddEvent                     ; -- Begin function G_AddEvent
	.p2align	2
_G_AddEvent:                            ; @G_AddEvent
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_3
; %bb.1:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _EV_EVENT_BITS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EV_EVENT_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh3:
	adrp	x11, _EV_EVENT_BIT1@GOTPAGE
Lloh4:
	ldr	x11, [x11, _EV_EVENT_BIT1@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	add	w9, w9, w11
	and	w9, w9, w10
	orr	w9, w9, w1
	stp	w9, w2, [x8]
Lloh6:
	adrp	x9, _level@GOTPAGE
Lloh7:
	ldr	x9, [x9, _level@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x8, #8]
	str	w9, [x0]
	ret
LBB0_3:
	ldr	w1, [x0, #12]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	_G_Printf
LBB0_4:
	ldr	w8, [x0, #4]
Lloh11:
	adrp	x9, _EV_EVENT_BITS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EV_EVENT_BITS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh14:
	adrp	x10, _EV_EVENT_BIT1@GOTPAGE
Lloh15:
	ldr	x10, [x10, _EV_EVENT_BIT1@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	add	w8, w8, w10
	and	w8, w8, w9
	orr	w8, w8, w1
	stp	w8, w2, [x0, #4]
Lloh17:
	adrp	x8, _level@GOTPAGE
Lloh18:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x8]
	str	w9, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"G_AddEvent: zero event added for entity %i\n"

	.comm	_EV_EVENT_BITS,4,2              ; @EV_EVENT_BITS
	.comm	_EV_EVENT_BIT1,4,2              ; @EV_EVENT_BIT1
	.comm	_level,4,2                      ; @level
.subsections_via_symbols
