	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cmd_TeamVote_f                 ## -- Begin function Cmd_TeamVote_f
	.p2align	4, 0x90
_Cmd_TeamVote_f:                        ## @Cmd_TeamVote_f
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rcx
	movl	4(%rcx), %eax
	movq	_TEAM_RED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rdx
	movl	$1, %r14d
	cmpl	(%rdx), %eax
	jne	LBB0_20
LBB0_3:
	movq	_level@GOTPCREL(%rip), %r15
	movq	16(%r15), %rdx
	cmpl	$0, (%rdx,%r14,4)
	je	LBB0_4
## %bb.8:
	movq	_EF_TEAMVOTED@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	testl	%edx, (%rcx)
	je	LBB0_11
## %bb.9:
	movq	_g_entities@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_22
## %bb.10:
	shlq	$3, %rax
	subq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	_g_entities@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_22
## %bb.5:
	shlq	$3, %rax
	subq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movq	%rbx, %rdi
LBB0_7:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_SendServerCommand         ## TAILCALL
LBB0_11:
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rcx
	movq	_g_entities@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	shlq	$3, %rdx
	movq	%rbx, %rdi
	subq	%rdx, %rdi
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_22
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	callq	_trap_SendServerCommand
	movl	(%r12), %eax
	movq	(%rbx), %rcx
	orl	%eax, (%rcx)
	leaq	-112(%rbp), %rsi
	movl	$1, %edi
	movl	$64, %edx
	callq	_trap_Argv
	cmpb	$121, -112(%rbp)
	je	LBB0_17
## %bb.15:
	movb	-111(%rbp), %al
	cmpb	$89, %al
	je	LBB0_17
## %bb.16:
	cmpb	$49, %al
	je	LBB0_17
## %bb.18:
	movq	(%r15), %rax
	movl	(%rax,%r14,4), %esi
	incl	%esi
	movl	%esi, (%rax,%r14,4)
	movq	_CS_TEAMVOTE_NO@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	8(%r15), %rax
	movl	(%rax,%r14,4), %esi
	incl	%esi
	movl	%esi, (%rax,%r14,4)
	movq	_CS_TEAMVOTE_YES@GOTPCREL(%rip), %rax
LBB0_19:
	addq	(%rax), %r14
	leaq	L_.str.4(%rip), %rdi
	callq	_va
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_trap_SetConfigstring
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TEAM_RED,4,2                   ## @TEAM_RED
	.comm	_TEAM_BLUE,4,2                  ## @TEAM_BLUE
	.comm	_level,24,3                     ## @level
	.comm	_g_entities,4,2                 ## @g_entities
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"print \"No team vote in progress.\n\""

	.comm	_EF_TEAMVOTED,4,2               ## @EF_TEAMVOTED
L_.str.1:                               ## @.str.1
	.asciz	"print \"Team vote already cast.\n\""

	.comm	_TEAM_SPECTATOR,4,2             ## @TEAM_SPECTATOR
L_.str.2:                               ## @.str.2
	.asciz	"print \"Not allowed to vote as spectator.\n\""

L_.str.3:                               ## @.str.3
	.asciz	"print \"Team vote cast.\n\""

	.comm	_CS_TEAMVOTE_YES,8,3            ## @CS_TEAMVOTE_YES
L_.str.4:                               ## @.str.4
	.asciz	"%i"

	.comm	_CS_TEAMVOTE_NO,8,3             ## @CS_TEAMVOTE_NO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cmd_TeamVote_f                 ; -- Begin function Cmd_TeamVote_f
	.p2align	2
