	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_entries_build_scroll_indices
_menu_entries_build_scroll_indices:     ## @menu_entries_build_scroll_indices
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_scroll_index_size@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%edi, %edi
	callq	_menu_navigation_add_scroll_index
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_menu_entries_elem_get_first_char
	movq	(%r14), %rdi
	cmpq	$2, %rdi
	jb	LBB0_6
## %bb.1:
	movl	%eax, %r15d
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movq	_FILE_TYPE_DIRECTORY@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	sete	%dl
	movl	$1, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	%edx, %r15d
	callq	_menu_navigation_add_scroll_index
	movl	%r15d, %edx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	(%r14), %rdi
	movl	%r12d, %r15d
	cmpq	%rdi, %rbx
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %r13d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r14, %r12
	callq	_menu_entries_elem_get_first_char
	movq	8(%r14), %rcx
	movl	%ebx, %edx
	movl	(%rcx,%rdx,4), %ecx
	movq	_FILE_TYPE_DIRECTORY@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movl	%eax, %r12d
	sete	%dl
	setne	%al
	testb	%al, %r13b
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, %r12d
	jle	LBB0_5
	jmp	LBB0_4
LBB0_6:
	decl	%edi
                                        ## kill: def $edi killed $edi killed $rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_navigation_add_scroll_index ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_scroll_index_size,8,3          ## @scroll_index_size
	.comm	_FILE_TYPE_DIRECTORY,4,2        ## @FILE_TYPE_DIRECTORY
	.no_dead_strip	_menu_entries_build_scroll_indices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_entries_build_scroll_indices
_menu_entries_build_scroll_indices:     ; @menu_entries_build_scroll_indices
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _scroll_index_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scroll_index_size@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
	mov	w0, #0
	bl	_menu_navigation_add_scroll_index
	mov	x0, x19
	mov	w1, #0
	bl	_menu_entries_elem_get_first_char
	ldr	x8, [x19]
	cmp	x8, #2
	b.lo	LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x23, _FILE_TYPE_DIRECTORY@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FILE_TYPE_DIRECTORY@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	cset	w24, eq
	mov	w20, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_menu_navigation_add_scroll_index
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19]
	mov	x21, x22
	mov	x24, x25
	cmp	x20, x8
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_menu_entries_elem_get_first_char
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	w8, [x8, w20, uxtw #2]
	ldr	w9, [x23]
	cmp	w8, w9
	cset	w25, eq
	cset	w8, ne
	and	w8, w24, w8
	tbnz	w8, #0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, w21
	b.le	LBB0_3
	b	LBB0_2
LBB0_6:
	sub	w0, w8, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_menu_navigation_add_scroll_index
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_scroll_index_size,8,3          ; @scroll_index_size
	.comm	_FILE_TYPE_DIRECTORY,4,2        ; @FILE_TYPE_DIRECTORY
	.no_dead_strip	_menu_entries_build_scroll_indices
.subsections_via_symbols
