	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Team_TakeFlagSound             ## -- Begin function Team_TakeFlagSound
	.p2align	4, 0x90
_Team_TakeFlagSound:                    ## @Team_TakeFlagSound
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_16
## %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
	cmpl	$129, %esi
	je	LBB0_7
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_11
## %bb.3:
	movq	_teamgame@GOTPCREL(%rip), %rax
	movl	12(%rax), %ecx
	movq	_FLAG_ATBASE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_5
## %bb.4:
	movq	_level@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	jmp	LBB0_11
LBB0_16:
	leaq	L_.str(%rip), %rdi
	jmp	_G_Printf                       ## TAILCALL
LBB0_7:
	movq	_teamgame@GOTPCREL(%rip), %rax
	movl	4(%rax), %ecx
	movq	_FLAG_ATBASE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_9
## %bb.8:
	movq	_level@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_10
LBB0_5:
	movq	_level@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	-10000(%rcx), %edx
	cmpl	%edx, 8(%rax)
	jg	LBB0_15
## %bb.6:
	movl	%ecx, 8(%rax)
	jmp	LBB0_11
LBB0_9:
	movq	_level@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	-10000(%rcx), %edx
	cmpl	%edx, (%rax)
	jg	LBB0_15
LBB0_10:
	movl	%ecx, (%rax)
LBB0_11:
	movl	8(%rdi), %edi
	movq	_EV_GLOBAL_TEAM_SOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_G_TempEntity
	cmpl	$129, %ebx
	jne	LBB0_12
## %bb.13:
	movq	_GTS_RED_TAKEN@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_12:
	movq	_GTS_BLUE_TAKEN@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_SVF_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_15:
	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_TakeFlagSound\n"

	.comm	_teamgame,16,2                  ## @teamgame
	.comm	_FLAG_ATBASE,4,2                ## @FLAG_ATBASE
	.comm	_level,4,2                      ## @level
	.comm	_EV_GLOBAL_TEAM_SOUND,4,2       ## @EV_GLOBAL_TEAM_SOUND
	.comm	_GTS_RED_TAKEN,4,2              ## @GTS_RED_TAKEN
	.comm	_GTS_BLUE_TAKEN,4,2             ## @GTS_BLUE_TAKEN
	.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_TakeFlagSound             ; -- Begin function Team_TakeFlagSound
	.p2align	2
_Team_TakeFlagSound:                    ; @Team_TakeFlagSound
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_5
; %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
	.cfi_remember_state
	mov	x19, x1
	cmp	w1, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w19, #128
	b.ne	LBB0_12
; %bb.3:
Lloh0:
	adrp	x8, _teamgame@GOTPAGE
Lloh1:
	ldr	x8, [x8, _teamgame@GOTPAGEOFF]
	ldr	w9, [x8, #12]
Lloh2:
	adrp	x10, _FLAG_ATBASE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _FLAG_ATBASE@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.4:
Lloh5:
	adrp	x9, _level@GOTPAGE
Lloh6:
	ldr	x9, [x9, _level@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8, #8]
	b	LBB0_12
LBB0_5:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	_G_Printf
LBB0_6:
	.cfi_restore_state
Lloh10:
	adrp	x8, _teamgame@GOTPAGE
Lloh11:
	ldr	x8, [x8, _teamgame@GOTPAGEOFF]
	ldr	w9, [x8, #4]
Lloh12:
	adrp	x10, _FLAG_ATBASE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FLAG_ATBASE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_10
; %bb.7:
Lloh15:
	adrp	x9, _level@GOTPAGE
Lloh16:
	ldr	x9, [x9, _level@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	b	LBB0_11
LBB0_8:
	ldr	w10, [x8, #8]
Lloh18:
	adrp	x9, _level@GOTPAGE
Lloh19:
	ldr	x9, [x9, _level@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	mov	w11, #-10000
	add	w11, w9, w11
	cmp	w10, w11
	b.gt	LBB0_13
; %bb.9:
	str	w9, [x8, #8]
	b	LBB0_12
LBB0_10:
	ldr	w10, [x8]
Lloh21:
	adrp	x9, _level@GOTPAGE
Lloh22:
	ldr	x9, [x9, _level@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	mov	w11, #-10000
	add	w11, w9, w11
	cmp	w10, w11
	b.gt	LBB0_13
LBB0_11:
	str	w9, [x8]
LBB0_12:
	ldr	w0, [x0, #8]
Lloh24:
	adrp	x8, _EV_GLOBAL_TEAM_SOUND@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EV_GLOBAL_TEAM_SOUND@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_G_TempEntity
Lloh27:
	adrp	x8, _GTS_RED_TAKEN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GTS_RED_TAKEN@GOTPAGEOFF]
Lloh29:
	adrp	x9, _GTS_BLUE_TAKEN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _GTS_BLUE_TAKEN@GOTPAGEOFF]
	cmp	w19, #129
	csel	x8, x8, x9, eq
Lloh31:
	adrp	x9, _SVF_BROADCAST@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SVF_BROADCAST@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh33:
	ldr	w9, [x9]
	ldr	w10, [x0]
	orr	w9, w10, w9
	stp	w9, w8, [x0]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning:  NULL passed to Team_TakeFlagSound\n"

	.comm	_teamgame,16,2                  ; @teamgame
	.comm	_FLAG_ATBASE,4,2                ; @FLAG_ATBASE
	.comm	_level,4,2                      ; @level
	.comm	_EV_GLOBAL_TEAM_SOUND,4,2       ; @EV_GLOBAL_TEAM_SOUND
	.comm	_GTS_RED_TAKEN,4,2              ; @GTS_RED_TAKEN
	.comm	_GTS_BLUE_TAKEN,4,2             ; @GTS_BLUE_TAKEN
	.comm	_SVF_BROADCAST,4,2              ; @SVF_BROADCAST
.subsections_via_symbols
