	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_update_thumbnail_image
_xmb_update_thumbnail_image:            ## @xmb_update_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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r14
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	xorl	%eax, %eax
	callq	_video_driver_supports_rgba
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	testq	%r14, %r14
	je	LBB0_10
## %bb.2:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_MENU_THUMBNAIL_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_menu_thumbnail_get_path
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	-40(%rbp), %rdi
	callq	_path_is_valid
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-40(%rbp), %rdi
	movl	8(%r14), %edx
	movq	_menu_display_handle_thumbnail_upload@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	xorl	%r8d, %r8d
	callq	_task_push_image_load
	jmp	LBB0_6
LBB0_5:
	leaq	8(%rbx), %rdi
	callq	_video_driver_texture_unload
LBB0_6:
	movl	(%rbx), %edi
	movq	_MENU_THUMBNAIL_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_menu_thumbnail_get_path
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	-32(%rbp), %rdi
	callq	_path_is_valid
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	-32(%rbp), %rdi
	movl	8(%r14), %edx
	movq	_menu_display_handle_left_thumbnail_upload@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	xorl	%r8d, %r8d
	callq	_task_push_image_load
	jmp	LBB0_10
LBB0_9:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_video_driver_texture_unload
LBB0_10:
	addq	$24, %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_display_handle_thumbnail_upload,4,2 ## @menu_display_handle_thumbnail_upload
	.comm	_MENU_THUMBNAIL_LEFT,4,2        ## @MENU_THUMBNAIL_LEFT
	.comm	_menu_display_handle_left_thumbnail_upload,4,2 ## @menu_display_handle_left_thumbnail_upload
	.no_dead_strip	_xmb_update_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_update_thumbnail_image
_xmb_update_thumbnail_image:            ; @xmb_update_thumbnail_image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_config_get_ptr
	mov	x20, x0
	stp	xzr, xzr, [sp]
	bl	_video_driver_supports_rgba
	cbz	x19, LBB0_10
; %bb.1:
	cbz	x20, LBB0_10
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _MENU_THUMBNAIL_RIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_THUMBNAIL_RIGHT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_menu_thumbnail_get_path
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x0, [sp, #8]
	bl	_path_is_valid
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [sp, #8]
	ldr	w2, [x20, #8]
Lloh3:
	adrp	x8, _menu_display_handle_thumbnail_upload@GOTPAGE
Lloh4:
	ldr	x8, [x8, _menu_display_handle_thumbnail_upload@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x4, #0
	bl	_task_push_image_load
	b	LBB0_6
LBB0_5:
	add	x0, x19, #8
	bl	_video_driver_texture_unload
LBB0_6:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _MENU_THUMBNAIL_LEFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MENU_THUMBNAIL_LEFT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_menu_thumbnail_get_path
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x0, [sp]
	bl	_path_is_valid
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [sp]
	ldr	w2, [x20, #8]
Lloh9:
	adrp	x8, _menu_display_handle_left_thumbnail_upload@GOTPAGE
Lloh10:
	ldr	x8, [x8, _menu_display_handle_left_thumbnail_upload@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x4, #0
	bl	_task_push_image_load
	b	LBB0_10
LBB0_9:
	add	x0, x19, #4
	bl	_video_driver_texture_unload
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_THUMBNAIL_RIGHT,4,2       ; @MENU_THUMBNAIL_RIGHT
	.comm	_menu_display_handle_thumbnail_upload,4,2 ; @menu_display_handle_thumbnail_upload
	.comm	_MENU_THUMBNAIL_LEFT,4,2        ; @MENU_THUMBNAIL_LEFT
	.comm	_menu_display_handle_left_thumbnail_upload,4,2 ; @menu_display_handle_left_thumbnail_upload
	.no_dead_strip	_xmb_update_thumbnail_image
.subsections_via_symbols
