	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_SelectedPlayer_HandleKey
_UI_SelectedPlayer_HandleKey:           ## @UI_SelectedPlayer_HandleKey
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %edi
	callq	_UI_SelectForKey
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_UI_BuildPlayerList
	movq	_uiInfo@GOTPCREL(%rip), %r15
	cmpl	$0, 16(%r15)
	je	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	addl	%ebx, %eax
	movl	(%r15), %ecx
	movl	%eax, %ebx
	cmovsl	%ecx, %ebx
	cmpl	%ecx, %eax
	cmovgl	%r14d, %ebx
	cmpl	%ecx, %ebx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	movq	8(%r15), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rsi
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_trap_Cvar_Set
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_trap_Cvar_SetValue
LBB0_6:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uiInfo,24,3                    ## @uiInfo
	.comm	_qfalse,4,2                     ## @qfalse
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cg_selectedPlayer"

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

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

	.no_dead_strip	_UI_SelectedPlayer_HandleKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_SelectedPlayer_HandleKey
_UI_SelectedPlayer_HandleKey:           ; @UI_SelectedPlayer_HandleKey
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x0, x2
	bl	_UI_SelectForKey
	cbz	w0, LBB0_6
; %bb.1:
	mov	x19, x0
	bl	_UI_BuildPlayerList
Lloh0:
	adrp	x20, _uiInfo@GOTPAGE
Lloh1:
	ldr	x20, [x20, _uiInfo@GOTPAGEOFF]
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_6
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_VariableValue
	ldr	w8, [x20]
	add	w9, w0, w19
	cmp	w9, #0
	csel	w10, w8, w9, lt
	cmp	w9, w8
	csel	w19, wzr, w10, gt
	cmp	w19, w8
	b.ne	LBB0_4
; %bb.3:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	x1, [x8, w19, sxtw #3]
LBB0_5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_trap_Cvar_Set
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_trap_Cvar_SetValue
LBB0_6:
Lloh10:
	adrp	x8, _qfalse@GOTPAGE
Lloh11:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_uiInfo,24,3                    ; @uiInfo
	.comm	_qfalse,4,2                     ; @qfalse
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cg_selectedPlayer"

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

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

	.no_dead_strip	_UI_SelectedPlayer_HandleKey
.subsections_via_symbols
