	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiEditBox                     ## -- Begin function TuiEditBox
	.p2align	4, 0x90
_TuiEditBox:                            ## @TuiEditBox
	.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	$2168, %rsp                     ## imm = 0x878
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_UiScreenWidth@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	_UiScreenHeight@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movq	%rdx, -2176(%rbp)               ## 8-byte Spill
	movq	%rsi, -2160(%rbp)               ## 8-byte Spill
	movq	%rdi, %r12
	addl	%eax, %eax
	movq	_TAG_TUI_SCREENBUFFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_FrLdrTempAlloc
	movl	%eax, -2204(%rbp)               ## 4-byte Spill
	movl	%eax, %edi
	callq	_TuiSaveScreen
	movq	%r12, %rdi
	callq	_strlen
	movl	$1, %r15d
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	cmpb	$10, (%r12,%rbx)
	sete	%al
	addq	%rax, %r15
	incq	%rbx
	movq	%r12, %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %rbx
	jb	LBB0_6
## %bb.3:
	testq	%r15, %r15
	je	LBB0_4
LBB0_1:
	cmpq	$1, %r15
	jne	LBB0_7
## %bb.2:
	movl	$8, %eax
	xorl	%ecx, %ecx
LBB0_16:
	testb	$1, %r15b
	je	LBB0_21
## %bb.17:
	addq	%r12, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rdx), %ebx
	cmpb	$10, %bl
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	testb	%bl, %bl
	je	LBB0_20
## %bb.71:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%rdx
	jmp	LBB0_18
LBB0_7:
	movq	%r15, %r8
	andq	$-2, %r8
	movl	$8, %eax
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%eax, %edi
	cmovgl	%edi, %eax
	addq	$2, %rsi
	cmpq	%r8, %rsi
	je	LBB0_16
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	%rcx, %rdi
	addq	$2, %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12,%rdi), %edx
	testb	%dl, %dl
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpb	$10, %dl
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%rdi
	incl	%ebx
	incq	%rcx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%eax, %ebx
	cmovgl	%ebx, %eax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-1(%r12,%rcx), %edx
	cmpb	$10, %dl
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	testb	%dl, %dl
	je	LBB0_15
## %bb.70:                              ##   in Loop: Header=BB0_13 Depth=2
	incl	%edi
	incq	%rcx
	jmp	LBB0_13
LBB0_20:
	cmpl	%eax, %edx
	cmovgl	%edx, %eax
	jmp	LBB0_21
LBB0_4:
	movl	$8, %eax
	xorl	%r15d, %r15d
LBB0_21:
	movl	(%r13), %ecx
	subl	%eax, %ecx
	movl	%ecx, %edx
	addl	$-2, %edx
	shrl	$31, %edx
	leal	(%rcx,%rdx), %r14d
	addl	$-2, %r14d
	sarl	%r14d
	leal	(%r14,%rax), %ecx
	movl	%ecx, -2200(%rbp)               ## 4-byte Spill
	addl	%r14d, %eax
	addl	$3, %eax
	movl	%eax, -2136(%rbp)               ## 4-byte Spill
	movq	_UiScreenHeight@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	subq	%r15, %rax
	movabsq	$8589934590, %rbx               ## imm = 0x1FFFFFFFE
	addq	%rax, %rbx
	shrq	%rbx
	leal	1(%rbx), %eax
	movl	%eax, -2192(%rbp)               ## 4-byte Spill
	leal	(%rbx,%r15), %eax
	incl	%eax
	movl	%eax, -2148(%rbp)               ## 4-byte Spill
	leal	5(%rbx,%r15), %eax
	movl	%eax, -2184(%rbp)               ## 4-byte Spill
	movq	_D_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -2144(%rbp)               ## 4-byte Spill
	movq	_D_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_UiMessageBoxFgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UiMessageBoxBgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	%r14, -2168(%rbp)               ## 8-byte Spill
	movl	%r14d, %edi
	movl	-2192(%rbp), %esi               ## 4-byte Reload
	movl	-2136(%rbp), %edx               ## 4-byte Reload
	movl	-2184(%rbp), %ecx               ## 4-byte Reload
	movl	-2144(%rbp), %r8d               ## 4-byte Reload
	movl	%r15d, %r9d
	pushq	%rax
	pushq	%r13
	pushq	%r13
	callq	_TuiDrawBox
	addq	$32, %rsp
	movq	%r12, %rdi
	callq	_strlen
	cmpl	$-1, %eax
	je	LBB0_28
