	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_entries_refresh
_menu_entries_refresh:                  ## @menu_entries_refresh
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_menu_driver_selection_ptr@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	callq	_menu_entries_build_scroll_indices
LBB0_2:
	xorl	%eax, %eax
	callq	_menu_entries_get_size
	cmpq	%rax, %rbx
	jb	LBB0_5
## %bb.3:
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	decq	%rax
	movq	%rax, (%r14)
	movl	$1, %edi
	callq	_menu_driver_navigation_set
	jmp	LBB0_7
LBB0_5:
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	$1, -20(%rbp)
	movq	_MENU_NAVIGATION_CTL_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-20(%rbp), %rsi
	callq	_menu_driver_ctl
LBB0_7:
	movl	$1, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_menu_driver_selection_ptr,8,3  ## @menu_driver_selection_ptr
	.comm	_MENU_NAVIGATION_CTL_CLEAR,4,2  ## @MENU_NAVIGATION_CTL_CLEAR
	.no_dead_strip	_menu_entries_refresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_entries_refresh
_menu_entries_refresh:                  ; @menu_entries_refresh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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_driver_selection_ptr@GOTPAGE
Lloh1:
	ldr	x19, [x19, _menu_driver_selection_ptr@GOTPAGEOFF]
	ldr	x20, [x19]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_menu_entries_build_scroll_indices
LBB0_2:
	bl	_menu_entries_get_size
	cmp	x20, x0
	ccmp	x0, #0, #4, hs
	b.ne	LBB0_5
; %bb.3:
	cbnz	x0, LBB0_6
; %bb.4:
	mov	w8, #1
	str	w8, [sp, #12]
Lloh2:
	adrp	x8, _MENU_NAVIGATION_CTL_CLEAR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MENU_NAVIGATION_CTL_CLEAR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_menu_driver_ctl
	b	LBB0_6
LBB0_5:
	sub	x8, x0, #1
	str	x8, [x19]
	mov	w0, #1
	bl	_menu_driver_navigation_set
LBB0_6:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_menu_driver_selection_ptr,8,3  ; @menu_driver_selection_ptr
	.comm	_MENU_NAVIGATION_CTL_CLEAR,4,2  ; @MENU_NAVIGATION_CTL_CLEAR
	.no_dead_strip	_menu_entries_refresh
.subsections_via_symbols
