	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_init
_menu_init:                             ## @menu_init
	.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
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_menu_input_reset
	xorl	%eax, %eax
	callq	_menu_entries_init
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	cmpq	$0, 48(%r14)
	je	LBB0_4
## %bb.2:
	movq	_MENU_DIALOG_WELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_menu_dialog_push_pending
	movq	48(%r14), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_configuration_set_bool
	cmpq	$0, 40(%r14)
	je	LBB0_4
## %bb.3:
	movq	_CMD_EVENT_MENU_SAVE_CURRENT_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
LBB0_4:
	cmpq	$0, 32(%r14)
	je	LBB0_9
## %bb.5:
	movl	8(%r14), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movl	4(%r14), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	16(%r14), %rax
	cmpq	24(%r14), %rax
	je	LBB0_9
## %bb.8:
	movq	_MENU_DIALOG_HELP_EXTRACT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_menu_dialog_push_pending
LBB0_9:
	movq	_menu_disp_ca@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_video_driver_has_windowed
	movq	_menu_display_has_windowed@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$1, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_DIALOG_WELCOME,4,2        ## @MENU_DIALOG_WELCOME
	.comm	_CMD_EVENT_MENU_SAVE_CURRENT_CONFIG,4,2 ## @CMD_EVENT_MENU_SAVE_CURRENT_CONFIG
	.comm	_MENU_DIALOG_HELP_EXTRACT,4,2   ## @MENU_DIALOG_HELP_EXTRACT
	.comm	_menu_disp_ca,8,3               ## @menu_disp_ca
	.comm	_menu_display_has_windowed,4,2  ## @menu_display_has_windowed
	.comm	_bundle_decompressed,4,2        ## @bundle_decompressed
	.no_dead_strip	_menu_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_init
_menu_init:                             ; @menu_init
	.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
	bl	_config_get_ptr
	mov	x19, x0
	bl	_menu_input_reset
	bl	_menu_entries_init
	cbz	w0, LBB0_10
; %bb.1:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _MENU_DIALOG_WELCOME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_DIALOG_WELCOME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_menu_dialog_push_pending
	ldr	x1, [x19, #48]
	mov	x0, x19
	mov	w2, #0
	bl	_configuration_set_bool
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _CMD_EVENT_MENU_SAVE_CURRENT_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_EVENT_MENU_SAVE_CURRENT_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
LBB0_4:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_string_is_empty
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	w0, [x19, #4]
	bl	_string_is_empty
	cbnz	w0, LBB0_9
; %bb.7:
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _MENU_DIALOG_HELP_EXTRACT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MENU_DIALOG_HELP_EXTRACT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_menu_dialog_push_pending
LBB0_9:
Lloh9:
	adrp	x8, _menu_disp_ca@GOTPAGE
Lloh10:
	ldr	x8, [x8, _menu_disp_ca@GOTPAGEOFF]
Lloh11:
	str	xzr, [x8]
	bl	_video_driver_has_windowed
Lloh12:
	adrp	x8, _menu_display_has_windowed@GOTPAGE
Lloh13:
	ldr	x8, [x8, _menu_display_has_windowed@GOTPAGEOFF]
Lloh14:
	str	w0, [x8]
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_DIALOG_WELCOME,4,2        ; @MENU_DIALOG_WELCOME
	.comm	_CMD_EVENT_MENU_SAVE_CURRENT_CONFIG,4,2 ; @CMD_EVENT_MENU_SAVE_CURRENT_CONFIG
	.comm	_MENU_DIALOG_HELP_EXTRACT,4,2   ; @MENU_DIALOG_HELP_EXTRACT
	.comm	_menu_disp_ca,8,3               ; @menu_disp_ca
	.comm	_menu_display_has_windowed,4,2  ; @menu_display_has_windowed
	.comm	_bundle_decompressed,4,2        ; @bundle_decompressed
	.no_dead_strip	_menu_init
.subsections_via_symbols
