	.file	"extr_xmb.c_xmb_list_open_new.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xmb_list_open_new, @function
xmb_list_open_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	DWORD PTR 12[rsp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	mov	rdi, rsi
	mov	QWORD PTR 40[rsp], 0
	lea	eax, [rax+rax*4]
	lea	ebp, [rax+rax]
	mov	DWORD PTR 28[rsp], ebp
	call	file_list_get_size@PLT
	xor	edi, edi
	lea	rsi, 36[rsp]
	mov	rbx, rax
	mov	QWORD PTR 16[rsp], rax
	call	video_driver_get_size@PLT
	test	rbx, rbx
	je	.L2
	neg	ebp
	xor	r14d, r14d
	xor	ebx, ebx
	mov	DWORD PTR 24[rsp], ebp
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	DWORD PTR 12[rsp], -1
	je	.L42
.L5:
	mov	eax, DWORD PTR 12[rsp]
	imul	eax, DWORD PTR [r15]
	mov	rdx, r12
	mov	esi, r14d
	mov	rdi, r15
	add	eax, eax
	mov	DWORD PTR 8[rbp], eax
	call	xmb_item_y@PLT
	mov	eax, DWORD PTR 60[r15]
	movss	DWORD PTR 12[rbp], xmm0
	addss	xmm0, DWORD PTR 4[r15]
	mov	DWORD PTR 16[rbp], eax
	cmp	r12, rbx
	je	.L43
	movss	xmm1, DWORD PTR 12[r15]
.L8:
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR 24[rsp]
	comiss	xmm2, xmm0
	ja	.L9
	mov	eax, DWORD PTR 28[rsp]
	pxor	xmm2, xmm2
	add	eax, DWORD PTR 36[rsp]
	cvtsi2ss	xmm2, rax
	comiss	xmm0, xmm2
	jbe	.L39
.L9:
	mov	DWORD PTR 8[rbp], 0
	movss	DWORD PTR 4[rbp], xmm1
	movss	DWORD PTR 0[rbp], xmm1
.L3:
	lea	ebx, 1[r14]
	mov	r14, rbx
	cmp	rbx, QWORD PTR 16[rsp]
	jnb	.L2
.L14:
	mov	esi, r14d
	mov	rdi, r13
	call	file_list_get_userdata_at_offset@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L3
	cmp	DWORD PTR 12[rsp], 1
	jne	.L4
	mov	QWORD PTR [rax], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L43:
	mov	eax, DWORD PTR 56[r15]
	movss	xmm1, DWORD PTR 8[r15]
	mov	DWORD PTR 16[rbp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L42:
	cmp	r12, rbx
	je	.L6
	mov	DWORD PTR [rax], 0x00000000
.L6:
	mov	DWORD PTR 4[rbp], 0x00000000
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR 20[r15]
	mov	edi, DWORD PTR MENU_ENTRIES_CTL_SET_START[rip]
	lea	rsi, 40[rsp]
	mov	DWORD PTR 16[r15], eax
	call	menu_entries_ctl@PLT
	mov	esi, DWORD PTR 48[r15]
	mov	rdi, r15
	call	xmb_get_system_tab@PLT
	cmp	DWORD PTR XMB_SYSTEM_TAB_SETTINGS[rip], eax
	jnb	.L44
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L45
	add	rsp, 104
	.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
.L39:
	.cfi_restore_state
	mov	eax, DWORD PTR XMB_DELAY[rip]
	lea	rbx, 48[rsp]
	movss	DWORD PTR 48[rsp], xmm1
	mov	rdi, rbx
	mov	QWORD PTR 56[rsp], rbp
	mov	DWORD PTR 84[rsp], eax
	mov	eax, DWORD PTR EASING_OUT_QUAD[rip]
	mov	QWORD PTR 64[rsp], r13
	mov	DWORD PTR 80[rsp], eax
	mov	QWORD PTR 72[rsp], 0
	call	menu_animation_push@PLT
	lea	rax, 4[rbp]
	mov	rdi, rbx
	mov	QWORD PTR 56[rsp], rax
	call	menu_animation_push@PLT
	lea	rcx, 8[rbp]
	mov	rdi, rbx
	mov	DWORD PTR 48[rsp], 0x00000000
	mov	QWORD PTR 56[rsp], rcx
	call	menu_animation_push@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L44:
	mov	edi, DWORD PTR 24[r15]
	mov	esi, DWORD PTR MENU_THUMBNAIL_RIGHT[rip]
	call	menu_thumbnail_is_enabled@PLT
	test	rax, rax
	je	.L17
.L20:
	cmp	DWORD PTR 20[r15], 5
	jne	.L46
	cmp	QWORD PTR 40[r15], 0
	jne	.L22
.L49:
	cmp	QWORD PTR 32[r15], 0
	je	.L1
.L22:
	xor	esi, esi
	mov	rdi, r15
	call	xmb_set_thumbnail_content@PLT
	mov	edi, DWORD PTR 24[r15]
	mov	esi, DWORD PTR MENU_THUMBNAIL_RIGHT[rip]
	call	menu_thumbnail_is_enabled@PLT
	test	rax, rax
	jne	.L47
.L23:
	mov	edi, DWORD PTR 24[r15]
	mov	esi, DWORD PTR MENU_THUMBNAIL_LEFT[rip]
	call	menu_thumbnail_is_enabled@PLT
	test	rax, rax
	jne	.L48
.L24:
	mov	rdi, r15
	call	xmb_update_thumbnail_image@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rdi, r15
	call	xmb_unload_thumbnail_textures@PLT
	cmp	QWORD PTR 40[r15], 0
	je	.L49
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR 24[r15]
	mov	esi, DWORD PTR MENU_THUMBNAIL_LEFT[rip]
	call	menu_thumbnail_is_enabled@PLT
	test	rax, rax
	jne	.L20
	jmp	.L1
.L48:
	mov	edx, 76
	xor	esi, esi
	mov	rdi, r15
	call	xmb_update_thumbnail_path@PLT
	jmp	.L24
.L47:
	mov	edx, 82
	xor	esi, esi
	mov	rdi, r15
	call	xmb_update_thumbnail_path@PLT
	jmp	.L23
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xmb_list_open_new, .-xmb_list_open_new
	.comm	XMB_SYSTEM_TAB_SETTINGS,4,4
	.comm	XMB_DELAY,4,4
	.comm	MENU_THUMBNAIL_RIGHT,4,4
	.comm	MENU_THUMBNAIL_LEFT,4,4
	.comm	MENU_ENTRIES_CTL_SET_START,4,4
	.comm	EASING_OUT_QUAD,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_open_new.c"
	.text
	.global	__aeabi_fadd
	.global	__aeabi_i2f
	.global	__aeabi_fcmpgt
	.global	__aeabi_ui2f
	.global	__aeabi_fcmplt
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xmb_list_open_new, %function
xmb_list_open_new:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r1
	mov	fp, #0
	ldr	r1, [r0]
	mov	r9, r3
	ldr	r3, .L49
	sub	sp, sp, #52
	add	r1, r1, r1, lsl #2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	mov	r5, r0
	lsl	r3, r1, #1
	mov	r0, r10
	mov	r7, r2
	str	r3, [sp]
	str	fp, [sp, #16]
	bl	file_list_get_size
	mov	r4, r0
	str	r0, [sp, #4]
	add	r1, sp, #12
	mov	r0, fp
	bl	video_driver_get_size
	cmp	r4, fp
	bne	.L12
	b	.L2
.L9:
	mov	r2, #0
	str	r8, [r4, #4]	@ float
	str	r8, [r4]	@ float
	str	r2, [r4, #8]
.L3:
	ldr	r3, [sp, #4]
	add	fp, fp, #1
	cmp	r3, fp
	beq	.L2
.L12:
	mov	r1, fp
	mov	r0, r10
	bl	file_list_get_userdata_at_offset
	subs	r4, r0, #0
	beq	.L3
	cmp	r7, #1
	moveq	r3, #0
	streq	r3, [r4]	@ float
	streq	r3, [r4, #4]	@ float
	beq	.L5
	cmn	r7, #1
	bne	.L5
	cmp	r9, fp
	movne	r3, #0
	strne	r3, [r4]	@ float
	mov	r3, #0
	str	r3, [r4, #4]	@ float
.L5:
	ldr	r1, [r5]
	mov	r2, r9
	mul	r1, r7, r1
	lsl	r1, r1, #1
	str	r1, [r4, #8]
	mov	r0, r5
	mov	r1, fp
	bl	xmb_item_y
	ldr	r2, [r5, #44]
	ldr	r1, [r5, #4]	@ float
	str	r2, [r4, #16]
	str	r0, [r4, #12]	@ float
	bl	__aeabi_fadd
	mov	r6, r0
	cmp	r9, fp
	ldreq	r2, [r5, #40]
	ldr	r3, [sp]
	ldreq	r8, [r5, #8]	@ float
	rsb	r0, r3, #0
	streq	r2, [r4, #16]
	ldrne	r8, [r5, #12]	@ float
	bl	__aeabi_i2f
	mov	r1, r6
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	bne	.L9
	ldr	r3, [sp]
	ldr	r0, [sp, #12]
	add	r0, r3, r0
	bl	__aeabi_ui2f
	mov	r1, r6
	bl	__aeabi_fcmplt
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L49+4
	str	r0, [sp, #32]
	ldr	r1, [r3]
	ldr	r3, .L49+8
	add	r0, sp, #20
	ldr	r2, [r3]
	str	r1, [sp, #40]
	str	r4, [sp, #24]
	str	r2, [sp, #36]
	str	r8, [sp, #20]	@ float
	str	r10, [sp, #28]
	bl	menu_animation_push
	add	r2, r4, #4
	add	r0, sp, #20
	str	r2, [sp, #24]
	bl	menu_animation_push
	mov	r3, #0
	add	r0, sp, #20
	add	r4, r4, #8
	str	r3, [sp, #20]	@ float
	str	r4, [sp, #24]
	bl	menu_animation_push
	ldr	r3, [sp, #4]
	add	fp, fp, #1
	cmp	r3, fp
	bne	.L12
.L2:
	ldr	r3, .L49+12
	ldr	r2, [r5, #20]
	ldr	r0, [r3]
	str	r2, [r5, #16]
	add	r1, sp, #16
	bl	menu_entries_ctl
	mov	r0, r5
	ldr	r1, [r5, #36]
	bl	xmb_get_system_tab
	ldr	r3, .L49+16
	ldr	r3, [r3]
	cmp	r3, r0
	bcs	.L43
.L1:
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L44
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L43:
	ldr	r4, .L49+20
	ldr	r0, [r5, #24]
	ldr	r1, [r4]
	bl	menu_thumbnail_is_enabled
	cmp	r0, #0
	beq	.L15
.L18:
	ldr	r3, [r5, #20]
	cmp	r3, #5
	bne	.L45
	ldr	r3, [r5, #32]
	cmp	r3, #0
	bne	.L20
.L48:
	ldr	r3, [r5, #28]
	cmp	r3, #0
	beq	.L1
.L20:
	mov	r1, #0
	mov	r0, r5
	bl	xmb_set_thumbnail_content
	ldr	r1, [r4]
	ldr	r0, [r5, #24]
	bl	menu_thumbnail_is_enabled
	cmp	r0, #0
	bne	.L46
.L21:
	ldr	r3, .L49+24
	ldr	r0, [r5, #24]
	ldr	r1, [r3]
	bl	menu_thumbnail_is_enabled
	cmp	r0, #0
	bne	.L47
.L22:
	mov	r0, r5
	bl	xmb_update_thumbnail_image
	b	.L1
.L45:
	mov	r0, r5
	bl	xmb_unload_thumbnail_textures
	ldr	r3, [r5, #32]
	cmp	r3, #0
	beq	.L48
	b	.L20
.L15:
	ldr	r3, .L49+24
	ldr	r0, [r5, #24]
	ldr	r1, [r3]
	bl	menu_thumbnail_is_enabled
	cmp	r0, #0
	bne	.L18
	b	.L1
.L47:
	mov	r2, #76
	mov	r1, #0
	mov	r0, r5
	bl	xmb_update_thumbnail_path
	b	.L22
.L46:
	mov	r2, #82
	mov	r1, #0
	mov	r0, r5
	bl	xmb_update_thumbnail_path
	b	.L21
.L44:
	bl	__stack_chk_fail
.L50:
	.align	2
.L49:
	.word	.LC0
	.word	XMB_DELAY
	.word	EASING_OUT_QUAD
	.word	MENU_ENTRIES_CTL_SET_START
	.word	XMB_SYSTEM_TAB_SETTINGS
	.word	MENU_THUMBNAIL_RIGHT
	.word	MENU_THUMBNAIL_LEFT
	.size	xmb_list_open_new, .-xmb_list_open_new
	.comm	XMB_SYSTEM_TAB_SETTINGS,4,4
	.comm	XMB_DELAY,4,4
	.comm	MENU_THUMBNAIL_RIGHT,4,4
	.comm	MENU_THUMBNAIL_LEFT,4,4
	.comm	MENU_ENTRIES_CTL_SET_START,4,4
	.comm	EASING_OUT_QUAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
