	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_displaylist_set_new_playlist
_menu_displaylist_set_new_playlist:     ## @menu_displaylist_set_new_playlist
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_COLLECTION_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rsi, %rdi
	callq	_path_basename
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r12
	movq	(%r14), %rax
	movb	$0, (%rax)
	xorl	%eax, %eax
	callq	_playlist_get_cached
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_playlist_free_cached
LBB0_2:
	testq	%r12, %r12
	je	LBB0_11
## %bb.3:
	movq	%r13, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	_FILE_PATH_CONTENT_HISTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_file_path_str
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	_FILE_PATH_CONTENT_MUSIC_HISTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_file_path_str
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_FILE_PATH_CONTENT_VIDEO_HISTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_file_path_str
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_FILE_PATH_CONTENT_IMAGE_HISTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_file_path_str
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movl	8(%r12), %r15d
LBB0_11:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_playlist_init_cached
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	movl	$8, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlcpy                        ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_FILE_PATH_CONTENT_FAVORITES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_file_path_str
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	(%r12), %rax
	testq	%rax, %rax
	cmovnsl	%eax, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_COLLECTION_SIZE,4,2            ## @COLLECTION_SIZE
	.comm	_FILE_PATH_CONTENT_HISTORY,4,2  ## @FILE_PATH_CONTENT_HISTORY
	.comm	_FILE_PATH_CONTENT_MUSIC_HISTORY,4,2 ## @FILE_PATH_CONTENT_MUSIC_HISTORY
	.comm	_FILE_PATH_CONTENT_VIDEO_HISTORY,4,2 ## @FILE_PATH_CONTENT_VIDEO_HISTORY
	.comm	_FILE_PATH_CONTENT_IMAGE_HISTORY,4,2 ## @FILE_PATH_CONTENT_IMAGE_HISTORY
	.comm	_FILE_PATH_CONTENT_FAVORITES,4,2 ## @FILE_PATH_CONTENT_FAVORITES
	.no_dead_strip	_menu_displaylist_set_new_playlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_displaylist_set_new_playlist
_menu_displaylist_set_new_playlist:     ; @menu_displaylist_set_new_playlist
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _COLLECTION_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COLLECTION_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x1
	bl	_path_basename
	mov	x23, x0
	bl	_config_get_ptr
	mov	x22, x0
	ldr	x8, [x20]
	strb	wzr, [x8]
	bl	_playlist_get_cached
	cbz	x0, LBB0_2
; %bb.1:
	bl	_playlist_free_cached
LBB0_2:
	cbz	x22, LBB0_9
; %bb.3:
	mov	x0, x23
	bl	_string_is_empty
	cbnz	w0, LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _FILE_PATH_CONTENT_HISTORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FILE_PATH_CONTENT_HISTORY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_file_path_str
	mov	x1, x0
	mov	x0, x23
	bl	_string_is_equal
	cbnz	x0, LBB0_8
; %bb.5:
Lloh6:
	adrp	x8, _FILE_PATH_CONTENT_MUSIC_HISTORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FILE_PATH_CONTENT_MUSIC_HISTORY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_file_path_str
	mov	x1, x0
	mov	x0, x23
	bl	_string_is_equal
	cbnz	x0, LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _FILE_PATH_CONTENT_VIDEO_HISTORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FILE_PATH_CONTENT_VIDEO_HISTORY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_file_path_str
	mov	x1, x0
	mov	x0, x23
	bl	_string_is_equal
	cbnz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _FILE_PATH_CONTENT_IMAGE_HISTORY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FILE_PATH_CONTENT_IMAGE_HISTORY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_file_path_str
	mov	x1, x0
	mov	x0, x23
	bl	_string_is_equal
	cbz	x0, LBB0_12
LBB0_8:
	ldr	w21, [x22, #8]
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	bl	_playlist_init_cached
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x0, [x20]
	mov	x1, x19
	mov	w2, #8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_strlcpy
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh15:
	adrp	x8, _FILE_PATH_CONTENT_FAVORITES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FILE_PATH_CONTENT_FAVORITES@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_file_path_str
	mov	x1, x0
	mov	x0, x23
	bl	_string_is_equal
	cbz	x0, LBB0_9
; %bb.13:
	ldr	x8, [x22]
	cmp	x8, #0
	csel	w21, w21, w8, lt
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_COLLECTION_SIZE,4,2            ; @COLLECTION_SIZE
	.comm	_FILE_PATH_CONTENT_HISTORY,4,2  ; @FILE_PATH_CONTENT_HISTORY
	.comm	_FILE_PATH_CONTENT_MUSIC_HISTORY,4,2 ; @FILE_PATH_CONTENT_MUSIC_HISTORY
	.comm	_FILE_PATH_CONTENT_VIDEO_HISTORY,4,2 ; @FILE_PATH_CONTENT_VIDEO_HISTORY
	.comm	_FILE_PATH_CONTENT_IMAGE_HISTORY,4,2 ; @FILE_PATH_CONTENT_IMAGE_HISTORY
	.comm	_FILE_PATH_CONTENT_FAVORITES,4,2 ; @FILE_PATH_CONTENT_FAVORITES
	.no_dead_strip	_menu_displaylist_set_new_playlist
.subsections_via_symbols
