	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	_K_MOUSE1@GOTPCREL(%rip), %rax
	movq	_K_MOUSE2@GOTPCREL(%rip), %r14
	cmpl	%edx, (%rax)
	je	LBB0_4
## %bb.1:
	cmpl	%ebx, (%r14)
	je	LBB0_4
## %bb.2:
	movq	_K_ENTER@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_K_KP_ENTER@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_9
LBB0_4:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_UI_BuildPlayerList
	movq	_uiInfo@GOTPCREL(%rip), %r12
	cmpl	$0, 16(%r12)
	je	LBB0_9
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_VariableValue
                                        ## kill: def $eax killed $eax def $rax
	xorl	%ecx, %ecx
	cmpl	%ebx, (%r14)
	setne	%cl
	leal	(%rax,%rcx,2), %eax
	decl	%eax
	movl	(%r12), %ecx
	testl	%eax, %eax
	movl	%eax, %ebx
	cmovsl	%ecx, %ebx
	cmpl	%ecx, %eax
	cmovgl	%r15d, %ebx
	cmpl	%ecx, %ebx
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	8(%r12), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rsi
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_trap_Cvar_Set
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_va
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_trap_Cvar_Set
LBB0_9:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_K_MOUSE1,4,2                   ## @K_MOUSE1
	.comm	_K_MOUSE2,4,2                   ## @K_MOUSE2
	.comm	_K_ENTER,4,2                    ## @K_ENTER
	.comm	_K_KP_ENTER,4,2                 ## @K_KP_ENTER
	.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"

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

	.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	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	x8, _K_MOUSE1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _K_MOUSE1@GOTPAGEOFF]
Lloh2:
	adrp	x20, _K_MOUSE2@GOTPAGE
Lloh3:
	ldr	x20, [x20, _K_MOUSE2@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20]
Lloh5:
	adrp	x10, _K_ENTER@GOTPAGE
Lloh6:
	ldr	x10, [x10, _K_ENTER@GOTPAGEOFF]
Lloh7:
	adrp	x11, _K_KP_ENTER@GOTPAGE
Lloh8:
	ldr	x11, [x11, _K_KP_ENTER@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
Lloh10:
	ldr	w11, [x11]
	cmp	w8, w2
	ccmp	w9, w2, #4, ne
	ccmp	w10, w2, #4, ne
	ccmp	w11, w2, #4, ne
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x2
	bl	_UI_BuildPlayerList
Lloh11:
	adrp	x21, _uiInfo@GOTPAGE
Lloh12:
	ldr	x21, [x21, _uiInfo@GOTPAGEOFF]
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_6
; %bb.2:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_VariableValue
	ldr	w8, [x20]
	sub	w9, w0, #1
	cmp	w8, w19
	csinc	w8, w9, w0, eq
	ldr	w9, [x21]
	cmp	w8, #0
	csel	w10, w9, w8, lt
	cmp	w8, w9
	csel	w19, wzr, w10, gt
	cmp	w19, w9
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	x1, [x8, w19, sxtw #3]
LBB0_5:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_trap_Cvar_Set
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_va
	mov	x1, x0
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_Set
LBB0_6:
Lloh23:
	adrp	x8, _qfalse@GOTPAGE
Lloh24:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_K_MOUSE1,4,2                   ; @K_MOUSE1
	.comm	_K_MOUSE2,4,2                   ; @K_MOUSE2
	.comm	_K_ENTER,4,2                    ; @K_ENTER
	.comm	_K_KP_ENTER,4,2                 ; @K_KP_ENTER
	.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"

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

	.no_dead_strip	_UI_SelectedPlayer_HandleKey
.subsections_via_symbols
