	.file	"extr_menu_cbs_ok.c_action_ok_playlist_entry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DETECT"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"File could not be loaded from playlist.\n"
	.text
	.p2align 4
	.type	action_ok_playlist_entry, @function
action_ok_playlist_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, r8
	push	rbx
	sub	rsp, 120
	.cfi_offset 3, -56
	mov	DWORD PTR -140[rbp], edx
	mov	QWORD PTR -136[rbp], rsi
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR PATH_MAX_LENGTH[rip]
	mov	r14, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L27:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L27
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L28
.L4:
	xor	eax, eax
	mov	rbx, rsp
	call	playlist_get_cached@PLT
	mov	QWORD PTR -120[rbp], 0
	mov	r13, rax
	xor	eax, eax
	call	menu_driver_get_ptr@PLT
	mov	BYTE PTR [rsp], 0
	test	r13, r13
	je	.L15
	test	rax, rax
	je	.L15
	lea	r15, -120[rbp]
	mov	rsi, r12
	mov	rdi, r13
	mov	rdx, r15
	call	playlist_get_index@PLT
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC0[rip]
	mov	rcx, QWORD PTR [rax]
	mov	rdi, QWORD PTR 8[rax]
	mov	QWORD PTR -152[rbp], rcx
	call	string_is_equal@PLT
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, QWORD PTR 16[rax]
	call	string_is_equal@PLT
	test	rax, rax
	jne	.L29
.L8:
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, QWORD PTR 8[rax]
	call	string_is_empty@PLT
	test	eax, eax
	je	.L30
.L11:
	mov	rsi, r12
	mov	rdi, r13
	call	menu_content_playlist_load@PLT
	test	eax, eax
	je	.L31
	mov	rdx, r15
	mov	rsi, r12
	mov	rdi, r13
	call	playlist_get_index@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rdi, rbx
	mov	esi, DWORD PTR 24[rax]
	call	default_action_ok_load_content_from_playlist_from_menu@PLT
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L32
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	xor	eax, eax
	call	menu_cbs_exit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	eax, DWORD PTR MESSAGE_QUEUE_CATEGORY_INFO[rip]
	sub	rsp, 8
	mov	ecx, 1
	mov	r9d, DWORD PTR MESSAGE_QUEUE_ICON_DEFAULT[rip]
	mov	edx, 100
	xor	r8d, r8d
	mov	esi, 1
	push	rax
	lea	rdi, .LC1[rip]
	call	runloop_msg_queue_push@PLT
	xor	eax, eax
	call	menu_cbs_exit@PLT
	pop	rdx
	pop	rcx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, r14d
	mov	rdi, rbx
	mov	rsi, QWORD PTR 8[rax]
	call	strlcpy@PLT
	mov	edi, DWORD PTR PLAYLIST_LOAD[rip]
	mov	edx, r14d
	mov	rsi, rbx
	call	playlist_resolve_path@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, r13
	call	playlist_get_default_core_path@PLT
	mov	rdi, rax
	mov	QWORD PTR -160[rbp], rax
	call	string_is_empty@PLT
	mov	rcx, QWORD PTR -160[rbp]
	test	eax, eax
	je	.L33
	lea	rdi, -112[rbp]
	mov	rsi, rsp
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -112[rbp], rsp
	call	core_info_find@PLT
.L13:
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR -140[rbp]
	mov	r8, r12
	mov	rcx, r12
	mov	rsi, QWORD PTR -136[rbp]
	mov	edi, DWORD PTR 24[rax]
	call	action_ok_file_load_with_detect_core@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rsi, rcx
	mov	edx, r14d
	mov	rdi, rsp
	call	strlcpy@PLT
	mov	edi, DWORD PTR PLAYLIST_LOAD[rip]
	mov	edx, r14d
	mov	rsi, rsp
	call	playlist_resolve_path@PLT
	lea	rdi, -112[rbp]
	mov	rsi, rsp
	mov	QWORD PTR -112[rbp], rsp
	mov	QWORD PTR -104[rbp], 0
	call	core_info_find@PLT
	mov	rcx, QWORD PTR -160[rbp]
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR -104[rbp]
	pxor	xmm0, xmm0
	lea	rdx, -96[rbp]
	mov	rsi, r12
	xor	edi, edi
	movaps	XMMWORD PTR -96[rbp], xmm0
	mov	rax, QWORD PTR [rax]
	movaps	XMMWORD PTR -80[rbp], xmm0
	mov	QWORD PTR -88[rbp], rcx
	mov	QWORD PTR -80[rbp], rax
	call	command_playlist_update_write@PLT
	jmp	.L11
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	action_ok_playlist_entry, .-action_ok_playlist_entry
	.comm	PLAYLIST_LOAD,4,4
	.comm	PATH_MAX_LENGTH,4,4
	.comm	MESSAGE_QUEUE_ICON_DEFAULT,4,4
	.comm	MESSAGE_QUEUE_CATEGORY_INFO,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_menu_cbs_ok.c_action_ok_playlist_entry.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DETECT\000"
	.align	2
