	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function action_ok_push_dropdown_item_playlist_default_core
_action_ok_push_dropdown_item_playlist_default_core: ## @action_ok_push_dropdown_item_playlist_default_core
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	xorl	%eax, %eax
	callq	_playlist_get_cached
	movq	%rax, %r15
	leaq	-40(%rbp), %rdi
	callq	_core_info_get_list
	cmpq	$0, -40(%rbp)
	movl	$-1, %eax
	je	LBB0_12
## %bb.1:
	testq	%r15, %r15
	je	LBB0_12
## %bb.2:
	movq	%r14, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	movq	_MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_4
LBB0_10:
	leaq	L_.str(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_playlist_set_default_core_path
LBB0_11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_playlist_set_default_core_name
	movq	%r15, %rdi
	callq	_playlist_write_file
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_action_cancel_pop_default
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-40(%rbp), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	-40(%rbp), %rdi
	cmpq	(%rdi), %rbx
	jae	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	callq	_core_info_get
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r12
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	8(%r12), %rsi
	movq	%r15, %rdi
	callq	_playlist_set_default_core_path
	movq	(%r12), %rbx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE,4,2 ## @MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DETECT"

	.no_dead_strip	_action_ok_push_dropdown_item_playlist_default_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function action_ok_push_dropdown_item_playlist_default_core
_action_ok_push_dropdown_item_playlist_default_core: ; @action_ok_push_dropdown_item_playlist_default_core
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	str	xzr, [sp, #8]
	bl	_playlist_get_cached
	mov	x19, x0
	add	x0, sp, #8
	bl	_core_info_get_list
	ldr	x8, [sp, #8]
	cmp	x8, #0
	ccmp	x19, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_string_is_empty
	cbnz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	bl	_string_is_equal
	cbz	x0, LBB0_7
LBB0_4:
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_playlist_set_default_core_path
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_playlist_set_default_core_name
	mov	x0, x19
	bl	_playlist_write_file
	mov	x0, #0
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_action_cancel_pop_default
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.8:
	mov	x21, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	cmp	x21, x8
	b.hs	LBB0_4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_core_info_get
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x22, x0
	ldr	x1, [x0]
	mov	x0, x20
	bl	_string_is_equal
	cbz	x0, LBB0_9
; %bb.12:
	ldr	x1, [x22, #8]
	mov	x0, x19
	bl	_playlist_set_default_core_path
	ldr	x20, [x22]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE,4,2 ; @MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DETECT"

	.no_dead_strip	_action_ok_push_dropdown_item_playlist_default_core
.subsections_via_symbols