_Cmd_TeamVote_f:                        ; @Cmd_TeamVote_f
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x9, [x0]
	ldr	w8, [x9, #4]
Lloh3:
	adrp	x10, _TEAM_RED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TEAM_RED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x10, _TEAM_BLUE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TEAM_BLUE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_20
; %bb.3:
	mov	w20, #1
LBB0_4:
Lloh9:
	adrp	x21, _level@GOTPAGE
Lloh10:
	ldr	x21, [x21, _level@GOTPAGEOFF]
	ldr	x10, [x21, #16]
	ldr	w10, [x10, x20, lsl #2]
	cbz	w10, LBB0_8
; %bb.5:
	ldr	w9, [x9]
Lloh11:
	adrp	x22, _EF_TEAMVOTED@GOTPAGE
Lloh12:
	ldr	x22, [x22, _EF_TEAMVOTED@GOTPAGEOFF]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.6:
Lloh13:
	adrp	x8, _g_entities@GOTPAGE
Lloh14:
	ldr	x8, [x8, _g_entities@GOTPAGEOFF]
Lloh15:
	ldrsw	x8, [x8]
	ldur	x9, [x29, #-40]
Lloh16:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_22
; %bb.7:
	sub	x0, x19, x8, lsl #3
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh21:
	adrp	x8, _g_entities@GOTPAGE
Lloh22:
	ldr	x8, [x8, _g_entities@GOTPAGEOFF]
Lloh23:
	ldrsw	x8, [x8]
	ldur	x9, [x29, #-40]
Lloh24:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_22
; %bb.9:
	sub	x0, x19, x8, lsl #3
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_10:
Lloh29:
	adrp	x9, _TEAM_SPECTATOR@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _g_entities@GOTPAGE
Lloh33:
	ldr	x10, [x10, _g_entities@GOTPAGEOFF]
Lloh34:
	ldrsw	x10, [x10]
	sub	x0, x19, x10, lsl #3
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.11:
	ldur	x8, [x29, #-40]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.12:
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_trap_SendServerCommand
LBB0_14:
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_trap_SendServerCommand
	ldr	w8, [x22]
	ldr	x9, [x19]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	add	x1, sp, #8
	mov	w0, #1
	mov	w2, #64
	bl	_trap_Argv
	ldrb	w8, [sp, #8]
	cmp	w8, #121
	b.eq	LBB0_18
; %bb.15:
	ldrb	w8, [sp, #9]
	cmp	w8, #89
	b.eq	LBB0_18
; %bb.16:
	cmp	w8, #49
	b.eq	LBB0_18
; %bb.17:
	ldr	x8, [x21]
	lsl	x9, x20, #2
	ldr	w10, [x8, x9]
	add	w1, w10, #1
	str	w1, [x8, x9]
Lloh42:
	adrp	x8, _CS_TEAMVOTE_NO@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CS_TEAMVOTE_NO@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
	ldr	x8, [x21, #8]
	lsl	x9, x20, #2
	ldr	w10, [x8, x9]
	add	w1, w10, #1
	str	w1, [x8, x9]
Lloh44:
	adrp	x8, _CS_TEAMVOTE_YES@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CS_TEAMVOTE_YES@GOTPAGEOFF]
LBB0_19:
	ldr	x8, [x8]
	add	x19, x8, x20
Lloh46:
	adrp	x0, l_.str.4@PAGE
Lloh47:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x19
	bl	_trap_SetConfigstring
LBB0_20:
	ldur	x8, [x29, #-40]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_TEAM_RED,4,2                   ; @TEAM_RED
	.comm	_TEAM_BLUE,4,2                  ; @TEAM_BLUE
	.comm	_level,24,3                     ; @level
	.comm	_g_entities,4,2                 ; @g_entities
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"print \"No team vote in progress.\n\""

	.comm	_EF_TEAMVOTED,4,2               ; @EF_TEAMVOTED
l_.str.1:                               ; @.str.1
	.asciz	"print \"Team vote already cast.\n\""

	.comm	_TEAM_SPECTATOR,4,2             ; @TEAM_SPECTATOR
l_.str.2:                               ; @.str.2
	.asciz	"print \"Not allowed to vote as spectator.\n\""

l_.str.3:                               ; @.str.3
	.asciz	"print \"Team vote cast.\n\""

	.comm	_CS_TEAMVOTE_YES,8,3            ; @CS_TEAMVOTE_YES
l_.str.4:                               ; @.str.4
	.asciz	"%i"

	.comm	_CS_TEAMVOTE_NO,8,3             ; @CS_TEAMVOTE_NO
.subsections_via_symbols
