	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_BotName_HandleKey
_UI_BotName_HandleKey:                  ## @UI_BotName_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_1
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	movq	_uiInfo@GOTPCREL(%rip), %r15
	addl	(%r15), %ebx
	movq	_GT_TEAM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_3
## %bb.5:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_UI_GetNumBots
	cmpl	%eax, %ebx
	jge	LBB0_8
## %bb.6:
	movl	%ebx, %r14d
	testl	%ebx, %ebx
	jns	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_UI_GetNumBots
	movl	%eax, %r14d
	decl	%r14d
	jmp	LBB0_8
LBB0_1:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movl	4(%r15), %eax
	xorl	%r14d, %r14d
	cmpl	%eax, %ebx
	jge	LBB0_8
## %bb.4:
	decl	%eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	movl	%eax, %r14d
LBB0_8:
	movl	%r14d, (%r15)
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"g_gametype"

	.comm	_uiInfo,8,2                     ## @uiInfo
	.comm	_GT_TEAM,4,2                    ## @GT_TEAM
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_qfalse,4,2                     ## @qfalse
	.no_dead_strip	_UI_BotName_HandleKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_BotName_HandleKey
_UI_BotName_HandleKey:                  ; @UI_BotName_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_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_VariableValue
Lloh2:
	adrp	x20, _uiInfo@GOTPAGE
Lloh3:
	ldr	x20, [x20, _uiInfo@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w19, w8, w19
Lloh4:
	adrp	x8, _GT_TEAM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GT_TEAM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_6
; %bb.2:
	bl	_UI_GetNumBots
	cmp	w19, w0
	b.ge	LBB0_7
; %bb.3:
	tbz	w19, #31, LBB0_8
; %bb.4:
	bl	_UI_GetNumBots
	sub	w19, w0, #1
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _qfalse@GOTPAGE
Lloh8:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	w8, [x20, #4]
	sub	w9, w8, #1
	cmp	w19, #0
	csel	w9, w9, w19, lt
	cmp	w19, w8
	csel	w19, wzr, w9, ge
	b	LBB0_8
LBB0_7:
	mov	w19, #0
LBB0_8:
	str	w19, [x20]
Lloh9:
	adrp	x8, _qtrue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"g_gametype"

	.comm	_uiInfo,8,2                     ; @uiInfo
	.comm	_GT_TEAM,4,2                    ; @GT_TEAM
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_qfalse,4,2                     ; @qfalse
	.no_dead_strip	_UI_BotName_HandleKey
.subsections_via_symbols
