	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_list_flush_stack
_menu_list_flush_stack:                 ## @menu_list_flush_stack
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$0, -60(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -44(%rbp)
	movq	$0, -80(%rbp)
	callq	_menu_list_get
	movq	%rax, %r13
	movq	_MENU_ENTRIES_CTL_SET_REFRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-60(%rbp), %rsi
	callq	_menu_entries_ctl
	leaq	-88(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-80(%rbp), %r8
	movq	%r13, %rdi
	callq	_file_list_get_last
	movq	-56(%rbp), %rsi
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_menu_list_flush_stack_type
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_menu_driver_selection_ptr@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	leaq	-72(%rbp), %rdx
	movl	$1, %ecx
	callq	_menu_list_pop_stack
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax
	movq	%rax, (%r13)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_menu_list_get
	movq	%rax, %rdi
	leaq	-88(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-80(%rbp), %r8
	callq	_file_list_get_last
	movq	-56(%rbp), %rsi
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_menu_list_flush_stack_type
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_ENTRIES_CTL_SET_REFRESH,4,2 ## @MENU_ENTRIES_CTL_SET_REFRESH
	.comm	_menu_driver_selection_ptr,8,3  ## @menu_driver_selection_ptr
	.no_dead_strip	_menu_list_flush_stack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_list_flush_stack
_menu_list_flush_stack:                 ; @menu_list_flush_stack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	wzr, [sp, #44]
	stp	xzr, xzr, [sp, #24]
	str	wzr, [sp, #20]
	str	xzr, [sp, #8]
	bl	_menu_list_get
	mov	x23, x0
Lloh0:
	adrp	x8, _MENU_ENTRIES_CTL_SET_REFRESH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_ENTRIES_CTL_SET_REFRESH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #44
	bl	_menu_entries_ctl
	add	x1, sp, #32
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #8
	mov	x0, x23
	bl	_file_list_get_last
	ldr	x1, [sp, #24]
	ldr	w2, [sp, #20]
	mov	x0, x20
	mov	x3, x19
	bl	_menu_list_flush_stack_type
	cbz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x23, _menu_driver_selection_ptr@GOTPAGE
Lloh4:
	ldr	x23, [x23, _menu_driver_selection_ptr@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	str	x8, [sp]
	mov	x2, sp
	mov	x0, x22
	mov	x1, x21
	mov	w3, #1
	bl	_menu_list_pop_stack
	cbz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp]
	str	x8, [x23]
	mov	x0, x22
	mov	x1, x21
	bl	_menu_list_get
	add	x1, sp, #32
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #8
	bl	_file_list_get_last
	ldr	x1, [sp, #24]
	ldr	w2, [sp, #20]
	mov	x0, x20
	mov	x3, x19
	bl	_menu_list_flush_stack_type
	cbnz	x0, LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_ENTRIES_CTL_SET_REFRESH,4,2 ; @MENU_ENTRIES_CTL_SET_REFRESH
	.comm	_menu_driver_selection_ptr,8,3  ; @menu_driver_selection_ptr
	.no_dead_strip	_menu_list_flush_stack
.subsections_via_symbols
