	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddTeamScore                   ## -- Begin function AddTeamScore
	.p2align	4, 0x90
_AddTeamScore:                          ## @AddTeamScore
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	_EV_GLOBAL_TEAM_SOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_G_TempEntity
	movq	_SVF_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rax)
	movq	_TEAM_RED@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdi
	movq	_level@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %r8
	cmpl	%ebx, %edi
	jne	LBB0_3
## %bb.1:
	movq	(%rcx,%r8,8), %rbx
	movslq	%r14d, %rsi
	leaq	(%rbx,%rsi), %rdi
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rdx
	cmpq	%rdx, %rdi
	je	LBB0_2
## %bb.5:
	movq	_GTS_REDTEAM_SCORED@GOTPCREL(%rip), %rdi
	movq	%rdi, %r9
	jle	LBB0_7
## %bb.6:
	movq	_GTS_REDTEAM_TOOK_LEAD@GOTPCREL(%rip), %r9
LBB0_7:
	cmpq	%rdx, %rbx
	jmp	LBB0_11
LBB0_3:
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %r10
	movslq	%r14d, %rsi
	leaq	(%r10,%rsi), %rbx
	movq	(%rcx,%rdi,8), %rdx
	cmpq	%rdx, %rbx
	jne	LBB0_8
LBB0_2:
	movq	_GTS_TEAMS_ARE_TIED@GOTPCREL(%rip), %rdi
	jmp	LBB0_12
LBB0_8:
	movq	_GTS_BLUETEAM_SCORED@GOTPCREL(%rip), %rdi
	movq	%rdi, %r9
	jle	LBB0_10
## %bb.9:
	movq	_GTS_BLUETEAM_TOOK_LEAD@GOTPCREL(%rip), %r9
LBB0_10:
	cmpq	%rdx, %r10
LBB0_11:
	cmovleq	%r9, %rdi
LBB0_12:
	movq	(%rdi), %rdx
	movq	%rdx, (%rax)
	addq	%rsi, (%rcx,%r8,8)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_GLOBAL_TEAM_SOUND,4,2       ## @EV_GLOBAL_TEAM_SOUND
	.comm	_SVF_BROADCAST,4,2              ## @SVF_BROADCAST
	.comm	_TEAM_RED,4,2                   ## @TEAM_RED
	.comm	_level,8,3                      ## @level
	.comm	_TEAM_BLUE,8,3                  ## @TEAM_BLUE
	.comm	_GTS_TEAMS_ARE_TIED,8,3         ## @GTS_TEAMS_ARE_TIED
	.comm	_GTS_REDTEAM_TOOK_LEAD,8,3      ## @GTS_REDTEAM_TOOK_LEAD
	.comm	_GTS_REDTEAM_SCORED,8,3         ## @GTS_REDTEAM_SCORED
	.comm	_GTS_BLUETEAM_TOOK_LEAD,8,3     ## @GTS_BLUETEAM_TOOK_LEAD
	.comm	_GTS_BLUETEAM_SCORED,8,3        ## @GTS_BLUETEAM_SCORED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddTeamScore                   ; -- Begin function AddTeamScore
	.p2align	2
_AddTeamScore:                          ; @AddTeamScore
	.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	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _EV_GLOBAL_TEAM_SOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_GLOBAL_TEAM_SOUND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_G_TempEntity
Lloh3:
	adrp	x8, _SVF_BROADCAST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVF_BROADCAST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x0, #8]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _TEAM_RED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TEAM_RED@GOTPAGEOFF]
	str	w8, [x0, #8]
Lloh8:
	ldrsw	x10, [x9]
Lloh9:
	adrp	x8, _level@GOTPAGE
Lloh10:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	w10, w19
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x8, w19, sxtw #3]
	sxtw	x9, w20
Lloh12:
	adrp	x11, _TEAM_BLUE@GOTPAGE
Lloh13:
	ldr	x11, [x11, _TEAM_BLUE@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	ldr	x11, [x8, x11, lsl #3]
Lloh15:
	adrp	x12, _GTS_TEAMS_ARE_TIED@GOTPAGE
Lloh16:
	ldr	x12, [x12, _GTS_TEAMS_ARE_TIED@GOTPAGEOFF]
	add	x13, x10, x9
	cmp	x13, x11
Lloh17:
	adrp	x14, _GTS_REDTEAM_SCORED@GOTPAGE
Lloh18:
	ldr	x14, [x14, _GTS_REDTEAM_SCORED@GOTPAGEOFF]
	ccmp	x10, x11, #0, gt
Lloh19:
	adrp	x10, _GTS_REDTEAM_TOOK_LEAD@GOTPAGE
Lloh20:
	ldr	x10, [x10, _GTS_REDTEAM_TOOK_LEAD@GOTPAGEOFF]
	csel	x10, x10, x14, le
	cmp	x13, x11
	csel	x10, x12, x10, eq
	b	LBB0_3
LBB0_2:
Lloh21:
	adrp	x9, _TEAM_BLUE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TEAM_BLUE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	x11, [x8, x9, lsl #3]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x9, w20
	ldr	x10, [x8, x10, lsl #3]
Lloh24:
	adrp	x12, _GTS_TEAMS_ARE_TIED@GOTPAGE
Lloh25:
	ldr	x12, [x12, _GTS_TEAMS_ARE_TIED@GOTPAGEOFF]
	add	x13, x11, x9
	cmp	x13, x10
Lloh26:
	adrp	x14, _GTS_BLUETEAM_SCORED@GOTPAGE
Lloh27:
	ldr	x14, [x14, _GTS_BLUETEAM_SCORED@GOTPAGEOFF]
	ccmp	x11, x10, #0, gt
Lloh28:
	adrp	x11, _GTS_BLUETEAM_TOOK_LEAD@GOTPAGE
Lloh29:
	ldr	x11, [x11, _GTS_BLUETEAM_TOOK_LEAD@GOTPAGEOFF]
	csel	x11, x11, x14, le
	cmp	x13, x10
	csel	x10, x12, x11, eq
LBB0_3:
	ldr	x10, [x10]
	str	x10, [x0]
	sbfiz	x10, x19, #3, #32
	ldr	x11, [x8, x10]
	add	x9, x11, x9
	str	x9, [x8, x10]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_GLOBAL_TEAM_SOUND,4,2       ; @EV_GLOBAL_TEAM_SOUND
	.comm	_SVF_BROADCAST,4,2              ; @SVF_BROADCAST
	.comm	_TEAM_RED,4,2                   ; @TEAM_RED
	.comm	_level,8,3                      ; @level
	.comm	_TEAM_BLUE,8,3                  ; @TEAM_BLUE
	.comm	_GTS_TEAMS_ARE_TIED,8,3         ; @GTS_TEAMS_ARE_TIED
	.comm	_GTS_REDTEAM_TOOK_LEAD,8,3      ; @GTS_REDTEAM_TOOK_LEAD
	.comm	_GTS_REDTEAM_SCORED,8,3         ; @GTS_REDTEAM_SCORED
	.comm	_GTS_BLUETEAM_TOOK_LEAD,8,3     ; @GTS_BLUETEAM_TOOK_LEAD
	.comm	_GTS_BLUETEAM_SCORED,8,3        ; @GTS_BLUETEAM_SCORED
.subsections_via_symbols
