	.file	"extr_materialui.c_materialui_frame.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s\n%s"
	.text
	.p2align 4
	.type	materialui_frame, @function
materialui_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 360
	.cfi_def_cfa_offset 416
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 344[rsp], rax
	xor	eax, eax
	call	config_get_ptr@PLT
	mov	r12d, DWORD PTR 0[rbp]
	mov	r13d, DWORD PTR 4[rbp]
	mov	rbx, rax
	xor	eax, eax
	call	menu_display_get_header_height@PLT
	mov	r14d, eax
	xor	eax, eax
	call	menu_navigation_get_selection@PLT
	mov	QWORD PTR 8[rsp], rax
	test	r15, r15
	je	.L1
	test	rbx, rbx
	je	.L1
	mov	esi, r13d
	mov	edi, r12d
	call	menu_display_set_viewport@PLT
	mov	edi, DWORD PTR 56[r15]
	lea	rsi, 64[r15]
	call	font_driver_bind_block@PLT
	mov	edi, DWORD PTR 40[r15]
	lea	rsi, 48[r15]
	call	font_driver_bind_block@PLT
	mov	edi, DWORD PTR 24[r15]
	lea	rsi, 32[r15]
	call	font_driver_bind_block@PLT
	mov	QWORD PTR 64[r15], 0
	mov	rsi, QWORD PTR 8[rbp]
	mov	QWORD PTR 48[r15], 0
	mov	QWORD PTR 32[r15], 0
	cmp	QWORD PTR [r15], rsi
	je	.L3
	mov	rdi, r15
	call	materialui_prepare_colors@PLT
	mov	eax, DWORD PTR 8[rbp]
	mov	QWORD PTR [r15], rax
.L3:
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	mov	QWORD PTR 144[r15], rax
	mov	eax, 0
	je	.L4
	call	menu_animation_get_ticker_pixel_idx@PLT
	mov	DWORD PTR 140[r15], eax
	mov	rax, QWORD PTR [rbx]
	mov	DWORD PTR 136[r15], eax
.L5:
	mov	rdi, r15
	call	materialui_colors_set_transition_alpha@PLT
	mov	eax, r12d
	pxor	xmm0, xmm0
	sub	eax, DWORD PTR 120[r15]
	cvtsi2ss	xmm0, eax
	mulss	xmm0, DWORD PTR 8[r15]
	mov	rsi, rbp
	mov	rdi, r15
	cvttss2si	ebx, xmm0
	call	materialui_render_background@PLT
	mov	r8d, r14d
	mov	ecx, r13d
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r15
	mov	r9d, ebx
	call	materialui_render_landscape_border@PLT
	mov	eax, DWORD PTR 116[r15]
	mov	r9d, ebx
	mov	r8d, r14d
	mov	ecx, r13d
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r15
	push	rax
	.cfi_def_cfa_offset 424
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 432
	call	materialui_render_selection_highlight@PLT
	pop	r9
	.cfi_def_cfa_offset 424
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 432
	mov	r9d, ebx
	mov	r8d, r14d
	mov	ecx, r13d
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r15
	call	materialui_render_entry_touch_feedback@PLT
	mov	r8d, ebx
	mov	ecx, r14d
	mov	edx, r13d
	mov	esi, r12d
	mov	rdi, r15
	call	materialui_update_scrollbar@PLT
	mov	r8d, ebx
	mov	ecx, r13d
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r15
	call	materialui_render_menu_list@PLT
	mov	edx, DWORD PTR 40[r15]
	mov	rcx, rbp
	mov	esi, r13d
	mov	edi, r12d
	call	font_driver_flush@PLT
	mov	edx, DWORD PTR 24[r15]
	mov	rcx, rbp
	mov	esi, r13d
	mov	edi, r12d
	call	font_driver_flush@PLT
	mov	ecx, r13d
	mov	edx, r12d
	mov	rsi, rbp
	mov	QWORD PTR 48[r15], 0
	mov	rdi, r15
	mov	QWORD PTR 32[r15], 0
	call	materialui_render_header@PLT
	mov	ecx, r13d
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r15
	call	materialui_render_nav_bar@PLT
	mov	edx, DWORD PTR 56[r15]
	mov	rcx, rbp
	mov	esi, r13d
	mov	edi, r12d
	call	font_driver_flush@PLT
	mov	edx, DWORD PTR 24[r15]
	mov	rcx, rbp
	mov	esi, r13d
	mov	edi, r12d
	call	font_driver_flush@PLT
	mov	QWORD PTR 64[r15], 0
	xor	eax, eax
	mov	QWORD PTR 32[r15], 0
	call	menu_input_dialog_get_display_kb@PLT
	pop	r10
	.cfi_def_cfa_offset 424
	pop	r11
	.cfi_def_cfa_offset 416
	test	rax, rax
	jne	.L15
