	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_D_ProcessEvents                ## -- Begin function D_ProcessEvents
	.p2align	4, 0x90
_D_ProcessEvents:                       ## @D_ProcessEvents
	.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	_gamemode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_commercial@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_W_CheckNumForName
	testq	%rax, %rax
	js	LBB0_7
LBB0_2:
	movq	_eventtail@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_eventhead@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_3
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_events@GOTPCREL(%rip), %r12
	movq	_MAXEVENTS@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %ecx
	incl	%ecx
	movl	(%r13), %eax
	decl	%eax
	andl	%ecx, %eax
	movl	%eax, (%r14)
	cmpl	(%r15), %eax
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rbx
	shlq	$2, %rbx
	addq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_M_Responder
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_G_Responder
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_gamemode,8,3                   ## @gamemode
	.comm	_commercial,8,3                 ## @commercial
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"map01"

	.comm	_eventtail,4,2                  ## @eventtail
	.comm	_eventhead,4,2                  ## @eventhead
	.comm	_events,8,3                     ## @events
	.comm	_MAXEVENTS,4,2                  ## @MAXEVENTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_D_ProcessEvents                ; -- Begin function D_ProcessEvents
	.p2align	2
_D_ProcessEvents:                       ; @D_ProcessEvents
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _gamemode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gamemode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _commercial@GOTPAGE
Lloh4:
	ldr	x9, [x9, _commercial@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_W_CheckNumForName
	tbnz	x0, #63, LBB0_3
LBB0_2:
Lloh8:
	adrp	x20, _eventtail@GOTPAGE
Lloh9:
	ldr	x20, [x20, _eventtail@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh10:
	adrp	x21, _eventhead@GOTPAGE
Lloh11:
	ldr	x21, [x21, _eventhead@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh12:
	adrp	x22, _events@GOTPAGE
Lloh13:
	ldr	x22, [x22, _events@GOTPAGEOFF]
Lloh14:
	adrp	x23, _MAXEVENTS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _MAXEVENTS@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	add	w8, w8, #1
	ldr	w9, [x23]
	sub	w9, w9, #1
	and	w8, w9, w8
	str	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9
	b.eq	LBB0_3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	add	x19, x9, w8, sxtw #2
	mov	x0, x19
	bl	_M_Responder
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_G_Responder
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_gamemode,8,3                   ; @gamemode
	.comm	_commercial,8,3                 ; @commercial
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"map01"

	.comm	_eventtail,4,2                  ; @eventtail
	.comm	_eventhead,4,2                  ; @eventhead
	.comm	_events,8,3                     ; @events
	.comm	_MAXEVENTS,4,2                  ; @MAXEVENTS
.subsections_via_symbols
