	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stripes_list_cache
_stripes_list_cache:                    ## @stripes_list_cache
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	_menu_entries_get_menu_stack_ptr
	movq	%rax, %r15
	xorl	%edi, %edi
	callq	_menu_entries_get_selection_buf_ptr
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_menu_navigation_get_selection
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_config_get_ptr
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	$0, -44(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	xorl	%edi, %edi
	callq	_video_driver_get_size
	movq	(%r13), %rdx
	movq	%rdx, %rcx
	subq	$1, %rcx
	movl	$0, %eax
	cmovbq	%rax, %rcx
	cmpq	%rdx, %r14
	cmovbq	%r14, %rcx
	movq	%rcx, (%rbx)
	movl	-48(%rbp), %esi
	leaq	-44(%rbp), %r8
	leaq	-52(%rbp), %r9
	movq	%rbx, %rdi
	callq	_stripes_calculate_visible_range
	movl	36(%rbx), %esi
	movl	-44(%rbp), %edx
	movl	-52(%rbp), %ecx
	movq	%r13, %rdi
	callq	_stripes_list_deep_copy
	movl	-44(%rbp), %eax
	subq	%rax, (%rbx)
	jmp	LBB0_4
LBB0_3:
	movq	$0, (%rbx)
LBB0_4:
	movq	%rbx, %rdi
	movl	$138, %esi
	callq	_stripes_list_get_size
	cmpl	$138, %r12d
	jne	LBB0_19
## %bb.5:
	addq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	%rcx, 16(%rbx)
	cmpl	$139, -56(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.6:
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	decq	%rcx
	jmp	LBB0_12
LBB0_9:
	cmpq	%rax, %rcx
	jne	LBB0_11
## %bb.10:
	movq	$0, 24(%rbx)
	movl	$1, 32(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	incq	%rcx
LBB0_12:
	movq	%rcx, 24(%rbx)
	movq	%rcx, %rax
	jmp	LBB0_13
LBB0_7:
	movq	%rax, 24(%rbx)
	leal	-1(%rax), %ecx
	movl	%ecx, 32(%rbx)
LBB0_13:
	movq	(%r15), %r14
	movq	8(%r15), %rcx
	decq	%r14
	shlq	$4, %r14
	movq	8(%rcx,%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_free
	movq	8(%r15), %rcx
	movq	24(%rbx), %rax
LBB0_15:
	movq	$0, 8(%rcx,%r14)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_stripes_get_system_tab
	addl	$-129, %eax
	cmpl	$7, %eax
	ja	LBB0_16
## %bb.17:
	movslq	%eax, %rcx
	leaq	l_switch.table.stripes_list_cache(%rip), %rax
	movq	(%rax,%rcx,8), %rax
	leaq	l_switch.table.stripes_list_cache.1(%rip), %rdx
	movq	(%rdx,%rcx,8), %rbx
	jmp	LBB0_18
LBB0_16:
	movq	_MENU_SETTING_HORIZONTAL_MENU@GOTPCREL(%rip), %rbx
	movq	_MENU_ENUM_LABEL_HORIZONTAL_MENU@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movl	%eax, %edi
	callq	_strdup
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx,%r14)
	movl	(%rbx), %eax
	movl	%eax, (%rcx,%r14)
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_ENUM_LABEL_MAIN_MENU,4,2  ## @MENU_ENUM_LABEL_MAIN_MENU
	.comm	_MENU_SETTINGS,4,2              ## @MENU_SETTINGS
	.comm	_MENU_ENUM_LABEL_SETTINGS_TAB,4,2 ## @MENU_ENUM_LABEL_SETTINGS_TAB
	.comm	_MENU_SETTINGS_TAB,4,2          ## @MENU_SETTINGS_TAB
	.comm	_MENU_ENUM_LABEL_MUSIC_TAB,4,2  ## @MENU_ENUM_LABEL_MUSIC_TAB
	.comm	_MENU_MUSIC_TAB,4,2             ## @MENU_MUSIC_TAB
	.comm	_MENU_ENUM_LABEL_HISTORY_TAB,4,2 ## @MENU_ENUM_LABEL_HISTORY_TAB
	.comm	_MENU_HISTORY_TAB,4,2           ## @MENU_HISTORY_TAB
	.comm	_MENU_ENUM_LABEL_FAVORITES_TAB,4,2 ## @MENU_ENUM_LABEL_FAVORITES_TAB
	.comm	_MENU_FAVORITES_TAB,4,2         ## @MENU_FAVORITES_TAB
	.comm	_MENU_ENUM_LABEL_ADD_TAB,4,2    ## @MENU_ENUM_LABEL_ADD_TAB
	.comm	_MENU_ADD_TAB,4,2               ## @MENU_ADD_TAB
	.comm	_MENU_ENUM_LABEL_HORIZONTAL_MENU,4,2 ## @MENU_ENUM_LABEL_HORIZONTAL_MENU
	.comm	_MENU_SETTING_HORIZONTAL_MENU,4,2 ## @MENU_SETTING_HORIZONTAL_MENU
	.comm	_MENU_ENUM_LABEL_IMAGES_TAB,4,2 ## @MENU_ENUM_LABEL_IMAGES_TAB
	.comm	_MENU_ENUM_LABEL_NETPLAY_TAB,4,2 ## @MENU_ENUM_LABEL_NETPLAY_TAB
	.comm	_MENU_ENUM_LABEL_VIDEO_TAB,4,2  ## @MENU_ENUM_LABEL_VIDEO_TAB
	.comm	_MENU_IMAGES_TAB,4,2            ## @MENU_IMAGES_TAB
	.comm	_MENU_NETPLAY_TAB,4,2           ## @MENU_NETPLAY_TAB
	.comm	_MENU_VIDEO_TAB,4,2             ## @MENU_VIDEO_TAB
	.no_dead_strip	_stripes_list_cache
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.stripes_list_cache
l_switch.table.stripes_list_cache:
	.quad	_MENU_ENUM_LABEL_SETTINGS_TAB
	.quad	_MENU_ENUM_LABEL_HORIZONTAL_MENU
	.quad	_MENU_ENUM_LABEL_MUSIC_TAB
	.quad	_MENU_ENUM_LABEL_MAIN_MENU
	.quad	_MENU_ENUM_LABEL_HORIZONTAL_MENU
	.quad	_MENU_ENUM_LABEL_HISTORY_TAB
	.quad	_MENU_ENUM_LABEL_FAVORITES_TAB
	.quad	_MENU_ENUM_LABEL_ADD_TAB

	.p2align	3                               ## @switch.table.stripes_list_cache.1
l_switch.table.stripes_list_cache.1:
	.quad	_MENU_SETTINGS_TAB
	.quad	_MENU_SETTING_HORIZONTAL_MENU
	.quad	_MENU_MUSIC_TAB
	.quad	_MENU_SETTINGS
	.quad	_MENU_SETTING_HORIZONTAL_MENU
	.quad	_MENU_HISTORY_TAB
	.quad	_MENU_FAVORITES_TAB
	.quad	_MENU_ADD_TAB

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stripes_list_cache
_stripes_list_cache:                    ; @stripes_list_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	w0, #0
	bl	_menu_entries_get_menu_stack_ptr
	mov	x19, x0
	mov	w0, #0
	bl	_menu_entries_get_selection_buf_ptr
	mov	x23, x0
	bl	_menu_navigation_get_selection
	mov	x24, x0
	bl	_config_get_ptr
	cbz	x20, LBB0_20
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	add	x1, sp, #4
	mov	x0, #0
	bl	_video_driver_get_size
	ldr	x2, [x23]
	sub	x8, x2, #1
	cmp	x2, #0
	csel	x8, xzr, x8, eq
	cmp	x24, x2
	csel	x3, x24, x8, lo
	str	x3, [x20]
	ldr	w1, [sp, #4]
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x0, x20
	bl	_stripes_calculate_visible_range
	ldr	w1, [x20, #36]
	ldp	w3, w2, [sp, #8]
	mov	x0, x23
	bl	_stripes_list_deep_copy
	ldr	w8, [sp, #12]
	ldr	x9, [x20]
	sub	x8, x9, x8
	str	x8, [x20]
	b	LBB0_4
LBB0_3:
	str	xzr, [x20]
LBB0_4:
	mov	x0, x20
	mov	w1, #138
	bl	_stripes_list_get_size
	cmp	w22, #138
	b.ne	LBB0_20
; %bb.5:
	ldr	x8, [x20, #8]
	add	x1, x8, x0
	ldr	x8, [x20, #24]
	str	x8, [x20, #16]
	cmp	w21, #139
	b.ne	LBB0_8
; %bb.6:
	cbz	x8, LBB0_12
; %bb.7:
	sub	x1, x8, #1
	b	LBB0_11
LBB0_8:
	cmp	x8, x1
	b.ne	LBB0_10
; %bb.9:
	mov	x1, #0
	str	xzr, [x20, #24]
	mov	w8, #1
	b	LBB0_13
LBB0_10:
	add	x1, x8, #1
LBB0_11:
	str	x1, [x20, #24]
	b	LBB0_14
LBB0_12:
	str	x1, [x20, #24]
	sub	w8, w1, #1
LBB0_13:
	str	w8, [x20, #32]
LBB0_14:
	ldp	x9, x8, [x19]
	sub	x21, x9, #1
	add	x9, x8, x21, lsl #4
	ldr	x0, [x9, #8]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_free
	ldr	x8, [x19, #8]
	ldr	x1, [x20, #24]
LBB0_16:
	add	x8, x8, x21, lsl #4
	str	xzr, [x8, #8]
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_stripes_get_system_tab
	sub	w8, w0, #129
	cmp	w8, #7
	b.hi	LBB0_18
; %bb.17:
	sbfiz	x9, x8, #3, #32
Lloh0:
	adrp	x8, l_switch.table.stripes_list_cache@PAGE
Lloh1:
	add	x8, x8, l_switch.table.stripes_list_cache@PAGEOFF
	ldr	x8, [x8, x9]
Lloh2:
	adrp	x10, l_switch.table.stripes_list_cache.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.stripes_list_cache.1@PAGEOFF
	ldr	x20, [x10, x9]
	b	LBB0_19
LBB0_18:
Lloh4:
	adrp	x20, _MENU_SETTING_HORIZONTAL_MENU@GOTPAGE
Lloh5:
	ldr	x20, [x20, _MENU_SETTING_HORIZONTAL_MENU@GOTPAGEOFF]
Lloh6:
	adrp	x8, _MENU_ENUM_LABEL_HORIZONTAL_MENU@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MENU_ENUM_LABEL_HORIZONTAL_MENU@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	bl	_strdup
	ldr	x8, [x19, #8]
	add	x8, x8, x21, lsl #4
	str	x0, [x8, #8]
	ldr	w9, [x20]
	str	w9, [x8]
LBB0_20:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_ENUM_LABEL_MAIN_MENU,4,2  ; @MENU_ENUM_LABEL_MAIN_MENU
	.comm	_MENU_SETTINGS,4,2              ; @MENU_SETTINGS
	.comm	_MENU_ENUM_LABEL_SETTINGS_TAB,4,2 ; @MENU_ENUM_LABEL_SETTINGS_TAB
	.comm	_MENU_SETTINGS_TAB,4,2          ; @MENU_SETTINGS_TAB
	.comm	_MENU_ENUM_LABEL_MUSIC_TAB,4,2  ; @MENU_ENUM_LABEL_MUSIC_TAB
	.comm	_MENU_MUSIC_TAB,4,2             ; @MENU_MUSIC_TAB
	.comm	_MENU_ENUM_LABEL_HISTORY_TAB,4,2 ; @MENU_ENUM_LABEL_HISTORY_TAB
	.comm	_MENU_HISTORY_TAB,4,2           ; @MENU_HISTORY_TAB
	.comm	_MENU_ENUM_LABEL_FAVORITES_TAB,4,2 ; @MENU_ENUM_LABEL_FAVORITES_TAB
	.comm	_MENU_FAVORITES_TAB,4,2         ; @MENU_FAVORITES_TAB
	.comm	_MENU_ENUM_LABEL_ADD_TAB,4,2    ; @MENU_ENUM_LABEL_ADD_TAB
	.comm	_MENU_ADD_TAB,4,2               ; @MENU_ADD_TAB
	.comm	_MENU_ENUM_LABEL_HORIZONTAL_MENU,4,2 ; @MENU_ENUM_LABEL_HORIZONTAL_MENU
	.comm	_MENU_SETTING_HORIZONTAL_MENU,4,2 ; @MENU_SETTING_HORIZONTAL_MENU
	.comm	_MENU_ENUM_LABEL_IMAGES_TAB,4,2 ; @MENU_ENUM_LABEL_IMAGES_TAB
	.comm	_MENU_ENUM_LABEL_NETPLAY_TAB,4,2 ; @MENU_ENUM_LABEL_NETPLAY_TAB
	.comm	_MENU_ENUM_LABEL_VIDEO_TAB,4,2  ; @MENU_ENUM_LABEL_VIDEO_TAB
	.comm	_MENU_IMAGES_TAB,4,2            ; @MENU_IMAGES_TAB
	.comm	_MENU_NETPLAY_TAB,4,2           ; @MENU_NETPLAY_TAB
	.comm	_MENU_VIDEO_TAB,4,2             ; @MENU_VIDEO_TAB
	.no_dead_strip	_stripes_list_cache
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.stripes_list_cache
l_switch.table.stripes_list_cache:
	.quad	_MENU_ENUM_LABEL_SETTINGS_TAB
	.quad	_MENU_ENUM_LABEL_HORIZONTAL_MENU
	.quad	_MENU_ENUM_LABEL_MUSIC_TAB
	.quad	_MENU_ENUM_LABEL_MAIN_MENU
	.quad	_MENU_ENUM_LABEL_HORIZONTAL_MENU
	.quad	_MENU_ENUM_LABEL_HISTORY_TAB
	.quad	_MENU_ENUM_LABEL_FAVORITES_TAB
	.quad	_MENU_ENUM_LABEL_ADD_TAB

	.p2align	3                               ; @switch.table.stripes_list_cache.1
l_switch.table.stripes_list_cache.1:
	.quad	_MENU_SETTINGS_TAB
	.quad	_MENU_SETTING_HORIZONTAL_MENU
	.quad	_MENU_MUSIC_TAB
	.quad	_MENU_SETTINGS
	.quad	_MENU_SETTING_HORIZONTAL_MENU
	.quad	_MENU_HISTORY_TAB
	.quad	_MENU_FAVORITES_TAB
	.quad	_MENU_ADD_TAB

.subsections_via_symbols
