	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_thumbnail_request         ## -- Begin function menu_thumbnail_request
	.p2align	4, 0x90
_menu_thumbnail_request:                ## @menu_thumbnail_request
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	$0, -40(%rbp)
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	testq	%r15, %r15
	je	LBB0_10
## %bb.2:
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%r15, %rdi
	callq	_menu_thumbnail_reset
	movq	_MENU_THUMBNAIL_STATUS_MISSING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_menu_thumbnail_update_path
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_menu_thumbnail_get_path
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	-40(%rbp), %rdi
	callq	_path_is_valid
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rbx
	movq	%r15, 8(%rax)
	movq	_menu_thumbnail_list_id@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	-40(%rbp), %r12
	xorl	%eax, %eax
	callq	_video_driver_supports_rgba
	movl	8(%r14), %edx
	movq	_menu_thumbnail_handle_upload@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %r8
	callq	_task_push_image_load
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_MENU_THUMBNAIL_STATUS_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_THUMBNAIL_STATUS_MISSING,4,2 ## @MENU_THUMBNAIL_STATUS_MISSING
	.comm	_menu_thumbnail_list_id,4,2     ## @menu_thumbnail_list_id
	.comm	_menu_thumbnail_handle_upload,4,2 ## @menu_thumbnail_handle_upload
	.comm	_MENU_THUMBNAIL_STATUS_PENDING,4,2 ## @MENU_THUMBNAIL_STATUS_PENDING
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_thumbnail_request         ; -- Begin function menu_thumbnail_request
	.p2align	2
_menu_thumbnail_request:                ; @menu_thumbnail_request
	.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, x4
	mov	x21, x1
	mov	x22, x0
	bl	_config_get_ptr
	str	xzr, [sp, #8]
	cbz	x22, LBB0_10
; %bb.1:
	cbz	x19, LBB0_10
; %bb.2:
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_menu_thumbnail_reset
Lloh0:
	adrp	x8, _MENU_THUMBNAIL_STATUS_MISSING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_THUMBNAIL_STATUS_MISSING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x22
	mov	x1, x21
	bl	_menu_thumbnail_is_enabled
	cbz	x0, LBB0_10
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	bl	_menu_thumbnail_update_path
	cbz	x0, LBB0_10
; %bb.5:
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_menu_thumbnail_get_path
	cbz	w0, LBB0_10
; %bb.6:
	ldr	x0, [sp, #8]
	bl	_path_is_valid
	cbz	x0, LBB0_10
; %bb.7:
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	cbz	x0, LBB0_10
; %bb.8:
	mov	x21, x0
	str	x19, [x0, #8]
Lloh3:
	adrp	x8, _menu_thumbnail_list_id@GOTPAGE
Lloh4:
	ldr	x8, [x8, _menu_thumbnail_list_id@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	x22, [sp, #8]
	bl	_video_driver_supports_rgba
	mov	x1, x0
	ldr	w2, [x20, #8]
Lloh6:
	adrp	x8, _menu_thumbnail_handle_upload@GOTPAGE
Lloh7:
	ldr	x8, [x8, _menu_thumbnail_handle_upload@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x4, x21
	bl	_task_push_image_load
	cbz	x0, LBB0_10
; %bb.9:
Lloh9:
	adrp	x8, _MENU_THUMBNAIL_STATUS_PENDING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MENU_THUMBNAIL_STATUS_PENDING@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_THUMBNAIL_STATUS_MISSING,4,2 ; @MENU_THUMBNAIL_STATUS_MISSING
	.comm	_menu_thumbnail_list_id,4,2     ; @menu_thumbnail_list_id
	.comm	_menu_thumbnail_handle_upload,4,2 ; @menu_thumbnail_handle_upload
	.comm	_MENU_THUMBNAIL_STATUS_PENDING,4,2 ; @MENU_THUMBNAIL_STATUS_PENDING
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
.subsections_via_symbols
