	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgui_render_osk
_rgui_render_osk:                       ## @rgui_render_osk
	.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	$488, %rsp                      ## imm = 0x1E8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -344(%rbp)                ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_menu_event_get_osk_ptr
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_menu_event_get_osk_grid
	movq	%rax, -488(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_menu_input_dialog_get_buffer
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_menu_input_dialog_get_label_buffer
	movq	%rax, %rcx
	movq	_rgui_frame_buf@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_40
## %bb.1:
	testl	%ebx, %ebx
	js	LBB0_40
## %bb.2:
	cmpl	$43, %ebx
	jg	LBB0_40
## %bb.3:
	movq	-488(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_40
## %bb.4:
	movq	%rcx, -408(%rbp)                ## 8-byte Spill
	movq	%r13, -512(%rbp)                ## 8-byte Spill
	movq	%r14, -520(%rbp)                ## 8-byte Spill
	leaq	-308(%rbp), %rdi
	leaq	-312(%rbp), %rsi
	leaq	-528(%rbp), %rdx
	callq	_menu_display_get_fb_size
	movq	_FONT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leal	16(%r8), %eax
	movq	_OSK_CHARS_PER_LINE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, -444(%rbp)                ## 4-byte Spill
	imull	%eax, %r14d
	movq	_FONT_WIDTH_STRIDE@GOTPCREL(%rip), %rcx
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	(%rcx)
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -376(%rbp)                ## 8-byte Spill
	movl	-308(%rbp), %esi
	leal	22(%r14), %eax
	cmpl	%esi, %eax
	ja	LBB0_6
## %bb.5:
	movl	%edx, %r9d
	movq	_FONT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leal	48(,%r13,4), %eax
	movq	_FONT_HEIGHT_STRIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-312(%rbp), %edx
	leal	(%rax,%rcx,2), %edi
	addl	$37, %edi
	cmpl	%edx, %edi
	ja	LBB0_6
## %bb.7:
	movq	%r12, -504(%rbp)                ## 8-byte Spill
	movl	%ebx, -440(%rbp)                ## 4-byte Spill
	movq	%r8, -368(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%rcx), %edi
	addl	$25, %edi
	movq	%rdi, -432(%rbp)                ## 8-byte Spill
	shrl	%r9d
	movl	%r9d, -384(%rbp)                ## 4-byte Spill
	leal	20(%r14), %edi
	leal	(%rax,%rcx,2), %r9d
	addl	$25, %r9d
	leal	(%rax,%rcx,2), %eax
	addl	$35, %eax
	movl	%esi, %ecx
	movq	%rdi, -416(%rbp)                ## 8-byte Spill
	subl	%edi, %ecx
	shrl	%ecx
	movl	%edx, %ebx
	movq	%rax, -352(%rbp)                ## 8-byte Spill
	subl	%eax, %ebx
	shrl	%ebx
	movq	_rgui_frame_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rcx, -360(%rbp)                ## 8-byte Spill
	addl	$5, %ecx
	movq	%rbx, -336(%rbp)                ## 8-byte Spill
	leal	5(%rbx), %r8d
	movq	%r9, %rbx
	leal	10(%r14), %r9d
	movl	32(%r15), %r10d
	movl	(%r15), %eax
	movl	28(%r15), %r11d
	movl	%ecx, -320(%rbp)                ## 4-byte Spill
	movl	%r8d, -396(%rbp)                ## 4-byte Spill
	movl	%r9d, -400(%rbp)                ## 4-byte Spill
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	%rbx
	callq	_rgui_fill_rect
	addq	$32, %rsp
	movq	%r15, -328(%rbp)                ## 8-byte Spill
	cmpq	$0, 48(%r15)
	je	LBB0_12
## %bb.8:
	movq	%rbx, -456(%rbp)                ## 8-byte Spill
	movq	%r13, -392(%rbp)                ## 8-byte Spill
	movq	-328(%rbp), %rax                ## 8-byte Reload
	movl	24(%rax), %ecx
	movq	%rcx, -480(%rbp)                ## 8-byte Spill
	movl	4(%rax), %ecx
	movq	%rcx, -464(%rbp)                ## 8-byte Spill
	movl	20(%rax), %ecx
	movq	%rcx, -472(%rbp)                ## 8-byte Spill
	cmpq	$0, 40(%rax)
	je	LBB0_9
## %bb.10:
	movl	12(%rax), %eax
	movq	_rgui_frame_buf@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movl	-320(%rbp), %ecx                ## 4-byte Reload
	movl	-396(%rbp), %r8d                ## 4-byte Reload
	movl	-400(%rbp), %r9d                ## 4-byte Reload
	pushq	%rax
	movq	%rax, %r15
	movq	%rax, -496(%rbp)                ## 8-byte Spill
	pushq	$1
	callq	_rgui_color_rect
	addq	$16, %rsp
	movl	(%r13), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movq	-360(%rbp), %rbx                ## 8-byte Reload
	movq	-416(%rbp), %r12                ## 8-byte Reload
	leal	(%rbx,%r12), %ecx
	movl	%ecx, -436(%rbp)                ## 4-byte Spill
	movq	-336(%rbp), %r13                ## 8-byte Reload
	leal	1(%r13), %r8d
	movl	$1, %r9d
	pushq	%r15
	movq	-352(%rbp), %r15                ## 8-byte Reload
	pushq	%r15
	callq	_rgui_color_rect
	addq	$16, %rsp
	movq	_rgui_frame_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	leal	1(%rbx), %ecx
	addl	%r13d, %r15d
	movq	%r15, -352(%rbp)                ## 8-byte Spill
	movl	%r15d, %r8d
	movq	%r13, %r15
	movl	%r12d, %r9d
	movq	-496(%rbp), %rbx                ## 8-byte Reload
	pushq	%rbx
	pushq	$1
	callq	_rgui_color_rect
	addq	$16, %rsp
	movq	_rgui_frame_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movl	-320(%rbp), %r13d               ## 4-byte Reload
	movl	%r13d, %ecx
	movl	-396(%rbp), %r8d                ## 4-byte Reload
	movl	$1, %r9d
	pushq	%rbx
	movq	%rbx, %r12
	pushq	-456(%rbp)                      ## 8-byte Folded Reload
	callq	_rgui_color_rect
	addq	$16, %rsp
	movq	_rgui_frame_buf@GOTPCREL(%rip), %rax
	movq	%rax, %rbx
	movl	(%rax), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movq	-432(%rbp), %rax                ## 8-byte Reload
	leal	(%r15,%rax), %ecx
	movl	%ecx, -420(%rbp)                ## 4-byte Spill
	leal	-5(%r15,%rax), %r8d
	movl	%r13d, %ecx
	movl	-400(%rbp), %r9d                ## 4-byte Reload
	pushq	%r12
	movq	-360(%rbp), %r13                ## 8-byte Reload
	pushq	$1
	callq	_rgui_color_rect
	addq	$16, %rsp
	movl	-436(%rbp), %eax                ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -416(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
LBB0_6:
	movb	$0, -304(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-304(%rbp), %r14
	movq	%r14, %rdi
	movl	$255, %esi
	movq	-408(%rbp), %rcx                ## 8-byte Reload
	movq	%r12, %r8
	callq	_snprintf
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rgui_render_messagebox
LBB0_40:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_42
## %bb.41:
	addq	$488, %rsp                      ## imm = 0x1E8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-360(%rbp), %rcx                ## 8-byte Reload
	movq	-416(%rbp), %rax                ## 8-byte Reload
	addl	%ecx, %eax
	movq	%rax, -416(%rbp)                ## 8-byte Spill
	movq	-336(%rbp), %r15                ## 8-byte Reload
	movq	-352(%rbp), %rax                ## 8-byte Reload
	addl	%r15d, %eax
	movq	%rax, -352(%rbp)                ## 8-byte Spill
	movq	-432(%rbp), %rax                ## 8-byte Reload
	addl	%r15d, %eax
	movl	%eax, -420(%rbp)                ## 4-byte Spill
	movq	_rgui_frame_buf@GOTPCREL(%rip), %rbx
	movq	%rcx, %r13
LBB0_11:
	movl	(%rbx), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	addl	$15, %r14d
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	movq	-464(%rbp), %rax                ## 8-byte Reload
	pushq	%rax
	movq	-472(%rbp), %r15                ## 8-byte Reload
	pushq	%r15
	movq	-480(%rbp), %r12                ## 8-byte Reload
	pushq	%r12
	pushq	$5
	callq	_rgui_fill_rect
	addq	$32, %rsp
	movl	(%rbx), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movq	-416(%rbp), %rcx                ## 8-byte Reload
	addl	$-5, %ecx
	movq	-456(%rbp), %rbx                ## 8-byte Reload
	addl	$5, %ebx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	-336(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	$5, %r9d
	movq	-464(%rbp), %r15                ## 8-byte Reload
	pushq	%r15
	movq	-472(%rbp), %r13                ## 8-byte Reload
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	callq	_rgui_fill_rect
	addq	$32, %rsp
	movq	_rgui_frame_buf@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movq	-352(%rbp), %r8                 ## 8-byte Reload
	addl	$-5, %r8d
	movl	-320(%rbp), %ecx                ## 4-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%r14d, %r9d
	movq	%r15, %r14
	pushq	%r15
	movq	%r13, %r15
	pushq	%r13
	movq	-480(%rbp), %r13                ## 8-byte Reload
	pushq	%r13
	pushq	$5
	callq	_rgui_fill_rect
	addq	$32, %rsp
	movl	(%r12), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movq	-360(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-396(%rbp), %r8d                ## 4-byte Reload
	movl	$5, %r9d
	pushq	%r14
	pushq	%r15
	pushq	%r13
	pushq	%rbx
	callq	_rgui_fill_rect
	addq	$32, %rsp
	movl	(%r12), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movl	-420(%rbp), %r8d                ## 4-byte Reload
	addl	$-10, %r8d
	movl	-320(%rbp), %ecx                ## 4-byte Reload
	movl	-400(%rbp), %r9d                ## 4-byte Reload
	pushq	%r14
	pushq	%r15
	pushq	%r13
	pushq	$5
	callq	_rgui_fill_rect
	addq	$32, %rsp
	movq	-392(%rbp), %r13                ## 8-byte Reload
LBB0_12:
	movq	-376(%rbp), %r12                ## 8-byte Reload
	leal	-1(%r12), %r15d
	movl	-384(%rbp), %r14d               ## 4-byte Reload
	addl	$10, %r14d
	movq	-408(%rbp), %rdi                ## 8-byte Reload
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	addl	-360(%rbp), %r14d               ## 4-byte Folded Reload
	movl	%r14d, -384(%rbp)               ## 4-byte Spill
	movq	-336(%rbp), %rax                ## 8-byte Reload
	leal	10(%rax), %r14d
	jmp	LBB0_18
LBB0_14:
	movl	$0, -424(%rbp)
	movb	$0, -304(%rbp)
	cmpl	$0, -344(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_16
## %bb.15:
	movq	-520(%rbp), %rdi                ## 8-byte Reload
	movl	$1, (%rdi)
	movq	_FONT_WIDTH_STRIDE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	imull	%r12d, %eax
	movl	%eax, 4(%rdi)
	movq	-408(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 8(%rdi)
	leaq	-304(%rbp), %rax
	movq	%rax, 16(%rdi)
	movl	$255, 24(%rdi)
	leaq	-424(%rbp), %rax
	movq	%rax, 32(%rdi)
	callq	_menu_animation_ticker_smooth
	jmp	LBB0_17
LBB0_16:
	leaq	-304(%rbp), %rax
	movq	-512(%rbp), %rdi                ## 8-byte Reload
	movq	%rax, (%rdi)
	movl	%r12d, 8(%rdi)
	movq	-408(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 16(%rdi)
	movl	$1, 24(%rdi)
	callq	_menu_animation_ticker
	movq	_FONT_WIDTH_STRIDE@GOTPCREL(%rip), %rbx
LBB0_17:
	leaq	-304(%rbp), %rdi
	callq	_utf8len
	subl	%eax, %r12d
	imull	(%rbx), %r12d
	shrl	%r12d
	addl	-360(%rbp), %r14d               ## 4-byte Folded Reload
	movl	-424(%rbp), %esi
	movl	%r14d, -384(%rbp)               ## 4-byte Spill
	addl	%r14d, %esi
	addl	%r12d, %esi
	movq	-336(%rbp), %rax                ## 8-byte Reload
	leal	10(%rax), %r14d
	movl	-308(%rbp), %edi
	movq	-328(%rbp), %rax                ## 8-byte Reload
	movl	12(%rax), %r9d
	movl	16(%rax), %r8d
	movl	%r14d, %edx
	leaq	-304(%rbp), %rcx
	callq	_blit_line
LBB0_18:
	movq	-504(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_strlen
	cmpl	%eax, %r15d
	movl	%eax, %ebx
	cmovbl	%r15d, %ebx
	xorl	%ecx, %ecx
	subl	%r15d, %eax
	cmovbl	%ecx, %eax
	movq	_FONT_HEIGHT_STRIDE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r14d
	addq	%rax, %r12
	movq	%r12, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	movq	-328(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_20
## %bb.19:
	movl	-308(%rbp), %edi
	movl	8(%r15), %r8d
	movl	12(%r15), %r9d
	movl	-384(%rbp), %esi                ## 4-byte Reload
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_blit_line
LBB0_20:
	leal	12(%r13), %eax
	movl	%eax, -408(%rbp)                ## 4-byte Spill
	movq	-368(%rbp), %rax                ## 8-byte Reload
	addl	$12, %eax
	movq	%rax, -368(%rbp)                ## 8-byte Spill
	addl	$8, %r13d
	movq	%r13, -392(%rbp)                ## 8-byte Spill
	movq	_FONT_WIDTH_STRIDE@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	addl	-384(%rbp), %ebx                ## 4-byte Folded Reload
	movl	-308(%rbp), %edi
	movq	_RGUI_SYMBOL_TEXT_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	12(%r15), %r9d
	movl	16(%r15), %r8d
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_blit_symbol
	movq	-336(%rbp), %rax                ## 8-byte Reload
	addl	-432(%rbp), %eax                ## 4-byte Folded Reload
	movq	%rax, -336(%rbp)                ## 8-byte Spill
	movl	-440(%rbp), %eax                ## 4-byte Reload
	movq	%rax, -384(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	_rgui_frame_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	addl	$13, %r12d
	addl	$3, %r13d
	movl	12(%rbx), %eax
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	$1, %r9d
	pushq	%rax
	pushq	-392(%rbp)                      ## 8-byte Folded Reload
	callq	_rgui_color_rect
	addq	$16, %rsp
	movq	_rgui_frame_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movl	12(%rbx), %eax
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movq	-368(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	pushq	$1
	callq	_rgui_color_rect
	addq	$16, %rsp
	movq	_rgui_frame_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movq	-368(%rbp), %rax                ## 8-byte Reload
	leal	(%r15,%rax), %ecx
	movl	12(%rbx), %eax
	movl	%ecx, -376(%rbp)                ## 4-byte Spill
	movl	%r13d, %r8d
	movl	$1, %r9d
	pushq	%rax
	movq	-392(%rbp), %r13                ## 8-byte Reload
	pushq	%r13
	callq	_rgui_color_rect
	addq	$16, %rsp
	movq	_rgui_frame_buf@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movq	-344(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r13), %r8d
	movl	12(%rbx), %eax
	movl	%r12d, %ecx
	movl	%r8d, -352(%rbp)                ## 4-byte Spill
	movq	-368(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	pushq	$1
	callq	_rgui_color_rect
	movq	%r15, %r12
	addq	$16, %rsp
LBB0_38:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	(%r12), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movl	8(%rbx), %eax
	movq	-320(%rbp), %r15                ## 8-byte Reload
	movl	%r15d, %ecx
	movq	-344(%rbp), %r13                ## 8-byte Reload
	movl	%r13d, %r8d
	movl	$1, %r9d
	pushq	%rax
	pushq	-392(%rbp)                      ## 8-byte Folded Reload
	callq	_rgui_color_rect
	addq	$16, %rsp
	movl	(%r12), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movl	8(%rbx), %eax
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	movq	-368(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	pushq	$1
	callq	_rgui_color_rect
	addq	$16, %rsp
	movl	(%r12), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movl	-376(%rbp), %ecx                ## 4-byte Reload
	decl	%ecx
	movl	8(%rbx), %eax
	movl	%r13d, %r8d
	movl	$1, %r9d
	pushq	%rax
	pushq	-392(%rbp)                      ## 8-byte Folded Reload
	callq	_rgui_color_rect
	addq	$16, %rsp
	movl	(%r12), %edi
	movl	-308(%rbp), %esi
	movl	-312(%rbp), %edx
	movl	-352(%rbp), %r8d                ## 4-byte Reload
	decl	%r8d
	movl	8(%rbx), %eax
	movl	%r15d, %ecx
	movq	-368(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	pushq	$1
	callq	_rgui_color_rect
	addq	$16, %rsp
LBB0_39:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%r14
	cmpq	$44, %r14
	je	LBB0_40
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	xorl	%edx, %edx
	movq	_OSK_CHARS_PER_LINE@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	movl	%eax, %r13d
	movl	%edx, %r12d
	imull	-444(%rbp), %r12d               ## 4-byte Folded Reload
	movq	-360(%rbp), %rax                ## 8-byte Reload
	movq	%r14, %rcx
	leal	(%r12,%rax), %r14d
	addl	$18, %r14d
	imull	-408(%rbp), %r13d               ## 4-byte Folded Reload
	movq	-336(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r13), %ebx
	addl	$6, %ebx
	movq	-488(%rbp), %rax                ## 8-byte Reload
	movq	%rcx, -344(%rbp)                ## 8-byte Spill
	movq	(%rax,%rcx,8), %r15
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-308(%rbp), %edi
	movq	_RGUI_SYMBOL_BACKSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	movq	-328(%rbp), %rbx                ## 8-byte Reload
	movl	12(%rbx), %r9d
	movl	16(%rbx), %r8d
	movl	%r14d, %esi
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%r14d, -320(%rbp)               ## 4-byte Spill
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-308(%rbp), %edi
	movq	_RGUI_SYMBOL_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	movq	-328(%rbp), %rbx                ## 8-byte Reload
	movl	12(%rbx), %r9d
	movl	16(%rbx), %r8d
	movl	-320(%rbp), %esi                ## 4-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	callq	_blit_symbol
	movq	-344(%rbp), %r14                ## 8-byte Reload
LBB0_34:                                ##   in Loop: Header=BB0_21 Depth=1
	cmpq	%r14, -384(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_39
## %bb.35:                              ##   in Loop: Header=BB0_21 Depth=1
	addl	-360(%rbp), %r12d               ## 4-byte Folded Reload
	addl	-336(%rbp), %r13d               ## 4-byte Folded Reload
	leal	12(%r12), %r15d
	leal	2(%r13), %eax
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	cmpq	$0, 40(%rbx)
	movq	%r15, -320(%rbp)                ## 8-byte Spill
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	-368(%rbp), %rax                ## 8-byte Reload
	addl	%r15d, %eax
	movl	%eax, -376(%rbp)                ## 4-byte Spill
	movq	-344(%rbp), %rax                ## 8-byte Reload
	movq	-392(%rbp), %rcx                ## 8-byte Reload
	addl	%ecx, %eax
	movl	%eax, -352(%rbp)                ## 4-byte Spill
	movq	_rgui_frame_buf@GOTPCREL(%rip), %r12
	jmp	LBB0_38
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	movq	-344(%rbp), %r14                ## 8-byte Reload
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-308(%rbp), %edi
	movq	_RGUI_SYMBOL_SHIFT_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_29:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-308(%rbp), %edi
	movq	_RGUI_SYMBOL_SHIFT_DOWN@GOTPCREL(%rip), %rax
LBB0_28:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	(%rax), %ecx
	movl	%ebx, %edx
	movq	-328(%rbp), %rbx                ## 8-byte Reload
	movl	12(%rbx), %r9d
	movl	16(%rbx), %r8d
	movl	-320(%rbp), %esi                ## 4-byte Reload
	callq	_blit_symbol
	jmp	LBB0_34
LBB0_31:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%ebx, -376(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_string_is_equal
	movl	-308(%rbp), %edi
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_RGUI_SYMBOL_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-328(%rbp), %rbx                ## 8-byte Reload
	movl	12(%rbx), %r9d
	movl	16(%rbx), %r8d
	movl	-320(%rbp), %esi                ## 4-byte Reload
	movl	-376(%rbp), %edx                ## 4-byte Reload
	callq	_blit_symbol
	jmp	LBB0_34
LBB0_33:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-328(%rbp), %rbx                ## 8-byte Reload
	movl	12(%rbx), %r9d
	movl	16(%rbx), %r8d
	movl	-320(%rbp), %esi                ## 4-byte Reload
	movl	-376(%rbp), %edx                ## 4-byte Reload
	movq	%r15, %rcx
	callq	_blit_line
	jmp	LBB0_34
LBB0_42:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_rgui_frame_buf,4,2             ## @rgui_frame_buf
	.comm	_FONT_WIDTH,4,2                 ## @FONT_WIDTH
	.comm	_FONT_HEIGHT,4,2                ## @FONT_HEIGHT
	.comm	_OSK_CHARS_PER_LINE,4,2         ## @OSK_CHARS_PER_LINE
	.comm	_FONT_HEIGHT_STRIDE,4,2         ## @FONT_HEIGHT_STRIDE
	.comm	_FONT_WIDTH_STRIDE,4,2          ## @FONT_WIDTH_STRIDE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n%s"

	.comm	_RGUI_SYMBOL_TEXT_CURSOR,4,2    ## @RGUI_SYMBOL_TEXT_CURSOR
L_.str.1:                               ## @.str.1
	.asciz	"Bksp"

	.comm	_RGUI_SYMBOL_BACKSPACE,4,2      ## @RGUI_SYMBOL_BACKSPACE
L_.str.2:                               ## @.str.2
	.asciz	"Enter"

	.comm	_RGUI_SYMBOL_ENTER,4,2          ## @RGUI_SYMBOL_ENTER
L_.str.3:                               ## @.str.3
	.asciz	"Upper"

	.comm	_RGUI_SYMBOL_SHIFT_UP,4,2       ## @RGUI_SYMBOL_SHIFT_UP
L_.str.4:                               ## @.str.4
	.asciz	"Lower"

	.comm	_RGUI_SYMBOL_SHIFT_DOWN,4,2     ## @RGUI_SYMBOL_SHIFT_DOWN
L_.str.5:                               ## @.str.5
	.asciz	"Next"

	.comm	_RGUI_SYMBOL_NEXT,4,2           ## @RGUI_SYMBOL_NEXT
	.no_dead_strip	_rgui_render_osk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgui_render_osk
_rgui_render_osk:                       ; @rgui_render_osk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #432
	mov	x25, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	bl	_menu_event_get_osk_ptr
	mov	x22, x0
	bl	_menu_event_get_osk_grid
	str	x0, [sp, #128]                  ; 8-byte Folded Spill
	bl	_menu_input_dialog_get_buffer
	mov	x20, x0
	bl	_menu_input_dialog_get_label_buffer
Lloh3:
	adrp	x8, _rgui_frame_buf@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rgui_frame_buf@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	tbnz	w22, #31, LBB0_6
; %bb.2:
	cmp	w22, #43
	b.gt	LBB0_6
; %bb.3:
	ldr	x8, [sp, #128]                  ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x27, x0
	add	x0, sp, #148
	add	x1, sp, #144
	add	x2, sp, #152
	bl	_menu_display_get_fb_size
Lloh6:
	adrp	x8, _FONT_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FONT_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x8]
	add	w9, w12, #16
Lloh9:
	adrp	x8, _FONT_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FONT_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x8]
	add	w10, w13, #12
Lloh12:
	adrp	x8, _OSK_CHARS_PER_LINE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OSK_CHARS_PER_LINE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w9, [sp, #124]                  ; 4-byte Folded Spill
	mul	w21, w8, w9
Lloh15:
	adrp	x8, _FONT_HEIGHT_STRIDE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FONT_HEIGHT_STRIDE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	add	w11, w8, #25
	str	w10, [sp, #120]                 ; 4-byte Folded Spill
	add	w26, w11, w10, lsl #2
	ldp	w2, w1, [sp, #144]
	add	w8, w21, #22
	add	w9, w26, #12
	cmp	w8, w1
	ccmp	w9, w2, #2, ls
	b.ls	LBB0_8
; %bb.5:
	strb	wzr, [sp, #161]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #161
	mov	w1, #255
	mov	x3, x27
	mov	x4, x20
	bl	_snprintf
	add	x1, sp, #161
	mov	x0, x19
	bl	_rgui_render_messagebox
LBB0_6:
	ldur	x8, [x29, #-96]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.7:
	add	sp, sp, #432
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	str	x24, [sp, #80]                  ; 8-byte Folded Spill
	str	w25, [sp, #56]                  ; 4-byte Folded Spill
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	stp	w13, w12, [sp, #72]             ; 8-byte Folded Spill
	str	w11, [sp, #104]                 ; 4-byte Folded Spill
	str	x20, [sp, #64]                  ; 8-byte Folded Spill
Lloh23:
	adrp	x8, _FONT_WIDTH_STRIDE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FONT_WIDTH_STRIDE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	udiv	w9, w21, w8
	str	w9, [sp, #92]                   ; 4-byte Folded Spill
	msub	w8, w9, w8, w21
	lsr	w23, w8, #1
	add	w28, w21, #20
	add	w25, w26, #10
	sub	w8, w1, w28
	lsr	w9, w8, #1
	sub	w8, w2, w25
	lsr	w10, w8, #1
Lloh26:
	adrp	x8, _rgui_frame_buf@GOTPAGE
Lloh27:
	ldr	x8, [x8, _rgui_frame_buf@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	str	w9, [sp, #96]                   ; 4-byte Folded Spill
	add	w20, w9, #5
	str	w10, [sp, #116]                 ; 4-byte Folded Spill
	add	w4, w10, #5
	add	w5, w21, #10
	ldp	w8, w7, [x19, #28]
	ldr	w9, [x19]
	stp	w8, w9, [sp]
	mov	x3, x20
	str	w4, [sp, #100]                  ; 4-byte Folded Spill
	mov	x24, x5
	mov	x6, x26
	bl	_rgui_fill_rect
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_13
; %bb.9:
	ldr	w8, [x19, #24]
	stp	w8, w23, [sp, #48]              ; 8-byte Folded Spill
	ldr	w9, [x19, #20]
	ldr	w8, [x19, #4]
	stp	w8, w9, [sp, #40]               ; 8-byte Folded Spill
	ldr	x8, [x19, #40]
	str	x27, [sp, #32]                  ; 8-byte Folded Spill
	str	w24, [sp, #60]                  ; 4-byte Folded Spill
	str	w20, [sp, #28]                  ; 4-byte Folded Spill
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w23, [x19, #12]
Lloh29:
	adrp	x8, _rgui_frame_buf@GOTPAGE
Lloh30:
	ldr	x8, [x8, _rgui_frame_buf@GOTPAGEOFF]
	ldr	w0, [x8]
	mov	x27, x8
	ldp	w2, w1, [sp, #144]
	mov	x3, x20
	ldr	w4, [sp, #100]                  ; 4-byte Folded Reload
	mov	x5, x24
	mov	w6, #1
	mov	x7, x23
	bl	_rgui_color_rect
	ldr	w0, [x27]
	ldp	w2, w1, [sp, #144]
	ldr	w24, [sp, #96]                  ; 4-byte Folded Reload
	add	w3, w24, w28
	mov	x27, x20
	ldr	w20, [sp, #116]                 ; 4-byte Folded Reload
	add	w4, w20, #1
	str	w3, [sp, #20]                   ; 4-byte Folded Spill
	mov	w5, #1
	mov	x6, x25
	mov	x7, x23
	bl	_rgui_color_rect
Lloh31:
	adrp	x8, _rgui_frame_buf@GOTPAGE
Lloh32:
	ldr	x8, [x8, _rgui_frame_buf@GOTPAGEOFF]
	ldr	w0, [x8]
	ldp	w2, w1, [sp, #144]
	add	w3, w24, #1
	add	w4, w20, w25
	mov	x25, x8
	str	w4, [sp, #16]                   ; 4-byte Folded Spill
	mov	x5, x28
	mov	w6, #1
	mov	x7, x23
	bl	_rgui_color_rect
	ldr	w0, [x25]
	ldp	w2, w1, [sp, #144]
	mov	x3, x27
	ldr	w4, [sp, #100]                  ; 4-byte Folded Reload
	mov	w5, #1
	mov	x6, x26
	mov	x7, x23
	bl	_rgui_color_rect
	ldr	w0, [x25]
	ldp	w2, w1, [sp, #144]
	ldr	w8, [sp, #104]                  ; 4-byte Folded Reload
	add	w8, w20, w8
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	sub	w4, w8, #5
	mov	x3, x27
	ldr	w5, [sp, #60]                   ; 4-byte Folded Reload
	mov	w6, #1
	mov	x7, x23
	bl	_rgui_color_rect
	b	LBB0_12
LBB0_11:
	ldr	w8, [sp, #96]                   ; 4-byte Folded Reload
	add	w8, w8, w28
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	ldr	w20, [sp, #116]                 ; 4-byte Folded Reload
	add	w8, w20, w25
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	ldr	w8, [sp, #104]                  ; 4-byte Folded Reload
	add	w8, w20, w8
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
Lloh33:
	adrp	x25, _rgui_frame_buf@GOTPAGE
Lloh34:
	ldr	x25, [x25, _rgui_frame_buf@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x25]
	ldp	w2, w1, [sp, #144]
	add	w23, w21, #15
	ldp	w27, w28, [sp, #40]             ; 8-byte Folded Reload
	stp	w28, w27, [sp]
	ldr	w3, [sp, #96]                   ; 4-byte Folded Reload
	mov	x4, x20
	mov	x5, x23
	mov	w6, #5
	ldr	w24, [sp, #48]                  ; 4-byte Folded Reload
	mov	x7, x24
	bl	_rgui_fill_rect
	ldr	w0, [x25]
	ldp	w2, w1, [sp, #144]
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	sub	w3, w8, #5
	mov	x21, x25
	add	w25, w26, #5
	stp	w28, w27, [sp]
	mov	x4, x20
	mov	w5, #5
	mov	x6, x25
	mov	x7, x24
	bl	_rgui_fill_rect
	ldr	w0, [x21]
	ldp	w2, w1, [sp, #144]
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	sub	w4, w8, #5
	stp	w28, w27, [sp]
	ldr	w20, [sp, #28]                  ; 4-byte Folded Reload
	mov	x3, x20
	mov	x5, x23
	mov	w6, #5
	mov	x7, x24
	bl	_rgui_fill_rect
	ldr	w0, [x21]
	ldp	w2, w1, [sp, #144]
	stp	w28, w27, [sp]
	ldp	w3, w4, [sp, #96]               ; 8-byte Folded Reload
	mov	w5, #5
	mov	x6, x25
	mov	x7, x24
	bl	_rgui_fill_rect
	ldr	w0, [x21]
	ldp	w2, w1, [sp, #144]
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	sub	w4, w8, #10
	stp	w28, w27, [sp]
	mov	x3, x20
	ldr	w5, [sp, #60]                   ; 4-byte Folded Reload
	mov	w6, #5
	mov	x7, x24
	bl	_rgui_fill_rect
	ldr	w23, [sp, #52]                  ; 4-byte Folded Reload
	ldr	x27, [sp, #32]                  ; 8-byte Folded Reload
LBB0_13:
	ldr	w26, [sp, #92]                  ; 4-byte Folded Reload
	sub	w20, w26, #1
	add	w21, w23, #10
	mov	x0, x27
	bl	_string_is_empty
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	cbz	w0, LBB0_15
; %bb.14:
	ldr	w24, [sp, #96]                  ; 4-byte Folded Reload
	add	w23, w21, w24
	ldr	w8, [sp, #116]                  ; 4-byte Folded Reload
	add	w26, w8, #10
	ldr	x27, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w28, [sp, #104]                 ; 4-byte Folded Reload
	b	LBB0_19
LBB0_15:
	str	wzr, [sp, #140]
	strb	wzr, [sp, #161]
	ldr	w25, [sp, #116]                 ; 4-byte Folded Reload
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_17
; %bb.16:
	mov	w8, #1
	str	w8, [x9]
Lloh35:
	adrp	x23, _FONT_WIDTH_STRIDE@GOTPAGE
Lloh36:
	ldr	x23, [x23, _FONT_WIDTH_STRIDE@GOTPAGEOFF]
	ldr	w8, [x23]
	mul	w8, w8, w26
	str	w8, [x9, #4]
	add	x8, sp, #161
	stp	x27, x8, [x9, #8]
	mov	w8, #255
	str	w8, [x9, #24]
	add	x8, sp, #140
	str	x8, [x9, #32]
	mov	x0, x9
	bl	_menu_animation_ticker_smooth
	ldr	x27, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w28, [sp, #104]                 ; 4-byte Folded Reload
	b	LBB0_18
LBB0_17:
	add	x8, sp, #161
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x0]
	str	w26, [x0, #8]
	str	x27, [x0, #16]
	mov	w8, #1
	str	w8, [x0, #24]
	bl	_menu_animation_ticker
	ldr	x27, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w28, [sp, #104]                 ; 4-byte Folded Reload
Lloh37:
	adrp	x23, _FONT_WIDTH_STRIDE@GOTPAGE
Lloh38:
	ldr	x23, [x23, _FONT_WIDTH_STRIDE@GOTPAGEOFF]
LBB0_18:
	add	x0, sp, #161
	bl	_utf8len
	ldr	w8, [x23]
	ldr	w9, [sp, #140]
	sub	w10, w26, w0
	mul	w8, w10, w8
	ldr	w24, [sp, #96]                  ; 4-byte Folded Reload
	add	w23, w21, w24
	add	w9, w23, w9
	add	w1, w9, w8, lsr #1
	add	w26, w25, #10
	ldr	w0, [sp, #148]
	ldp	w5, w4, [x19, #12]
	add	x3, sp, #161
	mov	x2, x26
	bl	_blit_line
LBB0_19:
	ldp	w9, w8, [sp, #72]               ; 8-byte Folded Reload
	add	w8, w8, #12
	str	w8, [sp, #92]                   ; 4-byte Folded Spill
	add	w25, w9, #8
	mov	x0, x27
	bl	_strlen
	cmp	w20, w0
	csel	w21, w20, w0, lo
	subs	w8, w0, w20
	csel	w8, wzr, w8, lo
Lloh39:
	adrp	x9, _FONT_HEIGHT_STRIDE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _FONT_HEIGHT_STRIDE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	add	w26, w26, w9
	add	x27, x27, x8
	mov	x0, x27
	bl	_string_is_empty
	cbnz	w0, LBB0_21
; %bb.20:
	ldr	w0, [sp, #148]
	ldp	w4, w5, [x19, #8]
	mov	x1, x23
	mov	x2, x26
	mov	x3, x27
	bl	_blit_line
LBB0_21:
Lloh42:
	adrp	x8, _FONT_WIDTH_STRIDE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _FONT_WIDTH_STRIDE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	madd	w1, w8, w21, w23
	ldr	w0, [sp, #148]
Lloh45:
	adrp	x8, _RGUI_SYMBOL_TEXT_CURSOR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RGUI_SYMBOL_TEXT_CURSOR@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
	ldp	w5, w4, [x19, #12]
	mov	x2, x26
	bl	_blit_symbol
	mov	x20, #0
	mov	x21, #0
	ldr	w8, [sp, #116]                  ; 4-byte Folded Reload
	add	w8, w8, w28
	str	w8, [sp, #116]                  ; 4-byte Folded Spill
	mov	w8, w22
	lsl	x8, x8, #3
	str	x8, [sp, #104]                  ; 8-byte Folded Spill
	b	LBB0_25
LBB0_22:                                ;   in Loop: Header=BB0_25 Depth=1
Lloh48:
	adrp	x24, _rgui_frame_buf@GOTPAGE
Lloh49:
	ldr	x24, [x24, _rgui_frame_buf@GOTPAGEOFF]
	ldr	w0, [x24]
	ldp	w2, w1, [sp, #144]
	str	w28, [sp, #100]                 ; 4-byte Folded Spill
	add	w28, w22, #13
	add	w23, w26, #3
	ldr	w7, [x19, #12]
	mov	x3, x28
	mov	x4, x23
	mov	w5, #1
	mov	x6, x25
	bl	_rgui_color_rect
	ldr	w0, [x24]
	ldp	w2, w1, [sp, #144]
	ldr	w7, [x19, #12]
	mov	x3, x28
	mov	x4, x23
	ldr	w22, [sp, #92]                  ; 4-byte Folded Reload
	mov	x5, x22
	mov	w6, #1
	bl	_rgui_color_rect
	ldr	w0, [x24]
	ldp	w2, w1, [sp, #144]
	ldr	w8, [sp, #100]                  ; 4-byte Folded Reload
	add	w26, w8, w22
	ldr	w7, [x19, #12]
	mov	x3, x26
	mov	x4, x23
	mov	w5, #1
	mov	x6, x25
	bl	_rgui_color_rect
	ldr	w0, [x24]
	ldp	w2, w1, [sp, #144]
	add	w23, w27, w25
	ldr	w7, [x19, #12]
	mov	x3, x28
	ldr	w28, [sp, #100]                 ; 4-byte Folded Reload
	mov	x4, x23
	mov	x5, x22
	mov	w6, #1
	bl	_rgui_color_rect
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [x24]
	ldp	w2, w1, [sp, #144]
	ldr	w7, [x19, #8]
	mov	x3, x28
	mov	x4, x27
	mov	w5, #1
	mov	x6, x25
	bl	_rgui_color_rect
	ldr	w0, [x24]
	ldp	w2, w1, [sp, #144]
	ldr	w7, [x19, #8]
	mov	x3, x28
	mov	x4, x27
	mov	x5, x22
	mov	w6, #1
	bl	_rgui_color_rect
	ldr	w0, [x24]
	ldp	w2, w1, [sp, #144]
	sub	w3, w26, #1
	ldr	w7, [x19, #8]
	mov	x4, x27
	mov	w5, #1
	mov	x6, x25
	bl	_rgui_color_rect
	ldr	w0, [x24]
	ldp	w2, w1, [sp, #144]
	sub	w4, w23, #1
	ldr	w7, [x19, #8]
	mov	x3, x28
	mov	x5, x22
	mov	w6, #1
	bl	_rgui_color_rect
	ldr	w24, [sp, #96]                  ; 4-byte Folded Reload
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x21, x21, #1
	add	x20, x20, #8
	cmp	x20, #352
	b.eq	LBB0_6
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
Lloh50:
	adrp	x8, _OSK_CHARS_PER_LINE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _OSK_CHARS_PER_LINE@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	udiv	w9, w21, w8
	msub	w8, w9, w8, w21
	ldr	w10, [sp, #124]                 ; 4-byte Folded Reload
	madd	w22, w8, w10, w24
	add	w28, w22, #18
	ldp	w10, w8, [sp, #116]             ; 8-byte Folded Reload
	madd	w26, w9, w8, w10
	add	w27, w26, #6
	ldr	x8, [sp, #128]                  ; 8-byte Folded Reload
	ldr	x23, [x8, x20]
	mov	x0, x23
Lloh53:
	adrp	x1, l_.str.1@PAGE
Lloh54:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [sp, #148]
Lloh55:
	adrp	x8, _RGUI_SYMBOL_BACKSPACE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _RGUI_SYMBOL_BACKSPACE@GOTPAGEOFF]
	b	LBB0_35
LBB0_27:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x23
Lloh57:
	adrp	x1, l_.str.2@PAGE
Lloh58:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [sp, #148]
Lloh59:
	adrp	x8, _RGUI_SYMBOL_ENTER@GOTPAGE
Lloh60:
	ldr	x8, [x8, _RGUI_SYMBOL_ENTER@GOTPAGEOFF]
	b	LBB0_35
LBB0_29:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x23
Lloh61:
	adrp	x1, l_.str.3@PAGE
Lloh62:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [sp, #148]
Lloh63:
	adrp	x8, _RGUI_SYMBOL_SHIFT_UP@GOTPAGE
Lloh64:
	ldr	x8, [x8, _RGUI_SYMBOL_SHIFT_UP@GOTPAGEOFF]
	b	LBB0_35
LBB0_31:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x23
Lloh65:
	adrp	x1, l_.str.4@PAGE
Lloh66:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [sp, #148]
Lloh67:
	adrp	x8, _RGUI_SYMBOL_SHIFT_DOWN@GOTPAGE
Lloh68:
	ldr	x8, [x8, _RGUI_SYMBOL_SHIFT_DOWN@GOTPAGEOFF]
	b	LBB0_35
LBB0_33:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x23
Lloh69:
	adrp	x1, l_.str.5@PAGE
Lloh70:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_string_is_equal
	mov	x8, x0
	ldr	w0, [sp, #148]
	cbz	x8, LBB0_39
; %bb.34:                               ;   in Loop: Header=BB0_25 Depth=1
Lloh71:
	adrp	x8, _RGUI_SYMBOL_NEXT@GOTPAGE
Lloh72:
	ldr	x8, [x8, _RGUI_SYMBOL_NEXT@GOTPAGEOFF]
LBB0_35:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w3, [x8]
	ldp	w5, w4, [x19, #12]
	mov	x1, x28
	mov	x2, x27
	bl	_blit_symbol
LBB0_36:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	cmp	x8, x20
	b.ne	LBB0_24
; %bb.37:                               ;   in Loop: Header=BB0_25 Depth=1
	add	w28, w22, #12
	add	w27, w26, #2
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_22
; %bb.38:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w22, [sp, #92]                  ; 4-byte Folded Reload
	add	w26, w28, w22
	add	w23, w27, w25
Lloh73:
	adrp	x24, _rgui_frame_buf@GOTPAGE
Lloh74:
	ldr	x24, [x24, _rgui_frame_buf@GOTPAGEOFF]
	b	LBB0_23
LBB0_39:                                ;   in Loop: Header=BB0_25 Depth=1
	ldp	w5, w4, [x19, #12]
	mov	x1, x28
	mov	x2, x27
	mov	x3, x23
	bl	_blit_line
	b	LBB0_36
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_rgui_frame_buf,4,2             ; @rgui_frame_buf
	.comm	_FONT_WIDTH,4,2                 ; @FONT_WIDTH
	.comm	_FONT_HEIGHT,4,2                ; @FONT_HEIGHT
	.comm	_OSK_CHARS_PER_LINE,4,2         ; @OSK_CHARS_PER_LINE
	.comm	_FONT_HEIGHT_STRIDE,4,2         ; @FONT_HEIGHT_STRIDE
	.comm	_FONT_WIDTH_STRIDE,4,2          ; @FONT_WIDTH_STRIDE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n%s"

	.comm	_RGUI_SYMBOL_TEXT_CURSOR,4,2    ; @RGUI_SYMBOL_TEXT_CURSOR
l_.str.1:                               ; @.str.1
	.asciz	"Bksp"

	.comm	_RGUI_SYMBOL_BACKSPACE,4,2      ; @RGUI_SYMBOL_BACKSPACE
l_.str.2:                               ; @.str.2
	.asciz	"Enter"

	.comm	_RGUI_SYMBOL_ENTER,4,2          ; @RGUI_SYMBOL_ENTER
l_.str.3:                               ; @.str.3
	.asciz	"Upper"

	.comm	_RGUI_SYMBOL_SHIFT_UP,4,2       ; @RGUI_SYMBOL_SHIFT_UP
l_.str.4:                               ; @.str.4
	.asciz	"Lower"

	.comm	_RGUI_SYMBOL_SHIFT_DOWN,4,2     ; @RGUI_SYMBOL_SHIFT_DOWN
l_.str.5:                               ; @.str.5
	.asciz	"Next"

	.comm	_RGUI_SYMBOL_NEXT,4,2           ; @RGUI_SYMBOL_NEXT
	.no_dead_strip	_rgui_render_osk
.subsections_via_symbols
