	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_displaylist_parse_horizontal_list
_menu_displaylist_parse_horizontal_list: ## @menu_displaylist_parse_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-160(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_menu_driver_list_get_selection
	movq	_MENU_LIST_TABS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movq	%rbx, %rdi
	callq	_menu_driver_list_get_size
	movq	_MENU_LIST_HORIZONTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	-152(%rbp), %rax
	notq	%rax
	addq	-144(%rbp), %rax
	movq	%rax, -96(%rbp)
	leaq	-120(%rbp), %rdi
	callq	_menu_driver_list_get_entry
	movq	-120(%rbp), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movl	(%r12), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rbx
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	(%rbx), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r14
	movl	(%rbx), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r15
	xorl	%eax, %eax
	callq	_config_get_ptr
	movb	$0, (%r15)
	movb	$0, (%r14)
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	callq	_fill_pathname_join
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_menu_displaylist_set_new_playlist
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_fill_pathname_base_noext
	movq	%r15, %rdi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_menu_driver_set_thumbnail_system
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
LBB0_4:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_playlist_get_cached
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %rbx
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_playlist_qsort
LBB0_7:
	movq	_MENU_ENUM_LABEL_COLLECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_menu_displaylist_parse_playlist
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %r14d
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_LIST_TABS,4,2             ## @MENU_LIST_TABS
	.comm	_MENU_LIST_HORIZONTAL,4,2       ## @MENU_LIST_HORIZONTAL
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.comm	_MENU_ENUM_LABEL_COLLECTION,4,2 ## @MENU_ENUM_LABEL_COLLECTION
	.no_dead_strip	_menu_displaylist_parse_horizontal_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_displaylist_parse_horizontal_list
_menu_displaylist_parse_horizontal_list: ; @menu_displaylist_parse_horizontal_list
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #96
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	sub	x0, x29, #128
	bl	_menu_driver_list_get_selection
Lloh3:
	adrp	x8, _MENU_LIST_TABS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MENU_LIST_TABS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stur	w8, [x29, #-96]
	sub	x0, x29, #128
	bl	_menu_driver_list_get_size
Lloh6:
	adrp	x8, _MENU_LIST_HORIZONTAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MENU_LIST_HORIZONTAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stur	w8, [x29, #-136]
	ldp	x9, x8, [x29, #-120]
	mvn	x9, x9
	add	x8, x8, x9
	stur	x8, [x29, #-144]
	sub	x0, x29, #168
	bl	_menu_driver_list_get_entry
	ldur	x26, [x29, #-168]
	cbz	x26, LBB0_7
; %bb.1:
	ldr	w0, [x26]
	bl	_string_is_empty
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x27, sp
Lloh9:
	adrp	x8, _PATH_MAX_LENGTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PATH_MAX_LENGTH@GOTPAGEOFF]
	ldr	w22, [x8]
	mov	x9, x22
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x22, #15
	and	x10, x10, #0x1fffffff0
	sub	x23, x9, x10
	mov	sp, x23
	ldr	w24, [x8]
	mov	x9, x24
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x25, x8, x9
	mov	sp, x25
	bl	_config_get_ptr
	strb	wzr, [x25]
	strb	wzr, [x23]
	ldr	w1, [x0]
	ldr	w2, [x26]
	mov	x0, x23
	mov	x3, x22
	bl	_fill_pathname_join
	mov	x0, x21
	mov	x1, x23
	bl	_menu_displaylist_set_new_playlist
	ldr	w1, [x26]
	mov	x0, x25
	mov	x2, x24
	bl	_fill_pathname_base_noext
	mov	x0, x25
	mov	x1, x24
	bl	_menu_driver_set_thumbnail_system
	mov	sp, x27
LBB0_3:
	bl	_playlist_get_cached
	cbz	x0, LBB0_8
; %bb.4:
	mov	x21, x0
	cbz	w20, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_playlist_qsort
LBB0_6:
Lloh15:
	adrp	x8, _MENU_ENUM_LABEL_COLLECTION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MENU_ENUM_LABEL_COLLECTION@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_menu_displaylist_parse_playlist
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_LIST_TABS,4,2             ; @MENU_LIST_TABS
	.comm	_MENU_LIST_HORIZONTAL,4,2       ; @MENU_LIST_HORIZONTAL
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.comm	_MENU_ENUM_LABEL_COLLECTION,4,2 ; @MENU_ENUM_LABEL_COLLECTION
	.no_dead_strip	_menu_displaylist_parse_horizontal_list
.subsections_via_symbols
