	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CL_CompletePlayerName
_CL_CompletePlayerName:                 ## @CL_CompletePlayerName
	.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	$40, %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)
	cmpl	$2, %esi
	jne	LBB0_9
## %bb.1:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_MAX_NAME_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	imulq	%rcx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_cl@GOTPCREL(%rip), %rdx
	movq	8(%rdx), %rax
	movq	_CS_SERVERINFO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rax,%rcx,4), %rdi
	addq	(%rdx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_atoi
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movl	%eax, %r14d
	xorl	%r12d, %r12d
	movq	_clc@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	cmpl	%r12d, %r14d
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%r15), %r12d
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_cl@GOTPCREL(%rip), %rdx
	movq	8(%rdx), %rax
	movq	_CS_PLAYERS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%r12, %rcx
	movslq	(%rax,%rcx,4), %rdi
	addq	(%rdx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Info_ValueForKey
	cmpb	$0, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r13d, %r13
	movq	%r13, %rbx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	imulq	%rdx, %rbx
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, %rdi
	movq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_Q_strncpyz
	movq	%rbx, %rdi
	callq	_Q_CleanStr
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax,%r13,8)
	incl	%r13d
	jmp	LBB0_7
LBB0_2:
	xorl	%r13d, %r13d
LBB0_8:
	movq	_Com_strCompare@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$8, %edx
	callq	_qsort
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_Field_CompletePlayerName
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	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_CLIENTS,4,2                ## @MAX_CLIENTS
	.comm	_MAX_NAME_LENGTH,4,2            ## @MAX_NAME_LENGTH
	.comm	_cl,16,3                        ## @cl
	.comm	_CS_SERVERINFO,8,3              ## @CS_SERVERINFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sv_maxclients"

	.comm	_clc,4,2                        ## @clc
	.comm	_CS_PLAYERS,4,2                 ## @CS_PLAYERS
L_.str.1:                               ## @.str.1
	.asciz	"n"

	.comm	_Com_strCompare,4,2             ## @Com_strCompare
	.no_dead_strip	_CL_CompletePlayerName
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CL_CompletePlayerName
_CL_CompletePlayerName:                 ; @CL_CompletePlayerName
	.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]
	cmp	w1, #2
	b.ne	LBB0_9
; %bb.1:
	mov	x8, sp
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _MAX_CLIENTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_CLIENTS@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh5:
	adrp	x10, _MAX_NAME_LENGTH@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MAX_NAME_LENGTH@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x10]
	mul	x9, x19, x9
	add	x10, x9, #15
	and	x12, x10, #0xfffffffffffffff0
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x25, x9, x12
	mov	sp, x25
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh12:
	adrp	x26, _cl@GOTPAGE
Lloh13:
	ldr	x26, [x26, _cl@GOTPAGEOFF]
	ldp	x8, x9, [x26]
Lloh14:
	adrp	x10, _CS_SERVERINFO@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CS_SERVERINFO@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	ldrsw	x9, [x9, x10, lsl #2]
	add	x0, x8, x9
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Info_ValueForKey
	bl	_atoi
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x27, #0
	mov	w21, #0
	mov	w28, w0
Lloh19:
	adrp	x24, _clc@GOTPAGE
Lloh20:
	ldr	x24, [x24, _clc@GOTPAGEOFF]
Lloh21:
	adrp	x22, l_.str.1@PAGE
Lloh22:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	cmp	w28, w27
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cmp	w27, w8
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x9, [x26]
Lloh23:
	adrp	x10, _CS_PLAYERS@GOTPAGE
Lloh24:
	ldr	x10, [x10, _CS_PLAYERS@GOTPAGEOFF]
Lloh25:
	ldrsw	x10, [x10]
	add	x10, x27, x10
	ldrsw	x9, [x9, x10, lsl #2]
	add	x0, x8, x9
	mov	x1, x22
	bl	_Info_ValueForKey
	ldrb	w8, [x0]
	cbz	w8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	sxtw	x8, w21
	madd	x23, x8, x19, x25
	mov	x0, x23
	mov	x2, x19
	bl	_Q_strncpyz
	mov	x0, x23
	bl	_Q_CleanStr
	str	x23, [x20, w21, sxtw #3]
	add	w21, w21, #1
	b	LBB0_3
LBB0_7:
	mov	w21, #0
LBB0_8:
Lloh26:
	adrp	x8, _Com_strCompare@GOTPAGE
Lloh27:
	ldr	x8, [x8, _Com_strCompare@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #8
	bl	_qsort
	mov	x0, x20
	mov	x1, x21
	bl	_Field_CompletePlayerName
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	mov	sp, x8
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_MAX_NAME_LENGTH,4,2            ; @MAX_NAME_LENGTH
	.comm	_cl,16,3                        ; @cl
	.comm	_CS_SERVERINFO,8,3              ; @CS_SERVERINFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sv_maxclients"

	.comm	_clc,4,2                        ; @clc
	.comm	_CS_PLAYERS,4,2                 ; @CS_PLAYERS
l_.str.1:                               ; @.str.1
	.asciz	"n"

	.comm	_Com_strCompare,4,2             ; @Com_strCompare
	.no_dead_strip	_CL_CompletePlayerName
.subsections_via_symbols
