	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_SetSelectedPlayerName
_CG_SetSelectedPlayerName:              ## @CG_SetSelectedPlayerName
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cg_currentSelectedPlayer@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_numSortedTeamPlayers@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_4
## %bb.1:
	movq	_cgs@GOTPCREL(%rip), %r14
	movq	8(%r14), %r13
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	movq	_sortedTeamPlayers@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movslq	(%rcx,%rax,4), %rbx
	shlq	$4, %rbx
	movq	(%r13,%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_Set
	movq	(%r12), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_va
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_trap_Cvar_Set
	movl	8(%r13,%rbx), %eax
	movl	%eax, (%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_Cvar_Set                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_currentSelectedPlayer,8,3   ## @cg_currentSelectedPlayer
	.comm	_numSortedTeamPlayers,8,3       ## @numSortedTeamPlayers
	.comm	_cgs,16,3                       ## @cgs
	.comm	_sortedTeamPlayers,8,3          ## @sortedTeamPlayers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cg_selectedPlayerName"

L_.str.1:                               ## @.str.1
	.asciz	"cg_selectedPlayer"

L_.str.2:                               ## @.str.2
	.asciz	"%d"

L_.str.3:                               ## @.str.3
	.asciz	"Everyone"

	.no_dead_strip	_CG_SetSelectedPlayerName
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_SetSelectedPlayerName
_CG_SetSelectedPlayerName:              ; @CG_SetSelectedPlayerName
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _cg_currentSelectedPlayer@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cg_currentSelectedPlayer@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _numSortedTeamPlayers@GOTPAGE
Lloh3:
	ldr	x9, [x9, _numSortedTeamPlayers@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.1:
Lloh5:
	adrp	x19, _cgs@GOTPAGE
Lloh6:
	ldr	x19, [x19, _cgs@GOTPAGEOFF]
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_3
; %bb.2:
Lloh7:
	adrp	x21, _sortedTeamPlayers@GOTPAGE
Lloh8:
	ldr	x21, [x21, _sortedTeamPlayers@GOTPAGEOFF]
	ldr	x10, [x21]
	ldrsw	x8, [x10, x8, lsl #2]
	add	x22, x9, x8, lsl #4
	ldr	x1, [x22]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_Set
	ldr	x8, [x21]
	ldr	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_va
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_trap_Cvar_Set
	ldr	w8, [x22, #8]
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_trap_Cvar_Set
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_currentSelectedPlayer,8,3   ; @cg_currentSelectedPlayer
	.comm	_numSortedTeamPlayers,8,3       ; @numSortedTeamPlayers
	.comm	_cgs,16,3                       ; @cgs
	.comm	_sortedTeamPlayers,8,3          ; @sortedTeamPlayers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cg_selectedPlayerName"

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

l_.str.2:                               ; @.str.2
	.asciz	"%d"

l_.str.3:                               ; @.str.3
	.asciz	"Everyone"

	.no_dead_strip	_CG_SetSelectedPlayerName
.subsections_via_symbols
