	.file	"extr_ai_chat.c_BotFirstClientInRankings.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sv_maxclients"
.LC1:
	.string	"n"
.LC2:
	.string	"t"
	.text
	.p2align 4
	.globl	BotFirstClientInRankings
	.type	BotFirstClientInRankings, @function
BotFirstClientInRankings:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_INFO_STRING[rip]
	mov	rcx, rsp
	mov	r12, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L4:
	mov	eax, DWORD PTR maxclients.1953[rip]
	mov	rbx, rsp
	test	eax, eax
	jne	.L5
	lea	rdi, .LC0[rip]
	call	trap_Cvar_VariableIntegerValue@PLT
	mov	DWORD PTR maxclients.1953[rip], eax
.L5:
	mov	DWORD PTR -68[rbp], -999999
	xor	r13d, r13d
	xor	r14d, r14d
	lea	r15, -64[rbp]
	test	eax, eax
	jg	.L6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR CS_PLAYERS[rip]
	mov	edx, r12d
	mov	rsi, rbx
	add	rdi, r13
	call	trap_GetConfigstring@PLT
	mov	rdi, rbx
	call	strlen@PLT
	test	eax, eax
	je	.L8
	mov	rdi, rbx
	lea	rsi, .LC1[rip]
	call	Info_ValueForKey@PLT
	mov	rdi, rax
	call	strlen@PLT
	test	eax, eax
	je	.L8
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	call	Info_ValueForKey@PLT
	mov	rdi, rax
	call	atoi@PLT
	cmp	rax, QWORD PTR TEAM_SPECTATOR[rip]
	je	.L8
	mov	rsi, r15
	mov	edi, r13d
	call	BotAI_GetClientState@PLT
	mov	rdx, QWORD PTR PERS_SCORE[rip]
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	eax, DWORD PTR -68[rbp]
	jle	.L8
	mov	DWORD PTR -68[rbp], eax
	mov	r14d, r13d
	.p2align 4,,10
	.p2align 3
.L8:
	add	r13, 1
	cmp	DWORD PTR maxclients.1953[rip], r13d
	jle	.L7
.L6:
	cmp	DWORD PTR MAX_CLIENTS[rip], r13d
	jg	.L9
.L7:
	mov	edx, 32
	lea	rsi, name.1952[rip]
	mov	edi, r14d
	call	EasyClientName@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	lea	rsp, -40[rbp]
	lea	rax, name.1952[rip]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	BotFirstClientInRankings, .-BotFirstClientInRankings
	.local	name.1952
	.comm	name.1952,32,32
	.local	maxclients.1953
	.comm	maxclients.1953,4,4
	.comm	TEAM_SPECTATOR,8,8
	.comm	PERS_SCORE,8,8
	.comm	MAX_INFO_STRING,4,4
	.comm	MAX_CLIENTS,4,4
	.comm	CS_PLAYERS,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_ai_chat.c_BotFirstClientInRankings.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sv_maxclients\000"
	.align	2
.LC1:
	.ascii	"n\000"
	.align	2
.LC2:
	.ascii	"t\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BotFirstClientInRankings
	.syntax unified
	.arm
	.fpu softvfp
	.type	BotFirstClientInRankings, %function
BotFirstClientInRankings:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L19
	ldr	r5, .L19+4
	ldr	r6, [r3]
	ldr	r0, [r5]
	add	r3, r6, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L19+8
	cmp	r0, #0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r10, sp
	beq	.L17
.L2:
	cmp	r0, #0
	movle	r3, #0
	strle	r3, [fp, #-48]
	ble	.L4
	mov	r4, #0
	ldr	r3, .L19+12
	ldr	r7, .L19+16
	ldr	r8, .L19+20
	ldr	r9, .L19+24
	str	r4, [fp, #-48]
	str	r3, [fp, #-52]
	b	.L3
.L6:
	ldr	r0, [r8]
	mov	r2, r6
	mov	r1, r10
	add	r0, r4, r0
	bl	trap_GetConfigstring
	ldrb	r2, [r10]	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L5
	mov	r1, r9
	mov	r0, r10
	bl	Info_ValueForKey
	ldrb	r2, [r0]	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L5
	ldr	r1, .L19+28
	mov	r0, r10
	bl	Info_ValueForKey
	bl	atoi
	ldr	r3, .L19+32
	ldr	r2, [r3]
	cmp	r0, r2
	beq	.L5
	sub	r1, fp, #44
	mov	r0, r4
	bl	BotAI_GetClientState
	ldr	r3, .L19+36
	ldr	r2, [fp, #-44]
	ldr	r1, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, [r2, r1, lsl #2]
	ldr	r1, [fp, #-48]
	cmp	r2, r3
	movgt	r1, r4
	movgt	r3, r2
	str	r1, [fp, #-48]
	str	r3, [fp, #-52]
.L5:
	ldr	r2, [r5]
	add	r4, r4, #1
	cmp	r2, r4
	ble	.L4
.L3:
	ldr	r2, [r7]
	cmp	r2, r4
	bgt	.L6
.L4:
	mov	r2, #32
	ldr	r0, [fp, #-48]
	ldr	r1, .L19+40
	bl	EasyClientName
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	ldr	r0, .L19+40
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r0, .L19+44
	bl	trap_Cvar_VariableIntegerValue
	str	r0, [r5]
	b	.L2
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	MAX_INFO_STRING
	.word	.LANCHOR0
	.word	.LC3
	.word	-999999
	.word	MAX_CLIENTS
	.word	CS_PLAYERS
	.word	.LC1
	.word	.LC2
	.word	TEAM_SPECTATOR
	.word	PERS_SCORE
	.word	.LANCHOR0+4
	.word	.LC0
	.size	BotFirstClientInRankings, .-BotFirstClientInRankings
	.comm	TEAM_SPECTATOR,4,4
	.comm	PERS_SCORE,4,4
	.comm	MAX_INFO_STRING,4,4
	.comm	MAX_CLIENTS,4,4
	.comm	CS_PLAYERS,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	maxclients.4237, %object
	.size	maxclients.4237, 4
maxclients.4237:
	.space	4
	.type	name.4236, %object
	.size	name.4236, 32
name.4236:
	.space	32
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
