	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_ClanName_HandleKey
_UI_ClanName_HandleKey:                 ## @UI_ClanName_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	%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
	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
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_UI_Cvar_VariableString
	movl	%eax, %edi
	callq	_UI_TeamIndexFromName
	movl	%eax, %r14d
	movq	_uiInfo@GOTPCREL(%rip), %r12
	movq	8(%r12), %rax
	movslq	%r14d, %r13
	movl	(%rax,%r13,8), %edi
	testl	%edi, %edi
	js	LBB0_7
## %bb.6:
	callq	_trap_CIN_StopCinematic
	movq	8(%r12), %rax
	movl	$-1, (%rax,%r13,8)
LBB0_7:
	xorl	%ecx, %ecx
	cmpl	%ebx, (%r15)
	setne	%cl
	leal	(%r14,%rcx,2), %ecx
	decl	%ecx
	movl	(%r12), %edx
	leal	-1(%rdx), %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	xorl	%edi, %edi
	cmpl	%edx, %ecx
	cmovgel	%edi, %esi
	movslq	%esi, %rcx
	movl	4(%rax,%rcx,8), %esi
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_Set
	xorl	%eax, %eax
	callq	_UI_HeadCountByTeam
	movq	_FEEDER_HEADS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_UI_FeederSelection
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_updateModel@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_teamName"

	.comm	_uiInfo,16,3                    ## @uiInfo
	.comm	_FEEDER_HEADS,4,2               ## @FEEDER_HEADS
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_updateModel,4,2                ## @updateModel
	.comm	_qfalse,4,2                     ## @qfalse
	.no_dead_strip	_UI_ClanName_HandleKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_ClanName_HandleKey
_UI_ClanName_HandleKey:                 ; @UI_ClanName_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_4
; %bb.1:
	mov	x19, x2
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UI_Cvar_VariableString
	bl	_UI_TeamIndexFromName
                                        ; kill: def $w0 killed $w0 def $x0
Lloh13:
	adrp	x21, _uiInfo@GOTPAGE
Lloh14:
	ldr	x21, [x21, _uiInfo@GOTPAGEOFF]
	ldr	x8, [x21, #8]
	sxtw	x22, w0
	sbfiz	x9, x0, #3, #32
	ldr	w0, [x8, x9]
	tbnz	w0, #31, LBB0_3
; %bb.2:
	bl	_trap_CIN_StopCinematic
	ldr	x8, [x21, #8]
	lsl	x9, x22, #3
	mov	w10, #-1
	str	w10, [x8, x9]
LBB0_3:
	ldr	w9, [x20]
	sub	w10, w22, #1
	cmp	w9, w19
	csinc	w9, w10, w22, eq
	ldr	w10, [x21]
	sub	w11, w10, #1
	cmp	w9, #0
	csel	w11, w11, w9, lt
	cmp	w9, w10
	csel	w9, w11, wzr, lt
	add	x8, x8, w9, sxtw #3
	ldr	w1, [x8, #4]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_Set
	bl	_UI_HeadCountByTeam
Lloh17:
	adrp	x8, _FEEDER_HEADS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FEEDER_HEADS@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_UI_FeederSelection
Lloh20:
	adrp	x8, _qtrue@GOTPAGE
Lloh21:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _updateModel@GOTPAGE
Lloh24:
	ldr	x8, [x8, _updateModel@GOTPAGEOFF]
Lloh25:
	str	w0, [x8]
	b	LBB0_5
LBB0_4:
Lloh26:
	adrp	x8, _qfalse@GOTPAGE
Lloh27:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
LBB0_5:
	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	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.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_teamName"

	.comm	_uiInfo,16,3                    ; @uiInfo
	.comm	_FEEDER_HEADS,4,2               ; @FEEDER_HEADS
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_updateModel,4,2                ; @updateModel
	.comm	_qfalse,4,2                     ; @qfalse
	.no_dead_strip	_UI_ClanName_HandleKey
.subsections_via_symbols
