	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ClientEvents                   ## -- Begin function ClientEvents
	.p2align	4, 0x90
_ClientEvents:                          ## @ClientEvents
	.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	8(%rdi), %r12
	movl	8(%r12), %ecx
	movq	_MAX_PS_EVENTS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%ecx, %ebx
	subl	%eax, %ebx
	cmpl	%esi, %ebx
	cmovlel	%esi, %ebx
	cmpl	%ecx, %ebx
	jge	LBB0_20
## %bb.1:
	movq	%rdi, %r14
	leaq	LJTI0_0(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	decl	%eax
	andl	%ebx, %eax
	cltq
	movl	(%rcx,%rax,4), %eax
	leal	-131(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r13,%rcx,4), %rcx
	addq	%r13, %rcx
	jmpq	*%rcx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	28(%r14), %ecx
	movq	_ET_PLAYER@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DF_NO_FALLING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_g_dmflags@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	cmpl	$135, %eax
	sete	%cl
	leal	(%rcx,%rcx,4), %r9d
	addl	$5, %r9d
	movq	_level@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$200, %ecx
	addl	%ecx, %eax
	movl	%eax, 24(%r14)
	movq	_MOD_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	$0
	callq	_G_Damage
	addq	$16, %rsp
	jmp	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movq	40(%rax), %rax
	movq	_STAT_MAX_HEALTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	addl	$25, %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_18
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rcx
	movq	24(%rcx), %rax
	movq	_PW_REDFLAG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	cmpl	$0, (%rax,%rdi,4)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PW_BLUEFLAG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	cmpl	$0, (%rax,%rdi,4)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_PW_NEUTRALFLAG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	cmpl	$0, (%rax,%rdi,4)
	je	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_BG_FindItemForPowerup
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r15), %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_Drop_Item
	movq	8(%r14), %rcx
	movq	24(%rcx), %rdx
	movl	(%rdx,%r15,4), %edi
	movq	_level@GOTPCREL(%rip), %rsi
	subl	(%rsi), %edi
	movl	$1, %esi
	cmpl	$1000, %edi                     ## imm = 0x3E8
	jl	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%edi, %rsi
	imulq	$274877907, %rsi, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$38, %rsi
	addl	%edi, %esi
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, (%rax)
	movl	$0, (%rdx,%r15,4)
	jmp	LBB0_16
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_FireWeapon
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rcx
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	48(%rcx), %edi
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_SelectSpawnPoint
	movq	%r14, %rdi
	callq	_TeleportPlayer
	movq	_MAX_PS_EVENTS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	8(%r12), %ebx
	jge	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	jmp	LBB0_2
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_MAX_PS_EVENTS,4,2              ## @MAX_PS_EVENTS
	.comm	_ET_PLAYER,4,2                  ## @ET_PLAYER
	.comm	_g_dmflags,4,2                  ## @g_dmflags
	.comm	_DF_NO_FALLING,4,2              ## @DF_NO_FALLING
	.comm	_level,4,2                      ## @level
	.comm	_MOD_FALLING,4,2                ## @MOD_FALLING
	.comm	_PW_REDFLAG,8,3                 ## @PW_REDFLAG
	.comm	_PW_BLUEFLAG,8,3                ## @PW_BLUEFLAG
	.comm	_PW_NEUTRALFLAG,8,3             ## @PW_NEUTRALFLAG
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_STAT_MAX_HEALTH,8,3            ## @STAT_MAX_HEALTH
	.comm	_GT_HARVESTER,4,2               ## @GT_HARVESTER
	.comm	_TEAM_BLUE,4,2                  ## @TEAM_BLUE
	.comm	_TEAM_RED,4,2                   ## @TEAM_RED
	.comm	_g_gametype,4,2                 ## @g_gametype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ClientEvents                   ; -- Begin function ClientEvents
	.p2align	2
_ClientEvents:                          ; @ClientEvents
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x21, _MAX_PS_EVENTS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAX_PS_EVENTS@GOTPAGEOFF]
	ldr	w9, [x20, #8]
	ldr	w8, [x21]
	sub	w10, w9, w8
	cmp	w10, w1
	csel	w22, w10, w1, gt
	cmp	w22, w9
	b.ge	LBB0_21
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x23, lJTI0_0@PAGE
Lloh3:
	add	x23, x23, lJTI0_0@PAGEOFF
Lloh4:
	adrp	x28, _PW_REDFLAG@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PW_REDFLAG@GOTPAGEOFF]
Lloh6:
	adrp	x25, _PW_BLUEFLAG@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PW_BLUEFLAG@GOTPAGEOFF]
Lloh8:
	adrp	x26, _ET_PLAYER@GOTPAGE
Lloh9:
	ldr	x26, [x26, _ET_PLAYER@GOTPAGEOFF]
