	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_TeamName_HandleKey
_UI_TeamName_HandleKey:                 ## @UI_TeamName_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, %ebx
	movq	_K_MOUSE1@GOTPCREL(%rip), %rax
	movq	_K_MOUSE2@GOTPCREL(%rip), %r15
	cmpl	%edx, (%rax)
	je	LBB0_5
## %bb.1:
	cmpl	%ebx, (%r15)
	je	LBB0_5
## %bb.2:
	movq	_K_ENTER@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_K_KP_ENTER@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	testq	%rcx, %rcx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r14
	cmoveq	%rax, %r14
	movq	%r14, %rdi
	callq	_UI_Cvar_VariableString
	movl	%eax, %edi
	callq	_UI_TeamIndexFromName
                                        ## kill: def $eax killed $eax def $rax
	xorl	%ecx, %ecx
	cmpl	%ebx, (%r15)
	setne	%cl
	leal	-1(%rax,%rcx,2), %eax
	movq	_uiInfo@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leal	-1(%rdx), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	xorl	%edi, %edi
	cmpl	%edx, %eax
	cmovll	%esi, %edi
	movq	8(%rcx), %rax
	movslq	%edi, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	callq	_trap_Cvar_Set
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_blueTeam"

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

	.comm	_uiInfo,16,3                    ## @uiInfo
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_qfalse,8,3                     ## @qfalse
	.no_dead_strip	_UI_TeamName_HandleKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_TeamName_HandleKey
_UI_TeamName_HandleKey:                 ; @UI_TeamName_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	x21, _K_MOUSE2@GOTPAGE
Lloh3:
	ldr	x21, [x21, _K_MOUSE2@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x21]
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_2
; %bb.1:
	mov	x19, x2
Lloh11:
	adrp	x8, l_.str@PAGE
Lloh12:
	add	x8, x8, l_.str@PAGEOFF
Lloh13:
	adrp	x9, l_.str.1@PAGE
Lloh14:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x3, #0
	csel	x20, x9, x8, eq
	mov	x0, x20
	bl	_UI_Cvar_VariableString
	bl	_UI_TeamIndexFromName
	ldr	w8, [x21]
	sub	w9, w0, #1
	cmp	w8, w19
	csinc	w8, w9, w0, eq
Lloh15:
	adrp	x9, _uiInfo@GOTPAGE
Lloh16:
	ldr	x9, [x9, _uiInfo@GOTPAGEOFF]
	ldr	w10, [x9]
	sub	w11, w10, #1
	cmp	w8, #0
	csel	w11, w11, w8, lt
	cmp	w8, w10
	csel	w8, w11, wzr, lt
	ldr	x9, [x9, #8]
	ldr	w1, [x9, w8, sxtw #2]
	mov	x0, x20
	bl	_trap_Cvar_Set
Lloh17:
	adrp	x8, _qtrue@GOTPAGE
Lloh18:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh19:
	adrp	x8, _qfalse@GOTPAGE
Lloh20:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_3:
	ldr	x0, [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	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_blueTeam"

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

	.comm	_uiInfo,16,3                    ; @uiInfo
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_qfalse,8,3                     ; @qfalse
	.no_dead_strip	_UI_TeamName_HandleKey
.subsections_via_symbols
