	.file	"extr_g_utils.c_G_AddEvent.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"G_AddEvent: zero event added for entity %i\n"
	.text
	.p2align 4
	.globl	G_AddEvent
	.type	G_AddEvent, @function
G_AddEvent:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	je	.L6
	mov	r8, QWORD PTR 16[rdi]
	mov	r10d, DWORD PTR level[rip]
	mov	r9d, DWORD PTR EV_EVENT_BITS[rip]
	mov	r11d, DWORD PTR EV_EVENT_BIT1[rip]
	test	r8, r8
	je	.L3
	mov	ecx, DWORD PTR [r8]
	mov	DWORD PTR 4[r8], edx
	mov	DWORD PTR 8[r8], r10d
	and	ecx, r9d
	lea	eax, [rcx+r11]
	and	eax, r9d
	or	esi, eax
	mov	DWORD PTR [r8], esi
	mov	DWORD PTR [rdi], r10d
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 4[rdi]
	mov	DWORD PTR 8[rdi], edx
	mov	DWORD PTR [rdi], r10d
	and	eax, r9d
	add	eax, r11d
	and	eax, r9d
	or	esi, eax
	mov	DWORD PTR 4[rdi], esi
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR 12[rdi]
	lea	rdi, .LC0[rip]
	jmp	G_Printf@PLT
	.cfi_endproc
.LFE0:
	.size	G_AddEvent, .-G_AddEvent
	.comm	level,4,4
	.comm	EV_EVENT_BITS,4,4
	.comm	EV_EVENT_BIT1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_g_utils.c_G_AddEvent.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"G_AddEvent: zero event added for entity %i\012\000"
	.text
	.align	2
	.global	G_AddEvent
	.syntax unified
	.arm
	.fpu softvfp
	.type	G_AddEvent, %function
G_AddEvent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	ip, r1, #0
	beq	.L8
	ldr	r3, [r0, #16]
	push	{r4, r5, lr}
	ldr	r1, .L9
	ldr	r4, .L9+4
	ldr	lr, .L9+8
	cmp	r3, #0
	ldr	r4, [r4]
	ldr	lr, [lr]
	ldr	r5, [r1]
	beq	.L3
	ldr	r1, [r3]
	str	r2, [r3, #4]
	and	r1, r1, lr
	add	r1, r1, r5
	and	r1, r1, lr
	orr	r1, r1, ip
	str	r4, [r3, #8]
	str	r1, [r3]
	str	r4, [r0]
	pop	{r4, r5, pc}
.L3:
	ldr	r1, [r0, #4]
	str	r2, [r0, #8]
	and	r1, r1, lr
	add	r1, r1, r5
	and	r1, r1, lr
	orr	r1, r1, ip
	str	r1, [r0, #4]
	str	r4, [r0]
	pop	{r4, r5, pc}
.L8:
	ldr	r1, [r0, #12]
	ldr	r0, .L9+12
	b	G_Printf
.L10:
	.align	2
.L9:
	.word	EV_EVENT_BIT1
	.word	level
	.word	EV_EVENT_BITS
	.word	.LC0
	.size	G_AddEvent, .-G_AddEvent
	.comm	level,4,4
	.comm	EV_EVENT_BITS,4,4
	.comm	EV_EVENT_BIT1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
