	.file	"extr_cg_newdraw.c_CG_SelectNextPlayer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CG_SelectNextPlayer
	.type	CG_SelectNextPlayer, @function
CG_SelectNextPlayer:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	xor	eax, eax
	call	CG_CheckOrderPending@PLT
	mov	rax, QWORD PTR cg_currentSelectedPlayer[rip]
	xor	edx, edx
	test	rax, rax
	js	.L2
	cmp	rax, QWORD PTR numSortedTeamPlayers[rip]
	jge	.L2
	lea	rdx, 1[rax]
.L2:
	mov	QWORD PTR cg_currentSelectedPlayer[rip], rdx
	xor	eax, eax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	CG_SetSelectedPlayerName@PLT
	.cfi_endproc
.LFE0:
	.size	CG_SelectNextPlayer, .-CG_SelectNextPlayer
	.comm	numSortedTeamPlayers,8,8
	.comm	cg_currentSelectedPlayer,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_cg_newdraw.c_CG_SelectNextPlayer.c"
	.text
	.align	2
	.global	CG_SelectNextPlayer
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_SelectNextPlayer, %function
CG_SelectNextPlayer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	bl	CG_CheckOrderPending
	ldr	r2, .L7
	ldr	r3, [r2]
	cmp	r3, #0
	blt	.L4
	ldr	r1, .L7+4
	ldr	r1, [r1]
	cmp	r3, r1
	addlt	r3, r3, #1
	blt	.L2
.L4:
	mov	r3, #0
.L2:
	pop	{r4, lr}
	str	r3, [r2]
	b	CG_SetSelectedPlayerName
.L8:
	.align	2
.L7:
	.word	cg_currentSelectedPlayer
	.word	numSortedTeamPlayers
	.size	CG_SelectNextPlayer, .-CG_SelectNextPlayer
	.comm	numSortedTeamPlayers,4,4
	.comm	cg_currentSelectedPlayer,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
