	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_loop_tray                 ## -- Begin function menu_loop_tray
	.p2align	4, 0x90
_menu_loop_tray:                        ## @menu_loop_tray
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -44(%rbp)
	movq	_PicoGameLoaded@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_menu_enter
	movq	_IN_CFG_BLOCKING@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$1, %r15d
	xorl	%edi, %edi
	movl	$1, %edx
	callq	_in_set_config_int
	movq	_e_menu_tray@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	callq	_me_loop
	movq	_engineState@GOTPCREL(%rip), %rax
	movq	_PGS_RestartRun@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rcx, (%rax)
	xorl	%r15d, %r15d
LBB0_2:
	movq	_PBTN_MENU@GOTPCREL(%rip), %r12
	movq	_PBTN_MOK@GOTPCREL(%rip), %r13
	movq	_PBTN_MBACK@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movl	$50, %esi
	callq	_in_menu_wait_any
	movl	(%r13), %ecx
	orl	(%r12), %ecx
	orl	(%rbx), %ecx
	testl	%eax, %ecx
	jne	LBB0_3
## %bb.4:
	movl	(%r14), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_in_set_config_int
	xorl	%eax, %eax
	callq	_plat_video_menu_leave
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PicoGameLoaded,4,2             ## @PicoGameLoaded
	.comm	_IN_CFG_BLOCKING,4,2            ## @IN_CFG_BLOCKING
	.comm	_e_menu_tray,4,2                ## @e_menu_tray
	.comm	_engineState,8,3                ## @engineState
	.comm	_PGS_RestartRun,8,3             ## @PGS_RestartRun
	.comm	_PBTN_MENU,4,2                  ## @PBTN_MENU
	.comm	_PBTN_MOK,4,2                   ## @PBTN_MOK
	.comm	_PBTN_MBACK,4,2                 ## @PBTN_MBACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_loop_tray                 ; -- Begin function menu_loop_tray
	.p2align	2
_menu_loop_tray:                        ; @menu_loop_tray
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _PicoGameLoaded@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PicoGameLoaded@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_menu_enter
Lloh3:
	adrp	x20, _IN_CFG_BLOCKING@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IN_CFG_BLOCKING@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w19, #1
	mov	w0, #0
	mov	w2, #1
	bl	_in_set_config_int
Lloh5:
	adrp	x8, _e_menu_tray@GOTPAGE
Lloh6:
	ldr	x8, [x8, _e_menu_tray@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_me_loop
Lloh8:
	adrp	x8, _engineState@GOTPAGE
Lloh9:
	ldr	x8, [x8, _engineState@GOTPAGEOFF]
	ldr	x10, [x8]
Lloh10:
	adrp	x9, _PGS_RestartRun@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PGS_RestartRun@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_2
; %bb.1:
	mov	w19, #0
	str	x9, [x8]
LBB0_2:
Lloh13:
	adrp	x21, _PBTN_MENU@GOTPAGE
Lloh14:
	ldr	x21, [x21, _PBTN_MENU@GOTPAGEOFF]
Lloh15:
	adrp	x22, _PBTN_MOK@GOTPAGE
Lloh16:
	ldr	x22, [x22, _PBTN_MOK@GOTPAGEOFF]
Lloh17:
	adrp	x23, _PBTN_MBACK@GOTPAGE
Lloh18:
	ldr	x23, [x23, _PBTN_MBACK@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, #0
	mov	w1, #50
	bl	_in_menu_wait_any
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w8, w9
	tst	w8, w0
	b.ne	LBB0_3
; %bb.4:
	ldr	w1, [x20]
	mov	w0, #0
	mov	w2, #0
	bl	_in_set_config_int
	bl	_plat_video_menu_leave
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PicoGameLoaded,4,2             ; @PicoGameLoaded
	.comm	_IN_CFG_BLOCKING,4,2            ; @IN_CFG_BLOCKING
	.comm	_e_menu_tray,4,2                ; @e_menu_tray
	.comm	_engineState,8,3                ; @engineState
	.comm	_PGS_RestartRun,8,3             ; @PGS_RestartRun
	.comm	_PBTN_MENU,4,2                  ; @PBTN_MENU
	.comm	_PBTN_MOK,4,2                   ; @PBTN_MOK
	.comm	_PBTN_MBACK,4,2                 ; @PBTN_MBACK
.subsections_via_symbols
