	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotLastClientInRankings        ## -- Begin function BotLastClientInRankings
	.p2align	4, 0x90
_BotLastClientInRankings:               ## @BotLastClientInRankings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_INFO_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	_BotLastClientInRankings.maxclients(%rip), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_VariableIntegerValue
	movl	%eax, _BotLastClientInRankings.maxclients(%rip)
LBB0_2:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	testl	%eax, %eax
	jle	LBB0_11
## %bb.3:
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.4:
	xorl	%ebx, %ebx
	movl	$999999, %r13d                  ## imm = 0xF423F
	movq	_CS_PLAYERS@GOTPCREL(%rip), %r15
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_trap_GetConfigstring
	movq	%r12, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_atoi
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	leaq	-64(%rbp), %rsi
	callq	_BotAI_GetClientState
	movq	-64(%rbp), %rax
	movq	_PERS_SCORE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	cmpl	%r13d, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmovll	%ebx, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	cmovll	%eax, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	_BotLastClientInRankings.maxclients(%rip), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_11:
	leaq	_BotLastClientInRankings.name(%rip), %rbx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_EasyClientName
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INFO_STRING,4,2            ## @MAX_INFO_STRING
.zerofill __DATA,__bss,_BotLastClientInRankings.name,32,4 ## @BotLastClientInRankings.name
.zerofill __DATA,__bss,_BotLastClientInRankings.maxclients,4,2 ## @BotLastClientInRankings.maxclients
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sv_maxclients"

	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
	.comm	_CS_PLAYERS,8,3                 ## @CS_PLAYERS
L_.str.1:                               ## @.str.1
	.asciz	"n"

L_.str.2:                               ## @.str.2
	.asciz	"t"

	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
	.comm	_PERS_SCORE,8,3                 ## @PERS_SCORE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotLastClientInRankings        ; -- Begin function BotLastClientInRankings
	.p2align	2
_BotLastClientInRankings:               ; @BotLastClientInRankings
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_INFO_STRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_INFO_STRING@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	adrp	x25, _BotLastClientInRankings.maxclients@PAGE
	ldr	w0, [x25, _BotLastClientInRankings.maxclients@PAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_VariableIntegerValue
	str	w0, [x25, _BotLastClientInRankings.maxclients@PAGEOFF]
LBB0_2:
Lloh10:
	adrp	x26, _MAX_CLIENTS@GOTPAGE
Lloh11:
	ldr	x26, [x26, _MAX_CLIENTS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w0, #1
	ccmp	w8, #1, #8, ge
	b.ge	LBB0_6
; %bb.3:
	mov	w21, #0
LBB0_4:
Lloh12:
	adrp	x19, _BotLastClientInRankings.name@PAGE
Lloh13:
	add	x19, x19, _BotLastClientInRankings.name@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	mov	w2, #32
	bl	_EasyClientName
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.5:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x22, #0
	mov	w21, #0
	mov	w27, #16959
	movk	w27, #15, lsl #16
Lloh17:
	adrp	x28, _CS_PLAYERS@GOTPAGE
Lloh18:
	ldr	x28, [x28, _CS_PLAYERS@GOTPAGEOFF]
Lloh19:
	adrp	x23, l_.str.1@PAGE
Lloh20:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh21:
	adrp	x24, l_.str.2@PAGE
Lloh22:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x25, _BotLastClientInRankings.maxclients@PAGEOFF]
	ldrsw	x9, [x26]
	cmp	x22, x8
	ccmp	x22, x9, #0, lt
	b.ge	LBB0_4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	add	x0, x22, x8
	mov	x1, x20
	mov	x2, x19
	bl	_trap_GetConfigstring
	mov	x0, x20
	bl	_strlen
	cbz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_Info_ValueForKey
	bl	_strlen
	cbz	w0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_Info_ValueForKey
	bl	_atoi
Lloh23:
	adrp	x8, _TEAM_SPECTATOR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	x1, x29, #96
	mov	x0, x22
	bl	_BotAI_GetClientState
	ldur	x8, [x29, #-96]
Lloh26:
	adrp	x9, _PERS_SCORE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PERS_SCORE@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, w27
	csel	w21, w22, w21, lt
	csel	w27, w8, w27, lt
	b	LBB0_7
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INFO_STRING,4,2            ; @MAX_INFO_STRING
.zerofill __DATA,__bss,_BotLastClientInRankings.name,32,0 ; @BotLastClientInRankings.name
.zerofill __DATA,__bss,_BotLastClientInRankings.maxclients,4,2 ; @BotLastClientInRankings.maxclients
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sv_maxclients"

	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_CS_PLAYERS,8,3                 ; @CS_PLAYERS
l_.str.1:                               ; @.str.1
	.asciz	"n"

l_.str.2:                               ; @.str.2
	.asciz	"t"

	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
	.comm	_PERS_SCORE,8,3                 ; @PERS_SCORE
.subsections_via_symbols
