	.file	"382922.c"
	.intel_syntax noprefix
	.text
	.globl	CUR_DEFAULT
	.bss
	.align 4
	.type	CUR_DEFAULT, @object
	.size	CUR_DEFAULT, 4
CUR_DEFAULT:
	.zero	4
	.globl	ESnormal
	.align 8
	.type	ESnormal, @object
	.size	ESnormal, 8
ESnormal:
	.zero	8
	.globl	GRAF_MAP
	.align 8
	.type	GRAF_MAP, @object
	.size	GRAF_MAP, 8
GRAF_MAP:
	.zero	8
	.globl	IBMPC_MAP
	.align 8
	.type	IBMPC_MAP, @object
	.size	IBMPC_MAP, 8
IBMPC_MAP:
	.zero	8
	.globl	LAT1_MAP
	.align 8
	.type	LAT1_MAP, @object
	.size	LAT1_MAP, 8
LAT1_MAP:
	.zero	8
	.globl	NPAR
	.align 8
	.type	NPAR, @object
	.size	NPAR, 8
NPAR:
	.zero	8
	.globl	USER_MAP
	.align 8
	.type	USER_MAP, @object
	.size	USER_MAP, 8
USER_MAP:
	.zero	8
	.globl	kbd_table
	.align 8
	.type	kbd_table, @object
	.size	kbd_table, 8
kbd_table:
	.zero	8
	.globl	kbdapplic
	.align 4
	.type	kbdapplic, @object
	.size	kbdapplic, 4
kbdapplic:
	.zero	4
	.globl	lnm
	.align 4
	.type	lnm, @object
	.size	lnm, 4
lnm:
	.zero	4
	.text
	.type	do_con_trol, @function
do_con_trol:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	cmp	DWORD PTR -36[rbp], 155
	je	.L2
	cmp	DWORD PTR -36[rbp], 155
	jg	.L3
	cmp	DWORD PTR -36[rbp], 27
	jg	.L4
	cmp	DWORD PTR -36[rbp], 0
	js	.L3
	cmp	DWORD PTR -36[rbp], 27
	ja	.L3
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L6[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L6[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L145-.L6
	.long	.L3-.L6
	.long	.L3-.L6
	.long	.L3-.L6
	.long	.L3-.L6
	.long	.L3-.L6
	.long	.L3-.L6
	.long	.L14-.L6
	.long	.L13-.L6
	.long	.L12-.L6
	.long	.L11-.L6
	.long	.L11-.L6
	.long	.L11-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L3-.L6
	.long	.L3-.L6
	.long	.L3-.L6
	.long	.L3-.L6
	.long	.L3-.L6
	.long	.L3-.L6
	.long	.L3-.L6
	.long	.L3-.L6
	.long	.L7-.L6
	.long	.L3-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
.L4:
	cmp	DWORD PTR -36[rbp], 127
	je	.L16
	jmp	.L3
.L14:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 140[rax]
	test	eax, eax
	je	.L146
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 140[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 144[rax]
	mov	esi, edx
	mov	edi, eax
	call	kd_mksound@PLT
	jmp	.L146
.L13:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	bs@PLT
	jmp	.L1
.L12:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, eax
	sub	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L19
.L21:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	sar	eax, 5
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 31
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	jne	.L147
.L19:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 136[rax]
	sub	eax, 1
	cmp	edx, eax
	jl	.L21
	jmp	.L20
.L147:
	nop
.L20:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, eax
	add	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 9
	mov	rdi, rax
	call	notify_write@PLT
	jmp	.L1
.L11:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	lf@PLT
	mov	edx, DWORD PTR lnm[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	is_kbd@PLT
	test	eax, eax
	je	.L148
.L10:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	cr@PLT
	jmp	.L1
.L9:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 16[rax], 1
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	set_translate@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 104[rdx], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 20[rax], 1
	jmp	.L1
.L8:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	set_translate@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 104[rdx], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 20[rax], 0
	jmp	.L1
.L7:
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L1
.L5:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], 138
	jmp	.L1
.L16:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	del@PLT
	jmp	.L1
.L2:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], 128
	jmp	.L1
.L3:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 24[rax]
	add	eax, -128
	cmp	eax, 10
	ja	.L22
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L24[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L24[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L24:
	.long	.L34-.L24
	.long	.L33-.L24
	.long	.L32-.L24
	.long	.L31-.L24
	.long	.L30-.L24
	.long	.L29-.L24
	.long	.L28-.L24
	.long	.L27-.L24
	.long	.L26-.L24
	.long	.L25-.L24
	.long	.L23-.L24
	.text
.L23:
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 35
	cmp	eax, 64
	ja	.L149
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L37[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L37[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L37:
	.long	.L52-.L37
	.long	.L149-.L37
	.long	.L51-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L50-.L37
	.long	.L49-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L48-.L37
	.long	.L47-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L46-.L37
	.long	.L45-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L44-.L37
	.long	.L43-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L42-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L41-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L40-.L37
	.long	.L39-.L37
	.long	.L149-.L37
	.long	.L38-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L149-.L37
	.long	.L36-.L37
	.text
.L39:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], 128
	jmp	.L1
.L38:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], 133
	jmp	.L1
.L51:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], 131
	jmp	.L1
.L43:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	cr@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	lf@PLT
	jmp	.L1
.L41:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	ri@PLT
	jmp	.L1
.L44:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	lf@PLT
	jmp	.L1
.L42:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	sar	eax, 5
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 31
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	sar	eax, 5
	cdqe
	sal	rax, 2
	add	rax, rcx
	or	edx, esi
	mov	DWORD PTR [rax], edx
	jmp	.L1
.L40:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	respond_ID@PLT
	jmp	.L1
.L48:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	save_cur@PLT
	jmp	.L1
.L47:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	restore_cur@PLT
	jmp	.L1
.L50:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], 130
	jmp	.L1
.L49:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], 129
	jmp	.L1
.L52:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], 134
	jmp	.L1
