	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Team_CaptureFlagSound          ## -- Begin function Team_CaptureFlagSound
	.p2align	4, 0x90
_Team_CaptureFlagSound:                 ## @Team_CaptureFlagSound
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	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
	movl	%esi, %ebx
	movl	8(%rdi), %edi
	movq	_EV_GLOBAL_TEAM_SOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_G_TempEntity
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_2
## %bb.3:
	movq	_GTS_BLUE_CAPTURE@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str(%rip), %rdi
	jmp	_G_Printf                       ## TAILCALL
LBB0_2:
	movq	_GTS_RED_CAPTURE@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_SVF_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning:  NULL passed to Team_CaptureFlagSound\n"

	.comm	_EV_GLOBAL_TEAM_SOUND,4,2       ## @EV_GLOBAL_TEAM_SOUND
	.comm	_TEAM_BLUE,4,2                  ## @TEAM_BLUE
	.comm	_GTS_BLUE_CAPTURE,4,2           ## @GTS_BLUE_CAPTURE
	.comm	_GTS_RED_CAPTURE,4,2            ## @GTS_RED_CAPTURE
	.comm	_SVF_BROADCAST,4,2              ## @SVF_BROADCAST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Team_CaptureFlagSound          ; -- Begin function Team_CaptureFlagSound
	.p2align	2
_Team_CaptureFlagSound:                 ; @Team_CaptureFlagSound
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	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, x1
	ldr	w0, [x0, #8]
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, _TEAM_BLUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEAM_BLUE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GTS_BLUE_CAPTURE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GTS_BLUE_CAPTURE@GOTPAGEOFF]
Lloh8:
	adrp	x10, _GTS_RED_CAPTURE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _GTS_RED_CAPTURE@GOTPAGEOFF]
	cmp	w8, w19
	csel	x8, x9, x10, eq
Lloh10:
	adrp	x9, _SVF_BROADCAST@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SVF_BROADCAST@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	ldr	w10, [x0]
	orr	w9, w10, w9
	stp	w9, w8, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	_G_Printf
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning:  NULL passed to Team_CaptureFlagSound\n"

	.comm	_EV_GLOBAL_TEAM_SOUND,4,2       ; @EV_GLOBAL_TEAM_SOUND
	.comm	_TEAM_BLUE,4,2                  ; @TEAM_BLUE
	.comm	_GTS_BLUE_CAPTURE,4,2           ; @GTS_BLUE_CAPTURE
	.comm	_GTS_RED_CAPTURE,4,2            ; @GTS_RED_CAPTURE
	.comm	_SVF_BROADCAST,4,2              ; @SVF_BROADCAST
.subsections_via_symbols
