	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_update_thumbnail_path
_xmb_update_thumbnail_path:             ## @xmb_update_thumbnail_path
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -24(%rbp)
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	-24(%rbp), %rsi
	callq	_menu_thumbnail_get_core_name
	movq	-24(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	cmpb	$82, %r14b
	je	LBB0_5
## %bb.3:
	cmpb	$76, %r14b
	jne	LBB0_9
## %bb.4:
	movl	(%rbx), %edi
	movq	_MENU_THUMBNAIL_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_menu_thumbnail_is_enabled
	testl	%eax, %eax
	jne	LBB0_9
LBB0_5:
	movl	(%rbx), %edi
	cmpb	$82, %r14b
	jne	LBB0_6
## %bb.7:
	movq	_MENU_THUMBNAIL_RIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_MENU_THUMBNAIL_LEFT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	callq	_menu_thumbnail_update_path
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"imageviewer"

	.comm	_MENU_THUMBNAIL_RIGHT,4,2       ## @MENU_THUMBNAIL_RIGHT
	.comm	_MENU_THUMBNAIL_LEFT,4,2        ## @MENU_THUMBNAIL_LEFT
	.no_dead_strip	_xmb_update_thumbnail_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmb_update_thumbnail_path
_xmb_update_thumbnail_path:             ; @xmb_update_thumbnail_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	ldr	w0, [x0]
	add	x1, sp, #8
	bl	_menu_thumbnail_get_core_name
	ldr	x0, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_5
; %bb.2:
	cmp	w19, #82
	b.eq	LBB0_5
; %bb.3:
	cmp	w19, #76
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _MENU_THUMBNAIL_RIGHT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MENU_THUMBNAIL_RIGHT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_menu_thumbnail_is_enabled
	cbnz	w0, LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _MENU_THUMBNAIL_RIGHT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MENU_THUMBNAIL_RIGHT@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh7:
	adrp	x9, _MENU_THUMBNAIL_LEFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MENU_THUMBNAIL_LEFT@GOTPAGEOFF]
	cmp	w19, #82
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	bl	_menu_thumbnail_update_path
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"imageviewer"

	.comm	_MENU_THUMBNAIL_RIGHT,4,2       ; @MENU_THUMBNAIL_RIGHT
	.comm	_MENU_THUMBNAIL_LEFT,4,2        ; @MENU_THUMBNAIL_LEFT
	.no_dead_strip	_xmb_update_thumbnail_path
.subsections_via_symbols