.LC1:
	.ascii	"File could not be loaded from playlist.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	action_ok_playlist_entry, %function
action_ok_playlist_entry:
	@ args = 4, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #76
	ldr	r3, .L25
	str	r1, [fp, #-80]
	ldr	r8, [r3]
	mov	r9, #0
	add	r3, r8, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L25+4
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r7, [fp, #4]
	bl	playlist_get_cached
	str	r9, [fp, #-72]
	mov	r5, r0
	bl	menu_driver_get_ptr
	clz	r4, r0
	cmp	r5, r9
	lsr	r4, r4, #5
	moveq	r4, #1
	cmp	r4, r9
	strb	r9, [sp, #16]
	bne	.L18
	mov	r1, r7
	sub	r2, fp, #72
	mov	r0, r5
	bl	playlist_get_index
	ldr	r3, [fp, #-72]
	ldr	r1, .L25+8
	ldr	r0, [r3, #4]
	ldr	r10, [r3]
	bl	string_is_equal
	cmp	r0, #0
	add	r9, sp, #16
	beq	.L4
	ldr	r3, [fp, #-72]
	ldr	r1, .L25+8
	ldr	r0, [r3, #8]
	bl	string_is_equal
	cmp	r0, #0
	bne	.L20
.L4:
	ldr	r3, [fp, #-72]
	ldr	r0, [r3, #4]
	bl	string_is_empty
	cmp	r0, #0
	beq	.L21
.L7:
	mov	r1, r7
	mov	r0, r5
	bl	menu_content_playlist_load
	cmp	r0, #0
	beq	.L22
	mov	r1, r7
	sub	r2, fp, #72
	mov	r0, r5
	bl	playlist_get_index
	ldr	r3, [fp, #-72]
	mov	r2, r10
	mov	r0, r9
	ldr	r1, [r3, #12]
	bl	default_action_ok_load_content_from_playlist_from_menu
	b	.L1
.L22:
	mov	r3, #1
	ldr	r1, .L25+12
	ldr	r2, .L25+16
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r0, [sp]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	mov	r1, r3
	mov	r2, #100
	ldr	r0, .L25+20
	bl	runloop_msg_queue_push
.L18:
	bl	menu_cbs_exit
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r3, [fp, #-72]
	mov	r2, r8
	ldr	r1, [r3, #4]
	mov	r0, r9
	bl	strlcpy
	ldr	r3, .L25+24
	mov	r2, r8
	mov	r1, r9
	ldr	r0, [r3]
	bl	playlist_resolve_path
	b	.L7
.L20:
	mov	r0, r5
	bl	playlist_get_default_core_path
	str	r0, [fp, #-84]
	bl	string_is_empty
	subs	r3, r0, #0
	beq	.L24
	mov	r1, r9
	sub	r0, fp, #68
	str	r4, [fp, #-64]
	str	r9, [fp, #-68]
	bl	core_info_find
.L9:
	ldr	r3, [fp, #-72]
	mov	r2, r6
	ldr	r0, [r3, #12]
	ldr	r1, [fp, #-80]
	mov	r3, r7
	str	r7, [sp]
	bl	action_ok_file_load_with_detect_core
	b	.L1
.L24:
	mov	r2, r8
	ldr	r1, [fp, #-84]
	mov	r0, r9
	str	r3, [fp, #-88]
	bl	strlcpy
	ldr	r1, .L25+24
	mov	r2, r8
	ldr	r0, [r1]
	mov	r1, r9
	bl	playlist_resolve_path
	ldr	r3, [fp, #-88]
	mov	r1, r9
	sub	r0, fp, #68
	str	r3, [fp, #-64]
	str	r9, [fp, #-68]
	bl	core_info_find
	cmp	r0, #0
	ldr	r3, [fp, #-88]
	beq	.L9
	ldr	r2, [fp, #-64]
	mov	r0, r3
	ldr	r1, [r2]
	ldr	r2, [fp, #-84]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	mov	r1, r7
	sub	r2, fp, #60
	str	r3, [fp, #-60]
	str	r3, [fp, #-48]
	str	r3, [fp, #-44]
	bl	command_playlist_update_write
	b	.L7
.L23:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	PATH_MAX_LENGTH
	.word	.LC2
	.word	.LC0
	.word	MESSAGE_QUEUE_CATEGORY_INFO
	.word	MESSAGE_QUEUE_ICON_DEFAULT
	.word	.LC1
	.word	PLAYLIST_LOAD
	.size	action_ok_playlist_entry, .-action_ok_playlist_entry
	.comm	PLAYLIST_LOAD,4,4
	.comm	PATH_MAX_LENGTH,4,4
	.comm	MESSAGE_QUEUE_ICON_DEFAULT,4,4
	.comm	MESSAGE_QUEUE_CATEGORY_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
