	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_vk_key
_process_vk_key:                        ## @process_vk_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_LOWORD
	movl	%eax, %edi
	callq	_vk2ascii
	movl	%eax, %r15d
	movq	_KEY_IS_UP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.1:
	movq	_CTRL_C@GOTPCREL(%rip), %rcx
	movq	_CTRL_FLAG@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movzwl	(%rcx), %ecx
	orw	%ax, %cx
	cmpw	%cx, %r15w
	jne	LBB0_4
## %bb.2:
	movq	_calc@GOTPCREL(%rip), %rax
	movl	16(%rax), %edi
	movq	_WM_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IDM_EDIT_COPY@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_CTRL_V@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	cmpw	%ax, %r15w
	jne	LBB0_6
## %bb.5:
	movq	_calc@GOTPCREL(%rip), %rax
	movl	16(%rax), %edi
	movq	_WM_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IDM_EDIT_PASTE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_LOWORD
	movq	_VK_F1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	movq	_calc@GOTPCREL(%rip), %rax
	movl	16(%rax), %edi
	movq	_WM_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IDM_HELP_HELP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_SendMessage
	movl	$1, %r15d
	jmp	LBB0_26
LBB0_8:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_key2code@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_SIZEOF
	testl	%eax, %eax
	je	LBB0_17
## %bb.9:
	movzwl	%r15w, %r15d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_BITMASK_IS_ASCII@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_calc@GOTPCREL(%rip), %rcx
	movl	16(%rcx), %edi
	movl	8(%rax,%rbx), %esi
	callq	_GetDlgItem
	testq	%rax, %rax
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	movq	(%r13), %rdi
	callq	_SIZEOF
	movl	%eax, %eax
	addq	$12, %rbx
	cmpq	%rax, %r14
	jae	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	4(%rax,%rbx), %ecx
	movq	_BITMASK_IS_CTRL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	movq	_CTRL_FLAG@GOTPCREL(%rip), %rsi
	movzwl	(%rsi), %r12d
	cmovel	%edx, %r12d
	orl	(%rax,%rbx), %r12d
	cmpl	%r15d, %r12d
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_LOWORD
	cmpl	%eax, %r12d
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rax
	movq	_BITMASK_IS_ASCII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax,%rbx)
	jne	LBB0_16
	jmp	LBB0_14
LBB0_17:
	movq	_calc@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_CALC_LAYOUT_SCIENTIFIC@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	cmpq	(%rdx), %rcx
	jne	LBB0_26
## %bb.18:
	movq	8(%rax), %rax
	movq	_IDC_RADIO_DEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.20:
	movq	_key2code_base10@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_19:
	movq	_key2code_base16@GOTPCREL(%rip), %rax
LBB0_21:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_SIZEOF
	movl	%eax, %r13d
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%rbx), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_LOWORD
	cmpl	%eax, %r14d
	je	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	addq	$12, %rbx
	decl	%r13d
	jne	LBB0_22
LBB0_26:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	(%rbx), %esi
	jmp	LBB0_24
LBB0_15:
	movq	(%r13), %rax
	movl	8(%rax,%rbx), %esi
LBB0_24:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_post_key_press                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_IS_UP,4,2                  ## @KEY_IS_UP
	.comm	_CTRL_C,2,1                     ## @CTRL_C
	.comm	_CTRL_FLAG,2,1                  ## @CTRL_FLAG
	.comm	_calc,24,3                      ## @calc
	.comm	_WM_COMMAND,4,2                 ## @WM_COMMAND
	.comm	_IDM_EDIT_COPY,4,2              ## @IDM_EDIT_COPY
	.comm	_CTRL_V,2,1                     ## @CTRL_V
	.comm	_IDM_EDIT_PASTE,4,2             ## @IDM_EDIT_PASTE
	.comm	_VK_F1,4,2                      ## @VK_F1
	.comm	_IDM_HELP_HELP,4,2              ## @IDM_HELP_HELP
	.comm	_key2code,8,3                   ## @key2code
	.comm	_BITMASK_IS_CTRL,4,2            ## @BITMASK_IS_CTRL
	.comm	_BITMASK_IS_ASCII,4,2           ## @BITMASK_IS_ASCII
	.comm	_CALC_LAYOUT_SCIENTIFIC,8,3     ## @CALC_LAYOUT_SCIENTIFIC
	.comm	_IDC_RADIO_DEC,8,3              ## @IDC_RADIO_DEC
	.comm	_key2code_base10,8,3            ## @key2code_base10
	.comm	_key2code_base16,8,3            ## @key2code_base16
	.no_dead_strip	_process_vk_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_vk_key
_process_vk_key:                        ; @process_vk_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_LOWORD
	bl	_vk2ascii
	mov	x21, x0
Lloh0:
	adrp	x8, _KEY_IS_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_IS_UP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _CTRL_C@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTRL_C@GOTPAGEOFF]
	ldrh	w9, [x8]
Lloh5:
	adrp	x8, _CTRL_FLAG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CTRL_FLAG@GOTPAGEOFF]
	ldrh	w8, [x8]
	orr	w9, w8, w9
	cmp	w21, w9, uxth
	b.ne	LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _calc@GOTPAGE
