	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_set_thumbnail_content
_xmb_set_thumbnail_content:             ## @xmb_set_thumbnail_content
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_menu_navigation_get_selection
	testq	%r15, %r15
	je	LBB0_14
## %bb.1:
	movq	%rax, %r14
	cmpq	$0, 16(%r15)
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movl	(%r15), %ebx
	xorl	%eax, %eax
	callq	_playlist_get_cached
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_thumbnail_set_content_playlist ## TAILCALL
LBB0_4:
	cmpq	$0, 8(%r15)
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_menu_entry_init
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_menu_entry_get
	movq	-48(%rbp), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_14
## %bb.7:
	movl	(%r15), %edi
	movq	-48(%rbp), %rsi
	callq	_menu_thumbnail_set_content
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	xorl	%edi, %edi
	callq	_menu_entries_get_selection_buf_ptr
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_file_list_get_userdata_at_offset
	movq	%rax, %r12
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_menu_entry_init
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_menu_entry_get
	testq	%r12, %r12
	je	LBB0_14
## %bb.10:
	movq	-48(%rbp), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	movq	(%r12), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	movl	(%r15), %edi
	movq	(%r12), %rsi
	movq	-48(%rbp), %rdx
	callq	_menu_thumbnail_set_content_image
	jmp	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_thumbnail_set_content     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"imageviewer"

	.no_dead_strip	_xmb_set_thumbnail_content
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmb_set_thumbnail_content
_xmb_set_thumbnail_content:             ; @xmb_set_thumbnail_content
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_menu_navigation_get_selection
	cbz	x19, LBB0_14
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_string_is_empty
	cbz	x0, LBB0_14
; %bb.3:
	ldr	w19, [x19]
	bl	_playlist_get_cached
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_menu_thumbnail_set_content_playlist
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_string_is_empty
	cbz	x0, LBB0_14
; %bb.6:
	add	x0, sp, #8
	bl	_menu_entry_init
	stp	xzr, xzr, [sp, #8]
	add	x0, sp, #8
	mov	w1, #0
	mov	x2, x20
	mov	x3, #0
	mov	w4, #1
	bl	_menu_entry_get
	ldr	x0, [sp, #24]
	bl	_string_is_empty
	cbnz	x0, LBB0_14
; %bb.7:
	ldr	w0, [x19]
	ldr	x1, [sp, #24]
	bl	_menu_thumbnail_set_content
	b	LBB0_14
LBB0_8:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_string_is_equal
	cbz	x0, LBB0_13
; %bb.9:
	mov	w0, #0
	bl	_menu_entries_get_selection_buf_ptr
	mov	x1, x20
	bl	_file_list_get_userdata_at_offset
	mov	x21, x0
	add	x0, sp, #8
	bl	_menu_entry_init
	stp	xzr, xzr, [sp, #8]
	add	x0, sp, #8
	mov	w1, #0
	mov	x2, x20
	mov	x3, #0
	mov	w4, #1
	bl	_menu_entry_get
	cbz	x21, LBB0_14
; %bb.10:
	ldr	x0, [sp, #24]
	bl	_string_is_empty
	cbnz	x0, LBB0_14
; %bb.11:
	ldr	x0, [x21]
	bl	_string_is_empty
	cbnz	x0, LBB0_14
; %bb.12:
	ldr	w0, [x19]
	ldr	x1, [x21]
	ldr	x2, [sp, #24]
	bl	_menu_thumbnail_set_content_image
	b	LBB0_14
LBB0_13:
	mov	x0, x21
	bl	_string_is_empty
	cbz	x0, LBB0_15
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	ldr	w0, [x19]
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_menu_thumbnail_set_content
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"imageviewer"

	.no_dead_strip	_xmb_set_thumbnail_content
.subsections_via_symbols
