	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_TextField_HandleKey       ## -- Begin function Item_TextField_HandleKey
	.p2align	4, 0x90
_Item_TextField_HandleKey:              ## @Item_TextField_HandleKey
	.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	$1032, %rsp                     ## imm = 0x408
	.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	_qfalse@GOTPCREL(%rip), %r13
	cmpq	$0, 24(%rdi)
	je	LBB0_67
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	32(%rdi), %r12
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r14), %rdi
	movq	%rbx, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	*24(%rax)
	movq	%rbx, %rdi
	callq	_strlen
	movl	(%r12), %ecx
	cmpl	%ecx, %eax
	movl	%eax, %ebx
	cmovgl	%ecx, %ebx
	testl	%ecx, %ecx
	cmovel	%eax, %ebx
	movq	_K_CHAR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %eax
	je	LBB0_8
## %bb.2:
	notl	%eax
	andl	%eax, %r15d
	cmpl	$8, %r15d
	jne	LBB0_21
## %bb.3:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	leal	-1(%rax), %ecx
	leaq	(%rcx,%rbp), %rdi
	addq	$-1072, %rdi                    ## imm = 0xFBD0
	leaq	(%rax,%rbp), %rsi
	addq	$-1072, %rsi                    ## imm = 0xFBD0
	subl	%eax, %ebx
	incl	%ebx
	movl	%ebx, %edx
	callq	_memmove
	movl	(%r14), %ecx
	leal	-1(%rcx), %eax
	movl	%eax, (%r14)
	movl	4(%r12), %eax
	cmpl	%eax, %ecx
	jg	LBB0_6
## %bb.5:
	decl	%eax
	movl	%eax, 4(%r12)
LBB0_6:
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r14), %rdi
	leaq	-1072(%rbp), %rsi
	callq	*16(%rax)
LBB0_7:
	movq	_qtrue@GOTPCREL(%rip), %r13
	jmp	LBB0_67
LBB0_8:
	movq	_K_DEL@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_23
## %bb.9:
	movq	_K_KP_DEL@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_23
## %bb.10:
	movq	_K_RIGHTARROW@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_31
## %bb.11:
	movq	_K_KP_RIGHTARROW@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_31
## %bb.12:
	movq	_K_LEFTARROW@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_38
## %bb.13:
	movq	_K_KP_LEFTARROW@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_38
## %bb.14:
	movq	_K_HOME@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_42
## %bb.15:
	movq	_K_KP_HOME@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_42
## %bb.16:
	movq	_K_END@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_69
## %bb.17:
	movq	_K_KP_END@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_69
## %bb.18:
	movq	_K_INS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_20
## %bb.19:
	movq	_K_KP_INS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_51
LBB0_20:
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rcx), %rbx
	xorl	%eax, %eax
	callq	*(%rcx)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	*%rbx
	jmp	LBB0_7
LBB0_21:
	movq	_qtrue@GOTPCREL(%rip), %rdx
	cmpl	$32, %r15d
	jl	LBB0_22
## %bb.25:
	cmpq	$0, 24(%r14)
	je	LBB0_22
## %bb.26:
	movq	8(%r14), %rax
	movq	_ITEM_TYPE_NUMERICFIELD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.27:
	leal	-58(%r15), %eax
	cmpl	$-10, %eax
	jb	LBB0_67
LBB0_28:
	movq	%rdx, %r13
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	testl	%eax, %eax
	je	LBB0_43
## %bb.29:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_47
## %bb.30:
	cmpl	%eax, (%r14)
	jl	LBB0_47
	jmp	LBB0_67
LBB0_22:
	movq	%rdx, %r13
	jmp	LBB0_67
LBB0_23:
	movslq	(%r14), %rax
	movq	_qtrue@GOTPCREL(%rip), %r13
	cmpl	%eax, %ebx
	jle	LBB0_67
## %bb.24:
	leaq	(%rax,%rbp), %rdi
	addq	$-1072, %rdi                    ## imm = 0xFBD0
	leaq	(%rax,%rbp), %rsi
	addq	$-1071, %rsi                    ## imm = 0xFBD1
	subl	%eax, %ebx
	movl	%ebx, %edx
	callq	_memmove
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r14), %rdi
	leaq	-1072(%rbp), %rsi
	callq	*16(%rax)
	jmp	LBB0_67
