	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ClientEndFrame                 ## -- Begin function ClientEndFrame
	.p2align	4, 0x90
_ClientEndFrame:                        ## @ClientEndFrame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	56(%rax), %rcx
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SpectatorClientEndFrame        ## TAILCALL
LBB0_1:
	movq	_MAX_POWERUPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.2:
	movq	16(%rax), %rax
	cmpl	$1, %r8d
	jne	LBB0_5
## %bb.3:
	xorl	%edx, %edx
LBB0_11:
	testb	$1, %r8b
	je	LBB0_14
## %bb.12:
	movq	(%rax,%rdx,8), %rcx
	movq	_level@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jge	LBB0_14
## %bb.13:
	movq	$0, (%rax,%rdx,8)
LBB0_14:
	movq	_level@GOTPCREL(%rip), %r14
	cmpq	$0, 8(%r14)
	je	LBB0_15
## %bb.22:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	movq	%rbx, %rdi
	callq	_P_WorldEffects
	movq	%rbx, %rdi
	callq	_P_DamageFeedback
	movq	(%r14), %rdx
	movq	8(%rbx), %rax
	movslq	8(%rax), %rcx
	subq	%rcx, %rdx
	movq	_EF_CONNECTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	$1001, %rdx                     ## imm = 0x3E9
	jl	LBB0_17
## %bb.16:
	orl	%ecx, 44(%rax)
	jmp	LBB0_18
LBB0_5:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	movq	_level@GOTPCREL(%rip), %rdi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rcx
	cmpq	(%rdi), %rcx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, (%rax,%rdx,8)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rax,%rdx,8), %rcx
	cmpq	(%rdi), %rcx
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, 8(%rax,%rdx,8)
	jmp	LBB0_10
LBB0_17:
	notl	%ecx
	andl	%ecx, 44(%rax)
LBB0_18:
	movq	(%rbx), %rcx
	movq	24(%rax), %rax
	movq	_STAT_HEALTH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	%rbx, %rdi
	callq	_G_SetClientSound
	movq	_g_smoothClients@GOTPCREL(%rip), %rcx
	movq	8(%rbx), %rax
	leaq	16(%rax), %rdi
	leaq	16(%rbx), %rsi
	cmpq	$0, (%rcx)
	je	LBB0_20
## %bb.19:
	movl	40(%rax), %edx
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_BG_PlayerStateToEntityStateExtraPolate
	jmp	LBB0_21
LBB0_20:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_BG_PlayerStateToEntityState
LBB0_21:
	movq	8(%rbx), %rdi
	addq	$16, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SendPendingPredictableEvents   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
	.comm	_MAX_POWERUPS,4,2               ## @MAX_POWERUPS
	.comm	_level,16,3                     ## @level
	.comm	_EF_CONNECTION,4,2              ## @EF_CONNECTION
	.comm	_STAT_HEALTH,8,3                ## @STAT_HEALTH
	.comm	_g_smoothClients,8,3            ## @g_smoothClients
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_PM_NORMAL,8,3                  ## @PM_NORMAL
	.comm	_PW_AMMOREGEN,8,3               ## @PW_AMMOREGEN
	.comm	_PW_DOUBLER,8,3                 ## @PW_DOUBLER
	.comm	_PW_GUARD,8,3                   ## @PW_GUARD
	.comm	_PW_INVULNERABILITY,8,3         ## @PW_INVULNERABILITY
	.comm	_PW_SCOUT,8,3                   ## @PW_SCOUT
	.comm	_STAT_PERSISTANT_POWERUP,8,3    ## @STAT_PERSISTANT_POWERUP
	.comm	_bg_itemlist,8,3                ## @bg_itemlist
	.comm	_g_synchronousClients,8,3       ## @g_synchronousClients
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ClientEndFrame                 ; -- Begin function ClientEndFrame
	.p2align	2
