	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_display_reset_textures_list_buffer ## -- Begin function menu_display_reset_textures_list_buffer
	.p2align	4, 0x90
_menu_display_reset_textures_list_buffer: ## @menu_display_reset_textures_list_buffer
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movl	%r8d, %ebx
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	$0, -72(%rbp)
	movq	$0, -56(%rbp)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_video_driver_supports_rgba
	movl	%eax, -64(%rbp)
	leaq	-72(%rbp), %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_image_texture_load_buffer
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	16(%rbp), %rax
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	movl	-72(%rbp), %ecx
	movl	%ecx, (%r13)
LBB0_3:
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	-68(%rbp), %ecx
	movl	%ecx, (%rax)
LBB0_5:
	leaq	-72(%rbp), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_video_driver_texture_load
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	-72(%rbp), %rdi
	callq	_image_texture_free
	movl	$1, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_display_reset_textures_list_buffer ; -- Begin function menu_display_reset_textures_list_buffer
	.p2align	2
_menu_display_reset_textures_list_buffer: ; @menu_display_reset_textures_list_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	str	xzr, [sp, #24]
	bl	_video_driver_supports_rgba
	str	w0, [sp, #16]
	add	x0, sp, #8
	mov	x1, x23
	mov	x2, x25
	mov	x3, x24
	bl	_image_texture_load_buffer
	cbz	w0, LBB0_7
; %bb.1:
	cbz	x22, LBB0_3
; %bb.2:
	ldr	w8, [sp, #8]
	str	w8, [x22]
LBB0_3:
	cbz	x21, LBB0_5
; %bb.4:
	ldr	w8, [sp, #12]
	str	w8, [x21]
LBB0_5:
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x19
	bl	_video_driver_texture_load
	cbz	w0, LBB0_7
; %bb.6:
	add	x0, sp, #8
	bl	_image_texture_free
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
