	.file	"extr_xmb.c_xmb_list_cache.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xmb_list_cache, @function
xmb_list_cache:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	menu_entries_get_menu_stack_ptr@PLT
	xor	edi, edi
	mov	rbx, rax
	call	menu_entries_get_selection_buf_ptr@PLT
	mov	r14, rax
	xor	eax, eax
	call	menu_navigation_get_selection@PLT
	mov	r12, rax
	xor	eax, eax
	call	config_get_ptr@PLT
	test	rbp, rbp
	je	.L1
	cmp	QWORD PTR [rax], 0
	jne	.L30
	mov	QWORD PTR 0[rbp], 0
.L7:
	mov	esi, 138
	mov	rdi, rbp
	call	xmb_list_get_size@PLT
	cmp	r13d, 138
	je	.L31
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	rdx, QWORD PTR 24[rbp]
	add	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 16[rbp], rdx
	cmp	r15d, 139
	je	.L33
	cmp	rdx, rax
	je	.L34
	add	rdx, 1
	mov	QWORD PTR 24[rbp], rdx
.L11:
	mov	r13, QWORD PTR [rbx]
	mov	rax, QWORD PTR 8[rbx]
	sal	r13, 4
	lea	r12, -16[r13]
	add	rax, r12
	mov	rdi, QWORD PTR 8[rax]
	test	rdi, rdi
	je	.L13
	call	free@PLT
	mov	rax, QWORD PTR 8[rbx]
	add	rax, r12