.L36:
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	reset_terminal@PLT
	jmp	.L1
.L45:
	mov	edx, DWORD PTR kbdapplic[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	clr_kbd@PLT
	jmp	.L1
.L46:
	mov	edx, DWORD PTR kbdapplic[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	set_kbd@PLT
	jmp	.L1
.L29:
	cmp	DWORD PTR -36[rbp], 80
	jne	.L53
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rax], 0
	jmp	.L54
.L55:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 32[rax]
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 32[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rax], rdx
.L54:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR NPAR[rip]
	cmp	rdx, rax
	jb	.L55
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], 132
	jmp	.L1
.L53:
	cmp	DWORD PTR -36[rbp], 82
	jne	.L56
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	reset_palette@PLT
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L1
.L56:
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L1
.L30:
	cmp	DWORD PTR -36[rbp], 47
	jle	.L58
	cmp	DWORD PTR -36[rbp], 57
	jle	.L59
.L58:
	cmp	DWORD PTR -36[rbp], 64
	jle	.L60
	cmp	DWORD PTR -36[rbp], 70
	jle	.L59
.L60:
	cmp	DWORD PTR -36[rbp], 96
	jle	.L61
	cmp	DWORD PTR -36[rbp], 102
	jg	.L61
.L59:
	cmp	DWORD PTR -36[rbp], 57
	jle	.L62
	mov	eax, DWORD PTR -36[rbp]
	and	eax, 223
	sub	eax, 55
	jmp	.L63
.L62:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 48
.L63:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rdi, QWORD PTR 40[rdx]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 32[rdx]
	lea	rsi, 1[rdx]
	mov	rcx, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rcx], rsi
	sal	rdx, 2
	add	rdx, rdi
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 32[rax]
	cmp	rax, 7
	jne	.L65
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -4[rbp], 1
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	sal	edx, 4
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	sal	rdx, 2
	add	rdx, rcx
	mov	ecx, DWORD PTR [rdx]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 48[rdx]
	cdqe
	sal	rax, 2
	add	rax, rdx
	lea	edx, [rsi+rcx]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	sal	edx, 4
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	sal	rdx, 2
	add	rdx, rcx
	mov	ecx, DWORD PTR [rdx]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 48[rdx]
	cdqe
	sal	rax, 2
	add	rax, rdx
	lea	edx, [rsi+rcx]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	sal	edx, 4
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	set_palette@PLT
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L65
.L61:
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L1
.L65:
	jmp	.L1
.L34:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rax], 0
	jmp	.L66
.L67:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 32[rax]
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 32[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rax], rdx
.L66:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR NPAR[rip]
	cmp	rdx, rax
	jb	.L67
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], 136
	cmp	DWORD PTR -36[rbp], 91
	jne	.L68
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], 137
	jmp	.L1
