	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_BotSkill_HandleKey
_UI_BotSkill_HandleKey:                 ## @UI_BotSkill_HandleKey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %edi
	callq	_UI_SelectForKey
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movslq	%eax, %rdx
	movq	_uiInfo@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	movq	%rdx, (%rax)
	movq	_numSkillLevels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_3
## %bb.4:
	testq	%rdx, %rdx
	jns	LBB0_7
## %bb.5:
	decq	%rcx
	jmp	LBB0_6
LBB0_1:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	xorl	%ecx, %ecx
LBB0_6:
	movq	%rcx, (%rax)
LBB0_7:
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uiInfo,8,3                     ## @uiInfo
	.comm	_numSkillLevels,8,3             ## @numSkillLevels
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_qfalse,4,2                     ## @qfalse
	.no_dead_strip	_UI_BotSkill_HandleKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_BotSkill_HandleKey
_UI_BotSkill_HandleKey:                 ; @UI_BotSkill_HandleKey
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x0, x2
	bl	_UI_SelectForKey
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _uiInfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uiInfo@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, w0, sxtw
	str	x9, [x8]
Lloh2:
	adrp	x10, _numSkillLevels@GOTPAGE
Lloh3:
	ldr	x10, [x10, _numSkillLevels@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_5
; %bb.2:
	tbz	x9, #63, LBB0_7
; %bb.3:
	sub	x9, x10, #1
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _qfalse@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	x9, #0
LBB0_6:
	str	x9, [x8]
LBB0_7:
Lloh7:
	adrp	x8, _qtrue@GOTPAGE
Lloh8:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_uiInfo,8,3                     ; @uiInfo
	.comm	_numSkillLevels,8,3             ; @numSkillLevels
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_qfalse,4,2                     ; @qfalse
	.no_dead_strip	_UI_BotSkill_HandleKey
.subsections_via_symbols
