	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cmd_Vote_f                     ## -- Begin function Cmd_Vote_f
	.p2align	4, 0x90
_Cmd_Vote_f:                            ## @Cmd_Vote_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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_level@GOTPCREL(%rip), %r14
	cmpl	$0, 8(%r14)
	je	LBB0_1
## %bb.5:
	movq	(%rbx), %rax
	movq	_EF_VOTED@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.6:
	movq	_g_entities@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_18
## %bb.7:
	shlq	$3, %rax
	subq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	_g_entities@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_18
## %bb.2:
	shlq	$3, %rax
	subq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%rbx, %rdi
LBB0_4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_SendServerCommand         ## TAILCALL
LBB0_8:
	movq	8(%rax), %rax
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rcx
	movq	_g_entities@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	shlq	$3, %rdx
	movq	%rbx, %rdi
	subq	%rdx, %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_18
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	callq	_trap_SendServerCommand
	movl	(%r15), %eax
	movq	(%rbx), %rcx
	orl	%eax, (%rcx)
	leaq	-96(%rbp), %rsi
	movl	$1, %edi
	movl	$64, %edx
	callq	_trap_Argv
	cmpb	$121, -96(%rbp)
	je	LBB0_14
## %bb.12:
	movb	-95(%rbp), %al
	cmpb	$89, %al
	je	LBB0_14
## %bb.13:
	cmpb	$49, %al
	je	LBB0_14
## %bb.15:
	movl	(%r14), %esi
	incl	%esi
	movl	%esi, (%r14)
	movq	_CS_VOTE_NO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movl	4(%r14), %esi
	incl	%esi
	movl	%esi, 4(%r14)
	movq	_CS_VOTE_YES@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_va
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_trap_SetConfigstring
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_level,12,2                     ## @level
	.comm	_g_entities,4,2                 ## @g_entities
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"print \"No vote in progress.\n\""

	.comm	_EF_VOTED,4,2                   ## @EF_VOTED
L_.str.1:                               ## @.str.1
	.asciz	"print \"Vote already cast.\n\""

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

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

	.comm	_CS_VOTE_YES,4,2                ## @CS_VOTE_YES
L_.str.4:                               ## @.str.4
	.asciz	"%i"

	.comm	_CS_VOTE_NO,4,2                 ## @CS_VOTE_NO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cmd_Vote_f                     ; -- Begin function Cmd_Vote_f
	.p2align	2
_Cmd_Vote_f:                            ; @Cmd_Vote_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]
Lloh3:
	adrp	x20, _level@GOTPAGE
Lloh4:
	ldr	x20, [x20, _level@GOTPAGEOFF]
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	w9, [x8]
Lloh5:
	adrp	x21, _EF_VOTED@GOTPAGE
Lloh6:
	ldr	x21, [x21, _EF_VOTED@GOTPAGEOFF]
	ldr	w10, [x21]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.2:
Lloh7:
	adrp	x8, _g_entities@GOTPAGE
Lloh8:
	ldr	x8, [x8, _g_entities@GOTPAGEOFF]
Lloh9:
	ldrsw	x8, [x8]
	ldur	x9, [x29, #-40]
Lloh10:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_17
; %bb.3:
	sub	x0, x19, x8, lsl #3
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_4:
Lloh15:
	adrp	x8, _g_entities@GOTPAGE
Lloh16:
	ldr	x8, [x8, _g_entities@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	ldur	x9, [x29, #-40]
Lloh18:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_17
; %bb.5:
	sub	x0, x19, x8, lsl #3
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
	ldr	x8, [x8, #8]
Lloh23:
	adrp	x9, _TEAM_SPECTATOR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
Lloh26:
	adrp	x10, _g_entities@GOTPAGE
Lloh27:
	ldr	x10, [x10, _g_entities@GOTPAGEOFF]
Lloh28:
	ldrsw	x10, [x10]
	sub	x0, x19, x10, lsl #3
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	ldur	x8, [x29, #-40]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.8:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	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_10:
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_trap_SendServerCommand
	ldr	w8, [x21]
	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_14
; %bb.11:
	ldrb	w8, [sp, #9]
	cmp	w8, #89
	b.eq	LBB0_14
; %bb.12:
	cmp	w8, #49
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [x20]
	add	w1, w8, #1
	str	w1, [x20]
Lloh36:
	adrp	x8, _CS_VOTE_NO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CS_VOTE_NO@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
	ldr	w8, [x20, #4]
	add	w1, w8, #1
	str	w1, [x20, #4]
Lloh38:
	adrp	x8, _CS_VOTE_YES@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CS_VOTE_YES@GOTPAGEOFF]
LBB0_15:
	ldr	w19, [x8]
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x19
	bl	_trap_SetConfigstring
	ldur	x8, [x29, #-40]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_level,12,2                     ; @level
	.comm	_g_entities,4,2                 ; @g_entities
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"print \"No vote in progress.\n\""

	.comm	_EF_VOTED,4,2                   ; @EF_VOTED
l_.str.1:                               ; @.str.1
	.asciz	"print \"Vote already cast.\n\""

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

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

	.comm	_CS_VOTE_YES,4,2                ; @CS_VOTE_YES
l_.str.4:                               ; @.str.4
	.asciz	"%i"

	.comm	_CS_VOTE_NO,4,2                 ; @CS_VOTE_NO
.subsections_via_symbols
