	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_thumbnail_set_content_playlist ## -- Begin function menu_thumbnail_set_content_playlist
	.p2align	4, 0x90
_menu_thumbnail_set_content_playlist:   ## @menu_thumbnail_set_content_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movb	$0, (%rax)
	movq	8(%rdi), %rax
	movb	$0, (%rax)
	movq	16(%rdi), %rax
	movb	$0, (%rax)
	movq	24(%rdi), %rax
	movb	$0, (%rax)
	movq	32(%rdi), %rax
	movb	$0, (%rax)
	movq	40(%rdi), %rax
	movb	$0, (%rax)
	movq	48(%rdi), %rax
	movb	$0, (%rax)
	movq	_PLAYLIST_THUMBNAIL_MODE_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%rdi)
	movq	%rax, 56(%rdi)
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.2:
	movq	%rdx, %r12
	movq	%r14, %rdi
	callq	_playlist_get_size
	cmpq	%r12, %rax
	jbe	LBB0_18
## %bb.3:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_playlist_get_index
	movq	-56(%rbp), %rax
	movq	(%rax), %r13
	movq	8(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %r12
	movq	%r13, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_18
## %bb.4:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	32(%rbx), %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_strlcpy
LBB0_6:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_string_is_empty
	movq	24(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_fill_short_pathname_representation
	jmp	LBB0_9
LBB0_7:
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_strlcpy
LBB0_9:
	movq	%rbx, %rdi
	callq	_fill_content_img
	movq	48(%rbx), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_18
## %bb.10:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_17
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rsp, %r13
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%r15, %rsi
	movq	%rsp, %r15
	movb	$0, (%r15)
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_strlcpy
	movq	%r15, %rdi
	callq	_path_remove_extension
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_string_is_empty
	movq	40(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%r15, %rsi
	jmp	LBB0_16
LBB0_12:
	movq	40(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$8, %edx
	callq	_strlcpy
	jmp	LBB0_17
LBB0_14:
	movq	%r12, %rsi
LBB0_16:
	movl	$8, %edx
	callq	_strlcpy
	movq	%r13, %rsp
LBB0_17:
	movq	_PLAYLIST_THUMBNAIL_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_playlist_get_thumbnail_mode
	movq	%rax, 64(%rbx)
	movq	_PLAYLIST_THUMBNAIL_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_playlist_get_thumbnail_mode
	movq	%rax, 56(%rbx)
	movl	$1, %r15d
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PLAYLIST_THUMBNAIL_MODE_DEFAULT,8,3 ## @PLAYLIST_THUMBNAIL_MODE_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAME"

	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.comm	_PLAYLIST_THUMBNAIL_RIGHT,4,2   ## @PLAYLIST_THUMBNAIL_RIGHT
	.comm	_PLAYLIST_THUMBNAIL_LEFT,4,2    ## @PLAYLIST_THUMBNAIL_LEFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_thumbnail_set_content_playlist ; -- Begin function menu_thumbnail_set_content_playlist
	.p2align	2
_menu_thumbnail_set_content_playlist:   ; @menu_thumbnail_set_content_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
	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, #-56]
	stur	xzr, [x29, #-64]
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	strb	wzr, [x8]
	ldr	x8, [x0, #8]
	strb	wzr, [x8]
	ldr	x8, [x0, #16]
	strb	wzr, [x8]
	ldr	x8, [x0, #24]
	strb	wzr, [x8]
	ldr	x8, [x0, #32]
	strb	wzr, [x8]
	ldr	x8, [x0, #40]
	strb	wzr, [x8]
	ldr	x8, [x0, #48]
	strb	wzr, [x8]
Lloh3:
	adrp	x8, _PLAYLIST_THUMBNAIL_MODE_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLAYLIST_THUMBNAIL_MODE_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x8, [x0, #56]
	cbz	x1, LBB0_10
; %bb.2:
	mov	x21, x2
	mov	x0, x20
	bl	_playlist_get_size
	cmp	x0, x21
	b.ls	LBB0_10
; %bb.3:
	sub	x2, x29, #64
	mov	x0, x20
	mov	x1, x21
	bl	_playlist_get_index
	ldur	x8, [x29, #-64]
	ldp	x22, x23, [x8]
	ldp	x24, x21, [x8, #16]
	mov	x0, x22
	bl	_string_is_empty
	cbnz	x0, LBB0_10
; %bb.4:
	ldr	x0, [x19, #16]
	mov	x1, x22
	mov	w2, #8
	bl	_strlcpy
	mov	x0, x24
	bl	_string_is_empty
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x19, #32]
	mov	x1, x24
	mov	w2, #8
	bl	_strlcpy
LBB0_6:
	mov	x0, x23
	bl	_string_is_empty
	mov	x8, x0
	ldr	x0, [x19, #24]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x1, x22
	mov	w2, #8
	bl	_fill_short_pathname_representation
	b	LBB0_9
LBB0_8:
	mov	x1, x23
	mov	w2, #8
	bl	_strlcpy
LBB0_9:
	mov	x0, x19
	bl	_fill_content_img
	ldr	x0, [x19, #48]
	bl	_string_is_empty
	cbz	x0, LBB0_13
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.12:
	sub	sp, x29, #48
	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_13:
	mov	x0, x21
	bl	_string_is_empty
	cbnz	x0, LBB0_20
; %bb.14:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_17
; %bb.15:
	mov	x23, sp
Lloh11:
	adrp	x8, _PATH_MAX_LENGTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PATH_MAX_LENGTH@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x9, x2
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	strb	wzr, [x22]
	mov	x0, x22
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_strlcpy
	mov	x0, x22
	bl	_path_remove_extension
	mov	x21, x0
	bl	_string_is_empty
	mov	x8, x0
	ldr	x0, [x19, #40]
	cbz	x8, LBB0_18
; %bb.16:
	mov	x1, x22
	b	LBB0_19
LBB0_17:
	ldr	x0, [x19, #40]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #8
	bl	_strlcpy
	b	LBB0_20
LBB0_18:
	mov	x1, x21
LBB0_19:
	mov	w2, #8
	bl	_strlcpy
	mov	sp, x23
LBB0_20:
Lloh18:
	adrp	x8, _PLAYLIST_THUMBNAIL_RIGHT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PLAYLIST_THUMBNAIL_RIGHT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_playlist_get_thumbnail_mode
	str	x0, [x19, #64]
Lloh21:
	adrp	x8, _PLAYLIST_THUMBNAIL_LEFT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PLAYLIST_THUMBNAIL_LEFT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_playlist_get_thumbnail_mode
	str	x0, [x19, #56]
	mov	w0, #1
	b	LBB0_11
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PLAYLIST_THUMBNAIL_MODE_DEFAULT,8,3 ; @PLAYLIST_THUMBNAIL_MODE_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAME"

	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.comm	_PLAYLIST_THUMBNAIL_RIGHT,4,2   ; @PLAYLIST_THUMBNAIL_RIGHT
	.comm	_PLAYLIST_THUMBNAIL_LEFT,4,2    ; @PLAYLIST_THUMBNAIL_LEFT
.subsections_via_symbols
