	.file	"extr_ui_main.c_UI_TeamMember_HandleKey.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ui_blueteam%i"
.LC1:
	.string	"ui_redteam%i"
	.text
	.p2align 4
	.type	UI_TeamMember_HandleKey, @function
UI_TeamMember_HandleKey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, edx
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	UI_SelectForKey@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR qfalse[rip]
	test	ebx, ebx
	jne	.L13
	pop	rbx
	.cfi_remember_state
	.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
.L13:
	.cfi_restore_state
	test	rbp, rbp
	lea	rax, .LC1[rip]
	lea	rdi, .LC0[rip]
	mov	esi, r12d
	cmove	rdi, rax
	call	va@PLT
	mov	rdi, rax
	mov	r12, rax
	call	trap_Cvar_VariableValue@PLT
	lea	ebp, [rbx+rax]
	mov	rax, QWORD PTR GT_TEAM[rip]
	cmp	QWORD PTR ui_actualNetGameType[rip], rax
	jl	.L4
	mov	eax, DWORD PTR uiInfo[rip]
	add	eax, 1
	cmp	eax, ebp
	jge	.L5
.L7:
	xor	ebp, ebp
.L6:
	mov	esi, ebp
	mov	rdi, r12
	call	trap_Cvar_SetValue@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, QWORD PTR qtrue[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	test	ebp, ebp
	cmovs	ebp, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
	call	UI_GetNumBots@PLT
	add	eax, 1
	cmp	eax, ebp
	jl	.L7
	test	ebp, ebp
	jns	.L6
	xor	eax, eax
	call	UI_GetNumBots@PLT
	lea	ebp, 1[rax]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	UI_TeamMember_HandleKey, .-UI_TeamMember_HandleKey
	.comm	ui_actualNetGameType,8,8
	.comm	uiInfo,4,4
	.comm	qtrue,8,8
	.comm	qfalse,8,8
	.comm	GT_TEAM,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_TeamMember_HandleKey.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ui_blueteam%i\000"
	.align	2
.LC1:
	.ascii	"ui_redteam%i\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	UI_TeamMember_HandleKey, %function
UI_TeamMember_HandleKey:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, r2
	mov	r4, r3
	bl	UI_SelectForKey
	subs	r5, r0, #0
	bne	.L12
	ldr	r3, .L13
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L13+4
	cmp	r4, #0
	ldr	r0, .L13+8
	ldr	r1, [sp, #16]
	moveq	r0, r3
	bl	va
	mov	r6, r0
	bl	trap_Cvar_VariableValue
	ldr	r2, .L13+12
	ldr	r3, .L13+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	add	r5, r5, r0
	cmp	r2, r3
	blt	.L4
	ldr	r3, .L13+20
	ldr	r3, [r3]
	add	r3, r3, #1
	cmp	r3, r5
	bge	.L5
.L7:
	mov	r5, #0
.L6:
	mov	r1, r5
	mov	r0, r6
	bl	trap_Cvar_SetValue
	ldr	r3, .L13+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L5:
	cmp	r5, #0
	movlt	r5, r3
	b	.L6
.L4:
	bl	UI_GetNumBots
	add	r0, r0, #1
	cmp	r0, r5
	blt	.L7
	cmp	r5, #0
	bge	.L6
	bl	UI_GetNumBots
	add	r5, r0, #1
	b	.L6
.L14:
	.align	2
.L13:
	.word	qfalse
	.word	.LC1
	.word	.LC0
	.word	ui_actualNetGameType
	.word	GT_TEAM
	.word	uiInfo
	.word	qtrue
	.size	UI_TeamMember_HandleKey, .-UI_TeamMember_HandleKey
	.comm	ui_actualNetGameType,4,4
	.comm	uiInfo,4,4
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	GT_TEAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
