	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_WM_KEY
_handle_WM_KEY:                         ## @handle_WM_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movl	%ecx, %edi
	callq	_HIWORD
	movl	%eax, %ebx
	movl	%eax, %edi
	andl	$255, %edi
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_get_scan_code_from_ascii
	movl	%eax, %edi
LBB0_2:
	movl	%ebx, %eax
	andl	$256, %eax                      ## imm = 0x100
	xorl	%esi, %esi
	cmpl	$69, %edi
	cmovnel	%eax, %esi
	testl	$32768, %ebx                    ## imm = 0x8000
	jne	LBB0_4
## %bb.3:
	callq	_ui_key_down
	jmp	LBB0_5
LBB0_4:
	callq	_ui_key_up
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_handle_WM_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_WM_KEY
_handle_WM_KEY:                         ; @handle_WM_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	x0, x3
	mov	x20, x2
	bl	_HIWORD
	mov	x19, x0
	ands	w0, w0, #0xff
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_get_scan_code_from_ascii
LBB0_2:
	and	w8, w19, #0x100
	cmp	w0, #69
	csel	w1, wzr, w8, eq
	tbnz	w19, #15, LBB0_4
; %bb.3:
	bl	_ui_key_down
	b	LBB0_5
LBB0_4:
	bl	_ui_key_up
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_handle_WM_KEY
.subsections_via_symbols
