	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keyb_int
_keyb_int:                              ## @keyb_int
	.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
                                        ## kill: def $al killed $al def $rax
	movl	%eax, %ecx
	notb	%cl
	shrb	$7, %cl
	movzbl	%al, %esi
	andl	$127, %esi
	movb	_keyb_int.buffer(%rip), %dl
	cmpb	$-32, %dl
	jne	LBB0_4
## %bb.1:
	cmpb	$95, %sil
	ja	LBB0_3
## %bb.2:
	movq	_normal_keys@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	%cl, 256(%rax,%rsi)
	jmp	LBB0_3
LBB0_4:
	addb	$31, %dl
	cmpb	$1, %dl
	ja	LBB0_6
LBB0_3:
	movb	$0, _keyb_int.buffer(%rip)
LBB0_10:
	movl	$32, %edi
	movl	$32, %esi
	popq	%rbp
	jmp	_outp                           ## TAILCALL
LBB0_6:
	leal	32(%rax), %edx
	cmpb	$2, %dl
	ja	LBB0_8
## %bb.7:
	movb	%al, _keyb_int.buffer(%rip)
	jmp	LBB0_10
LBB0_8:
	cmpb	$95, %sil
	ja	LBB0_10
## %bb.9:
	movq	_normal_keys@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	%cl, (%rax,%rsi)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_keyb_int.buffer,1,0 ## @keyb_int.buffer
	.comm	_normal_keys,8,3                ## @normal_keys
	.no_dead_strip	_keyb_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keyb_int
_keyb_int:                              ; @keyb_int
	.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
                                        ; kill: def $w0 killed $w0 def $x0
	mvn	w8, w0
	ubfx	w8, w8, #7, #1
	and	x9, x0, #0x7f
	adrp	x10, _keyb_int.buffer@PAGE
	ldrb	w11, [x10, _keyb_int.buffer@PAGEOFF]
	cmp	w11, #224
	b.ne	LBB0_3
; %bb.1:
	cmp	w9, #95
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x11, _normal_keys@GOTPAGE
Lloh1:
	ldr	x11, [x11, _normal_keys@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	add	x9, x11, x9
	strb	w8, [x9, #256]
	b	LBB0_4
LBB0_3:
	add	w11, w11, #31
	and	w11, w11, #0xff
	cmp	w11, #1
	b.hi	LBB0_6
LBB0_4:
	strb	wzr, [x10, _keyb_int.buffer@PAGEOFF]
LBB0_5:
	mov	w0, #32
	mov	w1, #32
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_outp
LBB0_6:
	add	w11, w0, #32
	and	w11, w11, #0xff
	cmp	w11, #2
	b.hi	LBB0_8
; %bb.7:
	strb	w0, [x10, _keyb_int.buffer@PAGEOFF]
	b	LBB0_5
LBB0_8:
	cmp	w9, #95
	b.hi	LBB0_5
; %bb.9:
Lloh3:
	adrp	x10, _normal_keys@GOTPAGE
Lloh4:
	ldr	x10, [x10, _normal_keys@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	strb	w8, [x10, x9]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_keyb_int.buffer,1,0 ; @keyb_int.buffer
	.comm	_normal_keys,8,3                ; @normal_keys
	.no_dead_strip	_keyb_int
.subsections_via_symbols
