	.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, %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_12
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	movq	_uiInfo@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	xorl	%edx, %edx
	cmpl	%ebx, (%r15)
	setne	%dl
	leal	(%rcx,%rdx,2), %r15d
	decl	%r15d
	movq	_GT_TEAM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_6
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_UI_GetNumBots
	addl	$2, %eax
	cmpl	%eax, %r15d
	jge	LBB0_11
## %bb.9:
	movl	%r15d, %ebx
	testl	%r15d, %r15d
	jns	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_UI_GetNumBots
	movl	%eax, %ebx
	incl	%ebx
	jmp	LBB0_11
LBB0_6:
	movl	4(%r14), %eax
	leal	2(%rax), %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, %r15d
	jge	LBB0_11
## %bb.7:
	incl	%eax
	testl	%r15d, %r15d
	cmovnsl	%r15d, %eax
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, (%r14)
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	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	"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	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_5
; %bb.1:
	mov	x19, x2
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_VariableValue
Lloh13:
	adrp	x20, _uiInfo@GOTPAGE
Lloh14:
	ldr	x20, [x20, _uiInfo@GOTPAGEOFF]
	ldr	w8, [x20]
	ldr	w9, [x21]
	sub	w10, w8, #1
	cmp	w9, w19
	csinc	w19, w10, w8, eq
Lloh15:
	adrp	x8, _GT_TEAM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GT_TEAM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_6
; %bb.2:
	bl	_UI_GetNumBots
	add	w8, w0, #2
	cmp	w19, w8
	b.ge	LBB0_7
; %bb.3:
	tbz	w19, #31, LBB0_8
; %bb.4:
	bl	_UI_GetNumBots
	add	w19, w0, #1
	b	LBB0_8
LBB0_5:
Lloh18:
	adrp	x8, _qfalse@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	w8, [x20, #4]
	add	w9, w8, #2
	cmp	w19, #0
	csinc	w8, w19, w8, ge
	cmp	w19, w9
	csel	w19, wzr, w8, ge
	b	LBB0_8
LBB0_7:
	mov	w19, #0
LBB0_8:
	str	w19, [x20]
Lloh20:
	adrp	x8, _qtrue@GOTPAGE
Lloh21:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.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	"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
