	.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
_action_ok_add_to_favorites:            ## @action_ok_add_to_favorites
	.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	$120, %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)
	movq	_RARCH_PATH_CONTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_path_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_string_is_empty
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_29
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_global_get_ptr
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_runloop_get_libretro_system_info
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rsp, %r14
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	(%rbx), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movb	$0, (%r13)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movb	$0, (%r12)
	movq	%rax, %r12
	movb	$0, (%rax)
	xorl	%eax, %eax
	callq	_string_list_new
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_28
## %bb.2:
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	(%rbx), %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strlcpy
LBB0_5:
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-144(%rbp), %r14                ## 8-byte Reload
	movq	-136(%rbp), %r15                ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_fill_short_pathname_representation
LBB0_7:
	testq	%r15, %r15
	je	LBB0_15
## %bb.8:
	movq	_RARCH_PATH_CORE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_path_get
	movq	%rax, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_9
LBB0_12:
	movq	%r12, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	(%r15), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	(%r15), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_strlcpy
LBB0_15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_18
LBB0_17:
	leaq	L_.str(%rip), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_strlcpy
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_strlcpy
LBB0_18:
	movq	%r12, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_menu_driver_get_ptr
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_playlist_get_cached
	movq	%rax, %r12
	movl	(%rbx), %esi
	movq	%rax, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_playlist_index_is_valid
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movl	(%rbx), %esi
	leaq	-80(%rbp), %rdx
	movq	%r12, %rdi
	callq	_playlist_get_crc32
	movl	(%rbx), %esi
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	callq	_playlist_get_db_name
LBB0_21:
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_string_list_append
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_string_list_append
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_string_list_append
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_string_list_append
	movq	-80(%rbp), %rdi
	callq	_string_is_empty
	leaq	L_.str.1(%rip), %r12
	movq	%r12, %rsi
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:
	movq	-80(%rbp), %rsi
