	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_SPLevelMenu_NextEvent
_UI_SPLevelMenu_NextEvent:              ## @UI_SPLevelMenu_NextEvent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	_selectedArenaSet@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_currentSet@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
LBB0_5:
	popq	%rbp
	retq
LBB0_2:
	movq	_selectedArena@GOTPCREL(%rip), %rax
	cmpl	$-1, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	$0, (%rax)
LBB0_4:
	movq	_levelMenuInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_UI_SPSkillMenu                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.comm	_selectedArenaSet,8,3           ## @selectedArenaSet
	.comm	_currentSet,8,3                 ## @currentSet
	.comm	_selectedArena,4,2              ## @selectedArena
	.comm	_levelMenuInfo,4,2              ## @levelMenuInfo
	.no_dead_strip	_UI_SPLevelMenu_NextEvent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_SPLevelMenu_NextEvent
_UI_SPLevelMenu_NextEvent:              ; @UI_SPLevelMenu_NextEvent
	.cfi_startproc
; %bb.0:
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	x8, _selectedArenaSet@GOTPAGE
Lloh4:
	ldr	x8, [x8, _selectedArenaSet@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _currentSet@GOTPAGE
Lloh7:
	ldr	x9, [x9, _currentSet@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
LBB0_2:
	ret
LBB0_3:
Lloh9:
	adrp	x8, _selectedArena@GOTPAGE
Lloh10:
	ldr	x8, [x8, _selectedArena@GOTPAGEOFF]
	ldr	w9, [x8]
	cmn	w9, #1
	b.ne	LBB0_5
; %bb.4:
	str	wzr, [x8]
LBB0_5:
Lloh11:
	adrp	x8, _levelMenuInfo@GOTPAGE
Lloh12:
	ldr	x8, [x8, _levelMenuInfo@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	_UI_SPSkillMenu
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.comm	_selectedArenaSet,8,3           ; @selectedArenaSet
	.comm	_currentSet,8,3                 ; @currentSet
	.comm	_selectedArena,4,2              ; @selectedArena
	.comm	_levelMenuInfo,4,2              ; @levelMenuInfo
	.no_dead_strip	_UI_SPLevelMenu_NextEvent
.subsections_via_symbols