_ClientEndFrame:                        ; @ClientEndFrame
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x9, [x0, #8]
	ldr	x8, [x9, #56]
Lloh0:
	adrp	x10, _TEAM_SPECTATOR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SpectatorClientEndFrame
LBB0_2:
Lloh3:
	adrp	x8, _MAX_POWERUPS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_POWERUPS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x20, _level@GOTPAGE
Lloh7:
	ldr	x20, [x20, _level@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.3:
	ldr	x9, [x9, #16]
	cmp	w8, #8
	b.lo	LBB0_23
; %bb.4:
	add	x10, x9, x8, lsl #3
	add	x11, x20, #8
	cmp	x9, x11
	ccmp	x10, x20, #0, lo
	b.hi	LBB0_23
; %bb.5:
	and	x10, x8, #0xfffffff8
	ld1r.2d	{ v0 }, [x20]
	add	x11, x9, #32
	mov	x12, x10
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x11, x11, #64
	subs	x12, x12, #8
	b.eq	LBB0_28
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	q2, [x11, #-32]
	ldr	d1, [x20]
	cmgt.2d	v2, v0, v2
	xtn.2s	v2, v2
	fmov	w13, s2
	tbz	w13, #0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	stur	xzr, [x11, #-32]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov.s	w13, v2[1]
	tbz	w13, #0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	stur	xzr, [x11, #-24]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	q2, [x11, #-16]
	cmgt.2d	v2, v0, v2
	xtn.2s	v2, v2
	fmov	w13, s2
	tbz	w13, #0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	stur	xzr, [x11, #-16]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mov.s	w13, v2[1]
	tbz	w13, #0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	stur	xzr, [x11, #-8]
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	q2, [x11]
	cmgt.2d	v2, v0, v2
	xtn.2s	v2, v2
	fmov	w13, s2
	tbz	w13, #0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [x11]
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov.s	w13, v2[1]
	tbz	w13, #0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [x11, #8]
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	q2, [x11, #16]
	dup.2d	v1, v1[0]
	cmgt.2d	v1, v1, v2
	xtn.2s	v1, v1
	fmov	w13, s1
	tbz	w13, #0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [x11, #16]
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	mov.s	w13, v1[1]
	tbz	w13, #0, LBB0_6
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [x11, #24]
	b	LBB0_6
LBB0_23:
	mov	x10, #0
LBB0_24:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_29
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	x11, [x20]
	cmp	x10, x11
	b.ge	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	str	xzr, [x9]
	b	LBB0_25
LBB0_28:
	cmp	x10, x8
	b.ne	LBB0_24
LBB0_29:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_31
; %bb.30:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_31:
	mov	x0, x19
	bl	_P_WorldEffects
	mov	x0, x19
	bl	_P_DamageFeedback
	ldr	x9, [x20]
	ldr	x8, [x19, #8]
	ldrsw	x10, [x8, #8]
	sub	x10, x9, x10
Lloh8:
	adrp	x9, _EF_CONNECTION@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EF_CONNECTION@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	x10, #1001
	b.lt	LBB0_33
; %bb.32:
	ldr	w10, [x8, #44]
	orr	w9, w10, w9
	b	LBB0_34
LBB0_33:
	ldr	w10, [x8, #44]
	bic	w9, w10, w9
LBB0_34:
	str	w9, [x8, #44]
	ldr	x9, [x19]
	ldr	x8, [x8, #24]
Lloh11:
	adrp	x10, _STAT_HEALTH@GOTPAGE
Lloh12:
	ldr	x10, [x10, _STAT_HEALTH@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	str	x9, [x8, x10, lsl #3]
	mov	x0, x19
	bl	_G_SetClientSound
Lloh14:
	adrp	x8, _g_smoothClients@GOTPAGE
Lloh15:
	ldr	x8, [x8, _g_smoothClients@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x8]
	ldr	x8, [x19, #8]
	add	x0, x8, #16
	add	x1, x19, #16
	cbz	x9, LBB0_36
; %bb.35:
	ldr	w2, [x8, #40]
Lloh17:
	adrp	x8, _qtrue@GOTPAGE
Lloh18:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	bl	_BG_PlayerStateToEntityStateExtraPolate
	b	LBB0_37
LBB0_36:
Lloh20:
	adrp	x8, _qtrue@GOTPAGE
Lloh21:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_BG_PlayerStateToEntityState
LBB0_37:
	ldr	x8, [x19, #8]
	add	x0, x8, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SendPendingPredictableEvents
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
	.comm	_MAX_POWERUPS,4,2               ; @MAX_POWERUPS
	.comm	_level,16,3                     ; @level
	.comm	_EF_CONNECTION,4,2              ; @EF_CONNECTION
	.comm	_STAT_HEALTH,8,3                ; @STAT_HEALTH
	.comm	_g_smoothClients,8,3            ; @g_smoothClients
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_PM_NORMAL,8,3                  ; @PM_NORMAL
	.comm	_PW_AMMOREGEN,8,3               ; @PW_AMMOREGEN
	.comm	_PW_DOUBLER,8,3                 ; @PW_DOUBLER
	.comm	_PW_GUARD,8,3                   ; @PW_GUARD
	.comm	_PW_INVULNERABILITY,8,3         ; @PW_INVULNERABILITY
	.comm	_PW_SCOUT,8,3                   ; @PW_SCOUT
	.comm	_STAT_PERSISTANT_POWERUP,8,3    ; @STAT_PERSISTANT_POWERUP
	.comm	_bg_itemlist,8,3                ; @bg_itemlist
	.comm	_g_synchronousClients,8,3       ; @g_synchronousClients
.subsections_via_symbols
