	.file	"extr_materialui.c_materialui_context_reset_textures.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[GLUI] Asset missing: %s%s%s\n"
	.text
	.p2align 4
	.type	materialui_context_reset_textures, @function
materialui_context_reset_textures:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR PATH_MAX_LENGTH[rip]
	mov	rcx, rsp
	mov	rsi, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L17:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L17
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L18
.L4:
	mov	edx, DWORD PTR APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_ICONS[rip]
	mov	rdi, rsp
	mov	BYTE PTR [rsp], 0
	mov	r13, rsp
	call	fill_pathname_application_special@PLT
	mov	esi, DWORD PTR MUI_TEXTURE_LAST[rip]
	test	esi, esi
	je	.L1
	mov	DWORD PTR -68[rbp], 1
	xor	ebx, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	add	ebx, 1
	cmp	DWORD PTR MUI_TEXTURE_LAST[rip], ebx
	jbe	.L19
.L7:
	mov	rdx, QWORD PTR [r12]
	mov	r14d, DWORD PTR TEXTURE_FILTER_MIPMAP_LINEAR[rip]
	mov	eax, ebx
	mov	edi, ebx
	lea	r15, [rdx+rax*4]
	call	materialui_texture_path@PLT
	xor	r9d, r9d
	xor	r8d, r8d
	mov	ecx, r14d
	mov	edi, eax
	mov	rdx, r15
	mov	rsi, r13
	call	menu_display_reset_textures_list@PLT
	test	eax, eax
	jne	.L6
	mov	edi, ebx
	add	ebx, 1
	call	materialui_texture_path@PLT
	mov	r14d, eax
	xor	eax, eax
	call	path_default_slash@PLT
	mov	ecx, r14d
	mov	rsi, r13
	lea	rdi, .LC0[rip]
	mov	edx, eax
	call	RARCH_WARN@PLT
	cmp	DWORD PTR MUI_TEXTURE_LAST[rip], ebx
	mov	DWORD PTR -68[rbp], 0
	ja	.L7
.L19:
	mov	ecx, DWORD PTR -68[rbp]
	test	ecx, ecx
	jne	.L1
	mov	edi, DWORD PTR MSG_MISSING_ASSETS[rip]
	mov	r12d, DWORD PTR MESSAGE_QUEUE_CATEGORY_INFO[rip]
	mov	ebx, DWORD PTR MESSAGE_QUEUE_ICON_DEFAULT[rip]
	call	msg_hash_to_str@PLT
	sub	rsp, 8
	mov	edx, 256
	xor	ecx, ecx
	push	r12
	mov	edi, eax
	mov	r9d, ebx
	xor	r8d, r8d
	mov	esi, 1
	call	runloop_msg_queue_push@PLT
	pop	rax
	pop	rdx
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	materialui_context_reset_textures, .-materialui_context_reset_textures
	.comm	TEXTURE_FILTER_MIPMAP_LINEAR,4,4
	.comm	PATH_MAX_LENGTH,4,4
	.comm	MUI_TEXTURE_LAST,4,4
	.comm	MSG_MISSING_ASSETS,4,4
	.comm	MESSAGE_QUEUE_ICON_DEFAULT,4,4
	.comm	MESSAGE_QUEUE_CATEGORY_INFO,4,4
	.comm	APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_ICONS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_materialui.c_materialui_context_reset_textures.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[GLUI] Asset missing: %s%s%s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	materialui_context_reset_textures, %function
materialui_context_reset_textures:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	mov	r4, #0
	ldr	r2, .L17
	ldr	r3, .L17+4
	ldr	r1, [r2]
	ldr	r2, [r3]
	add	r3, r1, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r9, .L17+8
	ldr	r3, .L17+12
	add	r7, sp, #16
	mov	r8, r0
	mov	r0, r7
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	strb	r4, [sp, #16]
	bl	fill_pathname_application_special
	ldr	r3, [r9]
	cmp	r3, r4
	beq	.L1
	mov	r3, #1
	mov	r6, r4
	ldr	r10, .L17+16
	str	r3, [fp, #-48]
	b	.L4
.L3:
	ldr	r3, [r9]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L14
.L4:
	mov	r0, r4
	bl	materialui_texture_path
	ldr	r2, [r8]
	mov	r1, r7
	ldr	r3, [r10]
	str	r6, [sp, #4]
	str	r6, [sp]
	add	r2, r2, r4, lsl #2
	bl	menu_display_reset_textures_list
	subs	r5, r0, #0
	bne	.L3
	bl	path_default_slash
	mov	r2, r0
	mov	r0, r4
	str	r2, [fp, #-48]
	bl	materialui_texture_path
	ldr	r2, [fp, #-48]
	mov	r3, r0
	mov	r1, r7
	ldr	r0, .L17+20
	str	r5, [fp, #-48]
	bl	RARCH_WARN
	ldr	r3, [r9]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L4
.L14:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L15
.L1:
	ldr	r3, .L17+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, .L17+24
	ldr	r0, [r3]
	bl	msg_hash_to_str
	ldr	r2, .L17+28
	ldr	r3, .L17+32
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	mov	r1, #1
	mov	r2, #256
	str	r3, [sp]
	bl	runloop_msg_queue_push
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	PATH_MAX_LENGTH
	.word	APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_ICONS
	.word	MUI_TEXTURE_LAST
	.word	.LC1
	.word	TEXTURE_FILTER_MIPMAP_LINEAR
	.word	.LC0
	.word	MSG_MISSING_ASSETS
	.word	MESSAGE_QUEUE_CATEGORY_INFO
	.word	MESSAGE_QUEUE_ICON_DEFAULT
	.size	materialui_context_reset_textures, .-materialui_context_reset_textures
	.comm	TEXTURE_FILTER_MIPMAP_LINEAR,4,4
	.comm	PATH_MAX_LENGTH,4,4
	.comm	MUI_TEXTURE_LAST,4,4
	.comm	MSG_MISSING_ASSETS,4,4
	.comm	MESSAGE_QUEUE_ICON_DEFAULT,4,4
	.comm	MESSAGE_QUEUE_CATEGORY_INFO,4,4
	.comm	APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_ICONS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