.L13:
	mov	QWORD PTR 8[rax], 0
	mov	esi, DWORD PTR 24[rbp]
	mov	rdi, rbp
	call	xmb_get_system_tab@PLT
	sub	eax, 129
	cmp	eax, 7
	ja	.L14
	lea	rdx, .L16[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L16:
	.long	.L21-.L16
	.long	.L14-.L16
	.long	.L20-.L16
	.long	.L19-.L16
	.long	.L14-.L16
	.long	.L18-.L16
	.long	.L17-.L16
	.long	.L15-.L16
	.text
	.p2align 4,,10
	.p2align 3
.L30:
	lea	rsi, 20[rsp]
	xor	edi, edi
	mov	DWORD PTR 12[rsp], 0
	mov	DWORD PTR 16[rsp], 0
	mov	DWORD PTR 20[rsp], 0
	call	video_driver_get_size@PLT
	mov	rdx, QWORD PTR [r14]
	cmp	rdx, r12
	ja	.L28
	test	rdx, rdx
	je	.L23
	lea	r12, -1[rdx]
.L28:
	mov	ecx, r12d
.L6:
	mov	QWORD PTR 0[rbp], r12
	mov	esi, DWORD PTR 20[rsp]
	lea	r9, 16[rsp]
	mov	rdi, rbp
	lea	r8, 12[rsp]
	call	xmb_calculate_visible_range@PLT
	mov	esi, DWORD PTR 36[rbp]
	mov	ecx, DWORD PTR 16[rsp]
	mov	rdi, r14
	mov	edx, DWORD PTR 12[rsp]
	call	xmb_list_deep_copy@PLT
	mov	eax, DWORD PTR 12[rsp]
	sub	QWORD PTR 0[rbp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L33:
	test	rdx, rdx
	jne	.L10
	mov	QWORD PTR 24[rbp], rax
	sub	eax, 1
	mov	DWORD PTR 32[rbp], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	xor	r12d, r12d
	xor	ecx, ecx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L34:
	mov	QWORD PTR 24[rbp], 0
	mov	DWORD PTR 32[rbp], 1
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	sub	rdx, 1
	mov	QWORD PTR 24[rbp], rdx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR MENU_ENUM_LABEL_ADD_TAB[rip]
	call	msg_hash_to_str@PLT
	add	r12, QWORD PTR 8[rbx]
	mov	edi, eax
	call	strdup@PLT
	mov	edx, DWORD PTR MENU_ADD_TAB[rip]
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR -16[rax+r13], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR MENU_ENUM_LABEL_FAVORITES_TAB[rip]
	call	msg_hash_to_str@PLT
	add	r12, QWORD PTR 8[rbx]
	mov	edi, eax
	call	strdup@PLT
	mov	edx, DWORD PTR MENU_FAVORITES_TAB[rip]
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR -16[rax+r13], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR MENU_ENUM_LABEL_HISTORY_TAB[rip]
	call	msg_hash_to_str@PLT
	add	r12, QWORD PTR 8[rbx]
	mov	edi, eax
	call	strdup@PLT
	mov	edx, DWORD PTR MENU_HISTORY_TAB[rip]
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR -16[rax+r13], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR MENU_ENUM_LABEL_MAIN_MENU[rip]
	call	msg_hash_to_str@PLT
	add	r12, QWORD PTR 8[rbx]
	mov	edi, eax
	call	strdup@PLT
	mov	edx, DWORD PTR MENU_SETTINGS[rip]
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR -16[rax+r13], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR MENU_ENUM_LABEL_MUSIC_TAB[rip]
	call	msg_hash_to_str@PLT
	add	r12, QWORD PTR 8[rbx]
	mov	edi, eax
	call	strdup@PLT
	mov	edx, DWORD PTR MENU_MUSIC_TAB[rip]
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR -16[rax+r13], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR MENU_ENUM_LABEL_SETTINGS_TAB[rip]
	call	msg_hash_to_str@PLT
	add	r12, QWORD PTR 8[rbx]
	mov	edi, eax
	call	strdup@PLT
	mov	edx, DWORD PTR MENU_SETTINGS_TAB[rip]
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR -16[rax+r13], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR MENU_ENUM_LABEL_HORIZONTAL_MENU[rip]
	call	msg_hash_to_str@PLT
	add	r12, QWORD PTR 8[rbx]
	mov	edi, eax
	call	strdup@PLT
	mov	edx, DWORD PTR MENU_SETTING_HORIZONTAL_MENU[rip]
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR -16[rax+r13], edx
	jmp	.L1
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xmb_list_cache, .-xmb_list_cache
	.comm	MENU_VIDEO_TAB,4,4
	.comm	MENU_SETTING_HORIZONTAL_MENU,4,4
	.comm	MENU_SETTINGS_TAB,4,4
	.comm	MENU_SETTINGS,4,4
	.comm	MENU_NETPLAY_TAB,4,4
	.comm	MENU_MUSIC_TAB,4,4
	.comm	MENU_IMAGES_TAB,4,4
	.comm	MENU_HISTORY_TAB,4,4
	.comm	MENU_FAVORITES_TAB,4,4
	.comm	MENU_ENUM_LABEL_VIDEO_TAB,4,4
	.comm	MENU_ENUM_LABEL_SETTINGS_TAB,4,4
	.comm	MENU_ENUM_LABEL_NETPLAY_TAB,4,4
	.comm	MENU_ENUM_LABEL_MUSIC_TAB,4,4
	.comm	MENU_ENUM_LABEL_MAIN_MENU,4,4
	.comm	MENU_ENUM_LABEL_IMAGES_TAB,4,4
	.comm	MENU_ENUM_LABEL_HORIZONTAL_MENU,4,4
	.comm	MENU_ENUM_LABEL_HISTORY_TAB,4,4
	.comm	MENU_ENUM_LABEL_FAVORITES_TAB,4,4
	.comm	MENU_ENUM_LABEL_ADD_TAB,4,4
	.comm	MENU_ADD_TAB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_xmb.c_xmb_list_cache.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xmb_list_cache, %function
xmb_list_cache:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L32
	sub	sp, sp, #28
	mov	r4, r0
	mov	r0, #0
	mov	r7, r1
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	menu_entries_get_menu_stack_ptr
	mov	r5, r0
	mov	r0, #0
	bl	menu_entries_get_selection_buf_ptr
	mov	r8, r0
	bl	menu_navigation_get_selection
	mov	r6, r0
	bl	config_get_ptr
	cmp	r4, #0
	beq	.L1
	ldr	r3, [r0]
	cmp	r3, #0
	streq	r3, [r4]
	bne	.L28
.L6:
	mov	r1, #138
	mov	r0, r4
	bl	xmb_list_get_size
	cmp	r7, #138
	beq	.L29
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L29:
	ldr	r2, [r4, #4]
	ldr	r3, [r4, #12]
	cmp	r9, #139
	add	r0, r0, r2
	str	r3, [r4, #8]
	beq	.L31
	cmp	r3, r0
	moveq	r2, #0
	moveq	r3, #1
	addne	r3, r3, #1
	streq	r2, [r4, #12]
	streq	r3, [r4, #16]
	strne	r3, [r4, #12]
.L10:
	ldr	r6, [r5]
	ldr	r3, [r5, #4]
	sub	r6, r6, #-536870911
	add	r3, r3, r6, lsl #3
	ldr	r0, [r3, #4]
	lsl	r7, r6, #3
	cmp	r0, #0
	beq	.L12
	bl	free
	ldr	r3, [r5, #4]
	add	r3, r3, r7
.L12:
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r4, #12]
	str	r2, [r3, #4]
	bl	xmb_get_system_tab
	sub	r0, r0, #129
	cmp	r0, #7
	ldrls	pc, [pc, r0, asl #2]
	b	.L13
.L15:
	.word	.L20
	.word	.L13
	.word	.L19
	.word	.L18
	.word	.L13
	.word	.L17
	.word	.L16
	.word	.L14
.L28:
	mov	r0, #0
	add	r1, sp, #16
	str	r0, [sp, #8]
	str	r0, [sp, #12]
	str	r0, [sp, #16]
	bl	video_driver_get_size
	ldr	r2, [r8]
	cmp	r2, r6
	bhi	.L5
	cmp	r2, #0
	moveq	r6, r2
	subne	r6, r2, #1
.L5:
	add	r0, sp, #12
	add	r1, sp, #8
	str	r6, [r4]
	mov	r3, r6
	str	r0, [sp, #4]
	str	r1, [sp]
	mov	r0, r4
	ldr	r1, [sp, #16]
	bl	xmb_calculate_visible_range
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #8]
	mov	r0, r8
	ldr	r1, [r4, #20]
	bl	xmb_list_deep_copy
	ldr	r3, [r4]
	ldr	r2, [sp, #8]
	sub	r3, r3, r2
	str	r3, [r4]
	b	.L6
.L31:
	cmp	r3, #0
	subeq	r3, r0, #1
	subne	r3, r3, #1
	streq	r0, [r4, #12]
	streq	r3, [r4, #16]
	strne	r3, [r4, #12]
	b	.L10
.L14:
	ldr	r3, .L32+4
	ldr	r0, [r3]
	bl	msg_hash_to_str
	ldr	r3, [r5, #4]
	add	r7, r3, r7
	bl	strdup
	ldr	r2, .L32+8
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	str	r0, [r7, #4]
	str	r2, [r3, r6, lsl #3]
	b	.L1
.L16:
	ldr	r3, .L32+12
	ldr	r0, [r3]
	bl	msg_hash_to_str
	ldr	r3, [r5, #4]
	add	r7, r3, r7
	bl	strdup
	ldr	r2, .L32+16
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	str	r0, [r7, #4]
	str	r2, [r3, r6, lsl #3]
	b	.L1
.L17:
	ldr	r3, .L32+20
	ldr	r0, [r3]
	bl	msg_hash_to_str
	ldr	r3, [r5, #4]
	add	r7, r3, r7
	bl	strdup
	ldr	r2, .L32+24
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	str	r0, [r7, #4]
	str	r2, [r3, r6, lsl #3]
	b	.L1
.L18:
	ldr	r3, .L32+28
	ldr	r0, [r3]
	bl	msg_hash_to_str
	ldr	r3, [r5, #4]
	add	r7, r3, r7
	bl	strdup
	ldr	r2, .L32+32
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	str	r0, [r7, #4]
	str	r2, [r3, r6, lsl #3]
	b	.L1
.L19:
	ldr	r3, .L32+36
	ldr	r0, [r3]
	bl	msg_hash_to_str
	ldr	r3, [r5, #4]
	add	r7, r3, r7
	bl	strdup
	ldr	r2, .L32+40
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	str	r0, [r7, #4]
	str	r2, [r3, r6, lsl #3]
	b	.L1
.L20:
	ldr	r3, .L32+44
	ldr	r0, [r3]
	bl	msg_hash_to_str
	ldr	r3, [r5, #4]
	add	r7, r3, r7
	bl	strdup
	ldr	r2, .L32+48
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	str	r0, [r7, #4]
	str	r2, [r3, r6, lsl #3]
	b	.L1
.L13:
	ldr	r3, .L32+52
	ldr	r0, [r3]
	bl	msg_hash_to_str
	ldr	r3, [r5, #4]
	add	r7, r3, r7
	bl	strdup
	ldr	r2, .L32+56
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	str	r0, [r7, #4]
	str	r2, [r3, r6, lsl #3]
	b	.L1
.L30:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	MENU_ENUM_LABEL_ADD_TAB
	.word	MENU_ADD_TAB
	.word	MENU_ENUM_LABEL_FAVORITES_TAB
	.word	MENU_FAVORITES_TAB
	.word	MENU_ENUM_LABEL_HISTORY_TAB
	.word	MENU_HISTORY_TAB
	.word	MENU_ENUM_LABEL_MAIN_MENU
	.word	MENU_SETTINGS
	.word	MENU_ENUM_LABEL_MUSIC_TAB
	.word	MENU_MUSIC_TAB
	.word	MENU_ENUM_LABEL_SETTINGS_TAB
	.word	MENU_SETTINGS_TAB
	.word	MENU_ENUM_LABEL_HORIZONTAL_MENU
	.word	MENU_SETTING_HORIZONTAL_MENU
	.size	xmb_list_cache, .-xmb_list_cache
	.comm	MENU_VIDEO_TAB,4,4
	.comm	MENU_SETTING_HORIZONTAL_MENU,4,4
	.comm	MENU_SETTINGS_TAB,4,4
	.comm	MENU_SETTINGS,4,4
	.comm	MENU_NETPLAY_TAB,4,4
	.comm	MENU_MUSIC_TAB,4,4
	.comm	MENU_IMAGES_TAB,4,4
	.comm	MENU_HISTORY_TAB,4,4
	.comm	MENU_FAVORITES_TAB,4,4
	.comm	MENU_ENUM_LABEL_VIDEO_TAB,4,4
	.comm	MENU_ENUM_LABEL_SETTINGS_TAB,4,4
	.comm	MENU_ENUM_LABEL_NETPLAY_TAB,4,4
	.comm	MENU_ENUM_LABEL_MUSIC_TAB,4,4
	.comm	MENU_ENUM_LABEL_MAIN_MENU,4,4
	.comm	MENU_ENUM_LABEL_IMAGES_TAB,4,4
	.comm	MENU_ENUM_LABEL_HORIZONTAL_MENU,4,4
	.comm	MENU_ENUM_LABEL_HISTORY_TAB,4,4
	.comm	MENU_ENUM_LABEL_FAVORITES_TAB,4,4
	.comm	MENU_ENUM_LABEL_ADD_TAB,4,4
	.comm	MENU_ADD_TAB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
