	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_thumbnail_set_content_image ## -- Begin function menu_thumbnail_set_content_image
	.p2align	4, 0x90
_menu_thumbnail_set_content_image:      ## @menu_thumbnail_set_content_image
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	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)
	movq	%rsi, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	%r14, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	callq	_path_is_media_type
	movq	_RARCH_CONTENT_IMAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movq	48(%rbx), %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	48(%rbx), %rdi
	callq	_path_remove_extension
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_string_is_empty
	movq	24(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	48(%rbx), %r12
LBB0_6:
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	16(%rbx), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	$8, %ecx
	callq	_fill_pathname_join
	movq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	40(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	16(%rbx), %rdi
	callq	_string_is_empty
	xorl	%r12d, %r12d
	testq	%rax, %rax
	sete	%r12b
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLAYLIST_THUMBNAIL_MODE_DEFAULT,8,3 ## @PLAYLIST_THUMBNAIL_MODE_DEFAULT
	.comm	_RARCH_CONTENT_IMAGE,8,3        ## @RARCH_CONTENT_IMAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"imageviewer"

L_.str.1:                               ## @.str.1
	.asciz	"_images_"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_thumbnail_set_content_image ; -- Begin function menu_thumbnail_set_content_image
	.p2align	2
_menu_thumbnail_set_content_image:      ; @menu_thumbnail_set_content_image
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x21, 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]
Lloh0:
	adrp	x8, _PLAYLIST_THUMBNAIL_MODE_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLAYLIST_THUMBNAIL_MODE_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [x0, #56]
	mov	x0, x1
	bl	_string_is_empty
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_string_is_empty
	cbnz	x0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_path_is_media_type
Lloh3:
	adrp	x8, _RARCH_CONTENT_IMAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RARCH_CONTENT_IMAGE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.4:
	ldr	x0, [x19, #48]
	mov	x1, x20
	mov	w2, #8
	bl	_strlcpy
	ldr	x0, [x19, #48]
	bl	_path_remove_extension
	mov	x22, x0
	bl	_string_is_empty
	mov	x8, x0
	ldr	x0, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x22, [x19, #48]
LBB0_6:
	mov	x1, x22
	mov	w2, #8
	bl	_strlcpy
	ldr	x0, [x19, #16]
	mov	x1, x21
	mov	x2, x20
	mov	w3, #8
	bl	_fill_pathname_join
	ldr	x0, [x19, #32]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #8
	bl	_strlcpy
	ldr	x0, [x19, #40]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #8
	bl	_strlcpy
	ldr	x0, [x19, #16]
	bl	_string_is_empty
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PLAYLIST_THUMBNAIL_MODE_DEFAULT,8,3 ; @PLAYLIST_THUMBNAIL_MODE_DEFAULT
	.comm	_RARCH_CONTENT_IMAGE,8,3        ; @RARCH_CONTENT_IMAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"imageviewer"

l_.str.1:                               ; @.str.1
	.asciz	"_images_"

.subsections_via_symbols