LBB0_31:
	movl	8(%r12), %ecx
	movl	(%r14), %eax
	testl	%ecx, %ecx
	je	LBB0_35
## %bb.32:
	cmpl	%ecx, %eax
	jl	LBB0_35
## %bb.33:
	cmpl	%ebx, %eax
	jge	LBB0_35
## %bb.34:
	incl	%eax
	movl	%eax, (%r14)
	incl	4(%r12)
	jmp	LBB0_7
LBB0_35:
	movq	_qtrue@GOTPCREL(%rip), %r13
	cmpl	%ebx, %eax
	jge	LBB0_67
## %bb.36:
	incl	%eax
	movl	%eax, (%r14)
	jmp	LBB0_67
LBB0_38:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_40
## %bb.39:
	decl	%eax
	movl	%eax, (%r14)
LBB0_40:
	movl	4(%r12), %ecx
	movq	_qtrue@GOTPCREL(%rip), %r13
	cmpl	%ecx, %eax
	jge	LBB0_67
## %bb.41:
	decl	%ecx
	movl	%ecx, 4(%r12)
	jmp	LBB0_67
LBB0_42:
	movl	$0, (%r14)
	movl	$0, 4(%r12)
	jmp	LBB0_7
LBB0_43:
	movq	_MAX_EDITFIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, %ebx
	je	LBB0_67
## %bb.44:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_46
## %bb.45:
	cmpl	%eax, %ebx
	jge	LBB0_67
LBB0_46:
	movslq	(%r14), %rax
	leaq	(%rax,%rbp), %rdi
	addq	$-1071, %rdi                    ## imm = 0xFBD1
	leaq	(%rax,%rbp), %rsi
	addq	$-1072, %rsi                    ## imm = 0xFBD0
	movl	%ebx, %edx
	subl	%eax, %edx
	incl	%edx
	callq	_memmove
LBB0_47:
	movslq	(%r14), %rax
	movb	%r15b, -1072(%rbp,%rax)
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r14), %rdi
	leaq	-1072(%rbp), %rsi
	callq	*16(%rax)
	movl	(%r14), %eax
	cmpl	%ebx, %eax
	jg	LBB0_51
