	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SpectatorClientEndFrame        ## -- Begin function SpectatorClientEndFrame
	.p2align	4, 0x90
_SpectatorClientEndFrame:               ## @SpectatorClientEndFrame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	8(%rax), %rcx
	movq	_SPECTATOR_FOLLOW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movl	16(%rax), %edx
	cmpl	$-2, %edx
	je	LBB0_4
## %bb.2:
	movl	%edx, %edi
	cmpl	$-1, %edx
	jne	LBB0_5
## %bb.3:
	movq	_level@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
LBB0_5:
	testl	%edi, %edi
	jns	LBB0_6
	jmp	LBB0_11
LBB0_4:
	movq	_level@GOTPCREL(%rip), %rsi
	movl	4(%rsi), %edi
	testl	%edi, %edi
	js	LBB0_11
LBB0_6:
	movq	_level@GOTPCREL(%rip), %rsi
	movq	8(%rsi), %r8
	movl	%edi, %edi
	leaq	(%rdi,%rdi,4), %r9
	movq	32(%r8,%r9,8), %rsi
	movq	_CON_CONNECTED@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_9
## %bb.7:
	movq	24(%r8,%r9,8), %rsi
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_8
LBB0_9:
	testl	%edx, %edx
	js	LBB0_11
## %bb.10:
	movq	_SPECTATOR_FREE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	subq	%r8, %rax
	shrq	$3, %rax
	imull	$-858993459, %eax, %edi         ## imm = 0xCCCCCCCD
	callq	_ClientBegin
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
LBB0_11:
	movq	_SPECTATOR_SCOREBOARD@GOTPCREL(%rip), %rsi
	movq	_PMF_SCOREBOARD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	(%rsi), %rcx
	jne	LBB0_13
## %bb.12:
	orl	%edx, 4(%rax)
	jmp	LBB0_14
LBB0_13:
	notl	%edx
	andl	%edx, 4(%rax)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movl	(%r8,%r9,8), %ecx
	movq	_EF_VOTED@GOTPCREL(%rip), %rdx
	movq	_EF_TEAMVOTED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	movl	(%rax), %edx
	xorl	%ecx, %edx
	andl	%esi, %edx
	xorl	%ecx, %edx
	movq	(%r8,%r9,8), %rcx
	movq	%rcx, (%rax)
	movq	_PMF_FOLLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	orl	%eax, 4(%rcx)
	movl	%edx, (%rcx)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_SPECTATOR_FOLLOW,8,3           ## @SPECTATOR_FOLLOW
	.comm	_level,16,3                     ## @level
	.comm	_CON_CONNECTED,8,3              ## @CON_CONNECTED
	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
	.comm	_EF_VOTED,4,2                   ## @EF_VOTED
	.comm	_EF_TEAMVOTED,4,2               ## @EF_TEAMVOTED
	.comm	_PMF_FOLLOW,4,2                 ## @PMF_FOLLOW
	.comm	_SPECTATOR_FREE,8,3             ## @SPECTATOR_FREE
	.comm	_SPECTATOR_SCOREBOARD,8,3       ## @SPECTATOR_SCOREBOARD
	.comm	_PMF_SCOREBOARD,4,2             ## @PMF_SCOREBOARD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SpectatorClientEndFrame        ; -- Begin function SpectatorClientEndFrame
	.p2align	2
