	.file	"extr_g_cmds.c_Cmd_TeamVote_f.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"print \"No team vote in progress.\n\""
	.align 8
.LC1:
	.string	"print \"Team vote already cast.\n\""
	.align 8
.LC2:
	.string	"print \"Not allowed to vote as spectator.\n\""
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"print \"Team vote cast.\n\""
.LC4:
	.string	"%i"
	.text
	.p2align 4
	.globl	Cmd_TeamVote_f
	.type	Cmd_TeamVote_f, @function
Cmd_TeamVote_f:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 80
	.cfi_def_cfa_offset 112
	mov	rcx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 4[rcx]
	cmp	DWORD PTR TEAM_RED[rip], eax
	je	.L11
	cmp	DWORD PTR TEAM_BLUE[rip], eax
	jne	.L1
	mov	ebp, 4
	mov	r12d, 1
.L2:
	movsx	rdx, DWORD PTR g_entities[rip]
	mov	rdi, rbx
	sal	rdx, 3
	sub	rdi, rdx
	mov	rdx, QWORD PTR level[rip+16]
	mov	edx, DWORD PTR [rdx+rbp]
	test	edx, edx
	je	.L14
	mov	edx, DWORD PTR [rcx]
	test	DWORD PTR EF_TEAMVOTED[rip], edx
	jne	.L15
	cmp	DWORD PTR TEAM_SPECTATOR[rip], eax
	je	.L16
	lea	rsi, .LC3[rip]
	call	trap_SendServerCommand@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rsi, rsp
	mov	edi, 1
	mov	edx, DWORD PTR EF_TEAMVOTED[rip]
	or	DWORD PTR [rax], edx
	mov	edx, 64
	call	trap_Argv@PLT
	cmp	BYTE PTR [rsp], 121
	je	.L7
	movzx	eax, BYTE PTR 1[rsp]
	cmp	al, 89
	je	.L7
	cmp	al, 49
	je	.L7
	add	rbp, QWORD PTR level[rip]
	lea	rdi, .LC4[rip]
	mov	eax, DWORD PTR 0[rbp]
	lea	esi, 1[rax]
	mov	DWORD PTR 0[rbp], esi
	call	va@PLT
	mov	rdi, QWORD PTR CS_TEAMVOTE_NO[rip]
	mov	esi, eax
	add	rdi, r12
	call	trap_SetConfigstring@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	add	rbp, QWORD PTR level[rip+8]
	lea	rdi, .LC4[rip]
	mov	eax, DWORD PTR 0[rbp]
	lea	esi, 1[rax]
	mov	DWORD PTR 0[rbp], esi
	call	va@PLT
	mov	rdi, QWORD PTR CS_TEAMVOTE_YES[rip]
	mov	esi, eax
	add	rdi, r12
	call	trap_SetConfigstring@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	xor	ebp, ebp
	xor	r12d, r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rsi, .LC0[rip]
	call	trap_SendServerCommand@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rsi, .LC1[rip]
	call	trap_SendServerCommand@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rsi, .LC2[rip]
	call	trap_SendServerCommand@PLT
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Cmd_TeamVote_f, .-Cmd_TeamVote_f
	.comm	level,24,16
	.comm	g_entities,4,4
	.comm	TEAM_SPECTATOR,4,4
	.comm	TEAM_RED,4,4
	.comm	TEAM_BLUE,4,4
	.comm	EF_TEAMVOTED,4,4
	.comm	CS_TEAMVOTE_YES,8,8
	.comm	CS_TEAMVOTE_NO,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_g_cmds.c_Cmd_TeamVote_f.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"print \"No team vote in progress.\012\"\000"
	.align	2
.LC1:
	.ascii	"print \"Team vote already cast.\012\"\000"
	.align	2
.LC2:
	.ascii	"print \"Not allowed to vote as spectator.\012\"\000"
	.align	2
.LC3:
	.ascii	"print \"Team vote cast.\012\"\000"
	.align	2
.LC4:
	.ascii	"%i\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Cmd_TeamVote_f
	.syntax unified
	.arm
	.fpu softvfp
	.type	Cmd_TeamVote_f, %function
Cmd_TeamVote_f:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L21
	ldr	r2, [r0]
	ldr	r1, [r3]
	ldr	r3, [r2, #4]
	mov	r4, r0
	ldr	r0, .L21+4
	sub	sp, sp, #72
	cmp	r1, r3
	ldr	r0, [r0]
	str	r0, [sp, #68]
	mov	r0,#0
	beq	.L10
	ldr	r1, .L21+8
	ldr	r1, [r1]
	cmp	r1, r3
	moveq	r5, #4
	moveq	r8, #1
	beq	.L2
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #72
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r5, #0
	mov	r8, r5
.L2:
	ldr	r6, .L21+12
	ldr	r0, .L21+16
	ldr	r1, [r6, #8]
	ldr	r0, [r0]
	ldr	r1, [r1, r5]
	sub	r0, r4, r0, lsl #2
	cmp	r1, #0
	beq	.L18
	ldr	r7, .L21+20
	ldr	r1, [r2]
	ldr	r2, [r7]
	tst	r1, r2
	bne	.L19
	ldr	r2, .L21+24
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L20
	ldr	r1, .L21+28
	bl	trap_SendServerCommand
	ldr	r1, [r4]
	ldr	r0, [r7]
	ldr	r3, [r1]
	mov	r2, #64
	orr	r3, r3, r0
	str	r3, [r1]
	mov	r0, #1
	add	r1, sp, #4
	bl	trap_Argv
	ldrb	r3, [sp, #4]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L7
	ldrb	r3, [sp, #5]	@ zero_extendqisi2
	cmp	r3, #49
	cmpne	r3, #89
	bne	.L8
.L7:
	ldr	r2, [r6, #4]
	ldr	r3, .L21+32
	ldr	r1, [r2, r5]
	ldr	r3, [r3]
	add	r1, r1, #1
	str	r1, [r2, r5]
	add	r8, r8, r3
.L15:
	ldr	r0, .L21+36
	bl	va
	mov	r1, r0
	mov	r0, r8
	bl	trap_SetConfigstring
	b	.L1
.L19:
	ldr	r1, .L21+40
	bl	trap_SendServerCommand
	b	.L1
.L8:
	ldr	r3, [r6]
	ldr	r2, .L21+44
	ldr	r1, [r3, r5]
	ldr	r2, [r2]
	add	r1, r1, #1
	str	r1, [r3, r5]
	add	r8, r8, r2
	b	.L15
.L18:
	ldr	r1, .L21+48
	bl	trap_SendServerCommand
	b	.L1
.L20:
	ldr	r1, .L21+52
	bl	trap_SendServerCommand
	b	.L1
.L17:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	TEAM_RED
	.word	.LC5
	.word	TEAM_BLUE
	.word	level
	.word	g_entities
	.word	EF_TEAMVOTED
	.word	TEAM_SPECTATOR
	.word	.LC3
	.word	CS_TEAMVOTE_YES
	.word	.LC4
	.word	.LC1
	.word	CS_TEAMVOTE_NO
	.word	.LC0
	.word	.LC2
	.size	Cmd_TeamVote_f, .-Cmd_TeamVote_f
	.comm	level,12,4
	.comm	g_entities,4,4
	.comm	TEAM_SPECTATOR,4,4
	.comm	TEAM_RED,4,4
	.comm	TEAM_BLUE,4,4
	.comm	EF_TEAMVOTED,4,4
	.comm	CS_TEAMVOTE_YES,4,4
	.comm	CS_TEAMVOTE_NO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
