	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotFirstClientInRankings       ## -- Begin function BotFirstClientInRankings
	.p2align	4, 0x90
_BotFirstClientInRankings:              ## @BotFirstClientInRankings
	.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, %r15
	movq	_level@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movl	$-999999, -56(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0xFFF0BDC1
	movq	_CS_PLAYERS@GOTPCREL(%rip), %r12
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_trap_GetConfigstring
	movq	%r15, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_atoi
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	leaq	-64(%rbp), %rsi
	callq	_BotAI_GetClientState
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax
	movq	_PERS_SCORE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	cmovgl	%ebx, %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	cmovgl	%eax, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
LBB0_1:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_9:
	leaq	_BotFirstClientInRankings.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_11
## %bb.10:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INFO_STRING,4,2            ## @MAX_INFO_STRING
.zerofill __DATA,__bss,_BotFirstClientInRankings.name,32,4 ## @BotFirstClientInRankings.name
	.comm	_level,4,2                      ## @level
	.comm	_CS_PLAYERS,8,3                 ## @CS_PLAYERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"n"

L_.str.1:                               ## @.str.1
	.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	_BotFirstClientInRankings       ; -- Begin function BotFirstClientInRankings
	.p2align	2
_BotFirstClientInRankings:              ; @BotFirstClientInRankings
	.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
Lloh8:
	adrp	x25, _level@GOTPAGE
Lloh9:
	ldr	x25, [x25, _level@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x22, #0
	mov	w21, #0
	mov	w26, #48577
	movk	w26, #65520, lsl #16
Lloh10:
	adrp	x27, _CS_PLAYERS@GOTPAGE
Lloh11:
	ldr	x27, [x27, _CS_PLAYERS@GOTPAGEOFF]
Lloh12:
	adrp	x23, l_.str@PAGE
Lloh13:
	add	x23, x23, l_.str@PAGEOFF
Lloh14:
	adrp	x28, _TEAM_SPECTATOR@GOTPAGE
Lloh15:
	ldr	x28, [x28, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh16:
	adrp	x24, l_.str.1@PAGE
Lloh17:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x25]
	cmp	x22, x8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	add	x0, x22, x8
	mov	x1, x20
	mov	x2, x19
	bl	_trap_GetConfigstring
	mov	x0, x20
	bl	_strlen
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_Info_ValueForKey
	bl	_strlen
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_Info_ValueForKey
	bl	_atoi
	ldr	x8, [x28]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x1, x29, #96
	mov	x0, x22
	bl	_BotAI_GetClientState
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x29, #-96]
Lloh18:
	adrp	x9, _PERS_SCORE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PERS_SCORE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, w26
	csel	w21, w22, w21, gt
	csel	w26, w8, w26, gt
	b	LBB0_2
LBB0_8:
	mov	w21, #0
LBB0_9:
Lloh21:
	adrp	x19, _BotFirstClientInRankings.name@PAGE
Lloh22:
	add	x19, x19, _BotFirstClientInRankings.name@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	mov	w2, #32
	bl	_EasyClientName
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INFO_STRING,4,2            ; @MAX_INFO_STRING
.zerofill __DATA,__bss,_BotFirstClientInRankings.name,32,0 ; @BotFirstClientInRankings.name
	.comm	_level,4,2                      ; @level
	.comm	_CS_PLAYERS,8,3                 ; @CS_PLAYERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"n"

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

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