	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_load_with_detect_core_wrapper
_file_load_with_detect_core_wrapper:    ## @file_load_with_detect_core_wrapper
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, %r13
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -96(%rbp)
	xorl	%eax, %eax
	callq	_menu_driver_get_ptr
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, %r15
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_malloc
	movq	%rax, %r14
	movl	(%r13), %edi
	callq	_malloc
	movq	%rax, %r12
	movb	$0, (%r14)
	movb	$0, (%rax)
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_menu_entries_get_last_stack
	movq	-56(%rbp), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	-56(%rbp), %rsi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_strlcpy
LBB0_3:
	movq	-48(%rbp), %rbx
	movq	_MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rbx
	movq	_MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	(%r15), %rsi
	movq	8(%r15), %rdx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	callq	_fill_pathname_join
LBB0_6:
	leaq	-96(%rbp), %rdi
	callq	_core_info_get_list
	movq	-96(%rbp), %rax
	movq	%rax, -120(%rbp)
	movq	%r14, -152(%rbp)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, -144(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -136(%rbp)
	movl	24(%r15), %eax
	movl	%eax, -124(%rbp)
	movl	$4, -128(%rbp)
	movl	(%r13), %ecx
	leaq	-152(%rbp), %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_menu_content_find_first_core
	movq	%rax, %r13
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	16(%r15), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$8, %ecx
	callq	_fill_pathname_join
LBB0_10:
	movq	%r14, %rdi
	callq	_free
	movq	_MENU_ENUM_LABEL_COLLECTION@GOTPCREL(%rip), %rax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_free
	movq	_ACTION_OK_DL_DEFERRED_CORE_LIST_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	_generic_action_ok_displaylist_push
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_19:
	xorl	%eax, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_cbs_exit                  ## TAILCALL
LBB0_12:
	testq	%r13, %r13
	je	LBB0_16
## %bb.13:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -180(%rbp)
	movaps	%xmm0, -192(%rbp)
	movl	-124(%rbp), %esi
	movq	_CORE_TYPE_PLAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	leaq	-192(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_task_push_load_content_with_new_core_from_menu
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	-124(%rbp), %edi
	callq	_content_add_to_playlist
	jmp	LBB0_17
LBB0_16:
	movq	_ACTION_OK_DL_DEFERRED_CORE_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	_generic_action_ok_displaylist_push
	movl	%eax, %ebx
LBB0_17:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_18
LBB0_14:
	movq	%r12, %rdi
	callq	_free
	movl	$-1, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.comm	_MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE,4,2 ## @MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE
	.comm	_MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN,4,2 ## @MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN
	.comm	_MENU_ENUM_LABEL_COLLECTION,4,2 ## @MENU_ENUM_LABEL_COLLECTION
	.comm	_ACTION_OK_DL_DEFERRED_CORE_LIST_SET,4,2 ## @ACTION_OK_DL_DEFERRED_CORE_LIST_SET
	.comm	_CORE_TYPE_PLAIN,4,2            ## @CORE_TYPE_PLAIN
	.comm	_ACTION_OK_DL_DEFERRED_CORE_LIST,4,2 ## @ACTION_OK_DL_DEFERRED_CORE_LIST
	.no_dead_strip	_file_load_with_detect_core_wrapper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_load_with_detect_core_wrapper
_file_load_with_detect_core_wrapper:    ; @file_load_with_detect_core_wrapper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x28, x6
	mov	x19, x5
	mov	x23, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x25, x0
	stp	xzr, xzr, [sp, #56]
	str	xzr, [sp, #48]
	bl	_menu_driver_get_ptr
	cbz	x0, LBB0_12
; %bb.1:
	mov	x27, x0
	str	x23, [sp]                       ; 8-byte Folded Spill
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
Lloh0:
	adrp	x24, _PATH_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PATH_MAX_LENGTH@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_malloc
	mov	x26, x0
	ldr	w0, [x24]
	bl	_malloc
	mov	x19, x0
	strb	wzr, [x26]
	strb	wzr, [x0]
	add	x0, sp, #64
	add	x1, sp, #56
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_menu_entries_get_last_stack
	ldr	x0, [sp, #64]
	bl	_string_is_empty
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x1, [sp, #64]
	ldr	w2, [x24]
	mov	x0, x26
	bl	_strlcpy
LBB0_3:
	ldr	x23, [sp, #56]
Lloh2:
	adrp	x8, _MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x23
	bl	_string_is_equal
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x23, [sp, #56]
Lloh5:
	adrp	x8, _MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x23
	bl	_string_is_equal
	cbz	x0, LBB0_6
LBB0_5:
	ldp	x1, x2, [x27]
	ldr	w3, [x24]
	mov	x0, x26
	bl	_fill_pathname_join
LBB0_6:
	add	x0, sp, #48
	bl	_core_info_get_list
	ldr	x8, [sp, #48]
	str	x8, [sp, #104]
	stp	x26, x22, [sp, #72]
	ldr	x8, [sp, #56]
	str	x8, [sp, #88]
	ldr	w8, [x27, #24]
	mov	w9, #4
	stp	w9, w8, [sp, #96]
	ldr	w3, [x24]
	add	x0, sp, #72
	mov	w1, #0
	mov	x2, x19
	bl	_menu_content_find_first_core
	mov	x23, x0
	cbnz	w28, LBB0_10
; %bb.7:
	mov	x0, x22
	bl	_string_is_empty
	cbnz	w0, LBB0_10
; %bb.8:
	mov	x0, x26
	bl	_string_is_empty
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	x0, [x27, #16]
	mov	x1, x26
	mov	x2, x22
	mov	w3, #8
	bl	_fill_pathname_join
LBB0_10:
	mov	x0, x26
	bl	_free
Lloh8:
	adrp	x8, _MENU_ENUM_LABEL_COLLECTION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MENU_ENUM_LABEL_COLLECTION@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_free
Lloh11:
	adrp	x8, _ACTION_OK_DL_DEFERRED_CORE_LIST_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACTION_OK_DL_DEFERRED_CORE_LIST_SET@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
	mov	x0, x22
	mov	x1, #0
	mov	x2, #0
	mov	w3, #0
	mov	x4, x21
	mov	x5, x20
	bl	_generic_action_ok_displaylist_push
	mov	x20, x0
	b	LBB0_19
LBB0_12:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	b	_menu_cbs_exit
LBB0_13:
	cbz	x23, LBB0_16
; %bb.14:
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #40]
	str	xzr, [sp, #32]
	ldr	w1, [sp, #100]
Lloh14:
	adrp	x8, _CORE_TYPE_PLAIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CORE_TYPE_PLAIN@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x2, sp, #16
	mov	x0, x19
	mov	x4, #0
	mov	x5, #0
	bl	_task_push_load_content_with_new_core_from_menu
	cbz	w0, LBB0_18
; %bb.15:
	ldr	w0, [sp, #100]
	bl	_content_add_to_playlist
	mov	w20, #0
	b	LBB0_17
LBB0_16:
Lloh17:
	adrp	x8, _ACTION_OK_DL_DEFERRED_CORE_LIST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ACTION_OK_DL_DEFERRED_CORE_LIST@GOTPAGEOFF]
Lloh19:
	ldr	w6, [x8]
	mov	x0, x22
	mov	x1, #0
	ldr	x2, [sp]                        ; 8-byte Folded Reload
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	mov	x4, x21
	mov	x5, x20
	bl	_generic_action_ok_displaylist_push
	mov	x20, x0
LBB0_17:
	mov	x0, x19
	bl	_free
	b	LBB0_19
LBB0_18:
	mov	x0, x19
	bl	_free
	mov	w20, #-1
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.comm	_MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE,4,2 ; @MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE
	.comm	_MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN,4,2 ; @MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN
	.comm	_MENU_ENUM_LABEL_COLLECTION,4,2 ; @MENU_ENUM_LABEL_COLLECTION
	.comm	_ACTION_OK_DL_DEFERRED_CORE_LIST_SET,4,2 ; @ACTION_OK_DL_DEFERRED_CORE_LIST_SET
	.comm	_CORE_TYPE_PLAIN,4,2            ; @CORE_TYPE_PLAIN
	.comm	_ACTION_OK_DL_DEFERRED_CORE_LIST,4,2 ; @ACTION_OK_DL_DEFERRED_CORE_LIST
	.no_dead_strip	_file_load_with_detect_core_wrapper
.subsections_via_symbols
