	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exitmenu
_exitmenu:                              ## @exitmenu
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	$2147489792, %eax               ## imm = 0x80001800
	movq	l___const.exitmenu.items+16(%rip), %rcx
	movq	%rcx, -32(%rbp)
	movaps	l___const.exitmenu.items(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	xorl	%ecx, %ecx
	cmpl	$2086666406, (%rax)             ## imm = 0x7C6000A6
	sete	%cl
	orl	$2, %ecx
	movq	_osd_version@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_menu_main@GOTPCREL(%rip), %rdi
	leaq	-48(%rbp), %rdx
	callq	_GUI_OptionWindow
	cmpl	$2, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$1, %eax
	je	LBB0_4
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_menu_main@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_GUI_DeleteMenu
	xorl	%eax, %eax
	callq	_showcredits
	movq	%rbx, %rdi
	callq	_GUI_InitMenu
	jmp	LBB0_6
LBB0_5:
	movq	_menu_main@GOTPCREL(%rip), %rdi
	callq	_GUI_DeleteMenu
	xorl	%eax, %eax
	callq	_GUI_FadeOut
	xorl	%eax, %eax
	callq	_shutdown
	movq	_SYS_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SYS_ResetSystem
	movl	$2147489792, %edi               ## imm = 0x80001800
	callq	___lwp_thread_stopmultitasking
	jmp	LBB0_6
LBB0_4:
	movq	_menu_main@GOTPCREL(%rip), %rdi
	callq	_GUI_DeleteMenu
	xorl	%eax, %eax
	callq	_GUI_FadeOut
	xorl	%eax, %eax
	callq	_shutdown
	movq	_SYS_HOTRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SYS_ResetSystem
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"View Credits"

L_.str.1:                               ## @.str.1
	.asciz	"Reset System"

L_.str.2:                               ## @.str.2
	.asciz	"Return to Loader"

	.section	__DATA,__const
	.p2align	4                               ## @__const.exitmenu.items
l___const.exitmenu.items:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2

	.comm	_menu_main,4,2                  ## @menu_main
	.comm	_osd_version,4,2                ## @osd_version
	.comm	_SYS_HOTRESET,4,2               ## @SYS_HOTRESET
	.comm	_SYS_SHUTDOWN,4,2               ## @SYS_SHUTDOWN
	.comm	_SYS_RETURNTOMENU,4,2           ## @SYS_RETURNTOMENU
	.comm	_w_pointer,4,2                  ## @w_pointer
	.no_dead_strip	_exitmenu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exitmenu
_exitmenu:                              ; @exitmenu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w8, #6144
	movk	w8, #32768, lsl #16
Lloh3:
	adrp	x9, l___const.exitmenu.items@PAGE
Lloh4:
	add	x9, x9, l___const.exitmenu.items@PAGEOFF
	ldr	q0, [x9]
	str	q0, [sp]
	ldr	x9, [x9, #16]
	str	x9, [sp, #16]
	ldr	w8, [x8]
	mov	w9, #166
	movk	w9, #31840, lsl #16
	cmp	w8, w9
	mov	w8, #2
	cinc	w3, w8, eq
Lloh5:
	adrp	x8, _osd_version@GOTPAGE
Lloh6:
	ldr	x8, [x8, _osd_version@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x0, _menu_main@GOTPAGE
Lloh9:
	ldr	x0, [x0, _menu_main@GOTPAGEOFF]
	mov	x2, sp
	bl	_GUI_OptionWindow
	cmp	w0, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w0, LBB0_6
; %bb.3:
Lloh10:
	adrp	x19, _menu_main@GOTPAGE
Lloh11:
	ldr	x19, [x19, _menu_main@GOTPAGEOFF]
	mov	x0, x19
	bl	_GUI_DeleteMenu
	bl	_showcredits
	mov	x0, x19
	bl	_GUI_InitMenu
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x0, _menu_main@GOTPAGE
Lloh13:
	ldr	x0, [x0, _menu_main@GOTPAGEOFF]
	bl	_GUI_DeleteMenu
	bl	_GUI_FadeOut
	bl	_shutdown
Lloh14:
	adrp	x8, _SYS_SHUTDOWN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SYS_SHUTDOWN@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_SYS_ResetSystem
	mov	w0, #6144
	movk	w0, #32768, lsl #16
	bl	___lwp_thread_stopmultitasking
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x0, _menu_main@GOTPAGE
Lloh18:
	ldr	x0, [x0, _menu_main@GOTPAGEOFF]
	bl	_GUI_DeleteMenu
	bl	_GUI_FadeOut
	bl	_shutdown
Lloh19:
	adrp	x8, _SYS_HOTRESET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SYS_HOTRESET@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_SYS_ResetSystem
LBB0_6:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"View Credits"

l_.str.1:                               ; @.str.1
	.asciz	"Reset System"

l_.str.2:                               ; @.str.2
	.asciz	"Return to Loader"

	.section	__DATA,__const
	.p2align	3                               ; @__const.exitmenu.items
l___const.exitmenu.items:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

	.comm	_menu_main,4,2                  ; @menu_main
	.comm	_osd_version,4,2                ; @osd_version
	.comm	_SYS_HOTRESET,4,2               ; @SYS_HOTRESET
	.comm	_SYS_SHUTDOWN,4,2               ; @SYS_SHUTDOWN
	.comm	_SYS_RETURNTOMENU,4,2           ; @SYS_RETURNTOMENU
	.comm	_w_pointer,4,2                  ; @w_pointer
	.no_dead_strip	_exitmenu
.subsections_via_symbols
