	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function optionmenu
_optionmenu:                            ## @optionmenu
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_menu_options@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_GUI_InitMenu
	movq	%rbx, %rdi
	movl	$30, %esi
	xorl	%edx, %edx
	callq	_GUI_DrawMenuFX
	leaq	LJTI0_0(%rip), %r14
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_GUI_DeleteMenu
	xorl	%eax, %eax
	callq	_prefmenu
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_GUI_InitMenu
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_GUI_RunMenu
                                        ## kill: def $eax killed $eax def $rax
	incl	%eax
	cmpl	$5, %eax
	ja	LBB0_1
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_GUI_DeleteMenu
	xorl	%eax, %eax
	callq	_systemmenu
	jmp	LBB0_8
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_GUI_DeleteMenu
	xorl	%eax, %eax
	callq	_videomenu
	jmp	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_GUI_DeleteMenu
	xorl	%eax, %eax
	callq	_soundmenu
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_GUI_DeleteMenu
	xorl	%eax, %eax
	callq	_ctrlmenu
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	callq	_config_save
	movq	_menu_options@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	movl	$30, %esi
	movl	$1, %edx
	callq	_GUI_DrawMenuFX
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_GUI_DeleteMenu                 ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_menu_options,4,2               ## @menu_options
	.no_dead_strip	_optionmenu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function optionmenu
_optionmenu:                            ; @optionmenu
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _menu_options@GOTPAGE
Lloh1:
	ldr	x19, [x19, _menu_options@GOTPAGEOFF]
	mov	x0, x19
	bl	_GUI_InitMenu
	mov	x0, x19
	mov	w1, #30
	mov	w2, #0
	bl	_GUI_DrawMenuFX
Lloh2:
	adrp	x20, lJTI0_0@PAGE
Lloh3:
	add	x20, x20, lJTI0_0@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_GUI_DeleteMenu
	bl	_prefmenu
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_GUI_InitMenu
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_GUI_RunMenu
	add	w8, w0, #1
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x20, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_GUI_DeleteMenu
	bl	_systemmenu
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_GUI_DeleteMenu
	bl	_videomenu
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_GUI_DeleteMenu
	bl	_soundmenu
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_GUI_DeleteMenu
	bl	_ctrlmenu
	b	LBB0_2
LBB0_9:
	bl	_config_save
Lloh4:
	adrp	x19, _menu_options@GOTPAGE
Lloh5:
	ldr	x19, [x19, _menu_options@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #30
	mov	w2, #1
	bl	_GUI_DrawMenuFX
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_GUI_DeleteMenu
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
                                        ; -- End function
	.comm	_menu_options,4,2               ; @menu_options
	.no_dead_strip	_optionmenu
.subsections_via_symbols
