	.file	"extr_menu_cbs_ok.c_action_ok_add_to_favorites_playlist.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"DETECT"
	.text
	.p2align 4
	.type	action_ok_add_to_favorites_playlist, @function
action_ok_add_to_favorites_playlist:
.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
	push	rbx
	sub	rsp, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	playlist_get_cached@PLT
	mov	QWORD PTR -88[rbp], 0
	mov	r12, rax
	xor	eax, eax
	call	menu_driver_get_ptr@PLT
	test	r12, r12
	je	.L5
	test	rax, rax
	je	.L37
	mov	esi, DWORD PTR [rax]
	mov	rdi, r12
	lea	rdx, -88[rbp]
	call	playlist_get_index@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, QWORD PTR [rax]
	call	string_is_empty@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L38
.L5:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L39
	lea	rsp, -40[rbp]
	mov	eax, r12d
	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
.L38:
	.cfi_restore_state
	movsx	rax, DWORD PTR PATH_MAX_LENGTH[rip]
	mov	rcx, rsp
	mov	rbx, rsp
	mov	r13, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
.L6:
	cmp	rsp, rax
	je	.L7
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L40
.L8:
	mov	BYTE PTR [rsp], 0
	xor	eax, eax
	mov	r15, rsp
	call	string_list_new@PLT
	mov	r14, rax
	test	rax, rax
	je	.L35
	mov	rax, QWORD PTR -88[rbp]
	xor	edx, edx
	mov	rdi, r14
	mov	rsi, QWORD PTR [rax]
	call	string_list_append@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, QWORD PTR 8[rax]
	call	string_is_empty@PLT
	test	eax, eax
	jne	.L10
	mov	rax, QWORD PTR -88[rbp]
	xor	edx, edx
	mov	rdi, r14
	mov	rsi, QWORD PTR 8[rax]
	call	string_list_append@PLT
.L11:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, QWORD PTR 16[rax]
	call	string_is_empty@PLT
	test	eax, eax
	jne	.L15
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, QWORD PTR 24[rax]
	call	string_is_empty@PLT
	test	eax, eax
	je	.L41
.L15:
	xor	edx, edx
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	string_list_append@PLT
	xor	edx, edx
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	string_list_append@PLT
.L21:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, QWORD PTR 32[rax]
	call	string_is_empty@PLT
	lea	rsi, .LC0[rip]
	test	eax, eax
	jne	.L22
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, QWORD PTR 32[rax]
.L22:
	xor	edx, edx
	mov	rdi, r14
	call	string_list_append@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, QWORD PTR 40[rax]
	call	string_is_empty@PLT
	lea	rsi, .LC0[rip]
	test	eax, eax
	jne	.L23
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, QWORD PTR 40[rax]
.L23:
	xor	edx, edx
	mov	rdi, r14
	call	string_list_append@PLT
	mov	edi, DWORD PTR CMD_EVENT_ADD_TO_FAVORITES[rip]
	mov	rsi, r14
	call	command_event@PLT
	test	eax, eax
	je	.L42
.L24:
	mov	rdi, r14
	call	string_list_free@PLT
.L35:
	mov	rsp, rbx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	call	menu_cbs_exit@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	movsx	rax, DWORD PTR PATH_MAX_LENGTH[rip]
	mov	rsi, rsp
	mov	rcx, rsp
	mov	r8, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L13
.L43:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L43
.L13:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L14
	or	QWORD PTR -8[rsp+rdx], 0
.L14:
	mov	rax, QWORD PTR -88[rbp]
	mov	BYTE PTR [rsp], 0
	mov	edx, r8d
	mov	rdi, rsp
	mov	QWORD PTR -104[rbp], rcx
	mov	rsi, QWORD PTR [rax]
	call	fill_short_pathname_representation@PLT
	mov	rsi, rsp
	xor	edx, edx
	mov	rdi, r14
	call	string_list_append@PLT
	mov	rcx, QWORD PTR -104[rbp]
	mov	rsp, rcx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L42:
	call	menu_cbs_exit@PLT
	mov	r12d, eax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L40:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rax, QWORD PTR -88[rbp]
	xor	edx, edx
	mov	rdi, r14
	mov	rsi, QWORD PTR 16[rax]
	call	string_list_append@PLT
	mov	rax, QWORD PTR -88[rbp]
	lea	rdi, -80[rbp]
	mov	QWORD PTR -72[rbp], 0
	mov	rsi, QWORD PTR 16[rax]
	mov	QWORD PTR -80[rbp], rsi
	call	core_info_find@PLT
	test	rax, rax
	jne	.L44
.L17:
	mov	rdi, r15
	call	string_is_empty@PLT
	test	eax, eax
	jne	.L19
	xor	edx, edx
	mov	rsi, r15
	mov	rdi, r14
	call	string_list_append@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR -88[rbp]
	xor	edx, edx
	mov	rdi, r14
	mov	rsi, QWORD PTR 24[rax]
	call	string_list_append@PLT
	jmp	.L21