.L6:
	mov	rdi, QWORD PTR 16[r15]
	call	string_is_empty@PLT
	test	eax, eax
	je	.L16
.L7:
	cmp	QWORD PTR 104[r15], 0
	je	.L8
	mov	rax, QWORD PTR MENU_POINTER_DISABLED[rip]
	cmp	QWORD PTR 72[r15], rax
	jne	.L17
.L8:
	mov	rdi, r15
	call	materialui_colors_reset_transition_alpha@PLT
	mov	edi, DWORD PTR 56[r15]
	xor	esi, esi
	call	font_driver_bind_block@PLT
	mov	edi, DWORD PTR 40[r15]
	xor	esi, esi
	call	font_driver_bind_block@PLT
	mov	edi, DWORD PTR 24[r15]
	xor	esi, esi
	call	font_driver_bind_block@PLT
	mov	esi, r13d
	mov	edi, r12d
	call	menu_display_unset_viewport@PLT
.L1:
	mov	rax, QWORD PTR 344[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 360
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	call	menu_animation_get_ticker_idx@PLT
	mov	DWORD PTR 132[r15], eax
	mov	rax, QWORD PTR [rbx]
	mov	DWORD PTR 128[r15], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, 16[rsp]
	mov	r9d, DWORD PTR 80[r15]
	mov	r8d, DWORD PTR 84[r15]
	mov	rdi, rbp
	movabs	rax, 4575657222473777152
	mov	rdx, QWORD PTR MUI_TEXTURE_POINTER[rip]
	mov	QWORD PTR 16[rsp], rax
	mov	QWORD PTR 24[rsp], rax
	mov	QWORD PTR 32[rsp], rax
	mov	QWORD PTR 40[rsp], rax
	mov	QWORD PTR 48[rsp], rax
	mov	QWORD PTR 56[rsp], rax
	mov	QWORD PTR 64[rsp], rax
	mov	QWORD PTR 72[rsp], rax
	mov	rax, QWORD PTR 88[r15]
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	edx, DWORD PTR 96[r15]
	push	r13
	.cfi_def_cfa_offset 424
	push	r12
	.cfi_def_cfa_offset 432
	call	menu_display_draw_cursor@PLT
	pop	rax
	.cfi_def_cfa_offset 424
	pop	rdx
	.cfi_def_cfa_offset 416
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR 112[r15]
	mov	r9d, r12d
	mov	r8d, r13d
	mov	ecx, r12d
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 424
	push	r13
	.cfi_def_cfa_offset 432
	call	menu_display_draw_quad@PLT
	mov	rcx, QWORD PTR 16[r15]
	mov	edx, r13d
	mov	rsi, rbp
	shr	edx
	mov	rdi, r15
	call	materialui_render_messagebox@PLT
	mov	rax, QWORD PTR 16[r15]
	mov	rcx, rbp
	mov	esi, r13d
	mov	edi, r12d
	mov	BYTE PTR [rax], 0
	mov	edx, DWORD PTR 40[r15]
	call	font_driver_flush@PLT
	pop	rcx
	.cfi_def_cfa_offset 424
	pop	rsi
	.cfi_def_cfa_offset 416
	mov	QWORD PTR 48[r15], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	xor	eax, eax
	call	menu_input_dialog_get_buffer@PLT
	mov	rbx, rax
	xor	eax, eax
	call	menu_input_dialog_get_label_buffer@PLT
	mov	BYTE PTR 80[rsp], 0
	mov	r9d, r12d
	mov	r8d, r13d
	mov	r14, rax
	mov	eax, DWORD PTR 112[r15]
	mov	ecx, r12d
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 424
	push	r13
	.cfi_def_cfa_offset 432
	call	menu_display_draw_quad@PLT
	lea	r9, 96[rsp]
	mov	r8, rbx
	mov	rcx, r14
	mov	rdi, r9
	mov	esi, 255
	mov	QWORD PTR 24[rsp], r9
	lea	rdx, .LC0[rip]
	call	snprintf@PLT
	mov	r9, QWORD PTR 24[rsp]
	mov	edx, r13d
	mov	rsi, rbp
	shr	edx, 2
	mov	rdi, r15
	mov	rcx, r9
	call	materialui_render_messagebox@PLT
	xor	eax, eax
	call	menu_event_get_osk_ptr@PLT
	mov	ebx, eax
	xor	eax, eax
	call	menu_event_get_osk_grid@PLT
	mov	rdx, QWORD PTR MUI_TEXTURE_KEY_HOVER[rip]
	mov	esi, DWORD PTR 40[r15]
	mov	r8d, ebx
	mov	ecx, eax
	mov	rax, QWORD PTR 88[r15]
	mov	r9d, -1
	mov	edi, DWORD PTR [rax+rdx*4]
	mov	rdx, rbp
	call	menu_display_draw_keyboard@PLT
	mov	edx, DWORD PTR 40[r15]
	mov	edi, r12d
	mov	rcx, rbp
	mov	esi, r13d
	call	font_driver_flush@PLT
	pop	rdi
	.cfi_def_cfa_offset 424
	pop	r8
	.cfi_def_cfa_offset 416
	mov	QWORD PTR 48[r15], 0
	jmp	.L6
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	materialui_frame, .-materialui_frame
	.comm	MUI_TEXTURE_POINTER,8,8
	.comm	MUI_TEXTURE_KEY_HOVER,8,8
	.comm	MENU_POINTER_DISABLED,8,8
	.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_frame.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.global	__aeabi_f2iz
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"%s\012%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	materialui_frame, %function
materialui_frame:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L23
	sub	sp, sp, #348
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #340]
	mov	r3,#0
	mov	r4, r0
	bl	config_get_ptr
	ldr	r6, [r5]
	mov	r9, r0
	ldr	r7, [r5, #4]
	bl	menu_display_get_header_height
	mov	r10, r0
	bl	menu_navigation_get_selection
	clz	r3, r9
	cmp	r4, #0
	lsr	r3, r3, #5
	movne	r8, r3
	moveq	r8, #1
	cmp	r8, #0
	beq	.L18
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #340]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #348
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r1, r7
	mov	fp, r0
	mov	r0, r6
	bl	menu_display_set_viewport
	add	r1, r4, #32
	ldr	r0, [r4, #28]
	bl	font_driver_bind_block
	add	r1, r4, #24
	ldr	r0, [r4, #20]
	bl	font_driver_bind_block
	add	r1, r4, #16
	ldr	r0, [r4, #12]
	bl	font_driver_bind_block
	ldr	r1, [r5, #8]
	ldr	r3, [r4]
	str	r8, [r4, #32]
	cmp	r3, r1
	str	r8, [r4, #24]
	str	r8, [r4, #16]
	beq	.L3
	mov	r0, r4
	bl	materialui_prepare_colors
	ldr	r3, [r5, #8]
	str	r3, [r4]
.L3:
	ldr	r3, [r9, #4]
	cmp	r3, #0
	str	r3, [r4, #88]
	beq	.L4
	bl	menu_animation_get_ticker_pixel_idx
	ldr	r3, [r9]
	str	r0, [r4, #84]
	str	r3, [r4, #80]
.L5:
	mov	r0, r4
	bl	materialui_colors_set_transition_alpha
	ldr	r0, [r4, #68]
	mov	r9, #0
	sub	r0, r6, r0
	bl	__aeabi_i2f
	ldr	r1, [r4, #4]	@ float
	bl	__aeabi_fmul
	bl	__aeabi_f2iz
	mov	r8, r0
	mov	r1, r5
	mov	r0, r4
	bl	materialui_render_background
	mov	r3, r7
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	str	r8, [sp, #4]
	str	r10, [sp]
	bl	materialui_render_landscape_border
	ldr	r3, [r4, #64]
	mov	r2, r6
	mov	r1, r5
	str	r3, [sp, #12]
	mov	r0, r4
	mov	r3, r7
	stmib	sp, {r8, fp}
	str	r10, [sp]
	bl	materialui_render_selection_highlight
	mov	r3, r7
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	stmib	sp, {r8, fp}
	str	r10, [sp]
	bl	materialui_render_entry_touch_feedback
	mov	r3, r10
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	str	r8, [sp]
	bl	materialui_update_scrollbar
	mov	r3, r7
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	str	r8, [sp]
	bl	materialui_render_menu_list
	mov	r3, r5
	mov	r1, r7
	ldr	r2, [r4, #20]
	mov	r0, r6
	bl	font_driver_flush
	mov	r3, r5
	mov	r1, r7
	ldr	r2, [r4, #12]
	mov	r0, r6
	bl	font_driver_flush
	mov	r3, r7
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	str	r9, [r4, #24]
	str	r9, [r4, #16]
	bl	materialui_render_header
	mov	r3, r7
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	materialui_render_nav_bar
	mov	r3, r5
	mov	r1, r7
	ldr	r2, [r4, #28]
	mov	r0, r6
	bl	font_driver_flush
	mov	r3, r5
	mov	r1, r7
	ldr	r2, [r4, #12]
	mov	r0, r6
	bl	font_driver_flush
	str	r9, [r4, #32]
	str	r9, [r4, #16]
	bl	menu_input_dialog_get_display_kb
	cmp	r0, r9
	bne	.L20
.L6:
	ldr	r0, [r4, #8]
	bl	string_is_empty
	subs	r8, r0, #0
	beq	.L21
.L7:
	ldr	r3, [r4, #56]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L23+4
	ldr	r2, [r4, #36]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L22
.L8:
	mov	r0, r4
	bl	materialui_colors_reset_transition_alpha
	mov	r1, #0
	ldr	r0, [r4, #28]
	bl	font_driver_bind_block
	mov	r1, #0
	ldr	r0, [r4, #20]
	bl	font_driver_bind_block
	mov	r1, #0
	ldr	r0, [r4, #12]
	bl	font_driver_bind_block
	mov	r1, r7
	mov	r0, r6
	bl	menu_display_unset_viewport
	b	.L1
.L4:
	bl	menu_animation_get_ticker_idx
	ldr	r3, [r9]
	str	r0, [r4, #76]
	str	r3, [r4, #72]
	b	.L5
.L22:
	ldr	lr, .L23+8
	add	ip, sp, #20
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	ldr	lr, .L23+12
	stm	ip, {r0, r1, r2, r3}
	ldr	r2, [lr]
	ldr	r3, [r4, #48]
	ldr	r1, [r4, #40]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [r4, #44]
	stmib	sp, {r1, r6, r7}
	str	r2, [sp]
	mov	r0, r5
	ldr	r2, [r4, #52]
	add	r1, sp, #20
	bl	menu_display_draw_cursor
	b	.L8
.L21:
	ldr	r3, [r4, #60]
	mov	r2, r8
	mov	r1, r8
	str	r3, [sp, #12]
	mov	r0, r5
	mov	r3, r6
	stmib	sp, {r6, r7}
	str	r7, [sp]
	bl	menu_display_draw_quad
	mov	r1, r5
	ldr	r3, [r4, #8]
	lsr	r2, r7, #1
	mov	r0, r4
	bl	materialui_render_messagebox
	ldr	r2, [r4, #8]
	mov	r3, r5
	strb	r8, [r2]
	mov	r1, r7
	mov	r0, r6
	ldr	r2, [r4, #20]
	bl	font_driver_flush
	str	r8, [r4, #24]
	b	.L7
.L20:
	bl	menu_input_dialog_get_buffer
	mov	r10, r0
	bl	menu_input_dialog_get_label_buffer
	mov	r8, r0
	ldr	r3, [r4, #60]
	mov	r2, r9
	mov	r1, r9
	str	r3, [sp, #12]
	mov	r0, r5
	mov	r3, r6
	stmib	sp, {r6, r7}
	str	r7, [sp]
	strb	r9, [sp, #84]
	bl	menu_display_draw_quad
	mov	r3, r8
	mov	r1, #255
	ldr	r2, .L23+16
	str	r10, [sp]
	add	r0, sp, #84
	bl	snprintf
	mov	r1, r5
	add	r3, sp, #84
	lsr	r2, r7, #2
	mov	r0, r4
	bl	materialui_render_messagebox
	ldr	r2, .L23+20
	ldr	r3, [r4, #48]
	ldr	r2, [r2]
	ldr	r10, [r4, #20]
	ldr	fp, [r3, r2, lsl #2]
	bl	menu_event_get_osk_grid
	mov	r8, r0
	bl	menu_event_get_osk_ptr
	mvn	r2, #0
	mov	r1, r0
	mov	r3, r8
	str	r1, [sp]
	str	r2, [sp, #4]
	mov	r1, r10
	mov	r2, r5
	mov	r0, fp
	bl	menu_display_draw_keyboard
	mov	r3, r5
	mov	r1, r7
	mov	r0, r6
	ldr	r2, [r4, #20]
	bl	font_driver_flush
	str	r9, [r4, #24]
	b	.L6
.L19:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC2
	.word	MENU_POINTER_DISABLED
	.word	.LANCHOR0
	.word	MUI_TEXTURE_POINTER
	.word	.LC1
	.word	MUI_TEXTURE_KEY_HOVER
	.size	materialui_frame, .-materialui_frame
	.comm	MUI_TEXTURE_POINTER,4,4
	.comm	MUI_TEXTURE_KEY_HOVER,4,4
	.comm	MENU_POINTER_DISABLED,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
