	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_displaylist_process       ## -- Begin function menu_displaylist_process
	.p2align	4, 0x90
_menu_displaylist_process:              ## @menu_displaylist_process
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, 80(%rdi)
	je	LBB0_2
## %bb.1:
	movl	$1, -48(%rbp)
	movq	_MENU_NAVIGATION_CTL_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_menu_driver_ctl
LBB0_2:
	cmpq	$0, 72(%rbx)
	je	LBB0_4
## %bb.3:
	movl	$0, -44(%rbp)
	movq	_MENU_ENTRIES_CTL_SET_REFRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	callq	_menu_entries_ctl
LBB0_4:
	cmpq	$0, 64(%rbx)
	je	LBB0_6
## %bb.5:
	movq	(%rbx), %rdi
	callq	_file_list_sort_on_alt
LBB0_6:
	movq	_new_entry@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	cmpq	$0, 40(%rbx)
	je	LBB0_10
LBB0_9:
	movq	_MENU_ENTRIES_CTL_REFRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_menu_entries_ctl
LBB0_10:
	cmpq	$0, 32(%rbx)
	je	LBB0_12
## %bb.11:
	xorl	%edi, %edi
	callq	_menu_navigation_set_selection
LBB0_12:
	cmpq	$0, 24(%rbx)
	je	LBB0_16
## %bb.13:
	cmpq	$0, 16(%rbx)
	je	LBB0_15
## %bb.14:
	movq	(%rbx), %r14
	movq	_MENU_ENUM_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movl	%eax, %r15d
	movq	_MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_msg_hash_to_str
	movl	(%r12), %ecx
	movq	_MENU_INFO_MESSAGE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%r9d, %r9d
	callq	_menu_entries_append_enum
LBB0_15:
	movq	%rbx, %rdi
	callq	_menu_driver_populate_entries
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_ui_companion_driver_notify_list_loaded
LBB0_16:
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%rbx), %rdi
	movq	_new_path_entry@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	_new_lbl_entry@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	_new_type@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	_FILE_TYPE_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$0, (%rsp)
	xorl	%r9d, %r9d
	callq	_menu_entries_prepend
	movq	(%rbx), %rdi
	movq	(%r14), %rdx
	xorl	%esi, %esi
	callq	_file_list_set_alt_at_offset
	movq	_MSG_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	(%r12), %rax
	movb	$0, (%rax)
	movq	(%r15), %rax
	movb	$0, (%rax)
	movq	(%r14), %rax
	movb	$0, (%rax)
	cmpq	$0, 40(%rbx)
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_NAVIGATION_CTL_CLEAR,4,2  ## @MENU_NAVIGATION_CTL_CLEAR
	.comm	_MENU_ENTRIES_CTL_SET_REFRESH,4,2 ## @MENU_ENTRIES_CTL_SET_REFRESH
	.comm	_new_entry,8,3                  ## @new_entry
	.comm	_new_path_entry,8,3             ## @new_path_entry
	.comm	_new_lbl_entry,8,3              ## @new_lbl_entry
	.comm	_new_type,4,2                   ## @new_type
	.comm	_FILE_TYPE_CORE,4,2             ## @FILE_TYPE_CORE
	.comm	_MSG_UNKNOWN,4,2                ## @MSG_UNKNOWN
	.comm	_MENU_ENTRIES_CTL_REFRESH,4,2   ## @MENU_ENTRIES_CTL_REFRESH
	.comm	_MENU_ENUM_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE,4,2 ## @MENU_ENUM_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE
	.comm	_MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE,4,2 ## @MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE
	.comm	_MENU_INFO_MESSAGE,4,2          ## @MENU_INFO_MESSAGE
	.comm	_MENU_ENUM_LABEL_CORE_UPDATER_LIST,4,2 ## @MENU_ENUM_LABEL_CORE_UPDATER_LIST
	.comm	_MENU_ENUM_LABEL_SIDELOAD_CORE_LIST,4,2 ## @MENU_ENUM_LABEL_SIDELOAD_CORE_LIST
	.comm	_MENU_ENUM_LABEL_START_NET_RETROPAD,4,2 ## @MENU_ENUM_LABEL_START_NET_RETROPAD
	.comm	_MENU_ENUM_LABEL_START_VIDEO_PROCESSOR,4,2 ## @MENU_ENUM_LABEL_START_VIDEO_PROCESSOR
	.comm	_MENU_ENUM_LABEL_VALUE_DOWNLOAD_CORE,4,2 ## @MENU_ENUM_LABEL_VALUE_DOWNLOAD_CORE
	.comm	_MENU_ENUM_LABEL_VALUE_SIDELOAD_CORE_LIST,4,2 ## @MENU_ENUM_LABEL_VALUE_SIDELOAD_CORE_LIST
	.comm	_MENU_ENUM_LABEL_VALUE_START_NET_RETROPAD,4,2 ## @MENU_ENUM_LABEL_VALUE_START_NET_RETROPAD
	.comm	_MENU_ENUM_LABEL_VALUE_START_VIDEO_PROCESSOR,4,2 ## @MENU_ENUM_LABEL_VALUE_START_VIDEO_PROCESSOR
	.comm	_MENU_SETTING_ACTION,4,2        ## @MENU_SETTING_ACTION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_displaylist_process       ; -- Begin function menu_displaylist_process
	.p2align	2