## %bb.48:
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	movl	8(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_51
## %bb.49:
	cmpl	%ecx, %eax
	jl	LBB0_51
## %bb.50:
	incl	4(%r12)
LBB0_51:
	movq	_K_TAB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_54
## %bb.52:
	movq	_K_DOWNARROW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_54
## %bb.53:
	movq	_K_KP_DOWNARROW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_58
LBB0_54:
	movl	16(%r14), %edi
	callq	_Menu_SetNextCursorItem
	testq	%rax, %rax
	je	LBB0_58
## %bb.55:
	movq	8(%rax), %rcx
	movq	_ITEM_TYPE_EDITFIELD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_57
## %bb.56:
	movq	_ITEM_TYPE_NUMERICFIELD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_58
LBB0_57:
	movq	_g_editItem@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_58:
	movq	_K_UPARROW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_60
## %bb.59:
	movq	_K_KP_UPARROW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_64
LBB0_60:
	movl	16(%r14), %edi
	callq	_Menu_SetPrevCursorItem
	testq	%rax, %rax
	je	LBB0_64
## %bb.61:
	movq	8(%rax), %rcx
	movq	_ITEM_TYPE_EDITFIELD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_63
## %bb.62:
	movq	_ITEM_TYPE_NUMERICFIELD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_64
LBB0_63:
	movq	_g_editItem@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_64:
	movq	_K_ENTER@GOTPCREL(%rip), %rax
	movq	_K_KP_ENTER@GOTPCREL(%rip), %rdx
	movq	_K_ESCAPE@GOTPCREL(%rip), %rsi
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movq	%rcx, %r13
	cmpl	(%rsi), %r15d
	je	LBB0_66
## %bb.65:
	movq	_qtrue@GOTPCREL(%rip), %r13
LBB0_66:
	cmpl	(%rdx), %r15d
	cmoveq	%rcx, %r13
	cmpl	(%rax), %r15d
	cmoveq	%rcx, %r13
LBB0_67:
	movl	(%r13), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_71
## %bb.68:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_69:
	movl	%ebx, (%r14)
	movq	_qtrue@GOTPCREL(%rip), %r13
	subl	8(%r12), %ebx
	jle	LBB0_67
## %bb.70:
	movl	%ebx, 4(%r12)
	jmp	LBB0_67
LBB0_71:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DC,8,3                         ## @DC
	.comm	_K_CHAR_FLAG,4,2                ## @K_CHAR_FLAG
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_ITEM_TYPE_NUMERICFIELD,8,3     ## @ITEM_TYPE_NUMERICFIELD
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_MAX_EDITFIELD,4,2              ## @MAX_EDITFIELD
	.comm	_K_DEL,4,2                      ## @K_DEL
	.comm	_K_KP_DEL,4,2                   ## @K_KP_DEL
	.comm	_K_RIGHTARROW,4,2               ## @K_RIGHTARROW
	.comm	_K_KP_RIGHTARROW,4,2            ## @K_KP_RIGHTARROW
	.comm	_K_LEFTARROW,4,2                ## @K_LEFTARROW
	.comm	_K_KP_LEFTARROW,4,2             ## @K_KP_LEFTARROW
	.comm	_K_HOME,4,2                     ## @K_HOME
	.comm	_K_KP_HOME,4,2                  ## @K_KP_HOME
	.comm	_K_END,4,2                      ## @K_END
	.comm	_K_KP_END,4,2                   ## @K_KP_END
	.comm	_K_INS,4,2                      ## @K_INS
	.comm	_K_KP_INS,4,2                   ## @K_KP_INS
	.comm	_K_TAB,4,2                      ## @K_TAB
	.comm	_K_DOWNARROW,4,2                ## @K_DOWNARROW
	.comm	_K_KP_DOWNARROW,4,2             ## @K_KP_DOWNARROW
	.comm	_ITEM_TYPE_EDITFIELD,8,3        ## @ITEM_TYPE_EDITFIELD
	.comm	_g_editItem,8,3                 ## @g_editItem
	.comm	_K_UPARROW,4,2                  ## @K_UPARROW
	.comm	_K_KP_UPARROW,4,2               ## @K_KP_UPARROW
	.comm	_K_ENTER,4,2                    ## @K_ENTER
	.comm	_K_KP_ENTER,4,2                 ## @K_KP_ENTER
	.comm	_K_ESCAPE,4,2                   ## @K_ESCAPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_TextField_HandleKey       ; -- Begin function Item_TextField_HandleKey
	.p2align	2
_Item_TextField_HandleKey:              ; @Item_TextField_HandleKey
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x8, [x0, #24]
Lloh3:
	adrp	x21, _qfalse@GOTPAGE
Lloh4:
	ldr	x21, [x21, _qfalse@GOTPAGEOFF]
	cbz	x8, LBB0_63
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #32]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #1024
	bl	_memset
Lloh5:
	adrp	x23, _DC@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DC@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x8, #24]
	ldr	x0, [x19, #24]
	add	x1, sp, #8
	mov	w2, #1024
	blr	x8
	add	x0, sp, #8
	bl	_strlen
	ldr	w8, [x22]
	cmp	w0, w8
	ccmp	w8, #0, #4, gt
	csel	w24, w8, w0, ne
Lloh7:
	adrp	x8, _K_CHAR_FLAG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _K_CHAR_FLAG@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.2:
	bic	w20, w20, w8
	cmp	w20, #8
	b.ne	LBB0_10
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	sub	w9, w8, #1
	add	x10, sp, #8
	add	x0, x10, x9
	add	x1, x10, x8
	sub	w8, w24, w8
	add	w2, w8, #1
	bl	_memmove
	ldr	w9, [x19]
	sub	w8, w9, #1
	str	w8, [x19]
	ldr	w8, [x22, #4]
	cmp	w9, w8
	b.gt	LBB0_9
; %bb.5:
	sub	w8, w8, #1
	str	w8, [x22, #4]
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _K_DEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _K_DEL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _K_KP_DEL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _K_KP_DEL@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	b.ne	LBB0_16
; %bb.7:
	ldrsw	x8, [x19]
	cmp	w24, w8
	b.le	LBB0_62
; %bb.8:
	add	x9, sp, #8
	add	x0, x9, x8
	add	x1, x0, #1
	sub	w2, w24, w8
	bl	_memmove
LBB0_9:
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	ldr	x0, [x19, #24]
	add	x1, sp, #8
	blr	x8
	b	LBB0_62
LBB0_10:
	cmp	w20, #32
	b.lt	LBB0_62
; %bb.11:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_62
; %bb.12:
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _ITEM_TYPE_NUMERICFIELD@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ITEM_TYPE_NUMERICFIELD@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	sub	w10, w20, #58
	cmp	x8, x9
	ccmn	w10, #10, #2, eq
	b.lo	LBB0_32
; %bb.13:
	ldr	x8, [x23]
	ldr	x8, [x8]
	blr	x8
	cbz	w0, LBB0_39
; %bb.14:
	ldr	w8, [x22]
	cbz	w8, LBB0_43
; %bb.15:
	ldr	w9, [x19]
	cmp	w9, w8
	b.lt	LBB0_43
	b	LBB0_62
LBB0_16:
Lloh19:
	adrp	x8, _K_RIGHTARROW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _K_RIGHTARROW@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _K_KP_RIGHTARROW@GOTPAGE
Lloh23:
	ldr	x9, [x9, _K_KP_RIGHTARROW@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	b.ne	LBB0_21
; %bb.17:
	ldr	w9, [x22, #8]
	ldr	w8, [x19]
	cbz	w9, LBB0_30
; %bb.18:
	cmp	w8, w9
	b.lt	LBB0_30
; %bb.19:
	cmp	w8, w24
	b.ge	LBB0_30
; %bb.20:
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w8, [x22, #4]
	add	w8, w8, #1
	b	LBB0_37
LBB0_21:
Lloh25:
	adrp	x8, _K_LEFTARROW@GOTPAGE
Lloh26:
	ldr	x8, [x8, _K_LEFTARROW@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_33
; %bb.22:
Lloh28:
	adrp	x8, _K_KP_LEFTARROW@GOTPAGE
Lloh29:
	ldr	x8, [x8, _K_KP_LEFTARROW@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_33
; %bb.23:
Lloh31:
	adrp	x8, _K_HOME@GOTPAGE
Lloh32:
	ldr	x8, [x8, _K_HOME@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_38
; %bb.24:
Lloh34:
	adrp	x8, _K_KP_HOME@GOTPAGE
Lloh35:
	ldr	x8, [x8, _K_KP_HOME@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_38
; %bb.25:
Lloh37:
	adrp	x8, _K_END@GOTPAGE
Lloh38:
	ldr	x8, [x8, _K_END@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_61
; %bb.26:
Lloh40:
	adrp	x8, _K_KP_END@GOTPAGE
Lloh41:
	ldr	x8, [x8, _K_KP_END@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_61
; %bb.27:
Lloh43:
	adrp	x8, _K_INS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _K_INS@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_29
; %bb.28:
Lloh46:
	adrp	x8, _K_KP_INS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _K_KP_INS@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_47
LBB0_29:
	ldr	x8, [x23]
	ldp	x8, x19, [x8]
	blr	x8
	cmp	w0, #0
	cset	w0, eq
	blr	x19
	b	LBB0_62
LBB0_30:
	cmp	w8, w24
	b.ge	LBB0_62
; %bb.31:
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_62
LBB0_32:
Lloh49:
	adrp	x21, _qfalse@GOTPAGE
Lloh50:
	ldr	x21, [x21, _qfalse@GOTPAGEOFF]
	b	LBB0_63
LBB0_33:
	ldr	w8, [x19]
	subs	w9, w8, #1
	b.lt	LBB0_35
; %bb.34:
	str	w9, [x19]
	mov	x8, x9
LBB0_35:
	ldr	w9, [x22, #4]
	cmp	w8, w9
	b.ge	LBB0_62
; %bb.36:
	sub	w8, w9, #1
LBB0_37:
	str	w8, [x22, #4]
	b	LBB0_62
LBB0_38:
	str	wzr, [x19]
	str	wzr, [x22, #4]
	b	LBB0_62
LBB0_39:
Lloh51:
	adrp	x8, _MAX_EDITFIELD@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MAX_EDITFIELD@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w24, w8
	b.eq	LBB0_62
; %bb.40:
	ldr	w8, [x22]
	cbz	w8, LBB0_42
; %bb.41:
	cmp	w24, w8
	b.ge	LBB0_62
LBB0_42:
	ldrsw	x8, [x19]
	add	x9, sp, #8
	add	x1, x9, x8
	add	x0, x1, #1
	sub	w8, w24, w8
	add	w2, w8, #1
	bl	_memmove
LBB0_43:
	ldrsw	x8, [x19]
	add	x9, sp, #8
	strb	w20, [x9, x8]
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	ldr	x0, [x19, #24]
	add	x1, sp, #8
	blr	x8
	ldr	w8, [x19]
	cmp	w8, w24
	b.gt	LBB0_47
; %bb.44:
	add	w9, w8, #1
	str	w9, [x19]
	ldr	w9, [x22, #8]
	cbz	w9, LBB0_47
; %bb.45:
	cmp	w8, w9
	b.lt	LBB0_47
; %bb.46:
	ldr	w8, [x22, #4]
	add	w8, w8, #1
	str	w8, [x22, #4]
LBB0_47:
Lloh54:
	adrp	x8, _K_TAB@GOTPAGE
Lloh55:
	ldr	x8, [x8, _K_TAB@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_50
; %bb.48:
Lloh57:
	adrp	x8, _K_DOWNARROW@GOTPAGE
Lloh58:
	ldr	x8, [x8, _K_DOWNARROW@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_50
; %bb.49:
Lloh60:
	adrp	x8, _K_KP_DOWNARROW@GOTPAGE
Lloh61:
	ldr	x8, [x8, _K_KP_DOWNARROW@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_54
LBB0_50:
	ldr	w0, [x19, #16]
	bl	_Menu_SetNextCursorItem
	cbz	x0, LBB0_54
; %bb.51:
	ldr	x8, [x0, #8]
Lloh63:
	adrp	x9, _ITEM_TYPE_EDITFIELD@GOTPAGE
Lloh64:
	ldr	x9, [x9, _ITEM_TYPE_EDITFIELD@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_53
; %bb.52:
Lloh66:
	adrp	x9, _ITEM_TYPE_NUMERICFIELD@GOTPAGE
Lloh67:
	ldr	x9, [x9, _ITEM_TYPE_NUMERICFIELD@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_54
LBB0_53:
Lloh69:
	adrp	x8, _g_editItem@GOTPAGE
Lloh70:
	ldr	x8, [x8, _g_editItem@GOTPAGEOFF]
Lloh71:
	str	x0, [x8]
LBB0_54:
Lloh72:
	adrp	x8, _K_UPARROW@GOTPAGE
Lloh73:
	ldr	x8, [x8, _K_UPARROW@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_56
; %bb.55:
Lloh75:
	adrp	x8, _K_KP_UPARROW@GOTPAGE
Lloh76:
	ldr	x8, [x8, _K_KP_UPARROW@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_60
LBB0_56:
	ldr	w0, [x19, #16]
	bl	_Menu_SetPrevCursorItem
	cbz	x0, LBB0_60
; %bb.57:
	ldr	x8, [x0, #8]
Lloh78:
	adrp	x9, _ITEM_TYPE_EDITFIELD@GOTPAGE
Lloh79:
	ldr	x9, [x9, _ITEM_TYPE_EDITFIELD@GOTPAGEOFF]
Lloh80:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_59
; %bb.58:
Lloh81:
	adrp	x9, _ITEM_TYPE_NUMERICFIELD@GOTPAGE
Lloh82:
	ldr	x9, [x9, _ITEM_TYPE_NUMERICFIELD@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_60
LBB0_59:
Lloh84:
	adrp	x8, _g_editItem@GOTPAGE
Lloh85:
	ldr	x8, [x8, _g_editItem@GOTPAGEOFF]
Lloh86:
	str	x0, [x8]
LBB0_60:
Lloh87:
	adrp	x8, _K_ENTER@GOTPAGE
Lloh88:
	ldr	x8, [x8, _K_ENTER@GOTPAGEOFF]
Lloh89:
	ldr	w8, [x8]
Lloh90:
	adrp	x9, _K_KP_ENTER@GOTPAGE
Lloh91:
	ldr	x9, [x9, _K_KP_ENTER@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
Lloh93:
	adrp	x10, _K_ESCAPE@GOTPAGE
Lloh94:
	ldr	x10, [x10, _K_ESCAPE@GOTPAGEOFF]
Lloh95:
	ldr	w10, [x10]
	cmp	w20, w10
	ccmp	w20, w9, #4, ne
	ccmp	w20, w8, #4, ne
Lloh96:
	adrp	x8, _qtrue@GOTPAGE
Lloh97:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	csel	x21, x21, x8, eq
	b	LBB0_63
LBB0_61:
	str	w24, [x19]
	ldr	w8, [x22, #8]
	subs	w8, w24, w8
	b.gt	LBB0_37
LBB0_62:
Lloh98:
	adrp	x21, _qtrue@GOTPAGE
Lloh99:
	ldr	x21, [x21, _qtrue@GOTPAGEOFF]
LBB0_63:
	ldr	w0, [x21]
	ldur	x8, [x29, #-72]
Lloh100:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh101:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh102:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_65
; %bb.64:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_65:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	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 AdrpLdrGotStr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotStr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.cfi_endproc
                                        ; -- End function
	.comm	_DC,8,3                         ; @DC
	.comm	_K_CHAR_FLAG,4,2                ; @K_CHAR_FLAG
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_ITEM_TYPE_NUMERICFIELD,8,3     ; @ITEM_TYPE_NUMERICFIELD
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_MAX_EDITFIELD,4,2              ; @MAX_EDITFIELD
	.comm	_K_DEL,4,2                      ; @K_DEL
	.comm	_K_KP_DEL,4,2                   ; @K_KP_DEL
	.comm	_K_RIGHTARROW,4,2               ; @K_RIGHTARROW
	.comm	_K_KP_RIGHTARROW,4,2            ; @K_KP_RIGHTARROW
	.comm	_K_LEFTARROW,4,2                ; @K_LEFTARROW
	.comm	_K_KP_LEFTARROW,4,2             ; @K_KP_LEFTARROW
	.comm	_K_HOME,4,2                     ; @K_HOME
	.comm	_K_KP_HOME,4,2                  ; @K_KP_HOME
	.comm	_K_END,4,2                      ; @K_END
	.comm	_K_KP_END,4,2                   ; @K_KP_END
	.comm	_K_INS,4,2                      ; @K_INS
	.comm	_K_KP_INS,4,2                   ; @K_KP_INS
	.comm	_K_TAB,4,2                      ; @K_TAB
	.comm	_K_DOWNARROW,4,2                ; @K_DOWNARROW
	.comm	_K_KP_DOWNARROW,4,2             ; @K_KP_DOWNARROW
	.comm	_ITEM_TYPE_EDITFIELD,8,3        ; @ITEM_TYPE_EDITFIELD
	.comm	_g_editItem,8,3                 ; @g_editItem
	.comm	_K_UPARROW,4,2                  ; @K_UPARROW
	.comm	_K_KP_UPARROW,4,2               ; @K_KP_UPARROW
	.comm	_K_ENTER,4,2                    ; @K_ENTER
	.comm	_K_KP_ENTER,4,2                 ; @K_KP_ENTER
	.comm	_K_ESCAPE,4,2                   ; @K_ESCAPE
.subsections_via_symbols
