	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_entries_append            ## -- Begin function menu_entries_append
	.p2align	4, 0x90
_menu_entries_append:                   ## @menu_entries_append
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	$0, -56(%rbp)
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%r12, %rdx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_file_list_append
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_menu_entries_get_last_stack
	movslq	(%rbx), %r13
	decq	%r13
	movq	%rbx, -64(%rbp)
	movq	%r15, -104(%rbp)
	movq	$0, -72(%rbp)
	movq	-56(%rbp), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rdi
	callq	_strdup
	movq	%rax, -72(%rbp)
LBB0_4:
	movq	%r12, -96(%rbp)
	movq	%r13, -88(%rbp)
	movl	%r14d, -80(%rbp)
	leaq	-104(%rbp), %rdi
	callq	_menu_driver_list_insert
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_free
LBB0_6:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_file_list_free_actiondata
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_file_list_set_actiondata
	movq	_MSG_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	%r12, %rdi
	callq	_menu_setting_find
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	%r13, %r9
	callq	_menu_cbs_init
LBB0_8:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_UNKNOWN,4,2                ## @MSG_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_entries_append            ; -- Begin function menu_entries_append
	.p2align	2
_menu_entries_append:                   ; @menu_entries_append
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	xzr, [sp, #8]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_8
; %bb.2:
	mov	x19, x3
	mov	x21, x1
	mov	x22, x0
	mov	x2, x20
	bl	_file_list_append
	add	x0, sp, #8
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_menu_entries_get_last_stack
	ldrsw	x8, [x22]
	sub	x23, x8, #1
	stp	xzr, x22, [sp, #48]
	str	x21, [sp, #16]
	ldr	x0, [sp, #8]
	bl	_string_is_empty
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x0, [sp, #8]
	bl	_strdup
	str	x0, [sp, #48]
LBB0_4:
	stp	x20, x23, [sp, #24]
	str	w19, [sp, #40]
	add	x0, sp, #16
	bl	_menu_driver_list_insert
	ldr	x0, [sp, #48]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_free
LBB0_6:
	mov	x0, x22
	mov	x1, x23
	bl	_file_list_free_actiondata
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	cbz	x0, LBB0_8
; %bb.7:
	mov	x24, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_file_list_set_actiondata
Lloh0:
	adrp	x8, _MSG_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x24, #4]
	mov	x0, x20
	bl	_menu_setting_find
	str	w0, [x24]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x23
	bl	_menu_cbs_init
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_UNKNOWN,4,2                ; @MSG_UNKNOWN
.subsections_via_symbols