_menu_displaylist_process:              ; @menu_displaylist_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #80]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _MENU_NAVIGATION_CTL_CLEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_NAVIGATION_CTL_CLEAR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_menu_driver_ctl
LBB0_2:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_4
; %bb.3:
	str	wzr, [sp, #8]
Lloh3:
	adrp	x8, _MENU_ENTRIES_CTL_SET_REFRESH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MENU_ENTRIES_CTL_SET_REFRESH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_menu_entries_ctl
LBB0_4:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x0, [x19]
	bl	_file_list_sort_on_alt
LBB0_6:
Lloh6:
	adrp	x20, _new_entry@GOTPAGE
Lloh7:
	ldr	x20, [x20, _new_entry@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_string_is_empty
	cbz	w0, LBB0_16
; %bb.7:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _MENU_ENTRIES_CTL_REFRESH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MENU_ENTRIES_CTL_REFRESH@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_menu_entries_ctl
LBB0_9:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, #0
	bl	_menu_navigation_set_selection
LBB0_11:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x20, [x19]
Lloh11:
	adrp	x8, _MENU_ENUM_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MENU_ENUM_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x21, x0
Lloh14:
	adrp	x22, _MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE@GOTPAGE
Lloh15:
	ldr	x22, [x22, _MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_msg_hash_to_str
	mov	x2, x0
	ldr	w3, [x22]
Lloh16:
	adrp	x8, _MENU_INFO_MESSAGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MENU_INFO_MESSAGE@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w5, #0
	mov	w6, #0
	bl	_menu_entries_append_enum
LBB0_14:
	mov	x0, x19
	bl	_menu_driver_populate_entries
	ldr	x0, [x19]
	ldr	w1, [x19, #8]
	bl	_ui_companion_driver_notify_list_loaded
LBB0_15:
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	ldr	x0, [x19]
Lloh19:
	adrp	x21, _new_path_entry@GOTPAGE
Lloh20:
	ldr	x21, [x21, _new_path_entry@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh21:
	adrp	x22, _new_lbl_entry@GOTPAGE
Lloh22:
	ldr	x22, [x22, _new_lbl_entry@GOTPAGEOFF]
	ldr	x2, [x22]
Lloh23:
	adrp	x23, _new_type@GOTPAGE
Lloh24:
	ldr	x23, [x23, _new_type@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh25:
	adrp	x8, _FILE_TYPE_CORE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FILE_TYPE_CORE@GOTPAGEOFF]
Lloh27:
	ldr	w4, [x8]
	mov	w5, #0
	mov	w6, #0
	bl	_menu_entries_prepend
	ldr	x0, [x19]
	ldr	x2, [x20]
	mov	w1, #0
	bl	_file_list_set_alt_at_offset
Lloh28:
	adrp	x8, _MSG_UNKNOWN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MSG_UNKNOWN@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x23]
	ldr	x8, [x22]
	strb	wzr, [x8]
	ldr	x8, [x21]
	strb	wzr, [x8]
	ldr	x8, [x20]
	strb	wzr, [x8]
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_NAVIGATION_CTL_CLEAR,4,2  ; @MENU_NAVIGATION_CTL_CLEAR
	.comm	_MENU_ENTRIES_CTL_SET_REFRESH,4,2 ; @MENU_ENTRIES_CTL_SET_REFRESH
	.comm	_new_entry,8,3                  ; @new_entry
	.comm	_new_path_entry,8,3             ; @new_path_entry
	.comm	_new_lbl_entry,8,3              ; @new_lbl_entry
	.comm	_new_type,4,2                   ; @new_type
	.comm	_FILE_TYPE_CORE,4,2             ; @FILE_TYPE_CORE
	.comm	_MSG_UNKNOWN,4,2                ; @MSG_UNKNOWN
	.comm	_MENU_ENTRIES_CTL_REFRESH,4,2   ; @MENU_ENTRIES_CTL_REFRESH
	.comm	_MENU_ENUM_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE,4,2 ; @MENU_ENUM_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE
	.comm	_MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE,4,2 ; @MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE
	.comm	_MENU_INFO_MESSAGE,4,2          ; @MENU_INFO_MESSAGE
	.comm	_MENU_ENUM_LABEL_CORE_UPDATER_LIST,4,2 ; @MENU_ENUM_LABEL_CORE_UPDATER_LIST
	.comm	_MENU_ENUM_LABEL_SIDELOAD_CORE_LIST,4,2 ; @MENU_ENUM_LABEL_SIDELOAD_CORE_LIST
	.comm	_MENU_ENUM_LABEL_START_NET_RETROPAD,4,2 ; @MENU_ENUM_LABEL_START_NET_RETROPAD
	.comm	_MENU_ENUM_LABEL_START_VIDEO_PROCESSOR,4,2 ; @MENU_ENUM_LABEL_START_VIDEO_PROCESSOR
	.comm	_MENU_ENUM_LABEL_VALUE_DOWNLOAD_CORE,4,2 ; @MENU_ENUM_LABEL_VALUE_DOWNLOAD_CORE
	.comm	_MENU_ENUM_LABEL_VALUE_SIDELOAD_CORE_LIST,4,2 ; @MENU_ENUM_LABEL_VALUE_SIDELOAD_CORE_LIST
	.comm	_MENU_ENUM_LABEL_VALUE_START_NET_RETROPAD,4,2 ; @MENU_ENUM_LABEL_VALUE_START_NET_RETROPAD
	.comm	_MENU_ENUM_LABEL_VALUE_START_VIDEO_PROCESSOR,4,2 ; @MENU_ENUM_LABEL_VALUE_START_VIDEO_PROCESSOR
	.comm	_MENU_SETTING_ACTION,4,2        ; @MENU_SETTING_ACTION
.subsections_via_symbols