Lloh8:
	ldr	x8, [x8, _calc@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8, #16]
Lloh10:
	adrp	x8, _WM_COMMAND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WM_COMMAND@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _IDM_EDIT_COPY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IDM_EDIT_COPY@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh15:
	adrp	x9, _CTRL_V@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CTRL_V@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w9, w8
	cmp	w21, w8
	b.ne	LBB0_5
; %bb.4:
Lloh17:
	adrp	x8, _calc@GOTPAGE
Lloh18:
	ldr	x8, [x8, _calc@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8, #16]
Lloh20:
	adrp	x8, _WM_COMMAND@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WM_COMMAND@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _IDM_EDIT_PASTE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IDM_EDIT_PASTE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_LOWORD
Lloh25:
	adrp	x8, _VK_F1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VK_F1@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.6:
Lloh28:
	adrp	x8, _calc@GOTPAGE
Lloh29:
	ldr	x8, [x8, _calc@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8, #16]
Lloh31:
	adrp	x8, _WM_COMMAND@GOTPAGE
Lloh32:
	ldr	x8, [x8, _WM_COMMAND@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _IDM_HELP_HELP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IDM_HELP_HELP@GOTPAGEOFF]
LBB0_7:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_SendMessage
	mov	w0, #1
	b	LBB0_21
LBB0_8:
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
Lloh36:
	adrp	x22, _key2code@GOTPAGE
Lloh37:
	ldr	x22, [x22, _key2code@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_SIZEOF
	cbz	w0, LBB0_16
; %bb.9:
	mov	x23, #0
	mov	x24, #0
Lloh38:
	adrp	x25, _BITMASK_IS_CTRL@GOTPAGE
Lloh39:
	ldr	x25, [x25, _BITMASK_IS_CTRL@GOTPAGEOFF]
Lloh40:
	adrp	x26, _CTRL_FLAG@GOTPAGE
Lloh41:
	ldr	x26, [x26, _CTRL_FLAG@GOTPAGEOFF]
Lloh42:
	adrp	x27, _BITMASK_IS_ASCII@GOTPAGE
Lloh43:
	ldr	x27, [x27, _BITMASK_IS_ASCII@GOTPAGEOFF]
Lloh44:
	adrp	x28, _calc@GOTPAGE
Lloh45:
	ldr	x28, [x28, _calc@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w10, [x27]
	tst	w10, w9
	b.eq	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x28, #16]
	add	x8, x8, x23
	ldr	w1, [x8, #8]
	bl	_GetDlgItem
	cbnz	x0, LBB0_23
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_SIZEOF
	add	x23, x23, #12
	cmp	x24, w0, uxtw
	b.hs	LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x9, x8, x23
	ldp	w10, w9, [x9]
	ldr	w11, [x25]
	ldrh	w12, [x26]
	tst	w11, w9
	csel	w11, wzr, w12, eq
	orr	w19, w11, w10
	cmp	w19, w21
	b.eq	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	bl	_LOWORD
	cmp	w19, w0
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x22]
	add	x9, x8, x23
	ldr	w9, [x9, #4]
	ldr	w10, [x27]
	tst	w10, w9
	b.ne	LBB0_12
	b	LBB0_11
LBB0_16:
Lloh46:
	adrp	x8, _calc@GOTPAGE
Lloh47:
	ldr	x8, [x8, _calc@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh48:
	adrp	x10, _CALC_LAYOUT_SCIENTIFIC@GOTPAGE
Lloh49:
	ldr	x10, [x10, _CALC_LAYOUT_SCIENTIFIC@GOTPAGEOFF]
Lloh50:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_20
; %bb.17:
	ldr	x8, [x8, #8]
Lloh51:
	adrp	x9, _IDC_RADIO_DEC@GOTPAGE
Lloh52:
	ldr	x9, [x9, _IDC_RADIO_DEC@GOTPAGEOFF]
Lloh53:
	adrp	x10, _key2code_base16@GOTPAGE
Lloh54:
	ldr	x10, [x10, _key2code_base16@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
Lloh56:
	adrp	x11, _key2code_base10@GOTPAGE
Lloh57:
	ldr	x11, [x11, _key2code_base10@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	x22, [x8]
	mov	x0, x22
	bl	_SIZEOF
	mov	x21, x0
	add	x22, x22, #8
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldur	w19, [x22, #-8]
	mov	x0, x20
	bl	_LOWORD
	cmp	w19, w0
	b.eq	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x22, #12
	subs	w21, w21, #1
	b.ne	LBB0_18
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_22:
	ldr	w1, [x22]
	b	LBB0_24
LBB0_23:
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w1, [x8, #8]
LBB0_24:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_post_key_press
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_IS_UP,4,2                  ; @KEY_IS_UP
	.comm	_CTRL_C,2,1                     ; @CTRL_C
	.comm	_CTRL_FLAG,2,1                  ; @CTRL_FLAG
	.comm	_calc,24,3                      ; @calc
	.comm	_WM_COMMAND,4,2                 ; @WM_COMMAND
	.comm	_IDM_EDIT_COPY,4,2              ; @IDM_EDIT_COPY
	.comm	_CTRL_V,2,1                     ; @CTRL_V
	.comm	_IDM_EDIT_PASTE,4,2             ; @IDM_EDIT_PASTE
	.comm	_VK_F1,4,2                      ; @VK_F1
	.comm	_IDM_HELP_HELP,4,2              ; @IDM_HELP_HELP
	.comm	_key2code,8,3                   ; @key2code
	.comm	_BITMASK_IS_CTRL,4,2            ; @BITMASK_IS_CTRL
	.comm	_BITMASK_IS_ASCII,4,2           ; @BITMASK_IS_ASCII
	.comm	_CALC_LAYOUT_SCIENTIFIC,8,3     ; @CALC_LAYOUT_SCIENTIFIC
	.comm	_IDC_RADIO_DEC,8,3              ; @IDC_RADIO_DEC
	.comm	_key2code_base10,8,3            ; @key2code_base10
	.comm	_key2code_base16,8,3            ; @key2code_base16
	.no_dead_strip	_process_vk_key
.subsections_via_symbols
