	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MenuField_Key                  ## -- Begin function MenuField_Key
	.p2align	4, 0x90
_MenuField_Key:                         ## @MenuField_Key
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %ebx
	xorl	%r14d, %r14d
	leal	-128(%rbx), %eax
	cmpl	$10, %eax
	ja	LBB0_3
## %bb.1:
	movl	$1000, %ecx                     ## imm = 0x3E8
	btl	%eax, %ecx
	jae	LBB0_16
## %bb.2:
	movl	$129, (%rsi)
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r15
	movq	_K_CHAR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_15
## %bb.4:
	notl	%eax
	andl	%eax, %ebx
	movl	4(%r15), %eax
	movq	_QMF_UPPERCASE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movl	%ebx, %edi
	callq	_Q_islower
	testl	%eax, %eax
	je	LBB0_6
## %bb.13:
	addl	$-32, %ebx
	jmp	LBB0_14
LBB0_15:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_MField_KeyDownEvent
	jmp	LBB0_16
LBB0_6:
	movl	4(%r15), %eax
LBB0_7:
	movq	_QMF_LOWERCASE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.8:
	movl	%ebx, %edi
	callq	_Q_isupper
	testl	%eax, %eax
	je	LBB0_9
## %bb.17:
	addl	$32, %ebx
	jmp	LBB0_14
LBB0_9:
	movl	4(%r15), %eax
LBB0_10:
	movq	_QMF_NUMBERSONLY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.11:
	movl	%ebx, %edi
	callq	_Q_isalpha
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	_menu_buzz_sound@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_16
LBB0_14:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_MField_CharEvent
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_K_CHAR_FLAG,4,2                ## @K_CHAR_FLAG
	.comm	_QMF_UPPERCASE,4,2              ## @QMF_UPPERCASE
	.comm	_QMF_LOWERCASE,4,2              ## @QMF_LOWERCASE
	.comm	_QMF_NUMBERSONLY,4,2            ## @QMF_NUMBERSONLY
	.comm	_menu_buzz_sound,4,2            ## @menu_buzz_sound
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MenuField_Key                  ; -- Begin function MenuField_Key
	.p2align	2
_MenuField_Key:                         ; @MenuField_Key
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	ldr	w1, [x1]
	sub	w9, w1, #128
	cmp	w9, #10
	b.hi	LBB0_3
; %bb.1:
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w10, #1000
	tst	w9, w10
	b.eq	LBB0_17
; %bb.2:
	mov	w0, #0
	mov	w9, #129
	str	w9, [x8]
	b	LBB0_18
LBB0_3:
	mov	x19, x0
Lloh0:
	adrp	x8, _K_CHAR_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _K_CHAR_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_7
; %bb.4:
	bic	w20, w1, w8
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _QMF_UPPERCASE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QMF_UPPERCASE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_Q_islower
	cbz	w0, LBB0_8
; %bb.6:
	sub	w20, w20, #32
	b	LBB0_16
LBB0_7:
	mov	x0, x19
	bl	_MField_KeyDownEvent
	b	LBB0_17
LBB0_8:
	ldr	w8, [x19, #4]
LBB0_9:
Lloh6:
	adrp	x9, _QMF_LOWERCASE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QMF_LOWERCASE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_Q_isupper
	cbz	w0, LBB0_12
; %bb.11:
	add	w20, w20, #32
	b	LBB0_16
LBB0_12:
	ldr	w8, [x19, #4]
LBB0_13:
Lloh9:
	adrp	x9, _QMF_NUMBERSONLY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QMF_NUMBERSONLY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	mov	x0, x20
	bl	_Q_isalpha
	cbz	w0, LBB0_16
; %bb.15:
Lloh12:
	adrp	x8, _menu_buzz_sound@GOTPAGE
Lloh13:
	ldr	x8, [x8, _menu_buzz_sound@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_MField_CharEvent
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_K_CHAR_FLAG,4,2                ; @K_CHAR_FLAG
	.comm	_QMF_UPPERCASE,4,2              ; @QMF_UPPERCASE
	.comm	_QMF_LOWERCASE,4,2              ; @QMF_LOWERCASE
	.comm	_QMF_NUMBERSONLY,4,2            ; @QMF_NUMBERSONLY
	.comm	_menu_buzz_sound,4,2            ; @menu_buzz_sound
.subsections_via_symbols