.L68:
	cmp	DWORD PTR -36[rbp], 63
	sete	al
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 56[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	jne	.L150
.L26:
	cmp	DWORD PTR -36[rbp], 59
	jne	.L69
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR NPAR[rip]
	sub	rdx, 1
	cmp	rax, rdx
	jnb	.L69
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 32[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rax], rdx
	jmp	.L1
.L69:
	cmp	DWORD PTR -36[rbp], 47
	jle	.L70
	cmp	DWORD PTR -36[rbp], 57
	jg	.L70
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 32[rax]
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 32[rax]
	sal	rax, 2
	add	rcx, rax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR [rcx], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 32[rax]
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	lea	esi, -48[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 32[rax]
	sal	rax, 2
	add	rax, rcx
	add	edx, esi
	mov	DWORD PTR [rax], edx
	jmp	.L1
.L70:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], 135
.L27:
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 99
	cmp	eax, 11
	ja	.L71
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L73[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L73[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L73:
	.long	.L77-.L73
	.long	.L71-.L73
	.long	.L71-.L73
	.long	.L71-.L73
	.long	.L71-.L73
	.long	.L76-.L73
	.long	.L71-.L73
	.long	.L71-.L73
	.long	.L71-.L73
	.long	.L75-.L73
	.long	.L74-.L73
	.long	.L72-.L73
	.text
.L76:
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	set_mode@PLT
	jmp	.L1
.L75:
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	set_mode@PLT
	jmp	.L1
.L77:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	je	.L151
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L79
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 60[rax], edx
	jmp	.L1
.L79:
	mov	edx, DWORD PTR CUR_DEFAULT[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 60[rax], edx
	jmp	.L1
.L74:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	je	.L152
	mov	eax, 0
	call	clear_selection@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L82
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	or	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 64[rax], edx
	jmp	.L1
.L82:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 68[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 64[rax], edx
	jmp	.L1
.L72:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	jne	.L153
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 5
	jne	.L85
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	status_report@PLT
	jmp	.L153
.L85:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 6
	jne	.L153
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cursor_report@PLT
	jmp	.L153
.L151:
	nop
	jmp	.L71
.L152:
	nop
.L71:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	je	.L86
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 56[rax], 0
	jmp	.L1
.L86:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 64
	cmp	eax, 53
	ja	.L154
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L89[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L89[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L89:
	.long	.L112-.L89
	.long	.L111-.L89
	.long	.L96-.L89
	.long	.L99-.L89
	.long	.L110-.L89
	.long	.L109-.L89
	.long	.L108-.L89
	.long	.L100-.L89
	.long	.L95-.L89
	.long	.L154-.L89
	.long	.L107-.L89
	.long	.L106-.L89
	.long	.L105-.L89
	.long	.L104-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L103-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L102-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L101-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L100-.L89
	.long	.L99-.L89
	.long	.L154-.L89
	.long	.L98-.L89
	.long	.L97-.L89
	.long	.L96-.L89
	.long	.L95-.L89
	.long	.L94-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L93-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L154-.L89
	.long	.L92-.L89
	.long	.L91-.L89
	.long	.L90-.L89
	.long	.L154-.L89
	.long	.L88-.L89
	.text
.L100:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L113
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
.L113:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 72[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gotoxy@PLT
	jmp	.L1
.L111:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L114
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
.L114:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 72[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	sub	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gotoxy@PLT
	jmp	.L1
.L96:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L115
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
.L115:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 72[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	add	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gotoxy@PLT
	jmp	.L1
.L99:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L116
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
.L116:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 72[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	add	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gotoxy@PLT
	jmp	.L1
.L110:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L117
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
.L117:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 72[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	sub	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gotoxy@PLT
	jmp	.L1
.L109:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L118
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
.L118:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 72[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	add	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gotoxy@PLT
	jmp	.L1
.L108:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L119
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
.L119:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 72[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	sub	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gotoxy@PLT
	jmp	.L1
.L97:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L120
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
.L120:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gotoxay@PLT
	jmp	.L1
.L95:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L121
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
.L121:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L122
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
.L122:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, 4
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gotoxay@PLT
	jmp	.L1
.L107:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	csi_J@PLT
	jmp	.L1
.L106:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	csi_K@PLT
	jmp	.L1
.L105:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	csi_L@PLT
	jmp	.L1
.L104:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	csi_M@PLT
	jmp	.L1
.L103:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	csi_P@PLT
	jmp	.L1
.L98:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L155
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	respond_ID@PLT
	jmp	.L155
.L94:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L124
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	sar	eax, 5
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 31
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	not	eax
	mov	esi, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	sar	eax, 5
	cdqe
	sal	rax, 2
	add	rax, rcx
	and	edx, esi
	mov	DWORD PTR [rax], edx
	jmp	.L156
.L124:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L156
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 28
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	add	rdx, 24
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 20
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	add	rdx, 16
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 12
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	add	rdx, 8
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 4
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	jmp	.L156
.L93:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	csi_m@PLT
	jmp	.L1
.L92:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jg	.L157
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jg	.L127
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	jmp	.L128
.L127:
	mov	eax, 4
.L128:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 128[rdx]
	mov	rdx, QWORD PTR kbd_table[rip]
	add	rdx, rcx
	mov	esi, eax
	mov	rdi, rdx
	call	setledstate@PLT
	jmp	.L157
.L91:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L129
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
.L129:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L130
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 76[rax]
	mov	DWORD PTR [rdx], eax
.L130:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L158
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 76[rax]
	cmp	edx, eax
	jg	.L158
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 124[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 80[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	gotoxay@PLT
	jmp	.L158
.L90:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	save_cur@PLT
	jmp	.L1
.L88:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	restore_cur@PLT
	jmp	.L1
.L102:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	csi_X@PLT
	jmp	.L1
.L112:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	csi_at@PLT
	jmp	.L1
.L101:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	setterm_command@PLT
	jmp	.L1
.L31:
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	cmp	DWORD PTR -36[rbp], 71
	je	.L132
	cmp	DWORD PTR -36[rbp], 71
	jg	.L159
	cmp	DWORD PTR -36[rbp], 56
	je	.L132
	cmp	DWORD PTR -36[rbp], 64
	jne	.L159
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 84[rax], 0
	jmp	.L1
.L132:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 84[rax], 1
	jmp	.L1
.L25:
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L1
.L28:
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	cmp	DWORD PTR -36[rbp], 56
	jne	.L160
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 88[rax]
	and	eax, 65280
	or	eax, 69
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 88[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	csi_J@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 88[rax]
	and	eax, 65280
	or	eax, 32
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 88[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 92[rax]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR 120[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	do_update_region@PLT
	jmp	.L160
.L32:
	cmp	DWORD PTR -36[rbp], 48
	jne	.L135
	mov	rdx, QWORD PTR GRAF_MAP[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 112[rax], rdx
	jmp	.L136
.L135:
	cmp	DWORD PTR -36[rbp], 66
	jne	.L137
	mov	rdx, QWORD PTR LAT1_MAP[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 112[rax], rdx
	jmp	.L136
.L137:
	cmp	DWORD PTR -36[rbp], 85
	jne	.L138
	mov	rdx, QWORD PTR IBMPC_MAP[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 112[rax], rdx
	jmp	.L136
.L138:
	cmp	DWORD PTR -36[rbp], 75
	jne	.L136
	mov	rdx, QWORD PTR USER_MAP[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 112[rax], rdx
.L136:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jne	.L139
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	set_translate@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 104[rdx], rax
.L139:
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L1
.L33:
	cmp	DWORD PTR -36[rbp], 48
	jne	.L140
	mov	rdx, QWORD PTR GRAF_MAP[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 96[rax], rdx
	jmp	.L141
.L140:
	cmp	DWORD PTR -36[rbp], 66
	jne	.L142
	mov	rdx, QWORD PTR LAT1_MAP[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 96[rax], rdx
	jmp	.L141
.L142:
	cmp	DWORD PTR -36[rbp], 85
	jne	.L143
	mov	rdx, QWORD PTR IBMPC_MAP[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 96[rax], rdx
	jmp	.L141
.L143:
	cmp	DWORD PTR -36[rbp], 75
	jne	.L141
	mov	rdx, QWORD PTR USER_MAP[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 96[rax], rdx
.L141:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 1
	jne	.L144
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	set_translate@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 104[rdx], rax
.L144:
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L1
.L22:
	mov	rax, QWORD PTR ESnormal[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L1
.L145:
	nop
	jmp	.L1
.L146:
	nop
	jmp	.L1
.L148:
	nop
	jmp	.L1
.L149:
	nop
	jmp	.L1
.L150:
	nop
	jmp	.L1
.L153:
	nop
	jmp	.L1
.L154:
	nop
	jmp	.L1
.L155:
	nop
	jmp	.L1
.L156:
	nop
	jmp	.L1
.L157:
	nop
	jmp	.L1
.L158:
	nop
	jmp	.L1
.L159:
	nop
	jmp	.L1
.L160:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	do_con_trol, .-do_con_trol
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"382922.c"
	.text
	.comm	CUR_DEFAULT,4,4
	.comm	ESnormal,4,4
	.comm	GRAF_MAP,4,4
	.comm	IBMPC_MAP,4,4
	.comm	LAT1_MAP,4,4
	.comm	NPAR,4,4
	.comm	USER_MAP,4,4
	.comm	kbd_table,4,4
	.comm	kbdapplic,4,4
	.comm	lnm,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_con_trol, %function
do_con_trol:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #155
	beq	.L2
	ldr	r3, [fp, #-24]
	cmp	r3, #155
	bgt	.L3
	ldr	r3, [fp, #-24]
	cmp	r3, #27
	bgt	.L4
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L3
	ldr	r3, [fp, #-24]
	cmp	r3, #27
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L6:
	.word	.L145
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L7
	.word	.L3
	.word	.L7
	.word	.L5
.L4:
	ldr	r3, [fp, #-24]
	cmp	r3, #127
	beq	.L16
	b	.L3
.L14:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #104]
	cmp	r3, #0
	beq	.L146
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #108]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #104]
	mov	r1, r3
	mov	r0, r2
	bl	kd_mksound
	b	.L146
.L13:
	ldr	r0, [fp, #-20]
	bl	bs
	b	.L1
.L12:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #1
	sub	r2, r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	b	.L19
.L21:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	asr	r3, r3, #5
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	and	r3, r3, #31
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L147
.L19:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #100]
	sub	r3, r3, #1
	cmp	r2, r3
	blt	.L21
	b	.L20
.L147:
	nop
.L20:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #1
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	mov	r1, #9
	ldr	r0, [fp, #-20]
	bl	notify_write
	b	.L1
.L11:
	ldr	r0, [fp, #-20]
	bl	lf
	ldr	r3, .L161
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	is_kbd
	mov	r3, r0
	cmp	r3, #0
	beq	.L148
.L10:
	ldr	r0, [fp, #-20]
	bl	cr
	b	.L1
.L9:
	ldr	r3, [fp, #-20]
	mov	r2, #1
	str	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #76]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	set_translate
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3, #80]
	ldr	r3, [fp, #-20]
	mov	r2, #1
	str	r2, [r3, #16]
	b	.L1
.L8:
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #84]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	set_translate
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3, #80]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #16]
	b	.L1
.L7:
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	b	.L1
.L5:
	ldr	r3, [fp, #-20]
	mov	r2, #138
	str	r2, [r3, #20]
	b	.L1
.L16:
	ldr	r0, [fp, #-20]
	bl	del
	b	.L1
.L2:
	ldr	r3, [fp, #-20]
	mov	r2, #128
	str	r2, [r3, #20]
	b	.L1
.L3:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #20]
	sub	r3, r3, #128
	cmp	r3, #10
	ldrls	pc, [pc, r3, asl #2]
	b	.L22
.L24:
	.word	.L34
	.word	.L33
	.word	.L32
	.word	.L31
	.word	.L30
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L26
	.word	.L25
	.word	.L23
.L23:
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #35
	cmp	r3, #64
	ldrls	pc, [pc, r3, asl #2]
	b	.L149
.L37:
	.word	.L52
	.word	.L149
	.word	.L51
	.word	.L149
	.word	.L149
	.word	.L50
	.word	.L49
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L48
	.word	.L47
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L46
	.word	.L45
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L44
	.word	.L43
	.word	.L149
	.word	.L149
	.word	.L42
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L41
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L40
	.word	.L39
	.word	.L149
	.word	.L38
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L149
	.word	.L36
.L39:
	ldr	r3, [fp, #-20]
	mov	r2, #128
	str	r2, [r3, #20]
	b	.L1
.L38:
	ldr	r3, [fp, #-20]
	mov	r2, #133
	str	r2, [r3, #20]
	b	.L1
.L51:
	ldr	r3, [fp, #-20]
	mov	r2, #131
	str	r2, [r3, #20]
	b	.L1
.L43:
	ldr	r0, [fp, #-20]
	bl	cr
	ldr	r0, [fp, #-20]
	bl	lf
	b	.L1
.L41:
	ldr	r0, [fp, #-20]
	bl	ri
	b	.L1
.L44:
	ldr	r0, [fp, #-20]
	bl	lf
	b	.L1
.L42:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	asr	r3, r3, #5
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	and	r3, r3, #31
	mov	r2, #1
	lsl	r2, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	asr	r3, r3, #5
	lsl	r3, r3, #2
	add	r3, r0, r3
	orr	r2, r1, r2
	str	r2, [r3]
	b	.L1
.L40:
	ldr	r0, [fp, #-16]
	bl	respond_ID
	b	.L1
.L48:
	ldr	r0, [fp, #-20]
	bl	save_cur
	b	.L1
.L47:
	ldr	r0, [fp, #-20]
	bl	restore_cur
	b	.L1
.L50:
	ldr	r3, [fp, #-20]
	mov	r2, #130
	str	r2, [r3, #20]
	b	.L1
.L49:
	ldr	r3, [fp, #-20]
	mov	r2, #129
	str	r2, [r3, #20]
	b	.L1
.L52:
	ldr	r3, [fp, #-20]
	mov	r2, #134
	str	r2, [r3, #20]
	b	.L1
.L36:
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	reset_terminal
	b	.L1
.L45:
	ldr	r3, .L161+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	clr_kbd
	b	.L1
.L46:
	ldr	r3, .L161+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	set_kbd
	b	.L1
.L29:
	ldr	r3, [fp, #-24]
	cmp	r3, #80
	bne	.L53
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #24]
	b	.L54
.L55:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3, #24]
.L54:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #24]
	ldr	r3, .L161+8
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L55
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-20]
	mov	r2, #132
	str	r2, [r3, #20]
	b	.L1
.L53:
	ldr	r3, [fp, #-24]
	cmp	r3, #82
	bne	.L56
	ldr	r0, [fp, #-20]
	bl	reset_palette
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	b	.L1
.L56:
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	b	.L1
.L30:
	ldr	r3, [fp, #-24]
	cmp	r3, #47
	ble	.L58
	ldr	r3, [fp, #-24]
	cmp	r3, #57
	ble	.L59
.L58:
	ldr	r3, [fp, #-24]
	cmp	r3, #64
	ble	.L60
	ldr	r3, [fp, #-24]
	cmp	r3, #70
	ble	.L59
.L60:
	ldr	r3, [fp, #-24]
	cmp	r3, #96
	ble	.L61
	ldr	r3, [fp, #-24]
	cmp	r3, #102
	bgt	.L61
.L59:
	ldr	r3, [fp, #-24]
	cmp	r3, #57
	ble	.L62
	ldr	r3, [fp, #-24]
	and	r3, r3, #223
	sub	r3, r3, #55
	b	.L63
.L62:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #48
.L63:
	ldr	r2, [fp, #-20]
	ldr	r1, [r2, #28]
	ldr	r2, [fp, #-20]
	ldr	r2, [r2, #24]
	add	ip, r2, #1
	ldr	r0, [fp, #-20]
	str	ip, [r0, #24]
	lsl	r2, r2, #2
	add	r2, r1, r2
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	cmp	r3, #7
	bne	.L65
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	str	r1, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #32]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r1, r3
	lsl	r2, r2, #4
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	str	r1, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #32]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	lsl	r2, r2, #2
	add	r2, r0, r2
	ldr	r2, [r2]
	ldr	r0, [fp, #-20]
	ldr	r0, [r0, #32]
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	str	r1, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #32]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r1, r3
	lsl	r2, r2, #4
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	str	r1, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #32]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	lsl	r2, r2, #2
	add	r2, r0, r2
	ldr	r2, [r2]
	ldr	r0, [fp, #-20]
	ldr	r0, [r0, #32]
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	str	r1, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #32]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r1, r3
	lsl	r2, r2, #4
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #32]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #32]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r0, [fp, #-20]
	bl	set_palette
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	b	.L65
.L61:
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	b	.L1
.L65:
	b	.L1
.L34:
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #24]
	b	.L66
.L67:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3, #24]
.L66:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #24]
	ldr	r3, .L161+8
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L67
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-20]
	mov	r2, #136
	str	r2, [r3, #20]
	ldr	r3, [fp, #-24]
	cmp	r3, #91
	bne	.L68
	ldr	r3, [fp, #-20]
	mov	r2, #137
	str	r2, [r3, #20]
	b	.L1
.L68:
	ldr	r3, [fp, #-24]
	cmp	r3, #63
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #36]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	bne	.L150
.L26:
	ldr	r3, [fp, #-24]
	cmp	r3, #59
	bne	.L69
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #24]
	ldr	r3, .L161+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r2, r3
	bcs	.L69
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3, #24]
	b	.L1
.L69:
	ldr	r3, [fp, #-24]
	cmp	r3, #47
	ble	.L70
	ldr	r3, [fp, #-24]
	cmp	r3, #57
	bgt	.L70
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #28]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	lsl	r3, r3, #2
	add	r1, r1, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [r1]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	sub	r2, r3, #48
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #28]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	b	.L1
.L70:
	ldr	r3, [fp, #-20]
	mov	r2, #135
	str	r2, [r3, #20]
.L27:
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #99
	cmp	r3, #11
	ldrls	pc, [pc, r3, asl #2]
	b	.L71
.L73:
	.word	.L77
	.word	.L71
	.word	.L71
	.word	.L71
	.word	.L71
	.word	.L76
	.word	.L71
	.word	.L71
	.word	.L71
	.word	.L75
	.word	.L74
	.word	.L72
.L76:
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	set_mode
	b	.L1
.L75:
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	set_mode
	b	.L1
.L77:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	beq	.L151
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L79
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	add	r3, r3, #8
	ldr	r3, [r3]
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #40]
	b	.L1
.L79:
	ldr	r3, .L161+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #40]
	b	.L1
.L74:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	beq	.L152
	bl	clear_selection
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	lsl	r2, r3, #8
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	add	r3, r3, #4
	ldr	r3, [r3]
	orr	r2, r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #44]
	b	.L1
.L82:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #48]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #44]
	b	.L1
.L72:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	bne	.L153
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L85
	ldr	r0, [fp, #-16]
	bl	status_report
	b	.L153
.L85:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #6
	bne	.L153
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	cursor_report
	b	.L153
.L151:
	nop
	b	.L71
.L152:
	nop
.L71:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	beq	.L86
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #36]
	b	.L1
.L86:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #64
	cmp	r3, #53
	ldrls	pc, [pc, r3, asl #2]
	b	.L154
.L89:
	.word	.L112
	.word	.L111
	.word	.L96
	.word	.L99
	.word	.L110
	.word	.L109
	.word	.L108
	.word	.L100
	.word	.L95
	.word	.L154
	.word	.L107
	.word	.L106
	.word	.L105
	.word	.L104
	.word	.L154
	.word	.L154
	.word	.L103
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L102
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L101
	.word	.L154
	.word	.L154
	.word	.L100
	.word	.L99
	.word	.L154
	.word	.L98
	.word	.L97
	.word	.L96
	.word	.L95
	.word	.L94
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L93
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L92
	.word	.L91
	.word	.L90
	.word	.L154
	.word	.L88
.L100:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L113
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	sub	r2, r2, #1
	str	r2, [r3]
.L113:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r0, [fp, #-20]
	bl	gotoxy
	b	.L1
.L111:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L114
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L114:
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #52]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-20]
	bl	gotoxy
	b	.L1
.L96:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L115
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L115:
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #52]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-20]
	bl	gotoxy
	b	.L1
.L99:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L116
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L116:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	add	r1, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r0, [fp, #-20]
	bl	gotoxy
	b	.L1
.L110:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L117
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L117:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	sub	r1, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r0, [fp, #-20]
	bl	gotoxy
	b	.L1
.L109:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L118
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L118:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #52]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	gotoxy
	b	.L1
.L108:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L119
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L119:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #52]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	gotoxy
	b	.L1
.L97:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L120
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	sub	r2, r2, #1
	str	r2, [r3]
.L120:
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-20]
	bl	gotoxay
	b	.L1
.L95:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L121
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	sub	r2, r2, #1
	str	r2, [r3]
.L121:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L122
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r2, r2, #1
	str	r2, [r3]
.L122:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-20]
	bl	gotoxay
	b	.L1
.L107:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	csi_J
	b	.L1
.L106:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	csi_K
	b	.L1
.L105:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	csi_L
	b	.L1
.L104:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	csi_M
	b	.L1
.L103:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	csi_P
	b	.L1
.L98:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L155
	ldr	r0, [fp, #-16]
	bl	respond_ID
	b	.L155
.L94:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L124
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	asr	r3, r3, #5
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	and	r3, r3, #31
	mov	r2, #1
	lsl	r3, r2, r3
	mvn	r2, r3
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	asr	r3, r3, #5
	lsl	r3, r3, #2
	add	r3, r0, r3
	and	r2, r2, r1
	str	r2, [r3]
	b	.L156
.L162:
	.align	2
.L161:
	.word	lnm
	.word	kbdapplic
	.word	NPAR
	.word	CUR_DEFAULT
	.word	kbd_table
	.word	GRAF_MAP
	.word	LAT1_MAP
	.word	IBMPC_MAP
	.word	USER_MAP
	.word	ESnormal
.L124:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L156
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	add	r3, r3, #28
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-20]
	ldr	r2, [r2, #8]
	add	r2, r2, #24
	ldr	r3, [r3]
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	add	r3, r3, #20
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r2, [fp, #-20]
	ldr	r2, [r2, #8]
	add	r2, r2, #16
	ldr	r3, [r3]
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	add	r3, r3, #12
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r2, [fp, #-20]
	ldr	r2, [r2, #8]
	add	r2, r2, #8
	ldr	r3, [r3]
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	add	r3, r3, #4
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r2, [fp, #-20]
	ldr	r2, [r2, #8]
	ldr	r3, [r3]
	str	r3, [r2]
	b	.L156
.L93:
	ldr	r0, [fp, #-20]
	bl	csi_m
	b	.L1
.L92:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #3
	bgt	.L157
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #96]
	ldr	r3, .L161+16
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #2
	bgt	.L127
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	b	.L128
.L127:
	mov	r3, #4
.L128:
	mov	r1, r3
	mov	r0, r2
	bl	setledstate
	b	.L157
.L91:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L129
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L129:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L130
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	add	r3, r3, #4
	ldr	r2, [fp, #-20]
	ldr	r2, [r2, #56]
	str	r2, [r3]
.L130:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L158
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #56]
	cmp	r2, r3
	bgt	.L158
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3, #92]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #60]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	gotoxay
	b	.L158
.L90:
	ldr	r0, [fp, #-20]
	bl	save_cur
	b	.L1
.L88:
	ldr	r0, [fp, #-20]
	bl	restore_cur
	b	.L1
.L102:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	csi_X
	b	.L1
.L112:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	csi_at
	b	.L1
.L101:
	ldr	r0, [fp, #-20]
	bl	setterm_command
	b	.L1
.L31:
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-24]
	cmp	r3, #71
	beq	.L132
	ldr	r3, [fp, #-24]
	cmp	r3, #71
	bgt	.L159
	ldr	r3, [fp, #-24]
	cmp	r3, #56
	beq	.L132
	ldr	r3, [fp, #-24]
	cmp	r3, #64
	bne	.L159
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #64]
	b	.L1
.L132:
	ldr	r3, [fp, #-20]
	mov	r2, #1
	str	r2, [r3, #64]
	b	.L1
.L25:
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	b	.L1
.L28:
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-24]
	cmp	r3, #56
	bne	.L160
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #68]
	and	r3, r3, #65280
	orr	r2, r3, #69
	ldr	r3, [fp, #-20]
	str	r2, [r3, #68]
	mov	r1, #2
	ldr	r0, [fp, #-20]
	bl	csi_J
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #68]
	and	r3, r3, #65280
	orr	r2, r3, #32
	ldr	r3, [fp, #-20]
	str	r2, [r3, #68]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #88]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #72]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-20]
	bl	do_update_region
	b	.L160
.L32:
	ldr	r3, [fp, #-24]
	cmp	r3, #48
	bne	.L135
	ldr	r3, .L161+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #84]
	b	.L136
.L135:
	ldr	r3, [fp, #-24]
	cmp	r3, #66
	bne	.L137
	ldr	r3, .L161+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #84]
	b	.L136
.L137:
	ldr	r3, [fp, #-24]
	cmp	r3, #85
	bne	.L138
	ldr	r3, .L161+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #84]
	b	.L136
.L138:
	ldr	r3, [fp, #-24]
	cmp	r3, #75
	bne	.L136
	ldr	r3, .L161+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #84]
.L136:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L139
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #84]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	set_translate
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3, #80]
.L139:
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	b	.L1
.L33:
	ldr	r3, [fp, #-24]
	cmp	r3, #48
	bne	.L140
	ldr	r3, .L161+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #76]
	b	.L141
.L140:
	ldr	r3, [fp, #-24]
	cmp	r3, #66
	bne	.L142
	ldr	r3, .L161+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #76]
	b	.L141
.L142:
	ldr	r3, [fp, #-24]
	cmp	r3, #85
	bne	.L143
	ldr	r3, .L161+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #76]
	b	.L141
.L143:
	ldr	r3, [fp, #-24]
	cmp	r3, #75
	bne	.L141
	ldr	r3, .L161+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #76]
.L141:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	cmp	r3, #1
	bne	.L144
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #76]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	set_translate
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3, #80]
.L144:
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	b	.L1
.L22:
	ldr	r3, .L161+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	b	.L1
.L145:
	nop
	b	.L1
.L146:
	nop
	b	.L1
.L148:
	nop
	b	.L1
.L149:
	nop
	b	.L1
.L150:
	nop
	b	.L1
.L153:
	nop
	b	.L1
.L154:
	nop
	b	.L1
.L155:
	nop
	b	.L1
.L156:
	nop
	b	.L1
.L157:
	nop
	b	.L1
.L158:
	nop
	b	.L1
.L159:
	nop
	b	.L1
.L160:
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	do_con_trol, .-do_con_trol
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