_SpectatorClientEndFrame:               ; @SpectatorClientEndFrame
	.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
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
Lloh0:
	adrp	x10, _SPECTATOR_FOLLOW@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SPECTATOR_FOLLOW@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w10, [x8, #16]
	cmn	w10, #2
	b.eq	LBB0_5
; %bb.2:
	mov	x12, x10
	cmn	w10, #1
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x11, _level@GOTPAGE
Lloh4:
	ldr	x11, [x11, _level@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x11]
LBB0_4:
	tbz	w12, #31, LBB0_6
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x11, _level@GOTPAGE
Lloh7:
	ldr	x11, [x11, _level@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x11, #4]
	tbnz	w12, #31, LBB0_10
LBB0_6:
Lloh9:
	adrp	x11, _level@GOTPAGE
Lloh10:
	ldr	x11, [x11, _level@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11, #8]
	mov	w13, #40
	umaddl	x13, w12, w13, x11
	ldr	x13, [x13, #32]
Lloh12:
	adrp	x14, _CON_CONNECTED@GOTPAGE
Lloh13:
	ldr	x14, [x14, _CON_CONNECTED@GOTPAGEOFF]
Lloh14:
	ldr	x14, [x14]
	cmp	x13, x14
	b.ne	LBB0_8
; %bb.7:
	mov	w12, w12
	mov	w13, #40
	madd	x13, x12, x13, x11
	ldr	x13, [x13, #24]
Lloh15:
	adrp	x14, _TEAM_SPECTATOR@GOTPAGE
Lloh16:
	ldr	x14, [x14, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh17:
	ldr	x14, [x14]
	cmp	x13, x14
	b.ne	LBB0_15
LBB0_8:
	tbnz	w10, #31, LBB0_10
; %bb.9:
Lloh18:
	adrp	x9, _SPECTATOR_FREE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SPECTATOR_FREE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	str	x9, [x8, #8]
	sub	x8, x8, x11
	lsr	x8, x8, #3
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	mul	w0, w8, w9
	bl	_ClientBegin
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
LBB0_10:
Lloh21:
	adrp	x10, _SPECTATOR_SCOREBOARD@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SPECTATOR_SCOREBOARD@GOTPAGEOFF]
Lloh23:
	ldr	x11, [x10]
Lloh24:
	adrp	x10, _PMF_SCOREBOARD@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PMF_SCOREBOARD@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	cmp	x9, x11
	b.ne	LBB0_12
; %bb.11:
	ldr	w9, [x8, #4]
	orr	w9, w9, w10
	b	LBB0_13
LBB0_12:
	ldr	w9, [x8, #4]
	bic	w9, w9, w10
LBB0_13:
	str	w9, [x8, #4]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w9, #40
	mul	x9, x12, x9
	ldr	w10, [x11, x9]
Lloh27:
	adrp	x12, _EF_VOTED@GOTPAGE
Lloh28:
	ldr	x12, [x12, _EF_VOTED@GOTPAGEOFF]
Lloh29:
	adrp	x13, _EF_TEAMVOTED@GOTPAGE
Lloh30:
	ldr	x13, [x13, _EF_TEAMVOTED@GOTPAGEOFF]
Lloh31:
	ldr	w12, [x12]
Lloh32:
	ldr	w13, [x13]
	orr	w12, w13, w12
	bic	w10, w10, w12
	ldr	w13, [x8]
	and	w12, w13, w12
	orr	w10, w10, w12
	ldr	x9, [x11, x9]
	str	x9, [x8]
Lloh33:
	adrp	x8, _PMF_FOLLOW@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PMF_FOLLOW@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w11, [x9, #4]
	orr	w8, w11, w8
	stp	w10, w8, [x9]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SPECTATOR_FOLLOW,8,3           ; @SPECTATOR_FOLLOW
	.comm	_level,16,3                     ; @level
	.comm	_CON_CONNECTED,8,3              ; @CON_CONNECTED
	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
	.comm	_EF_VOTED,4,2                   ; @EF_VOTED
	.comm	_EF_TEAMVOTED,4,2               ; @EF_TEAMVOTED
	.comm	_PMF_FOLLOW,4,2                 ; @PMF_FOLLOW
	.comm	_SPECTATOR_FREE,8,3             ; @SPECTATOR_FREE
	.comm	_SPECTATOR_SCOREBOARD,8,3       ; @SPECTATOR_SCOREBOARD
	.comm	_PMF_SCOREBOARD,4,2             ; @PMF_SCOREBOARD
.subsections_via_symbols
