	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_SPLevelMenu_LevelEvent
_UI_SPLevelMenu_LevelEvent:             ## @UI_SPLevelMenu_LevelEvent
	.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
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_selectedArenaSet@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_trainingTier@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movq	_finalTier@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.4:
	cltq
	movq	(%rdi), %rcx
	movq	_ID_PICTURE0@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	movq	_selectedArena@GOTPCREL(%rip), %r14
	movq	%rcx, (%r14)
	movq	_ARENAS_PER_TIER@GOTPCREL(%rip), %r15
	movslq	(%r15), %rdi
	imulq	%rax, %rdi
	addq	%rcx, %rdi
	callq	_UI_GetArenaInfoByNumber
	movq	_levelMenuInfo@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_UI_SPLevelMenu_SetBots
	movslq	(%rbx), %rax
	movslq	(%r15), %rsi
	imulq	%rax, %rsi
	addq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_Cvar_SetValue             ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.comm	_selectedArenaSet,4,2           ## @selectedArenaSet
	.comm	_trainingTier,4,2               ## @trainingTier
	.comm	_finalTier,4,2                  ## @finalTier
	.comm	_ID_PICTURE0,8,3                ## @ID_PICTURE0
	.comm	_selectedArena,8,3              ## @selectedArena
	.comm	_ARENAS_PER_TIER,4,2            ## @ARENAS_PER_TIER
	.comm	_levelMenuInfo,4,2              ## @levelMenuInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_spSelection"

	.no_dead_strip	_UI_SPLevelMenu_LevelEvent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_SPLevelMenu_LevelEvent
_UI_SPLevelMenu_LevelEvent:             ; @UI_SPLevelMenu_LevelEvent
	.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, _QM_ACTIVATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _selectedArenaSet@GOTPAGE
Lloh4:
	ldr	x19, [x19, _selectedArenaSet@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _trainingTier@GOTPAGE
Lloh6:
	ldr	x9, [x9, _trainingTier@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _finalTier@GOTPAGE
Lloh9:
	ldr	x10, [x10, _finalTier@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_3
LBB0_2:
	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
LBB0_3:
	sxtw	x8, w8
	ldr	x9, [x0]
Lloh11:
	adrp	x10, _ID_PICTURE0@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ID_PICTURE0@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x20, _selectedArena@GOTPAGE
Lloh15:
	ldr	x20, [x20, _selectedArena@GOTPAGEOFF]
	sub	x9, x9, x10
	str	x9, [x20]
Lloh16:
	adrp	x21, _ARENAS_PER_TIER@GOTPAGE
Lloh17:
	ldr	x21, [x21, _ARENAS_PER_TIER@GOTPAGEOFF]
	ldrsw	x10, [x21]
	madd	x0, x10, x8, x9
	bl	_UI_GetArenaInfoByNumber
Lloh18:
	adrp	x8, _levelMenuInfo@GOTPAGE
Lloh19:
	ldr	x8, [x8, _levelMenuInfo@GOTPAGEOFF]
Lloh20:
	str	w0, [x8]
	bl	_UI_SPLevelMenu_SetBots
	ldrsw	x8, [x19]
	ldrsw	x9, [x21]
	ldr	x10, [x20]
	madd	x1, x9, x8, x10
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_trap_Cvar_SetValue
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.comm	_selectedArenaSet,4,2           ; @selectedArenaSet
	.comm	_trainingTier,4,2               ; @trainingTier
	.comm	_finalTier,4,2                  ; @finalTier
	.comm	_ID_PICTURE0,8,3                ; @ID_PICTURE0
	.comm	_selectedArena,8,3              ; @selectedArena
	.comm	_ARENAS_PER_TIER,4,2            ; @ARENAS_PER_TIER
	.comm	_levelMenuInfo,4,2              ; @levelMenuInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_spSelection"

	.no_dead_strip	_UI_SPLevelMenu_LevelEvent
.subsections_via_symbols
