	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_menu_init_list
_xmb_menu_init_list:                    ## @xmb_menu_init_list
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%edi, %edi
	callq	_menu_entries_get_menu_stack_ptr
	movq	%rax, %r12
	xorl	%edi, %edi
	callq	_menu_entries_get_selection_buf_ptr
	movq	%rax, %r15
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	callq	_menu_displaylist_info_init
	movq	_MENU_ENUM_LABEL_MAIN_MENU@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_msg_hash_to_str
	movq	%rax, %rdi
	callq	_strdup
	movq	%rax, %rbx
	movq	%rax, -72(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_strdup
	movq	%rax, -48(%rbp)
	movq	_FILE_TYPE_PLAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	(%r13), %ecx
	movl	%ecx, -60(%rbp)
	movl	-64(%rbp), %esi
	movl	-80(%rbp), %r9d
	movl	-76(%rbp), %r8d
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_menu_entries_append_enum
	movq	%r15, -88(%rbp)
	movq	_DISPLAYLIST_MAIN_MENU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_menu_displaylist_ctl
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	$1, -96(%rbp)
	leaq	-96(%rbp), %rdi
	callq	_menu_displaylist_process
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	leaq	-96(%rbp), %rdi
	callq	_menu_displaylist_info_free
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_ENUM_LABEL_MAIN_MENU,4,2  ## @MENU_ENUM_LABEL_MAIN_MENU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lpl"

	.comm	_FILE_TYPE_PLAIN,4,2            ## @FILE_TYPE_PLAIN
	.comm	_DISPLAYLIST_MAIN_MENU,4,2      ## @DISPLAYLIST_MAIN_MENU
	.no_dead_strip	_xmb_menu_init_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmb_menu_init_list
_xmb_menu_init_list:                    ; @xmb_menu_init_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	w0, #0
	bl	_menu_entries_get_menu_stack_ptr
	mov	x19, x0
	mov	w0, #0
	bl	_menu_entries_get_selection_buf_ptr
	mov	x20, x0
	add	x0, sp, #8
	bl	_menu_displaylist_info_init
Lloh0:
	adrp	x22, _MENU_ENUM_LABEL_MAIN_MENU@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MENU_ENUM_LABEL_MAIN_MENU@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_msg_hash_to_str
	bl	_strdup
	mov	x21, x0
	str	x0, [sp, #32]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strdup
	str	x0, [sp, #56]
Lloh4:
	adrp	x8, _FILE_TYPE_PLAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FILE_TYPE_PLAIN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w3, [x22]
	stp	w3, w8, [sp, #44]
	ldr	w1, [sp, #40]
	ldp	w5, w4, [sp, #24]
	mov	x0, x19
	mov	x2, x21
	mov	w6, #0
	bl	_menu_entries_append_enum
	str	x20, [sp, #16]
Lloh7:
	adrp	x8, _DISPLAYLIST_MAIN_MENU@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DISPLAYLIST_MAIN_MENU@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_menu_displaylist_ctl
	cbz	w0, LBB0_2
; %bb.1:
	mov	w19, #1
	str	w19, [sp, #8]
	add	x0, sp, #8
	bl	_menu_displaylist_process
	cbnz	w0, LBB0_3
LBB0_2:
	mov	w19, #0
LBB0_3:
	add	x0, sp, #8
	bl	_menu_displaylist_info_free
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_ENUM_LABEL_MAIN_MENU,4,2  ; @MENU_ENUM_LABEL_MAIN_MENU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lpl"

	.comm	_FILE_TYPE_PLAIN,4,2            ; @FILE_TYPE_PLAIN
	.comm	_DISPLAYLIST_MAIN_MENU,4,2      ; @DISPLAYLIST_MAIN_MENU
	.no_dead_strip	_xmb_menu_init_list
.subsections_via_symbols
