	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SV_CompletePlayerName
_SV_CompletePlayerName:                 ## @SV_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	_sv_maxclients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	jle	LBB0_2
## %bb.3:
	movq	_svs@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	cmpl	%r15d, %r13d
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 4(%r14,%r15,8)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r12d, %r12
	movq	%r12, %rbx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	imulq	%rdx, %rbx
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	(%r14,%r15,8), %esi
	movq	%rbx, %rdi
                                        ## 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,%r12,8)
	incl	%r12d
	jmp	LBB0_7
LBB0_2:
	xorl	%r12d, %r12d
LBB0_8:
	movq	_Com_strCompare@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$8, %edx
	callq	_qsort
	movq	%rbx, %rdi
	movl	%r12d, %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	_sv_maxclients,8,3              ## @sv_maxclients
	.comm	_svs,8,3                        ## @svs
	.comm	_Com_strCompare,4,2             ## @Com_strCompare
	.no_dead_strip	_SV_CompletePlayerName
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SV_CompletePlayerName
_SV_CompletePlayerName:                 ; @SV_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	x23, sp
Lloh3:
	adrp	x24, _MAX_CLIENTS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MAX_CLIENTS@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh5:
	adrp	x9, _MAX_NAME_LENGTH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_NAME_LENGTH@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x9]
	mul	x9, x19, x8
	add	x8, x9, #15
	and	x8, x8, #0xfffffffffffffff0
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x25, x9, x8
	mov	sp, x25
	ldr	w8, [x24]
	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	x8, _sv_maxclients@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sv_maxclients@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w26, [x8]
	cmp	w26, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w21, #0
	mov	w27, #0
Lloh15:
	adrp	x8, _svs@GOTPAGE
Lloh16:
	ldr	x8, [x8, _svs@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x28, x8, #4
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w27, #1
	add	x28, x28, #8
	cmp	w26, w27
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28]
	cbz	w8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	cmp	w27, w8
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w21
	madd	x22, x8, x19, x25
	ldur	w1, [x28, #-4]
	mov	x0, x22
	mov	x2, x19
	bl	_Q_strncpyz
	mov	x0, x22
	bl	_Q_CleanStr
	str	x22, [x20, w21, sxtw #3]
	add	w21, w21, #1
	b	LBB0_3
LBB0_7:
	mov	w21, #0
LBB0_8:
Lloh18:
	adrp	x8, _Com_strCompare@GOTPAGE
Lloh19:
	ldr	x8, [x8, _Com_strCompare@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #8
	bl	_qsort
	mov	x0, x20
	mov	x1, x21
	bl	_Field_CompletePlayerName
	mov	sp, x23
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_MAX_NAME_LENGTH,4,2            ; @MAX_NAME_LENGTH
	.comm	_sv_maxclients,8,3              ; @sv_maxclients
	.comm	_svs,8,3                        ; @svs
	.comm	_Com_strCompare,4,2             ; @Com_strCompare
	.no_dead_strip	_SV_CompletePlayerName
.subsections_via_symbols