Lloh10:
	adrp	x27, _g_dmflags@GOTPAGE
Lloh11:
	ldr	x27, [x27, _g_dmflags@GOTPAGEOFF]
Lloh12:
	adrp	x24, _DF_NO_FALLING@GOTPAGE
Lloh13:
	ldr	x24, [x24, _DF_NO_FALLING@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	sub	w8, w8, #1
	and	w8, w8, w22
	ldr	w8, [x9, w8, sxtw #2]
	sub	w9, w8, #131
	cmp	w9, #4
	b.hi	LBB0_19
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x10, LBB0_4
	ldrb	w11, [x23, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x19, #28]
	ldr	w10, [x26]
	cmp	w9, w10
	b.ne	LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x27]
	ldr	w10, [x24]
	tst	w10, w9
	b.ne	LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #135
	mov	w8, #5
	mov	w9, #10
	csel	w5, w9, w8, eq
Lloh14:
	adrp	x8, _level@GOTPAGE
Lloh15:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	w8, w8, #200
	str	w8, [x19, #24]
Lloh17:
	adrp	x8, _MOD_FALLING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MOD_FALLING@GOTPAGEOFF]
Lloh19:
	ldr	w7, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	w6, #0
	bl	_G_Damage
	b	LBB0_19
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #40]
Lloh20:
	adrp	x9, _STAT_MAX_HEALTH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _STAT_MAX_HEALTH@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	add	w8, w8, #25
	str	w8, [x19, #16]
	b	LBB0_19
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #24]
	ldr	x0, [x28]
	ldr	w10, [x9, x0, lsl #2]
	cbz	w10, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x28
	bl	_BG_FindItemForPowerup
	cbnz	x0, LBB0_13
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_FireWeapon
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x25]
	ldr	w10, [x9, x0, lsl #2]
	cbz	w10, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_BG_FindItemForPowerup
	cbz	x0, LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x0
	ldr	x25, [x25]
	mov	x0, x19
	mov	w2, #0
	bl	_Drop_Item
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #24]
	sbfiz	x10, x25, #2, #32
	ldr	w11, [x9, x10]
Lloh23:
	adrp	x12, _level@GOTPAGE
Lloh24:
	ldr	x12, [x12, _level@GOTPAGEOFF]
Lloh25:
	ldr	w12, [x12]
	sub	w11, w11, w12
	mov	w12, #19923
	movk	w12, #4194, lsl #16
	smull	x12, w11, w12
	lsr	x13, x12, #32
	lsr	x12, x12, #63
	add	w12, w12, w13, asr #6
	cmp	w11, #1000
	csinc	w11, w12, wzr, ge
	str	w11, [x0]
	str	wzr, [x9, x10]
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh26:
	adrp	x10, _PW_NEUTRALFLAG@GOTPAGE
Lloh27:
	ldr	x10, [x10, _PW_NEUTRALFLAG@GOTPAGEOFF]
	ldr	x0, [x10]
	ldr	w9, [x9, x0, lsl #2]
	cbz	w9, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x10
	bl	_BG_FindItemForPowerup
	cbnz	x0, LBB0_13
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh28:
	adrp	x25, _PW_BLUEFLAG@GOTPAGE
Lloh29:
	ldr	x25, [x25, _PW_BLUEFLAG@GOTPAGEOFF]
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x8, #48]
Lloh30:
	adrp	x8, _qfalse@GOTPAGE
Lloh31:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	bl	_SelectSpawnPoint
	mov	x0, x19
	bl	_TeleportPlayer
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	ldr	w8, [x20, #8]
	cmp	w22, w8
	b.ge	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	b	LBB0_2
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.comm	_MAX_PS_EVENTS,4,2              ; @MAX_PS_EVENTS
	.comm	_ET_PLAYER,4,2                  ; @ET_PLAYER
	.comm	_g_dmflags,4,2                  ; @g_dmflags
	.comm	_DF_NO_FALLING,4,2              ; @DF_NO_FALLING
	.comm	_level,4,2                      ; @level
	.comm	_MOD_FALLING,4,2                ; @MOD_FALLING
	.comm	_PW_REDFLAG,8,3                 ; @PW_REDFLAG
	.comm	_PW_BLUEFLAG,8,3                ; @PW_BLUEFLAG
	.comm	_PW_NEUTRALFLAG,8,3             ; @PW_NEUTRALFLAG
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_STAT_MAX_HEALTH,8,3            ; @STAT_MAX_HEALTH
	.comm	_GT_HARVESTER,4,2               ; @GT_HARVESTER
	.comm	_TEAM_BLUE,4,2                  ; @TEAM_BLUE
	.comm	_TEAM_RED,4,2                   ; @TEAM_RED
	.comm	_g_gametype,4,2                 ; @g_gametype
.subsections_via_symbols