LBB0_23:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_string_list_append
	movq	-72(%rbp), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	movq	-120(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_25
## %bb.24:
	movq	-72(%rbp), %r12
LBB0_25:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_string_list_append
	movq	_CMD_EVENT_ADD_TO_FAVORITES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_command_event
	testl	%eax, %eax
	jne	LBB0_27
## %bb.26:
	xorl	%eax, %eax
	callq	_menu_cbs_exit
	movl	%eax, %r15d
LBB0_27:
	movq	%rbx, %rdi
	callq	_string_list_free
LBB0_28:
	movq	%r14, %rsp
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%rbx), %edi
	callq	_path_get
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_strlcpy
	movq	$0, -104(%rbp)
	movq	%rbx, -112(%rbp)
	leaq	-112(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_core_info_find
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	-104(%rbp), %rax
	movq	(%rax), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	-104(%rbp), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_strlcpy
	jmp	LBB0_12
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_PATH_CONTENT,4,2         ## @RARCH_PATH_CONTENT
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.comm	_RARCH_PATH_CORE,4,2            ## @RARCH_PATH_CORE
	.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
.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
_action_ok_add_to_favorites:            ; @action_ok_add_to_favorites
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _RARCH_PATH_CONTENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RARCH_PATH_CONTENT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_path_get
	mov	x20, x0
	bl	_string_is_empty
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_24
LBB0_2:
	bl	_global_get_ptr
	mov	x27, x0
	bl	_runloop_get_libretro_system_info
	mov	x25, x0
	mov	x28, sp
	stp	xzr, xzr, [x29, #-104]
Lloh6:
	adrp	x8, _PATH_MAX_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PATH_MAX_LENGTH@GOTPAGEOFF]
	ldr	w26, [x8]
	mov	x9, x26
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x26, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	ldr	w24, [x8]
	mov	x9, x24
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x12, x9, #0x1fffffff0
	sub	x22, x8, x12
	mov	sp, x22
	mov	x9, x24
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	strb	wzr, [x21]
	strb	wzr, [x22]
	strb	wzr, [x23]
	bl	_string_list_new
	cbz	x0, LBB0_21
; %bb.3:
	mov	x19, x0
	cbz	x27, LBB0_6
; %bb.4:
	ldr	x0, [x27]
	bl	_string_is_empty
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x1, [x27]
	mov	x0, x21
	mov	x2, x26
	bl	_strlcpy
LBB0_6:
	mov	x0, x21
	bl	_string_is_empty
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x26
	bl	_fill_short_pathname_representation
LBB0_8:
	cbz	x25, LBB0_13
; %bb.9:
Lloh14:
	adrp	x26, _RARCH_PATH_CORE@GOTPAGE
Lloh15:
	ldr	x26, [x26, _RARCH_PATH_CORE@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_path_get
	bl	_string_is_empty
	cbz	x0, LBB0_26
LBB0_10:
	mov	x0, x23
	bl	_string_is_empty
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x0, [x25]
	bl	_string_is_empty
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	x1, [x25]
	mov	x0, x23
	mov	x2, x24
	bl	_strlcpy
LBB0_13:
	mov	x0, x22
	bl	_string_is_empty
	cbnz	x0, LBB0_15
; %bb.14:
	mov	x0, x23
	bl	_string_is_empty
	cbz	x0, LBB0_16
LBB0_15:
Lloh16:
	adrp	x25, l_.str@PAGE
Lloh17:
	add	x25, x25, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	bl	_strlcpy
	mov	x0, x23
	mov	x1, x25
	mov	x2, x24
	bl	_strlcpy
LBB0_16:
	bl	_menu_driver_get_ptr
	cbz	x0, LBB0_19
; %bb.17:
	mov	x24, x0
	bl	_playlist_get_cached
	mov	x25, x0
	ldr	w1, [x24]
	mov	x2, x20
	mov	x3, x22
	bl	_playlist_index_is_valid
	cbz	x0, LBB0_19
; %bb.18:
	ldr	w1, [x24]
	sub	x2, x29, #96
	mov	x0, x25
	bl	_playlist_get_crc32
	ldr	w1, [x24]
	sub	x2, x29, #104
	mov	x0, x25
	bl	_playlist_get_db_name
LBB0_19:
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_string_list_append
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_string_list_append
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_string_list_append
	mov	x0, x19
	mov	x1, x23
	mov	x2, #0
	bl	_string_list_append
	ldur	x0, [x29, #-96]
	bl	_string_is_empty
	ldur	x8, [x29, #-96]
Lloh18:
	adrp	x20, l_.str.1@PAGE
Lloh19:
	add	x20, x20, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x1, x8, x20, eq
	mov	x0, x19
	mov	x2, #0
	bl	_string_list_append
	ldur	x0, [x29, #-104]
	bl	_string_is_empty
	ldur	x8, [x29, #-104]
	cmp	x0, #0
	csel	x1, x8, x20, eq
	mov	x0, x19
	mov	x2, #0
	bl	_string_list_append
Lloh20:
	adrp	x8, _CMD_EVENT_ADD_TO_FAVORITES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CMD_EVENT_ADD_TO_FAVORITES@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_command_event
	cbz	w0, LBB0_22
; %bb.20:
	mov	w20, #0
	b	LBB0_23
LBB0_21:
	mov	sp, x28
	mov	w20, #0
	b	LBB0_24
LBB0_22:
	bl	_menu_cbs_exit
	mov	x20, x0
LBB0_23:
	mov	x0, x19
	bl	_string_list_free
	mov	sp, x28
LBB0_24:
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.25:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	ldr	w0, [x26]
	bl	_path_get
	mov	x1, x0
	mov	x0, x22
	mov	x2, x24
	bl	_strlcpy
	stp	x22, xzr, [x29, #-120]
	sub	x0, x29, #120
	mov	x1, x22
	bl	_core_info_find
	cbz	x0, LBB0_10
; %bb.27:
	ldur	x8, [x29, #-112]
	ldr	x0, [x8]
	bl	_string_is_empty
	cbnz	x0, LBB0_10
; %bb.28:
	ldur	x8, [x29, #-112]
	ldr	x1, [x8]
	mov	x0, x23
	mov	x2, x24
	bl	_strlcpy
	b	LBB0_10
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_PATH_CONTENT,4,2         ; @RARCH_PATH_CONTENT
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.comm	_RARCH_PATH_CORE,4,2            ; @RARCH_PATH_CORE
	.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
.subsections_via_symbols
