	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stripes_update_thumbnail_image
_stripes_update_thumbnail_image:        ## @stripes_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_video_driver_supports_rgba
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movl	%eax, %r14d
	movq	16(%rbx), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	16(%rbx), %rdi
	callq	_path_is_valid
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rdi
	movq	_menu_display_handle_thumbnail_upload@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_task_push_image_load
	jmp	LBB0_5
LBB0_4:
	leaq	24(%rbx), %rdi
	callq	_video_driver_texture_unload
LBB0_5:
	movq	16(%rbx), %rdi
	callq	_free
	movq	$0, 16(%rbx)
LBB0_6:
	movq	(%rbx), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	(%rbx), %rdi
	callq	_path_is_valid
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rdi
	movq	_menu_display_handle_left_thumbnail_upload@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_task_push_image_load
	jmp	LBB0_10
LBB0_9:
	leaq	8(%rbx), %rdi
	callq	_video_driver_texture_unload
LBB0_10:
	movq	(%rbx), %rdi
	callq	_free
	movq	$0, (%rbx)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_menu_display_handle_thumbnail_upload,4,2 ## @menu_display_handle_thumbnail_upload
	.comm	_menu_display_handle_left_thumbnail_upload,4,2 ## @menu_display_handle_left_thumbnail_upload
	.no_dead_strip	_stripes_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 stripes_update_thumbnail_image
_stripes_update_thumbnail_image:        ; @stripes_update_thumbnail_image
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_video_driver_supports_rgba
	cbz	x19, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19, #16]
	bl	_string_is_empty
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_path_is_valid
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, _menu_display_handle_thumbnail_upload@GOTPAGE
Lloh1:
	ldr	x8, [x8, _menu_display_handle_thumbnail_upload@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x20
	mov	w2, #0
	mov	x4, #0
	bl	_task_push_image_load
	b	LBB0_5
LBB0_4:
	add	x0, x19, #24
	bl	_video_driver_texture_unload
LBB0_5:
	ldr	x0, [x19, #16]
	bl	_free
	str	xzr, [x19, #16]
LBB0_6:
	ldr	x0, [x19]
	bl	_string_is_empty
	cbnz	w0, LBB0_11
; %bb.7:
	ldr	x0, [x19]
	bl	_path_is_valid
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19]
Lloh3:
	adrp	x8, _menu_display_handle_left_thumbnail_upload@GOTPAGE
Lloh4:
	ldr	x8, [x8, _menu_display_handle_left_thumbnail_upload@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x20
	mov	w2, #0
	mov	x4, #0
	bl	_task_push_image_load
	b	LBB0_10
LBB0_9:
	add	x0, x19, #8
	bl	_video_driver_texture_unload
LBB0_10:
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_menu_display_handle_thumbnail_upload,4,2 ; @menu_display_handle_thumbnail_upload
	.comm	_menu_display_handle_left_thumbnail_upload,4,2 ; @menu_display_handle_left_thumbnail_upload
	.no_dead_strip	_stripes_update_thumbnail_image
.subsections_via_symbols
