	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_content_playlist_load
_menu_content_playlist_load:            ## @menu_content_playlist_load
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_playlist_get_index
	movb	$0, (%r14)
	movq	-56(%rbp), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_strlcpy
	movq	_PLAYLIST_LOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_playlist_resolve_path
	movq	%r14, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_1
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_1:
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rbx), %edi
	callq	_tolower
	movb	%al, (%r13,%rbx)
	incq	%rbx
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	addq	$4, %rax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	addq	$3, %rax
LBB0_8:
	movb	$0, (%rax)
LBB0_9:
	movq	%r13, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	movl	$1, %r15d
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_strlcpy
	movq	%r12, %rdi
	callq	_path_is_valid
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	testl	%r14d, %r14d
	je	LBB0_10
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.comm	_PLAYLIST_LOAD,4,2              ## @PLAYLIST_LOAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".zip"

L_.str.1:                               ## @.str.1
	.asciz	".7z"

	.no_dead_strip	_menu_content_playlist_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_content_playlist_load
_menu_content_playlist_load:            ; @menu_content_playlist_load
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _PATH_MAX_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	stur	xzr, [x29, #-48]
	sub	x2, x29, #48
	bl	_playlist_get_index
	strb	wzr, [x19]
	ldur	x8, [x29, #-48]
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_strlcpy
Lloh8:
	adrp	x8, _PLAYLIST_LOAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PLAYLIST_LOAD@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x20
	bl	_playlist_resolve_path
	mov	x0, x19
	bl	_string_is_empty
	cbz	w0, LBB0_2
LBB0_1:
	mov	w21, #0
	b	LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_strdup
	mov	x20, x0
	bl	_strlen
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x20, x21]
	bl	_tolower
	strb	w0, [x20, x21]
	add	x21, x21, #1
	mov	x0, x20
	bl	_strlen
	cmp	x21, w0, uxtw
	b.lo	LBB0_4
LBB0_5:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_7
; %bb.6:
	add	x8, x0, #4
	b	LBB0_9
LBB0_7:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_10
; %bb.8:
	add	x8, x0, #3
LBB0_9:
	strb	wzr, [x8]
LBB0_10:
	mov	x0, x20
	bl	_strlen
	add	w0, w0, #1
	mov	w21, #1
	mov	w1, #1
	bl	_calloc
	mov	x22, x0
	mov	x0, x20
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x22
	mov	x1, x19
	bl	_strlcpy
	mov	x0, x22
	bl	_path_is_valid
	mov	x19, x0
	mov	x0, x20
	bl	_free
	mov	x0, x22
	bl	_free
	cbz	w19, LBB0_1
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x21
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.comm	_PLAYLIST_LOAD,4,2              ; @PLAYLIST_LOAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".zip"

l_.str.1:                               ; @.str.1
	.asciz	".7z"

	.no_dead_strip	_menu_content_playlist_load
.subsections_via_symbols