## %bb.22:
	movq	-2168(%rbp), %rax               ## 8-byte Reload
	addl	$2, %eax
	movl	%eax, -2136(%rbp)               ## 4-byte Spill
	addl	$2, %ebx
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	$0, -2128(%rbp,%r14,8)
	leal	(%rbx,%r15), %r14d
	movq	_UiMessageBoxFgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UiMessageBoxBgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
	movl	-2136(%rbp), %edi               ## 4-byte Reload
	movl	%r14d, %esi
	leaq	-2128(%rbp), %rdx
	movl	%eax, %ecx
	callq	_UiDrawText
	incl	%r15d
	xorl	%r14d, %r14d
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%r13
	movq	%r12, %rdi
	callq	_strlen
	incl	%eax
	cltq
	cmpq	%rax, %r13
	jae	LBB0_28
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movsbq	(%r12,%r13), %rax
	cmpq	$10, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	testb	%al, %al
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rax, -2128(%rbp,%r14,8)
	incq	%r14
	jmp	LBB0_27
LBB0_28:
	movq	-2160(%rbp), %rdi               ## 8-byte Reload
	callq	_strlen
	movslq	%eax, %rdi
	movq	-2176(%rbp), %rsi               ## 8-byte Reload
	decq	%rsi
	movq	%rsi, -2176(%rbp)               ## 8-byte Spill
	callq	_min
	movq	%rax, -2144(%rbp)               ## 8-byte Spill
	movl	-2148(%rbp), %ebx               ## 4-byte Reload
	addl	$2, %ebx
	movq	-2168(%rbp), %rax               ## 8-byte Reload
	addl	$3, %eax
	movslq	%eax, %r13
	movslq	-2200(%rbp), %r12               ## 4-byte Folded Reload
	movq	_UiEditBoxTextColor@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_UiEditBoxBgColor@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_ATTR
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	movl	$32, %r8d
	movl	%eax, %r9d
	callq	_UiFillArea
	movq	%r12, -2168(%rbp)               ## 8-byte Spill
	subq	%r13, %r12
	movq	%r12, -2192(%rbp)               ## 8-byte Spill
	incq	%r12
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_ATTR
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r12, -2184(%rbp)               ## 8-byte Spill
	movq	%r12, %rdx
	movq	-2160(%rbp), %rcx               ## 8-byte Reload
	movl	%eax, %r8d
	callq	_UiDrawText2
	movq	%r13, -2200(%rbp)               ## 8-byte Spill
	movl	%r13d, %edi
	movl	%ebx, -2148(%rbp)               ## 4-byte Spill
	movl	%ebx, %esi
	callq	_MachVideoSetTextCursorPosition
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_MachVideoHideShowTextCursor
	leaq	L_.str(%rip), %rdi
	callq	_UiDrawStatusText
	xorl	%eax, %eax
	callq	_VideoCopyOffScreenBufferToVRAM
	movq	_FALSE@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	movq	%rax, -2136(%rbp)               ## 8-byte Spill
	movq	-2200(%rbp), %r13               ## 8-byte Reload
	jmp	LBB0_29
LBB0_61:                                ##   in Loop: Header=BB0_29 Depth=1
	testq	%r15, %r15
	je	LBB0_62
## %bb.66:                              ##   in Loop: Header=BB0_29 Depth=1
	xorl	%eax, %eax
	callq	_MachBeep
	.p2align	4, 0x90
