	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ihandler
_ihandler:                              ## @ihandler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$96, %edi
	callq	_inp
	movzbl	%al, %ecx
	cmpb	$-32, %cl
	je	LBB0_4
## %bb.1:
	movq	_lastsc@GOTPCREL(%rip), %rdi
	movl	%ecx, %r8d
	andl	$127, %r8d
	xorl	%esi, %esi
	cmpl	$224, (%rdi)
	jne	LBB0_3
## %bb.2:
	movq	_SCAN_LEFTALT@GOTPCREL(%rip), %rsi
	movzbl	(%rsi), %esi
	cmpl	%esi, %r8d
	sete	%sil
	movq	_SCAN_LEFTCONTROL@GOTPCREL(%rip), %rdi
	movzbl	(%rdi), %edi
	cmpl	%edi, %r8d
	sete	%dl
	orb	%sil, %dl
	movzbl	%dl, %esi
	shll	$7, %esi
LBB0_3:
	notb	%al
	andb	$-128, %al
	movq	_keybuf@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orl	%r8d, %esi
	movb	%al, (%rdx,%rsi)
	movq	_newk@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_4:
	movq	_lastsc@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movl	$32, %edi
	movl	$32, %esi
	popq	%rbp
	jmp	_outp                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_lastsc,4,2                     ## @lastsc
	.comm	_SCAN_LEFTALT,1,0               ## @SCAN_LEFTALT
	.comm	_SCAN_LEFTCONTROL,1,0           ## @SCAN_LEFTCONTROL
	.comm	_keybuf,8,3                     ## @keybuf
	.comm	_newk,4,2                       ## @newk
	.no_dead_strip	_ihandler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ihandler
_ihandler:                              ; @ihandler
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w0, #96
	bl	_inp
Lloh0:
	adrp	x8, _lastsc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lastsc@GOTPAGEOFF]
	cmp	w0, #224
	b.eq	LBB0_5
; %bb.1:
	ldr	w10, [x8]
	and	w9, w0, #0x7f
	cmp	w10, #224
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x10, _SCAN_LEFTALT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SCAN_LEFTALT@GOTPAGEOFF]
Lloh4:
	adrp	x11, _SCAN_LEFTCONTROL@GOTPAGE
Lloh5:
	ldr	x11, [x11, _SCAN_LEFTCONTROL@GOTPAGEOFF]
	ldrb	w10, [x10]
	ldrb	w11, [x11]
	cmp	w9, w11
	ccmp	w9, w10, #4, ne
	mov	w10, #128
	csel	w10, w10, wzr, eq
	b	LBB0_4
LBB0_3:
	mov	w10, #0
LBB0_4:
	mvn	w11, w0
	and	w11, w11, #0x80
Lloh6:
	adrp	x12, _keybuf@GOTPAGE
Lloh7:
	ldr	x12, [x12, _keybuf@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	orr	w9, w10, w9
	strb	w11, [x12, w9, uxtw]
Lloh9:
	adrp	x9, _newk@GOTPAGE
Lloh10:
	ldr	x9, [x9, _newk@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
LBB0_5:
	str	w0, [x8]
	mov	w0, #32
	mov	w1, #32
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_outp
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_lastsc,4,2                     ; @lastsc
	.comm	_SCAN_LEFTALT,1,0               ; @SCAN_LEFTALT
	.comm	_SCAN_LEFTCONTROL,1,0           ; @SCAN_LEFTCONTROL
	.comm	_keybuf,8,3                     ; @keybuf
	.comm	_newk,4,2                       ; @newk
	.no_dead_strip	_ihandler
.subsections_via_symbols
