	.file	"extr_ui_main.c_UI_TeamName_HandleKey.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ui_blueTeam"
.LC1:
	.string	"ui_redTeam"
	.text
	.p2align 4
	.type	UI_TeamName_HandleKey, @function
UI_TeamName_HandleKey:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edi, edx
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	UI_SelectForKey@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR qfalse[rip]
	test	ebx, ebx
	jne	.L13
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	test	rbp, rbp
	lea	rax, .LC1[rip]
	lea	rbp, .LC0[rip]
	cmove	rbp, rax
	mov	rdi, rbp
	call	UI_Cvar_VariableString@PLT
	mov	edi, eax
	call	UI_TeamIndexFromName@PLT
	xor	edx, edx
	add	ebx, eax
	mov	eax, DWORD PTR uiInfo[rip]
	cmp	eax, ebx
	jle	.L4
	test	ebx, ebx
	jns	.L11
	lea	ebx, -1[rax]
.L11:
	movsx	rbx, ebx
	lea	rdx, 0[0+rbx*4]
.L4:
	mov	rax, QWORD PTR uiInfo[rip+8]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+rdx]
	call	trap_Cvar_Set@PLT
	mov	rax, QWORD PTR qtrue[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	UI_TeamName_HandleKey, .-UI_TeamName_HandleKey
	.comm	uiInfo,16,16
	.comm	qtrue,8,8
	.comm	qfalse,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_ui_main.c_UI_TeamName_HandleKey.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ui_blueTeam\000"
	.align	2
.LC1:
	.ascii	"ui_redTeam\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	UI_TeamName_HandleKey, %function
UI_TeamName_HandleKey:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, r2
	mov	r5, r3
	bl	UI_SelectForKey
	subs	r4, r0, #0
	bne	.L11
	ldr	r3, .L13
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L13+4
	ldr	r2, .L13+8
	cmp	r5, #0
	movne	r5, r3
	moveq	r5, r2
	mov	r0, r5
	bl	UI_Cvar_VariableString
	bl	UI_TeamIndexFromName
	ldr	r3, .L13+12
	add	r0, r4, r0
	ldr	r4, [r3]
	cmp	r4, r0
	movle	r4, #0
	bgt	.L12
.L4:
	ldr	r3, [r3, #4]
	mov	r0, r5
	ldr	r1, [r3, r4]
	bl	trap_Cvar_Set
	ldr	r3, .L13+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L12:
	cmp	r0, #0
	sublt	r4, r4, #1
	lslge	r4, r0, #2
	lsllt	r4, r4, #2
	b	.L4
.L14:
	.align	2
.L13:
	.word	qfalse
	.word	.LC0
	.word	.LC1
	.word	uiInfo
	.word	qtrue
	.size	UI_TeamName_HandleKey, .-UI_TeamName_HandleKey
	.comm	uiInfo,8,4
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