LBB0_67:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	-2136(%rbp), %r15               ## 8-byte Reload
LBB0_68:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_UiEditBoxTextColor@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_UiEditBoxBgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
	movq	%r13, %rdi
	movl	-2148(%rbp), %r12d              ## 4-byte Reload
	movl	%r12d, %esi
	movq	-2168(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	movl	$32, %r8d
	movl	%eax, %r9d
	callq	_UiFillArea
	leal	(%r15,%r13), %eax
	movq	%r15, -2136(%rbp)               ## 8-byte Spill
	subq	-2192(%rbp), %r15               ## 8-byte Folded Reload
                                        ## kill: def $ebx killed $ebx killed $rbx
	cmovbel	%eax, %ebx
	movl	$0, %eax
	cmovaeq	%r15, %rax
	movslq	%eax, %r15
	addq	-2160(%rbp), %r15               ## 8-byte Folded Reload
	movl	(%r14), %edi
	movq	_UiEditBoxBgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	-2184(%rbp), %rdx               ## 8-byte Reload
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_UiDrawText2
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_MachVideoSetTextCursorPosition
	xorl	%eax, %eax
	callq	_TuiUpdateDateTime
	xorl	%eax, %eax
	callq	_VideoCopyOffScreenBufferToVRAM
	xorl	%eax, %eax
	callq	_MachHwIdle
	movq	_FALSE@GOTPCREL(%rip), %r12
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_MachConsKbHit
	testq	%rax, %rax
	je	LBB0_67
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	(%r12), %r15
	xorl	%eax, %eax
	callq	_MachConsGetCh
	movq	%rax, %rbx
	movq	_KEY_EXTENDED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_MachConsGetCh
	movq	%rax, %rbx
LBB0_32:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_KEY_ENTER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_33
## %bb.36:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_KEY_ESC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_KEY_BACKSPACE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_44
## %bb.39:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-2144(%rbp), %rbx               ## 8-byte Reload
	testq	%rbx, %rbx
	movq	-2136(%rbp), %rsi               ## 8-byte Reload
	je	LBB0_43
## %bb.40:                              ##   in Loop: Header=BB0_29 Depth=1
	testq	%rsi, %rsi
	je	LBB0_43
## %bb.41:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpq	%rsi, %rbx
	jb	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_29 Depth=1
	leaq	-1(%rsi), %r15
	movq	-2160(%rbp), %r12               ## 8-byte Reload
	leaq	(%r12,%rsi), %rdi
	decq	%rdi
	addq	%r12, %rsi
	movq	%rbx, %rdx
	subq	%r15, %rdx
	callq	_memmove
	movb	$0, -1(%r12,%rbx)
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_29 Depth=1
	testq	%r15, %r15
	setne	%al
	je	LBB0_50
## %bb.45:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_KEY_DELETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jne	LBB0_50
## %bb.46:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-2144(%rbp), %rbx               ## 8-byte Reload
	testq	%rbx, %rbx
	movq	-2136(%rbp), %r15               ## 8-byte Reload
	je	LBB0_65
## %bb.47:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	%rbx, %rdx
	subq	%r15, %rdx
	jbe	LBB0_65
## %bb.48:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-2160(%rbp), %r14               ## 8-byte Reload
	leaq	(%r14,%r15), %rdi
	leaq	(%r14,%r15), %rsi
	incq	%rsi
	callq	_memmove
	movb	$0, -1(%r14,%rbx)
LBB0_49:                                ##   in Loop: Header=BB0_29 Depth=1
	decq	%rbx
	movq	%rbx, -2144(%rbp)               ## 8-byte Spill
	jmp	LBB0_68
LBB0_43:                                ##   in Loop: Header=BB0_29 Depth=1
	xorl	%eax, %eax
	movq	%rsi, %r15
	callq	_MachBeep
	jmp	LBB0_68
LBB0_50:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_KEY_HOME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	sete	%cl
	testb	%cl, %al
	je	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_29 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_68
LBB0_52:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_KEY_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	sete	%cl
	testb	%cl, %al
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-2144(%rbp), %r15               ## 8-byte Reload
	jmp	LBB0_68
LBB0_54:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_KEY_RIGHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	sete	%cl
	andb	%al, %cl
	cmpb	$1, %cl
	jne	LBB0_57
## %bb.55:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-2136(%rbp), %r15               ## 8-byte Reload
	cmpq	%r15, -2144(%rbp)               ## 8-byte Folded Reload
	jbe	LBB0_65
## %bb.56:                              ##   in Loop: Header=BB0_29 Depth=1
	incq	%r15
	jmp	LBB0_68
LBB0_57:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_KEY_LEFT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	sete	%cl
	andb	%cl, %al
	cmpb	$1, %al
	jne	LBB0_61
## %bb.58:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-2136(%rbp), %r15               ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_60
## %bb.59:                              ##   in Loop: Header=BB0_29 Depth=1
	decq	%r15
	jmp	LBB0_68
LBB0_62:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	-2176(%rbp), %rax               ## 8-byte Reload
	cmpq	%rax, -2144(%rbp)               ## 8-byte Folded Reload
	movq	-2136(%rbp), %r15               ## 8-byte Reload
	jae	LBB0_65
## %bb.63:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpq	%rax, %r15
	jae	LBB0_65
## %bb.64:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-2160(%rbp), %r14               ## 8-byte Reload
	leaq	(%r14,%r15), %rsi
	leaq	(%r14,%r15), %rdi
	incq	%rdi
	movq	-2144(%rbp), %r12               ## 8-byte Reload
	movq	%r12, %rdx
	subq	%r15, %rdx
	callq	_memmove
	movb	%bl, (%r14,%r15)
	incq	%r15
	movb	$0, 1(%r14,%r12)
	incq	%r12
	movq	%r12, -2144(%rbp)               ## 8-byte Spill
	jmp	LBB0_68
LBB0_65:                                ##   in Loop: Header=BB0_29 Depth=1
	xorl	%eax, %eax
	callq	_MachBeep
	jmp	LBB0_68
LBB0_60:                                ##   in Loop: Header=BB0_29 Depth=1
	xorl	%eax, %eax
	callq	_MachBeep
	xorl	%r15d, %r15d
	jmp	LBB0_68
LBB0_33:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_37:
	movq	%r12, %rax
LBB0_34:
	movq	(%rax), %r14
	movq	(%r12), %rdi
	callq	_MachVideoHideShowTextCursor
	movl	-2204(%rbp), %ebx               ## 4-byte Reload
	movl	%ebx, %edi
	callq	_TuiRestoreScreen
	movq	_TAG_TUI_SCREENBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_FrLdrTempFree
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.69:
	movq	%r14, %rax
	addq	$2168, %rsp                     ## imm = 0x878
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UiScreenWidth,4,2              ## @UiScreenWidth
	.comm	_UiScreenHeight,4,2             ## @UiScreenHeight
	.comm	_TAG_TUI_SCREENBUFFER,4,2       ## @TAG_TUI_SCREENBUFFER
	.comm	_D_VERT,4,2                     ## @D_VERT
	.comm	_D_HORZ,4,2                     ## @D_HORZ
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_UiMessageBoxFgColor,4,2        ## @UiMessageBoxFgColor
	.comm	_UiMessageBoxBgColor,4,2        ## @UiMessageBoxBgColor
	.comm	_UiEditBoxTextColor,4,2         ## @UiEditBoxTextColor
	.comm	_UiEditBoxBgColor,4,2           ## @UiEditBoxBgColor
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Press ENTER to continue, or ESC to cancel"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_KEY_EXTENDED,8,3               ## @KEY_EXTENDED
	.comm	_KEY_ENTER,8,3                  ## @KEY_ENTER
	.comm	_KEY_ESC,8,3                    ## @KEY_ESC
	.comm	_KEY_BACKSPACE,8,3              ## @KEY_BACKSPACE
	.comm	_KEY_DELETE,8,3                 ## @KEY_DELETE
	.comm	_KEY_HOME,8,3                   ## @KEY_HOME
	.comm	_KEY_END,8,3                    ## @KEY_END
	.comm	_KEY_RIGHT,8,3                  ## @KEY_RIGHT
	.comm	_KEY_LEFT,8,3                   ## @KEY_LEFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiEditBox                     ; -- Begin function TuiEditBox
	.p2align	2
_TuiEditBox:                            ; @TuiEditBox
	.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, #2160
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	str	x1, [sp, #56]                   ; 8-byte Folded Spill
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x20, _UiScreenWidth@GOTPAGE
Lloh4:
	ldr	x20, [x20, _UiScreenWidth@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh5:
	adrp	x19, _UiScreenHeight@GOTPAGE
Lloh6:
	ldr	x19, [x19, _UiScreenHeight@GOTPAGEOFF]
	ldr	w9, [x19]
	mul	w8, w8, w9
	lsl	w0, w8, #1
Lloh7:
	adrp	x8, _TAG_TUI_SCREENBUFFER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TAG_TUI_SCREENBUFFER@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_FrLdrTempAlloc
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	bl	_TuiSaveScreen
	mov	x0, x22
	bl	_strlen
	cbz	w0, LBB0_12
; %bb.1:
	mov	x23, #0
	mov	w21, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, x23]
	cmp	w8, #10
	cinc	x21, x21, eq
	add	x23, x23, #1
	mov	x0, x22
	bl	_strlen
	cmp	x23, w0, sxtw
	b.lo	LBB0_2
; %bb.3:
	cbnz	x21, LBB0_13
; %bb.4:
	mov	w8, #8
LBB0_5:
	ldr	w9, [x20]
	sub	w9, w9, w8
	sub	w10, w9, #2
	sub	w9, w9, #1
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w23, w9, #1
	add	w8, w23, w8
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	add	w10, w8, #3
	ldrsw	x8, [x19]
	mov	x9, #8589934590
	sub	x8, x8, x21
	add	x8, x8, x9
	lsr	x24, x8, #1
	add	w25, w24, #1
	add	w8, w25, w21
	stp	w10, w8, [sp, #16]              ; 8-byte Folded Spill
	add	w26, w8, #4
Lloh10:
	adrp	x8, _D_VERT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _D_VERT@GOTPAGEOFF]
Lloh12:
	ldr	w27, [x8]
Lloh13:
	adrp	x8, _D_HORZ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _D_HORZ@GOTPAGEOFF]
Lloh15:
	ldr	w28, [x8]
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh18:
	ldr	x19, [x8]
Lloh19:
	adrp	x21, _UiMessageBoxFgColor@GOTPAGE
Lloh20:
	ldr	x21, [x21, _UiMessageBoxFgColor@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh21:
	adrp	x20, _UiMessageBoxBgColor@GOTPAGE
Lloh22:
	ldr	x20, [x20, _UiMessageBoxBgColor@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ATTR
	str	w0, [sp]
	str	w23, [sp, #40]                  ; 4-byte Folded Spill
	mov	x0, x23
	mov	x1, x25
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	mov	x3, x26
	mov	x4, x27
	mov	x5, x28
	mov	x6, x19
	mov	x7, x19
	bl	_TuiDrawBox
	mov	x0, x22
	bl	_strlen
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.6:
	mov	w25, #0
	mov	x26, #0
	mov	x19, #0
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	add	w23, w8, #2
	add	w27, w24, #2
	add	x28, sp, #64
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	sxtb	x8, w8
	str	x8, [x28, x19, lsl #3]
	add	x19, x19, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
	mov	x0, x22
	bl	_strlen
	add	w8, w0, #1
	cmp	x26, w8, sxtw
	b.hs	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, x26]
	cmp	w8, #10
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x28, x19, lsl #3]
	add	w19, w27, w25
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_ATTR
	mov	x3, x0
	add	x2, sp, #64
	mov	x0, x23
	mov	x1, x19
	bl	_UiDrawText
	mov	x19, #0
	add	w25, w25, #1
	b	LBB0_8
LBB0_11:
	ldr	x22, [sp, #56]                  ; 8-byte Folded Reload
	mov	x0, x22
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sub	x1, x8, #1
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	bl	_min
	mov	x28, x0
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	add	w23, w8, #2
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	add	w19, w8, #3
	sxtw	x24, w19
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	sxtw	x20, w8
Lloh23:
	adrp	x27, _UiEditBoxTextColor@GOTPAGE
Lloh24:
	ldr	x27, [x27, _UiEditBoxTextColor@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh25:
	adrp	x21, _UiEditBoxBgColor@GOTPAGE
Lloh26:
	ldr	x21, [x21, _UiEditBoxBgColor@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ATTR
	mov	x5, x0
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x3, x23
	mov	w4, #32
	bl	_UiFillArea
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	sub	x20, x20, x24
	add	x26, x20, #1
	ldr	w0, [x27]
	ldr	w1, [x21]
	bl	_ATTR
	mov	x4, x0
	mov	x0, x24
	mov	x1, x23
	mov	x2, x26
	mov	x3, x22
	bl	_UiDrawText2
	mov	x0, x19
	mov	x1, x23
	bl	_MachVideoSetTextCursorPosition
Lloh27:
	adrp	x8, _TRUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh29:
	ldr	x0, [x8]
	bl	_MachVideoHideShowTextCursor
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UiDrawStatusText
	bl	_VideoCopyOffScreenBufferToVRAM
	mov	x22, #0
Lloh32:
	adrp	x25, _UiEditBoxBgColor@GOTPAGE
Lloh33:
	ldr	x25, [x25, _UiEditBoxBgColor@GOTPAGEOFF]
	b	LBB0_21
LBB0_12:
	mov	w21, #1
LBB0_13:
	mov	x9, #0
	mov	x10, #0
	mov	w8, #8
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	cmp	w11, w8
	csel	w8, w11, w8, gt
	add	x10, x10, x11
	add	x10, x10, #1
	add	x9, x9, #1
	cmp	x9, x21
	b.eq	LBB0_5
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	mov	x11, #0
	add	x12, x22, x10
LBB0_16:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w13, [x12, x11]
	cmp	w13, #0
	ccmp	w13, #10, #4, ne
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	add	x11, x11, #1
	b	LBB0_16
LBB0_18:                                ;   in Loop: Header=BB0_21 Depth=1
	cbz	x19, LBB0_45
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	bl	_MachBeep
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
Lloh34:
	adrp	x21, _UiEditBoxTextColor@GOTPAGE
Lloh35:
	ldr	x21, [x21, _UiEditBoxTextColor@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x25]
	bl	_ATTR
	mov	x5, x0
	mov	x0, x24
	mov	x1, x23
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	mov	x3, x23
	mov	w4, #32
	bl	_UiFillArea
	add	w8, w24, w22
	subs	x9, x22, x20
	ldr	x10, [sp, #48]                  ; 8-byte Folded Reload
	csel	w19, w10, w8, hi
	csel	x8, xzr, x9, lo
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	add	x27, x9, w8, sxtw
	ldr	w0, [x21]
	ldr	w1, [x25]
	bl	_ATTR
	mov	x4, x0
	mov	x0, x24
	mov	x1, x23
	mov	x2, x26
	mov	x3, x27
	bl	_UiDrawText2
	mov	x0, x19
	mov	x1, x23
	bl	_MachVideoSetTextCursorPosition
	bl	_TuiUpdateDateTime
	bl	_VideoCopyOffScreenBufferToVRAM
	bl	_MachHwIdle
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	bl	_MachConsKbHit
	cbz	x0, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
Lloh36:
	adrp	x8, _FALSE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh38:
	ldr	x19, [x8]
	bl	_MachConsGetCh
Lloh39:
	adrp	x8, _KEY_EXTENDED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _KEY_EXTENDED@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
Lloh42:
	adrp	x8, _TRUE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh44:
	ldr	x19, [x8]
	bl	_MachConsGetCh
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=1
	mov	x27, x0
Lloh45:
	adrp	x8, _KEY_ENTER@GOTPAGE
Lloh46:
	ldr	x8, [x8, _KEY_ENTER@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_48
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
Lloh48:
	adrp	x8, _KEY_ESC@GOTPAGE
Lloh49:
	ldr	x8, [x8, _KEY_ESC@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	cmp	x27, x8
	b.eq	LBB0_49
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=1
Lloh51:
	adrp	x8, _KEY_BACKSPACE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _KEY_BACKSPACE@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	cmp	x27, x8
	b.ne	LBB0_31
; %bb.27:                               ;   in Loop: Header=BB0_21 Depth=1
	cbz	x28, LBB0_19
; %bb.28:                               ;   in Loop: Header=BB0_21 Depth=1
	cbz	x22, LBB0_19
; %bb.29:                               ;   in Loop: Header=BB0_21 Depth=1
	cmp	x28, x22
	b.lo	LBB0_19
; %bb.30:                               ;   in Loop: Header=BB0_21 Depth=1
	sub	x19, x22, #1
	ldr	x27, [sp, #56]                  ; 8-byte Folded Reload
	add	x0, x27, x19
	add	x1, x27, x22
	sub	x2, x28, x19
	bl	_memmove
	sub	x28, x28, #1
	strb	wzr, [x27, x28]
	mov	x22, x19
	b	LBB0_20
LBB0_31:                                ;   in Loop: Header=BB0_21 Depth=1
	cmp	x19, #0
	cset	w8, ne
Lloh54:
	adrp	x9, _KEY_DELETE@GOTPAGE
Lloh55:
	ldr	x9, [x9, _KEY_DELETE@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	ccmp	x27, x9, #0, ne
	b.eq	LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_21 Depth=1
Lloh57:
	adrp	x9, _KEY_HOME@GOTPAGE
Lloh58:
	ldr	x9, [x9, _KEY_HOME@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x27, x9
	cset	w9, eq
	and	w9, w8, w9
	tbz	w9, #0, LBB0_37
; %bb.33:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x22, #0
	b	LBB0_20
LBB0_34:                                ;   in Loop: Header=BB0_21 Depth=1
	cbz	x28, LBB0_19
; %bb.35:                               ;   in Loop: Header=BB0_21 Depth=1
	subs	x2, x28, x22
	b.ls	LBB0_19
; %bb.36:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x19, [sp, #56]                  ; 8-byte Folded Reload
	add	x0, x19, x22
	add	x1, x0, #1
	bl	_memmove
	sub	x28, x28, #1
	strb	wzr, [x19, x28]
	b	LBB0_20
LBB0_37:                                ;   in Loop: Header=BB0_21 Depth=1
Lloh60:
	adrp	x9, _KEY_END@GOTPAGE
Lloh61:
	ldr	x9, [x9, _KEY_END@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x27, x9
	cset	w9, eq
	and	w9, w8, w9
	tbz	w9, #0, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x22, x28
	b	LBB0_20
LBB0_39:                                ;   in Loop: Header=BB0_21 Depth=1
Lloh63:
	adrp	x9, _KEY_RIGHT@GOTPAGE
Lloh64:
	ldr	x9, [x9, _KEY_RIGHT@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	cmp	x27, x9
	cset	w9, eq
	and	w9, w8, w9
	cmp	w9, #1
	b.ne	LBB0_42
; %bb.40:                               ;   in Loop: Header=BB0_21 Depth=1
	cmp	x28, x22
	b.ls	LBB0_19
; %bb.41:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x22, x22, #1
	b	LBB0_20
LBB0_42:                                ;   in Loop: Header=BB0_21 Depth=1
Lloh66:
	adrp	x9, _KEY_LEFT@GOTPAGE
Lloh67:
	ldr	x9, [x9, _KEY_LEFT@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x27, x9
	cset	w9, eq
	and	w8, w8, w9
	cmp	w8, #1
	b.ne	LBB0_18
; %bb.43:                               ;   in Loop: Header=BB0_21 Depth=1
	cbz	x22, LBB0_19
; %bb.44:                               ;   in Loop: Header=BB0_21 Depth=1
	sub	x22, x22, #1
	b	LBB0_20
LBB0_45:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x28, x8
	b.hs	LBB0_19
; %bb.46:                               ;   in Loop: Header=BB0_21 Depth=1
	cmp	x22, x8
	b.hs	LBB0_19
; %bb.47:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x21, [sp, #56]                  ; 8-byte Folded Reload
	add	x19, x21, x22
	add	x0, x19, #1
	sub	x2, x28, x22
	mov	x1, x19
	bl	_memmove
	strb	w27, [x19]
	add	x22, x22, #1
	add	x28, x28, #1
	strb	wzr, [x21, x28]
	b	LBB0_20
LBB0_48:
Lloh69:
	adrp	x8, _TRUE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh71:
	adrp	x9, _FALSE@GOTPAGE
Lloh72:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	b	LBB0_50
LBB0_49:
Lloh73:
	adrp	x9, _FALSE@GOTPAGE
Lloh74:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	mov	x8, x9
LBB0_50:
	ldr	x20, [x8]
	ldr	x0, [x9]
	bl	_MachVideoHideShowTextCursor
	ldr	w19, [sp, #36]                  ; 4-byte Folded Reload
	mov	x0, x19
	bl	_TuiRestoreScreen
Lloh75:
	adrp	x8, _TAG_TUI_SCREENBUFFER@GOTPAGE
Lloh76:
	ldr	x8, [x8, _TAG_TUI_SCREENBUFFER@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_FrLdrTempFree
	ldur	x8, [x29, #-96]
Lloh78:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh79:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh80:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.51:
	mov	x0, x20
	add	sp, sp, #2160
	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_52:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.cfi_endproc
                                        ; -- End function
	.comm	_UiScreenWidth,4,2              ; @UiScreenWidth
	.comm	_UiScreenHeight,4,2             ; @UiScreenHeight
	.comm	_TAG_TUI_SCREENBUFFER,4,2       ; @TAG_TUI_SCREENBUFFER
	.comm	_D_VERT,4,2                     ; @D_VERT
	.comm	_D_HORZ,4,2                     ; @D_HORZ
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_UiMessageBoxFgColor,4,2        ; @UiMessageBoxFgColor
	.comm	_UiMessageBoxBgColor,4,2        ; @UiMessageBoxBgColor
	.comm	_UiEditBoxTextColor,4,2         ; @UiEditBoxTextColor
	.comm	_UiEditBoxBgColor,4,2           ; @UiEditBoxBgColor
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Press ENTER to continue, or ESC to cancel"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_KEY_EXTENDED,8,3               ; @KEY_EXTENDED
	.comm	_KEY_ENTER,8,3                  ; @KEY_ENTER
	.comm	_KEY_ESC,8,3                    ; @KEY_ESC
	.comm	_KEY_BACKSPACE,8,3              ; @KEY_BACKSPACE
	.comm	_KEY_DELETE,8,3                 ; @KEY_DELETE
	.comm	_KEY_HOME,8,3                   ; @KEY_HOME
	.comm	_KEY_END,8,3                    ; @KEY_END
	.comm	_KEY_RIGHT,8,3                  ; @KEY_RIGHT
	.comm	_KEY_LEFT,8,3                   ; @KEY_LEFT
.subsections_via_symbols
