	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %edi
	callq	_UI_SelectForKey
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_UI_Cvar_VariableString
	movl	%eax, %edi
	callq	_UI_TeamIndexFromName
	movl	%eax, %ebx
	movq	_uiInfo@GOTPCREL(%rip), %r15
	movq	8(%r15), %rax
	movslq	%ebx, %r12
	movl	(%rax,%r12,8), %edi
	testl	%edi, %edi
	js	LBB0_4
## %bb.3:
	callq	_trap_CIN_StopCinematic
	movq	8(%r15), %rax
	movl	$-1, (%rax,%r12,8)
LBB0_4:
	addl	%r14d, %ebx
	movl	(%r15), %ecx
	leal	-1(%rcx), %edx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edx
	xorl	%esi, %esi
	cmpl	%ecx, %ebx
	cmovgel	%esi, %edx
	movslq	%edx, %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)
	jmp	LBB0_5
LBB0_1:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	mov	x0, x2
	bl	_UI_SelectForKey
	cbz	w0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UI_Cvar_VariableString
	bl	_UI_TeamIndexFromName
                                        ; kill: def $w0 killed $w0 def $x0
Lloh2:
	adrp	x20, _uiInfo@GOTPAGE
Lloh3:
	ldr	x20, [x20, _uiInfo@GOTPAGEOFF]
	ldr	x8, [x20, #8]
	sxtw	x21, w0
	sbfiz	x9, x0, #3, #32
	ldr	w0, [x8, x9]
	tbnz	w0, #31, LBB0_3
; %bb.2:
	bl	_trap_CIN_StopCinematic
	ldr	x8, [x20, #8]
	lsl	x9, x21, #3
	mov	w10, #-1
	str	w10, [x8, x9]
LBB0_3:
	ldr	w9, [x20]
	add	w10, w21, w19
	sub	w11, w9, #1
	cmp	w10, #0
	csel	w11, w11, w10, lt
	cmp	w10, w9
	csel	w9, w11, wzr, lt
	add	x8, x8, w9, sxtw #3
	ldr	w1, [x8, #4]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_Set
	bl	_UI_HeadCountByTeam
Lloh6:
	adrp	x8, _FEEDER_HEADS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FEEDER_HEADS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_UI_FeederSelection
Lloh9:
	adrp	x8, _qtrue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _updateModel@GOTPAGE
Lloh13:
	ldr	x8, [x8, _updateModel@GOTPAGEOFF]
Lloh14:
	str	w0, [x8]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _qfalse@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh17:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.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
