	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_GetEvent                   ## -- Begin function Com_GetEvent
	.p2align	4, 0x90
_Com_GetEvent:                          ## @Com_GetEvent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_com_pushedEventsHead@GOTPCREL(%rip), %rdx
	movq	_com_pushedEventsTail@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rax
	cmpl	%eax, (%rdx)
	jle	LBB0_2
## %bb.1:
	leal	1(%rax), %edx
	movl	%edx, (%rcx)
	movq	_com_pushedEvents@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_MAX_PUSHED_EVENTS@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	decq	%rdx
	andq	%rax, %rdx
	movl	(%rcx,%rdx,4), %eax
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_Com_GetRealEvent               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_com_pushedEventsHead,4,2       ## @com_pushedEventsHead
	.comm	_com_pushedEventsTail,4,2       ## @com_pushedEventsTail
	.comm	_com_pushedEvents,8,3           ## @com_pushedEvents
	.comm	_MAX_PUSHED_EVENTS,4,2          ## @MAX_PUSHED_EVENTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_GetEvent                   ; -- Begin function Com_GetEvent
	.p2align	2
_Com_GetEvent:                          ; @Com_GetEvent
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _com_pushedEventsHead@GOTPAGE
Lloh1:
	ldr	x8, [x8, _com_pushedEventsHead@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x9, _com_pushedEventsTail@GOTPAGE
Lloh4:
	ldr	x9, [x9, _com_pushedEventsTail@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w10, w8
	b.le	LBB0_2
; %bb.1:
	add	w10, w8, #1
	str	w10, [x9]
Lloh5:
	adrp	x9, _com_pushedEvents@GOTPAGE
Lloh6:
	ldr	x9, [x9, _com_pushedEvents@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _MAX_PUSHED_EVENTS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MAX_PUSHED_EVENTS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	sub	w10, w10, #1
	and	w8, w10, w8
	ldr	w0, [x9, w8, sxtw #2]
	ret
LBB0_2:
	b	_Com_GetRealEvent
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_com_pushedEventsHead,4,2       ; @com_pushedEventsHead
	.comm	_com_pushedEventsTail,4,2       ; @com_pushedEventsTail
	.comm	_com_pushedEvents,8,3           ; @com_pushedEvents
	.comm	_MAX_PUSHED_EVENTS,4,2          ; @MAX_PUSHED_EVENTS
.subsections_via_symbols
