	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function action_ok_add_to_favorites_playlist
_action_ok_add_to_favorites_playlist:   ## @action_ok_add_to_favorites_playlist
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_playlist_get_cached
	movq	%rax, %rbx
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	callq	_menu_driver_get_ptr
	testq	%rbx, %rbx
	je	LBB0_26
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_playlist_get_index
	movq	-56(%rbp), %rax
	movq	(%rax), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_26
## %bb.5:
	movq	%rsp, %rbx
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movb	$0, (%r14)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_string_list_new
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_string_list_append
	movq	-56(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r14
	movl	(%r15), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movb	$0, (%rbx)
	movq	-56(%rbp), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_fill_short_pathname_representation
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_string_list_append
	movq	%r14, %rsp
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.3:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_cbs_exit                  ## TAILCALL
LBB0_6:
	movq	%rbx, %rsp
	jmp	LBB0_26
LBB0_8:
	movq	-56(%rbp), %rax
	movq	8(%rax), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_string_list_append
LBB0_10:
	movq	-56(%rbp), %rax
	movq	16(%rax), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:
	movq	-56(%rbp), %rax
	movq	24(%rax), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_12
LBB0_18:
	leaq	L_.str(%rip), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_string_list_append
	movq	%r12, %rdi
	movq	%rbx, %rsi
LBB0_19:
	xorl	%edx, %edx
	callq	_string_list_append
	movq	-56(%rbp), %rax
	movq	32(%rax), %rdi
	callq	_string_is_empty
	leaq	L_.str.1(%rip), %r14
	movq	%r14, %rsi
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movq	-56(%rbp), %rax
	movq	32(%rax), %rsi
LBB0_21:
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_string_list_append
	movq	-56(%rbp), %rax
	movq	40(%rax), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:
	movq	-56(%rbp), %rax
	movq	40(%rax), %r14
LBB0_23:
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_string_list_append
	movq	_CMD_EVENT_ADD_TO_FAVORITES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_command_event
	testl	%eax, %eax
	jne	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	callq	_menu_cbs_exit
	movl	%eax, %r13d
LBB0_25:
	movq	%r12, %rdi
	callq	_string_list_free
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	-56(%rbp), %rax
	movq	16(%rax), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_string_list_append
	movq	$0, -64(%rbp)
	movq	-56(%rbp), %rax
	movq	16(%rax), %rsi
	movq	%rsi, -72(%rbp)
	leaq	-72(%rbp), %rdi
	callq	_core_info_find
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	-64(%rbp), %rax
	movq	(%rax), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	-64(%rbp), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strlcpy
LBB0_15:
	movq	%r14, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movq	-56(%rbp), %rax
	movq	24(%rax), %rsi
	movq	%r12, %rdi
	jmp	LBB0_19
LBB0_16:
	movq	%r12, %rdi
	movq	%r14, %rsi
	jmp	LBB0_19
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DETECT"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_CMD_EVENT_ADD_TO_FAVORITES,4,2 ## @CMD_EVENT_ADD_TO_FAVORITES
	.no_dead_strip	_action_ok_add_to_favorites_playlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function action_ok_add_to_favorites_playlist
_action_ok_add_to_favorites_playlist:   ; @action_ok_add_to_favorites_playlist
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_playlist_get_cached
	mov	x19, x0
	stur	xzr, [x29, #-64]
	bl	_menu_driver_get_ptr
	cbz	x19, LBB0_3
; %bb.1:
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w1, [x0]
	sub	x2, x29, #64
	mov	x0, x19
	bl	_playlist_get_index
	ldur	x8, [x29, #-64]
	ldr	x0, [x8]
	bl	_string_is_empty
	cbz	w0, LBB0_8
LBB0_3:
	mov	w20, #0
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.5:
	mov	x0, x20
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.7:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_menu_cbs_exit
LBB0_8:
	mov	x23, sp
Lloh9:
	adrp	x22, _PATH_MAX_LENGTH@GOTPAGE
Lloh10:
	ldr	x22, [x22, _PATH_MAX_LENGTH@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x9, x21
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	strb	wzr, [x20]
	bl	_string_list_new
	cbz	x0, LBB0_11
; %bb.9:
	mov	x19, x0
	ldur	x8, [x29, #-64]
	ldr	x1, [x8]
	mov	x2, #0
	bl	_string_list_append
	ldur	x8, [x29, #-64]
	ldr	x0, [x8, #8]
	bl	_string_is_empty
	cbz	w0, LBB0_12
; %bb.10:
	mov	x24, sp
	ldr	w2, [x22]
	mov	x9, x2
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	strb	wzr, [x22]
	ldur	x8, [x29, #-64]
	ldr	x1, [x8]
	mov	x0, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_fill_short_pathname_representation
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_string_list_append
	mov	sp, x24
	b	LBB0_13
LBB0_11:
	mov	sp, x23
	b	LBB0_3
LBB0_12:
	ldur	x8, [x29, #-64]
	ldr	x1, [x8, #8]
	mov	x0, x19
	mov	x2, #0
	bl	_string_list_append
LBB0_13:
	ldur	x8, [x29, #-64]
	ldr	x0, [x8, #16]
	bl	_string_is_empty
	cbnz	w0, LBB0_15
; %bb.14:
	ldur	x8, [x29, #-64]
	ldr	x0, [x8, #24]
	bl	_string_is_empty
	cbz	w0, LBB0_27
LBB0_15:
Lloh15:
	adrp	x20, l_.str@PAGE
Lloh16:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_string_list_append
LBB0_16:
	mov	x0, x19
	mov	x1, x20
LBB0_17:
	mov	x2, #0
	bl	_string_list_append
	ldur	x8, [x29, #-64]
	ldr	x0, [x8, #32]
	bl	_string_is_empty
	cbz	w0, LBB0_19
; %bb.18:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_19:
	ldur	x8, [x29, #-64]
	ldr	x1, [x8, #32]
LBB0_20:
	mov	x0, x19
	mov	x2, #0
	bl	_string_list_append
	ldur	x8, [x29, #-64]
	ldr	x0, [x8, #40]
	bl	_string_is_empty
	cbz	w0, LBB0_22
; %bb.21:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_23
LBB0_22:
	ldur	x8, [x29, #-64]
	ldr	x1, [x8, #40]
LBB0_23:
	mov	x0, x19
	mov	x2, #0
	bl	_string_list_append
Lloh21:
	adrp	x8, _CMD_EVENT_ADD_TO_FAVORITES@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CMD_EVENT_ADD_TO_FAVORITES@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_command_event
	cbz	w0, LBB0_25
; %bb.24:
	mov	w20, #0
	b	LBB0_26
LBB0_25:
	bl	_menu_cbs_exit
	mov	x20, x0
LBB0_26:
	mov	x0, x19
	bl	_string_list_free
	mov	sp, x23
	b	LBB0_4
LBB0_27:
	ldur	x8, [x29, #-64]
	ldr	x1, [x8, #16]
	mov	x0, x19
	mov	x2, #0
	bl	_string_list_append
	ldur	x8, [x29, #-64]
	ldr	x1, [x8, #16]
	stp	x1, xzr, [x29, #-80]
	sub	x0, x29, #80
	bl	_core_info_find
	cbz	x0, LBB0_30
; %bb.28:
	ldur	x8, [x29, #-72]
	ldr	x0, [x8]
	bl	_string_is_empty
	cbnz	w0, LBB0_30
; %bb.29:
	ldur	x8, [x29, #-72]
	ldr	x1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_strlcpy
LBB0_30:
	mov	x0, x20
	bl	_string_is_empty
	cbz	w0, LBB0_16
; %bb.31:
	ldur	x8, [x29, #-64]
	ldr	x1, [x8, #24]
	mov	x0, x19
	b	LBB0_17
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DETECT"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_CMD_EVENT_ADD_TO_FAVORITES,4,2 ; @CMD_EVENT_ADD_TO_FAVORITES
	.no_dead_strip	_action_ok_add_to_favorites_playlist
.subsections_via_symbols
