	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_init_horizontal_list
_xmb_init_horizontal_list:              ## @xmb_init_horizontal_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r14
	leaq	-64(%rbp), %rdi
	callq	_menu_displaylist_info_init
	movq	(%r15), %rax
	movq	%rax, -32(%rbp)
	movq	8(%r14), %rdi
	callq	_strdup
	movq	%rax, -64(%rbp)
	movq	_MENU_ENUM_LABEL_PLAYLISTS_TAB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_msg_hash_to_str
	movq	%rax, %rdi
	callq	_strdup
	movq	%rax, -40(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_strdup
	movq	%rax, -48(%rbp)
	movq	_FILE_TYPE_PLAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.1:
	movq	-64(%rbp), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	_DISPLAYLIST_DATABASE_PLAYLISTS_HORIZONTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_menu_displaylist_ctl
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_xmb_node_allocate_userdata
	incq	%rbx
	movq	(%r15), %rax
	cmpq	(%rax), %rbx
	jb	LBB0_5
LBB0_6:
	leaq	-64(%rbp), %rdi
	callq	_menu_displaylist_process
LBB0_7:
	leaq	-64(%rbp), %rdi
	callq	_menu_displaylist_info_free
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_ENUM_LABEL_PLAYLISTS_TAB,4,2 ## @MENU_ENUM_LABEL_PLAYLISTS_TAB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lpl"

	.comm	_FILE_TYPE_PLAIN,4,2            ## @FILE_TYPE_PLAIN
	.comm	_DISPLAYLIST_DATABASE_PLAYLISTS_HORIZONTAL,4,2 ## @DISPLAYLIST_DATABASE_PLAYLISTS_HORIZONTAL
	.no_dead_strip	_xmb_init_horizontal_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmb_init_horizontal_list
_xmb_init_horizontal_list:              ; @xmb_init_horizontal_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	bl	_config_get_ptr
	mov	x20, x0
	add	x0, sp, #8
	bl	_menu_displaylist_info_init
	ldr	x8, [x19]
	str	x8, [sp, #40]
	ldr	x0, [x20, #8]
	bl	_strdup
	str	x0, [sp, #8]
Lloh0:
	adrp	x21, _MENU_ENUM_LABEL_PLAYLISTS_TAB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MENU_ENUM_LABEL_PLAYLISTS_TAB@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_msg_hash_to_str
	bl	_strdup
	str	x0, [sp, #32]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strdup
Lloh4:
	adrp	x8, _FILE_TYPE_PLAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FILE_TYPE_PLAIN@GOTPAGEOFF]
	str	x0, [sp, #24]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x21]
	stp	w9, w8, [sp, #16]
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_string_is_empty
	cbnz	w0, LBB0_7
; %bb.2:
Lloh7:
	adrp	x8, _DISPLAYLIST_DATABASE_PLAYLISTS_HORIZONTAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DISPLAYLIST_DATABASE_PLAYLISTS_HORIZONTAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_menu_displaylist_ctl
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_xmb_node_allocate_userdata
	add	x20, x20, #1
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	x20, x8
	b.lo	LBB0_5
LBB0_6:
	add	x0, sp, #8
	bl	_menu_displaylist_process
LBB0_7:
	add	x0, sp, #8
	bl	_menu_displaylist_info_free
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_ENUM_LABEL_PLAYLISTS_TAB,4,2 ; @MENU_ENUM_LABEL_PLAYLISTS_TAB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lpl"

	.comm	_FILE_TYPE_PLAIN,4,2            ; @FILE_TYPE_PLAIN
	.comm	_DISPLAYLIST_DATABASE_PLAYLISTS_HORIZONTAL,4,2 ; @DISPLAYLIST_DATABASE_PLAYLISTS_HORIZONTAL
	.no_dead_strip	_xmb_init_horizontal_list
.subsections_via_symbols
