	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_driver_init               ## -- Begin function menu_driver_init
	.p2align	4, 0x90
_menu_driver_init:                      ## @menu_driver_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
	movl	%edi, %r14d
	movq	_CMD_EVENT_CORE_INFO_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_command_event
	movq	_CMD_EVENT_LOAD_CORE_PERSIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
	movq	_menu_driver_data@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_menu_driver_init_internal
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_menu_driver_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_menu_userdata@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%r14d, %esi
	callq	*%rax
	movl	$1, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_EVENT_CORE_INFO_INIT,4,2   ## @CMD_EVENT_CORE_INFO_INIT
	.comm	_CMD_EVENT_LOAD_CORE_PERSIST,4,2 ## @CMD_EVENT_LOAD_CORE_PERSIST
	.comm	_menu_driver_data,8,3           ## @menu_driver_data
	.comm	_menu_driver_ctx,8,3            ## @menu_driver_ctx
	.comm	_menu_userdata,4,2              ## @menu_userdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_driver_init               ; -- Begin function menu_driver_init
	.p2align	2
_menu_driver_init:                      ; @menu_driver_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
	mov	x19, x0
Lloh0:
	adrp	x8, _CMD_EVENT_CORE_INFO_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_EVENT_CORE_INFO_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
Lloh3:
	adrp	x8, _CMD_EVENT_LOAD_CORE_PERSIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_EVENT_LOAD_CORE_PERSIST@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
Lloh6:
	adrp	x8, _menu_driver_data@GOTPAGE
Lloh7:
	ldr	x8, [x8, _menu_driver_data@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _menu_driver_ctx@GOTPAGE
Lloh10:
	ldr	x8, [x8, _menu_driver_ctx@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_menu_driver_init_internal
	mov	x8, x0
	mov	w0, #0
	cbz	x8, LBB0_7
; %bb.3:
Lloh12:
	adrp	x8, _menu_driver_ctx@GOTPAGE
Lloh13:
	ldr	x8, [x8, _menu_driver_ctx@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_4:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh15:
	adrp	x9, _menu_userdata@GOTPAGE
Lloh16:
	ldr	x9, [x9, _menu_userdata@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
	mov	x1, x19
	blr	x8
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_EVENT_CORE_INFO_INIT,4,2   ; @CMD_EVENT_CORE_INFO_INIT
	.comm	_CMD_EVENT_LOAD_CORE_PERSIST,4,2 ; @CMD_EVENT_LOAD_CORE_PERSIST
	.comm	_menu_driver_data,8,3           ; @menu_driver_data
	.comm	_menu_driver_ctx,8,3            ; @menu_driver_ctx
	.comm	_menu_userdata,4,2              ; @menu_userdata
.subsections_via_symbols