.L44:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, QWORD PTR [rax]
	call	string_is_empty@PLT
	test	eax, eax
	jne	.L17
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, r13d
	mov	rdi, r15
	mov	rsi, QWORD PTR [rax]
	call	strlcpy@PLT
	jmp	.L17
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	action_ok_add_to_favorites_playlist, .-action_ok_add_to_favorites_playlist
	.comm	PATH_MAX_LENGTH,4,4
	.comm	CMD_EVENT_ADD_TO_FAVORITES,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_add_to_favorites_playlist.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"DETECT\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_add_to_favorites_playlist, %function
action_ok_add_to_favorites_playlist:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	playlist_get_cached
	mov	r3, #0
	mov	r4, r0
	str	r3, [fp, #-44]
	bl	menu_driver_get_ptr
	cmp	r4, #0
	beq	.L5
	cmp	r0, #0
	beq	.L25
	ldr	r1, [r0]
	sub	r2, fp, #44
	mov	r0, r4
	bl	playlist_get_index
	ldr	r3, [fp, #-44]
	ldr	r0, [r3]
	bl	string_is_empty
	subs	r4, r0, #0
	beq	.L26
.L5:
	mov	r4, #0
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r4
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L26:
	ldr	r6, .L31+4
	mov	r8, sp
	ldr	r7, [r6]
	add	r3, r7, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	strb	r4, [sp]
	bl	string_list_new
	subs	r5, r0, #0
	mov	r9, sp
	beq	.L23
	ldr	r3, [fp, #-44]
	mov	r2, r4
	ldr	r1, [r3]
	bl	string_list_append
	ldr	r3, [fp, #-44]
	ldr	r0, [r3, #4]
	bl	string_is_empty
	cmp	r0, #0
	bne	.L7
	ldr	r3, [fp, #-44]
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [r3, #4]
	bl	string_list_append
.L8:
	ldr	r3, [fp, #-44]
	ldr	r0, [r3, #8]
	bl	string_is_empty
	cmp	r0, #0
	bne	.L9
	ldr	r3, [fp, #-44]
	ldr	r0, [r3, #12]
	bl	string_is_empty
	subs	r6, r0, #0
	beq	.L28
.L9:
	mov	r2, #0
	ldr	r1, .L31+8
	mov	r0, r5
	bl	string_list_append
	mov	r2, #0
	mov	r0, r5
	ldr	r1, .L31+8
	bl	string_list_append
.L15:
	ldr	r3, [fp, #-44]
	ldr	r0, [r3, #16]
	bl	string_is_empty
	cmp	r0, #0
	ldreq	r3, [fp, #-44]
	ldrne	r1, .L31+12
	ldreq	r1, [r3, #16]
	mov	r2, #0
	mov	r0, r5
	bl	string_list_append
	ldr	r3, [fp, #-44]
	ldr	r0, [r3, #20]
	bl	string_is_empty
	cmp	r0, #0
	ldreq	r3, [fp, #-44]
	ldrne	r1, .L31+12
	ldreq	r1, [r3, #20]
	mov	r2, #0
	mov	r0, r5
	bl	string_list_append
	ldr	r3, .L31+16
	mov	r1, r5
	ldr	r0, [r3]
	bl	command_event
	cmp	r0, #0
	beq	.L29
.L18:
	mov	r0, r5
	bl	string_list_free
.L23:
	mov	sp, r8
	b	.L1
.L25:
	bl	menu_cbs_exit
	mov	r4, r0
	b	.L1
.L7:
	ldr	r2, [r6]
	ldr	r1, [fp, #-44]
	add	r3, r2, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	strb	r4, [sp]
	mov	r0, sp
	ldr	r1, [r1]
	bl	fill_short_pathname_representation
	mov	r1, sp
	mov	r2, r4
	mov	r0, r5
	bl	string_list_append
	mov	sp, r9
	b	.L8
.L29:
	bl	menu_cbs_exit
	mov	r4, r0
	b	.L18
.L28:
	ldr	r3, [fp, #-44]
	mov	r2, r6
	ldr	r1, [r3, #8]
	mov	r0, r5
	bl	string_list_append
	ldr	r3, [fp, #-44]
	sub	r0, fp, #40
	ldr	r1, [r3, #8]
	str	r6, [fp, #-36]
	str	r1, [fp, #-40]
	bl	core_info_find
	cmp	r0, #0
	bne	.L30
.L11:
	mov	r0, r9
	bl	string_is_empty
	subs	r2, r0, #0
	ldrne	r3, [fp, #-44]
	moveq	r1, r9
	movne	r2, #0
	mov	r0, r5
	ldrne	r1, [r3, #12]
	bl	string_list_append
	b	.L15
.L30:
	ldr	r3, [fp, #-36]
	ldr	r0, [r3]
	bl	string_is_empty
	cmp	r0, #0
	bne	.L11
	ldr	r3, [fp, #-36]
	mov	r2, r7
	mov	r0, r9
	ldr	r1, [r3]
	bl	strlcpy
	b	.L11
.L27:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC2
	.word	PATH_MAX_LENGTH
	.word	.LC1
	.word	.LC0
	.word	CMD_EVENT_ADD_TO_FAVORITES
	.size	action_ok_add_to_favorites_playlist, .-action_ok_add_to_favorites_playlist
	.comm	PATH_MAX_LENGTH,4,4
	.comm	CMD_EVENT_ADD_TO_FAVORITES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
