	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_refresh_thumbnail_image
_xmb_refresh_thumbnail_image:           ## @xmb_refresh_thumbnail_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_MENU_THUMBNAIL_RIGHT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	movq	_MENU_THUMBNAIL_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	je	LBB0_14
LBB0_3:
	movq	_MENU_LIST_PLAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_xmb_list_get_size
	movq	%rax, %r14
	movl	24(%rbx), %esi
	movq	%rbx, %rdi
	callq	_xmb_get_system_tab
	movq	_XMB_SYSTEM_TAB_SETTINGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jbe	LBB0_5
## %bb.4:
	cmpl	$1, %r14d
	je	LBB0_7
LBB0_5:
	cmpl	%ecx, %eax
	jae	LBB0_13
## %bb.6:
	cmpl	$4, %r14d
	jne	LBB0_13
LBB0_7:
	cmpq	$0, 16(%rbx)
	je	LBB0_13
## %bb.8:
	movl	8(%rbx), %edi
	movl	(%r15), %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$82, %edx
	callq	_xmb_update_thumbnail_path
LBB0_10:
	movl	8(%rbx), %edi
	movq	_MENU_THUMBNAIL_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$76, %edx
	callq	_xmb_update_thumbnail_path
	jmp	LBB0_12
LBB0_13:
	cmpq	$0, (%rbx)
	je	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xmb_update_thumbnail_image     ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_THUMBNAIL_RIGHT,4,2       ## @MENU_THUMBNAIL_RIGHT
	.comm	_MENU_THUMBNAIL_LEFT,4,2        ## @MENU_THUMBNAIL_LEFT
	.comm	_MENU_LIST_PLAIN,4,2            ## @MENU_LIST_PLAIN
	.comm	_XMB_SYSTEM_TAB_SETTINGS,4,2    ## @XMB_SYSTEM_TAB_SETTINGS
	.no_dead_strip	_xmb_refresh_thumbnail_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmb_refresh_thumbnail_image
_xmb_refresh_thumbnail_image:           ; @xmb_refresh_thumbnail_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_12
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x21, _MENU_THUMBNAIL_RIGHT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MENU_THUMBNAIL_RIGHT@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_menu_thumbnail_is_enabled
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x8, _MENU_THUMBNAIL_LEFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MENU_THUMBNAIL_LEFT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_menu_thumbnail_is_enabled
	cbz	x0, LBB0_12
LBB0_3:
Lloh5:
	adrp	x8, _MENU_LIST_PLAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MENU_LIST_PLAIN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xmb_list_get_size
	mov	x20, x0
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_xmb_get_system_tab
Lloh8:
	adrp	x8, _XMB_SYSTEM_TAB_SETTINGS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XMB_SYSTEM_TAB_SETTINGS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	ccmp	w20, #1, #0, hi
	b.eq	LBB0_5
; %bb.4:
	cmp	w0, w8
	ccmp	w20, #4, #0, lo
	b.ne	LBB0_10
LBB0_5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	bl	_menu_thumbnail_is_enabled
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #82
	bl	_xmb_update_thumbnail_path
LBB0_8:
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x8, _MENU_THUMBNAIL_LEFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MENU_THUMBNAIL_LEFT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_menu_thumbnail_is_enabled
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #76
	bl	_xmb_update_thumbnail_path
	b	LBB0_11
LBB0_10:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
LBB0_11:
	mov	x0, x19
	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
	b	_xmb_update_thumbnail_image
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_THUMBNAIL_RIGHT,4,2       ; @MENU_THUMBNAIL_RIGHT
	.comm	_MENU_THUMBNAIL_LEFT,4,2        ; @MENU_THUMBNAIL_LEFT
	.comm	_MENU_LIST_PLAIN,4,2            ; @MENU_LIST_PLAIN
	.comm	_XMB_SYSTEM_TAB_SETTINGS,4,2    ; @XMB_SYSTEM_TAB_SETTINGS
	.no_dead_strip	_xmb_refresh_thumbnail_image
.subsections_via_symbols
