	.file	"346546.c"
	.intel_syntax noprefix
	.text
	.globl	progname
	.section	.rodata
.LC0:
	.string	"termlog"
	.section	.data.rel.local,"aw"
	.align 8
	.type	progname, @object
	.size	progname, 8
progname:
	.quad	.LC0
	.globl	version
	.section	.rodata
.LC1:
	.string	"0.2"
	.section	.data.rel.local
	.align 8
	.type	version, @object
	.size	version, 8
version:
	.quad	.LC1
	.globl	kcode
	.bss
	.align 4
	.type	kcode, @object
	.size	kcode, 4
kcode:
	.zero	4
	.globl	kselk
	.align 4
	.type	kselk, @object
	.size	kselk, 4
kselk:
	.zero	4
	.globl	ksela
	.align 4
	.type	ksela, @object
	.size	ksela, 4
ksela:
	.zero	4
	.globl	mode
	.align 4
	.type	mode, @object
	.size	mode, 4
mode:
	.zero	4
	.globl	savemode
	.align 4
	.type	savemode, @object
	.size	savemode, 4
savemode:
	.zero	4
	.globl	screen
	.align 8
	.type	screen, @object
	.size	screen, 8
screen:
	.zero	8
	.globl	lines
	.data
	.align 4
	.type	lines, @object
	.size	lines, 4
lines:
	.long	24
	.globl	cols
	.align 4
	.type	cols, @object
	.size	cols, 4
cols:
	.long	80
	.globl	lin
	.bss
	.align 4
	.type	lin, @object
	.size	lin, 4
lin:
	.zero	4
	.globl	col
	.align 4
	.type	col, @object
	.size	col, 4
col:
	.zero	4
	.globl	attr
	.align 4
	.type	attr, @object
	.size	attr, 4
attr:
	.zero	4
	.globl	savelin
	.align 4
	.type	savelin, @object
	.size	savelin, 4
savelin:
	.zero	4
	.globl	savecol
	.align 4
	.type	savecol, @object
	.size	savecol, 4
savecol:
	.zero	4
	.globl	saveattr
	.align 4
	.type	saveattr, @object
	.size	saveattr, 4
saveattr:
	.zero	4
	.globl	scrtop
	.align 4
	.type	scrtop, @object
	.size	scrtop, 4
scrtop:
	.zero	4
	.globl	scrend
	.align 4
	.type	scrend, @object
	.size	scrend, 4
scrend:
	.zero	4
	.globl	nlmode
	.align 4
	.type	nlmode, @object
	.size	nlmode, 4
nlmode:
	.zero	4
	.globl	verbose
	.align 4
	.type	verbose, @object
	.size	verbose, 4
verbose:
	.zero	4
	.globl	keepgr
	.align 4
	.type	keepgr, @object
	.size	keepgr, 4
keepgr:
	.zero	4
	.section	.rodata
.LC2:
	.string	"rb"
.LC3:
	.string	"%s: can't open %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	lea	rdx, -32[rbp]
	lea	rax, -20[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	scrinit
	test	eax, eax
	jns	.L2
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	mov	eax, 0
	call	termlog
	mov	edi, 0
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR progname[rip]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	termlog
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L6:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	QWORD PTR -32[rbp], rax
.L4:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jg	.L7
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC4:
	.string	"%s: memory short\n"
	.text
	.globl	scrinit
	.type	scrinit, @function
scrinit:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -40[rbp], -1
	sub	DWORD PTR -36[rbp], 1
	add	QWORD PTR -32[rbp], 8
	jmp	.L9
.L28:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 103
	cmp	eax, 15
	ja	.L10
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L12[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L12[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L12:
	.long	.L16-.L12
	.long	.L10-.L12
	.long	.L10-.L12
	.long	.L10-.L12
	.long	.L15-.L12
	.long	.L10-.L12
	.long	.L14-.L12
	.long	.L13-.L12
	.long	.L10-.L12
	.long	.L10-.L12
	.long	.L10-.L12
	.long	.L10-.L12
	.long	.L10-.L12
	.long	.L10-.L12
	.long	.L10-.L12
	.long	.L11-.L12
	.text
.L16:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR cols[rip], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	esi, 120
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR lines[rip], eax
.L17:
	mov	eax, DWORD PTR cols[rip]
	test	eax, eax
	jle	.L18
	mov	eax, DWORD PTR lines[rip]
	test	eax, eax
	jg	.L35
.L18:
	mov	eax, 0
	call	usage
	jmp	.L20
.L15:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 115
	je	.L22
	cmp	eax, 115
	jg	.L23
	cmp	eax, 101
	je	.L24
	cmp	eax, 106
	je	.L25
	jmp	.L23
.L24:
	mov	DWORD PTR kcode[rip], 1
	jmp	.L26
.L25:
	mov	DWORD PTR kcode[rip], 2
	mov	DWORD PTR kselk[rip], 66
	mov	DWORD PTR ksela[rip], 66
	jmp	.L26
.L22:
	mov	DWORD PTR kcode[rip], 3
	jmp	.L26
.L23:
	mov	eax, 0
	call	usage
	jmp	.L20
.L26:
	jmp	.L21
.L14:
	mov	DWORD PTR keepgr[rip], 1
	jmp	.L21
.L13:
	mov	DWORD PTR nlmode[rip], 1
	jmp	.L21
.L11:
	mov	DWORD PTR verbose[rip], 1
	jmp	.L21
.L10:
	mov	eax, 0
	call	usage
	jmp	.L20
.L35:
	nop
.L21:
	sub	DWORD PTR -36[rbp], 1
	add	QWORD PTR -32[rbp], 8
.L9:
	cmp	DWORD PTR -36[rbp], 0
	jle	.L27
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L28
.L27:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L29
	mov	edi, 0
	call	isatty@PLT
	test	eax, eax
	je	.L29
	mov	eax, 0
	call	usage
	jmp	.L20
.L29:
	mov	eax, DWORD PTR lines[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR screen[rip], rax
	mov	rax, QWORD PTR screen[rip]
	test	rax, rax
	jne	.L30
	mov	rax, QWORD PTR progname[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L20
.L30:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L31
.L33:
	mov	eax, DWORD PTR cols[rip]
	cdqe
	sal	rax, 3
	mov	rcx, QWORD PTR screen[rip]
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L32
	mov	rax, QWORD PTR progname[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L20
.L32:
	add	DWORD PTR -44[rbp], 1
.L31:
	mov	eax, DWORD PTR lines[rip]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L33
	mov	DWORD PTR -40[rbp], 0
.L20:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -40[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	scrinit, .-scrinit
	.section	.rodata
	.align 8
.LC5:
	.string	"Usage: %s [-gCOLSxLINES] [-k[ejs]] [-m] [-n] [-v] file ...\n"
.LC6:
	.string	"Options:"
	.align 8
.LC7:
	.string	"    -g: set screen size (default: -g80x24)"
	.align 8
.LC8:
	.string	"    -k: set input code (don't care if no kana exists)"
	.align 8
.LC9:
	.string	"    -m: retain graphic renditions (reverse, underline)"
.LC10:
	.string	"    -n: new-line mode"
.LC11:
	.string	"    -v: verbose output"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR progname[rip]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.globl	termlog
	.type	termlog, @function
termlog:
.LFB9:
	.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 -40[rbp], rdi
	mov	DWORD PTR savelin[rip], 0
	mov	eax, DWORD PTR savelin[rip]
	mov	DWORD PTR lin[rip], eax
	mov	DWORD PTR savecol[rip], 0
	mov	eax, DWORD PTR savecol[rip]
	mov	DWORD PTR col[rip], eax
	mov	DWORD PTR saveattr[rip], 0
	mov	eax, DWORD PTR saveattr[rip]
	mov	DWORD PTR attr[rip], eax
	mov	DWORD PTR scrtop[rip], 0
	mov	eax, DWORD PTR lines[rip]
	mov	DWORD PTR scrend[rip], eax
	mov	DWORD PTR savemode[rip], 0
	mov	eax, DWORD PTR savemode[rip]
	mov	DWORD PTR mode[rip], eax
	mov	DWORD PTR -16[rbp], 1
	mov	eax, 0
	call	sepline
	mov	eax, 0
	call	clearscr
	jmp	.L38
.L121:
	cmp	DWORD PTR -20[rbp], 31
	jle	.L39
	cmp	DWORD PTR -20[rbp], 126
	jle	.L123
.L39:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 128
	test	eax, eax
	je	.L41
.L123:
	nop
.L40:
.L53:
	mov	edx, DWORD PTR col[rip]
	mov	eax, DWORD PTR cols[rip]
	cmp	edx, eax
	jl	.L42
	mov	eax, DWORD PTR lin[rip]
	add	eax, 1
	mov	DWORD PTR lin[rip], eax
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR scrend[rip]
	cmp	edx, eax
	jne	.L43
	mov	edi, 1
	mov	eax, 0
	call	scrollup
	mov	eax, DWORD PTR scrend[rip]
	sub	eax, 1
	mov	DWORD PTR lin[rip], eax
	jmp	.L44
.L43:
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR lines[rip]
	cmp	edx, eax
	jne	.L44
	mov	eax, DWORD PTR lines[rip]
	sub	eax, 1
	mov	DWORD PTR lin[rip], eax
.L44:
	mov	DWORD PTR col[rip], 0
.L42:
	mov	eax, DWORD PTR kcode[rip]
	cmp	eax, 1
	jne	.L45
	cmp	DWORD PTR -20[rbp], 160
	jle	.L45
	cmp	DWORD PTR -20[rbp], 254
	jle	.L46
.L45:
	mov	eax, DWORD PTR kcode[rip]
	cmp	eax, 3
	jne	.L47
	cmp	DWORD PTR -20[rbp], 128
	jle	.L48
	cmp	DWORD PTR -20[rbp], 159
	jle	.L46
.L48:
	cmp	DWORD PTR -20[rbp], 223
	jle	.L47
	cmp	DWORD PTR -20[rbp], 252
	jle	.L46
.L47:
	mov	eax, DWORD PTR kcode[rip]
	test	eax, eax
	jne	.L49
	cmp	DWORD PTR -20[rbp], 128
	jle	.L49
	cmp	DWORD PTR -20[rbp], 254
	jle	.L46
.L49:
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 1
	jne	.L50
.L46:
	mov	eax, DWORD PTR cols[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR col[rip]
	cmp	edx, eax
	jne	.L51
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L52
	cmp	DWORD PTR -16[rbp], 0
	jne	.L52
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, 32
	je	.L52
	mov	eax, 0
	call	flush
	mov	DWORD PTR -16[rbp], 1
.L52:
	mov	eax, DWORD PTR attr[rip]
	or	eax, 32
	mov	ecx, eax
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR col[rip], edx
	cdqe
	sal	rax, 3
	lea	rdx, [rsi+rax]
	movsx	rax, ecx
	mov	QWORD PTR [rdx], rax
	jmp	.L53
.L51:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	je	.L124
	mov	eax, DWORD PTR kcode[rip]
	test	eax, eax
	jne	.L56
	cmp	DWORD PTR -20[rbp], 128
	jle	.L57
	cmp	DWORD PTR -20[rbp], 159
	jg	.L57
	mov	DWORD PTR kcode[rip], 3
	jmp	.L56
.L57:
	cmp	DWORD PTR -20[rbp], 239
	jle	.L56
	mov	DWORD PTR kcode[rip], 1
.L56:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L58
	cmp	DWORD PTR -16[rbp], 0
	jne	.L58
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, 32
	je	.L58
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	cdqe
	add	rax, 1
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, 32
	je	.L58
	mov	eax, 0
	call	flush
	mov	DWORD PTR -16[rbp], 1
.L58:
	mov	eax, DWORD PTR -20[rbp]
	sal	eax, 8
	or	eax, DWORD PTR -12[rbp]
	mov	eax, eax
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR attr[rip]
	or	eax, 1048576
	movsx	rdx, eax
	mov	rcx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	lea	ecx, 1[rax]
	mov	DWORD PTR col[rip], ecx
	cdqe
	sal	rax, 3
	lea	rcx, [rsi+rax]
	mov	rax, rdx
	or	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rcx], rax
	mov	eax, DWORD PTR attr[rip]
	or	eax, 2097152
	movsx	rdx, eax
	mov	rcx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	lea	ecx, 1[rax]
	mov	DWORD PTR col[rip], ecx
	cdqe
	sal	rax, 3
	lea	rcx, [rsi+rax]
	mov	rax, rdx
	or	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rcx], rax
	mov	edx, DWORD PTR col[rip]
	mov	eax, DWORD PTR cols[rip]
	cmp	edx, eax
	jge	.L125
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	and	eax, 2097152
	test	rax, rax
	je	.L125
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	jmp	.L125
.L50:
	mov	eax, DWORD PTR kcode[rip]
	cmp	eax, 1
	jne	.L61
	cmp	DWORD PTR -20[rbp], -114
	jne	.L61
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	je	.L126
	or	DWORD PTR -20[rbp], 128
.L61:
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 2
	jne	.L63
	or	DWORD PTR -20[rbp], 128
.L63:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L64
	cmp	DWORD PTR -16[rbp], 0
	jne	.L64
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, 32
	je	.L64
	mov	eax, 0
	call	flush
	mov	DWORD PTR -16[rbp], 1
.L64:
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 3
	jne	.L65
	mov	eax, DWORD PTR attr[rip]
	or	eax, 262144
	or	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR col[rip], edx
	cdqe
	sal	rax, 3
	lea	rdx, [rsi+rax]
	movsx	rax, ecx
	mov	QWORD PTR [rdx], rax
	jmp	.L66
.L65:
	mov	eax, DWORD PTR attr[rip]
	or	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR col[rip], edx
	cdqe
	sal	rax, 3
	lea	rdx, [rsi+rax]
	movsx	rax, ecx
	mov	QWORD PTR [rdx], rax
.L66:
	mov	edx, DWORD PTR col[rip]
	mov	eax, DWORD PTR cols[rip]
	cmp	edx, eax
	jge	.L38
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	and	eax, 2097152
	test	rax, rax
	je	.L38
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR col[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	jmp	.L38
.L125:
	nop
	jmp	.L38
.L41:
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 8
	cmp	eax, 19
	ja	.L138
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L69[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L69[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L69:
	.long	.L76-.L69
	.long	.L75-.L69
	.long	.L74-.L69
	.long	.L138-.L69
	.long	.L73-.L69
	.long	.L72-.L69
	.long	.L71-.L69
	.long	.L70-.L69
	.long	.L138-.L69
	.long	.L138-.L69
	.long	.L138-.L69
	.long	.L138-.L69
	.long	.L138-.L69
	.long	.L138-.L69
	.long	.L138-.L69
	.long	.L138-.L69
	.long	.L138-.L69
	.long	.L138-.L69
	.long	.L138-.L69
	.long	.L68-.L69
	.text
.L76:
	mov	eax, DWORD PTR col[rip]
	test	eax, eax
	jle	.L38
	mov	eax, DWORD PTR col[rip]
	sub	eax, 1
	mov	DWORD PTR col[rip], eax
	jmp	.L38
.L72:
	mov	DWORD PTR col[rip], 0
	jmp	.L38
.L74:
	mov	eax, DWORD PTR lin[rip]
	add	eax, 1
	mov	DWORD PTR lin[rip], eax
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR scrend[rip]
	cmp	edx, eax
	jne	.L78
	mov	edi, 1
	mov	eax, 0
	call	scrollup
	mov	eax, DWORD PTR scrend[rip]
	sub	eax, 1
	mov	DWORD PTR lin[rip], eax
	jmp	.L79
.L78:
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR lines[rip]
	cmp	edx, eax
	jne	.L79
	mov	eax, DWORD PTR lines[rip]
	sub	eax, 1
	mov	DWORD PTR lin[rip], eax
.L79:
	mov	eax, DWORD PTR nlmode[rip]
	test	eax, eax
	je	.L38
	mov	DWORD PTR col[rip], 0
	jmp	.L38
.L75:
	mov	edx, DWORD PTR col[rip]
	mov	eax, DWORD PTR cols[rip]
	cmp	edx, eax
	jge	.L38
	mov	eax, DWORD PTR col[rip]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	mov	ecx, eax
	mov	eax, 8
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR col[rip]
	add	eax, edx
	mov	DWORD PTR col[rip], eax
	jmp	.L38
.L73:
	mov	eax, 0
	call	flush
	mov	eax, 0
	call	clearscr
	jmp	.L38
.L71:
	mov	eax, DWORD PTR kcode[rip]
	test	eax, eax
	jne	.L82
	mov	DWORD PTR kcode[rip], 2
.L82:
	mov	eax, DWORD PTR mode[rip]
	mov	DWORD PTR savemode[rip], eax
	mov	DWORD PTR mode[rip], 2
	jmp	.L38
.L70:
	mov	eax, DWORD PTR kcode[rip]
	test	eax, eax
	jne	.L83
	mov	DWORD PTR kcode[rip], 2
.L83:
	mov	eax, DWORD PTR savemode[rip]
	mov	DWORD PTR mode[rip], eax
	jmp	.L38
.L68:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	cmp	eax, 94
	ja	.L127
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L86[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L86[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L86:
	.long	.L128-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L96-.L86
	.long	.L95-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L94-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L93-.L86
	.long	.L92-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L90-.L86
	.long	.L89-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L88-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L85-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L127-.L86
	.long	.L87-.L86
	.long	.L127-.L86
	.long	.L85-.L86
	.text
.L95:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 66
	je	.L98
	cmp	DWORD PTR -20[rbp], 66
	jg	.L129
	cmp	DWORD PTR -20[rbp], -1
	je	.L130
	cmp	DWORD PTR -20[rbp], 64
	jne	.L129
.L98:
	mov	eax, DWORD PTR kcode[rip]
	test	eax, eax
	jne	.L101
	mov	DWORD PTR kcode[rip], 2
.L101:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR kselk[rip], eax
	mov	DWORD PTR mode[rip], 1
	jmp	.L102
.L129:
	nop
.L102:
	jmp	.L103
.L94:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	je	.L131
	cmp	DWORD PTR -20[rbp], -1
	jl	.L132
	cmp	DWORD PTR -20[rbp], 74
	jg	.L132
	cmp	DWORD PTR -20[rbp], 48
	jl	.L132
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 48
	cmp	eax, 26
	ja	.L132
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L107[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L107[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L107:
	.long	.L109-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L106-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L132-.L107
	.long	.L106-.L107
	.long	.L108-.L107
	.long	.L106-.L107
	.text
.L106:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR ksela[rip], eax
	mov	DWORD PTR mode[rip], 0
	jmp	.L110
.L108:
	mov	eax, DWORD PTR kcode[rip]
	test	eax, eax
	jne	.L111
	mov	DWORD PTR kcode[rip], 2
.L111:
	mov	DWORD PTR mode[rip], 2
	jmp	.L110
.L109:
	mov	DWORD PTR mode[rip], 3
	jmp	.L110
.L132:
	nop
.L110:
	jmp	.L103
.L93:
	mov	eax, DWORD PTR lin[rip]
	mov	DWORD PTR savelin[rip], eax
	mov	eax, DWORD PTR col[rip]
	mov	DWORD PTR savecol[rip], eax
	mov	eax, DWORD PTR attr[rip]
	mov	DWORD PTR saveattr[rip], eax
	jmp	.L103
.L92:
	mov	eax, DWORD PTR savelin[rip]
	mov	DWORD PTR lin[rip], eax
	mov	eax, DWORD PTR savecol[rip]
	mov	DWORD PTR col[rip], eax
	mov	eax, DWORD PTR saveattr[rip]
	mov	DWORD PTR attr[rip], eax
	jmp	.L103
.L90:
	mov	eax, DWORD PTR lin[rip]
	add	eax, 1
	mov	DWORD PTR lin[rip], eax
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR scrend[rip]
	cmp	edx, eax
	jne	.L112
	mov	edi, 1
	mov	eax, 0
	call	scrollup
	mov	eax, DWORD PTR scrend[rip]
	sub	eax, 1
	mov	DWORD PTR lin[rip], eax
	jmp	.L133
.L112:
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR lines[rip]
	cmp	edx, eax
	jne	.L133
	mov	eax, DWORD PTR lines[rip]
	sub	eax, 1
	mov	DWORD PTR lin[rip], eax
	jmp	.L133
.L89:
	mov	eax, DWORD PTR lin[rip]
	add	eax, 1
	mov	DWORD PTR lin[rip], eax
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR scrend[rip]
	cmp	edx, eax
	jne	.L114
	mov	edi, 1
	mov	eax, 0
	call	scrollup
	mov	eax, DWORD PTR scrend[rip]
	sub	eax, 1
	mov	DWORD PTR lin[rip], eax
	jmp	.L115
.L114:
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR lines[rip]
	cmp	edx, eax
	jne	.L115
	mov	eax, DWORD PTR lines[rip]
	sub	eax, 1
	mov	DWORD PTR lin[rip], eax
.L115:
	mov	DWORD PTR col[rip], 0
	jmp	.L103
.L88:
	mov	eax, DWORD PTR lin[rip]
	sub	eax, 1
	mov	DWORD PTR lin[rip], eax
	mov	eax, DWORD PTR scrtop[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR lin[rip]
	cmp	edx, eax
	jne	.L116
	mov	edi, 1
	mov	eax, 0
	call	scrolldown
	mov	eax, DWORD PTR scrtop[rip]
	mov	DWORD PTR lin[rip], eax
	jmp	.L134
.L116:
	mov	eax, DWORD PTR lin[rip]
	cmp	eax, -1
	jne	.L134
	mov	DWORD PTR lin[rip], 0
	jmp	.L134
.L96:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L135
	jmp	.L55
.L87:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	csi
	cmp	eax, -1
	jne	.L136
	jmp	.L55
.L85:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	cstring
	cmp	eax, -1
	je	.L137
	jmp	.L103
.L127:
	nop
	jmp	.L38
.L133:
	nop
	jmp	.L38
.L134:
	nop
	jmp	.L38
.L135:
	nop
	jmp	.L38
.L136:
	nop
.L103:
	jmp	.L38
.L138:
	nop
.L38:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L121
	jmp	.L55
.L124:
	nop
	jmp	.L55
.L126:
	nop
	jmp	.L55
.L128:
	nop
	jmp	.L55
.L130:
	nop
	jmp	.L55
.L131:
	nop
	jmp	.L55
.L137:
	nop
.L55:
	mov	eax, 0
	call	flush
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	termlog, .-termlog
	.section	.rodata
.LC12:
	.string	"<=>?"
	.text
	.globl	csi
	.type	csi, @function
csi:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L140
	mov	eax, -1
	jmp	.L282
.L140:
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	call	strchr@PLT
	test	rax, rax
	je	.L142
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L142
	mov	eax, -1
	jmp	.L282
.L142:
	mov	DWORD PTR -44[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -48[rbp], eax
	mov	DWORD PTR -68[rbp], 0
.L150:
	mov	DWORD PTR -72[rbp], 0
	jmp	.L143
.L144:
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 48
	add	DWORD PTR -72[rbp], eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L143
	mov	eax, -1
	jmp	.L282
.L143:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L144
	cmp	DWORD PTR -68[rbp], 9
	jg	.L145
	mov	eax, DWORD PTR -68[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -68[rbp], edx
	cdqe
	mov	edx, DWORD PTR -72[rbp]
	mov	DWORD PTR -48[rbp+rax*4], edx
.L145:
	cmp	DWORD PTR -88[rbp], 31
	jle	.L146
	cmp	DWORD PTR -88[rbp], 47
	jg	.L146
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -60[rbp], eax
	jmp	.L147
.L146:
	cmp	DWORD PTR -88[rbp], 59
	jne	.L285
.L147:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L150
	mov	eax, -1
	jmp	.L282
.L285:
	nop
	cmp	DWORD PTR -60[rbp], 0
	je	.L151
	mov	eax, 0
	jmp	.L282
.L151:
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 65
	cmp	eax, 52
	ja	.L286
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L154[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L154[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L154:
	.long	.L169-.L154
	.long	.L168-.L154
	.long	.L167-.L154
	.long	.L166-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L160-.L154
	.long	.L286-.L154
	.long	.L165-.L154
	.long	.L164-.L154
	.long	.L163-.L154
	.long	.L162-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L161-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L160-.L154
	.long	.L286-.L154
	.long	.L159-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L158-.L154
	.long	.L157-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L286-.L154
	.long	.L156-.L154
	.long	.L155-.L154
	.long	.L286-.L154
	.long	.L153-.L154
	.text
.L160:
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	je	.L170
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, 1
	jmp	.L171
.L170:
	mov	eax, 0
.L171:
	mov	DWORD PTR lin[rip], eax
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	je	.L172
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	jmp	.L173
.L172:
	mov	eax, 0
.L173:
	mov	DWORD PTR col[rip], eax
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR lines[rip]
	cmp	edx, eax
	jl	.L174
	mov	eax, DWORD PTR lines[rip]
	sub	eax, 1
	mov	DWORD PTR lin[rip], eax
.L174:
	mov	edx, DWORD PTR col[rip]
	mov	eax, DWORD PTR cols[rip]
	cmp	edx, eax
	jl	.L287
	mov	eax, DWORD PTR cols[rip]
	sub	eax, 1
	mov	DWORD PTR col[rip], eax
	jmp	.L287
.L169:
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	je	.L177
	mov	eax, DWORD PTR -48[rbp]
	jmp	.L178
.L177:
	mov	eax, 1
.L178:
	mov	DWORD PTR -72[rbp], eax
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR scrtop[rip]
	cmp	edx, eax
	jl	.L179
	mov	eax, DWORD PTR lin[rip]
	sub	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR scrtop[rip]
	cmp	edx, eax
	jge	.L179
	mov	eax, DWORD PTR scrtop[rip]
	mov	DWORD PTR lin[rip], eax
	jmp	.L176
.L179:
	mov	eax, DWORD PTR lin[rip]
	sub	eax, DWORD PTR -72[rbp]
	test	eax, eax
	jns	.L181
	mov	DWORD PTR lin[rip], 0
	jmp	.L176
.L181:
	mov	eax, DWORD PTR lin[rip]
	sub	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR lin[rip], eax
	jmp	.L176
.L168:
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	je	.L182
	mov	eax, DWORD PTR -48[rbp]
	jmp	.L183
.L182:
	mov	eax, 1
.L183:
	mov	DWORD PTR -72[rbp], eax
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR scrend[rip]
	cmp	edx, eax
	jge	.L184
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR -72[rbp]
	add	edx, eax
	mov	eax, DWORD PTR scrend[rip]
	cmp	edx, eax
	jl	.L184
	mov	eax, DWORD PTR scrend[rip]
	sub	eax, 1
	mov	DWORD PTR lin[rip], eax
	jmp	.L176
.L184:
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR -72[rbp]
	add	edx, eax
	mov	eax, DWORD PTR lines[rip]
	cmp	edx, eax
	jl	.L186
	mov	eax, DWORD PTR lines[rip]
	sub	eax, 1
	mov	DWORD PTR lin[rip], eax
	jmp	.L176
.L186:
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	mov	DWORD PTR lin[rip], eax
	jmp	.L176
.L167:
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	je	.L187
	mov	eax, DWORD PTR -48[rbp]
	jmp	.L188
.L187:
	mov	eax, 1
.L188:
	mov	DWORD PTR -72[rbp], eax
	mov	edx, DWORD PTR col[rip]
	mov	eax, DWORD PTR -72[rbp]
	add	edx, eax
	mov	eax, DWORD PTR cols[rip]
	cmp	edx, eax
	jl	.L189
	mov	eax, DWORD PTR cols[rip]
	sub	eax, 1
	mov	DWORD PTR col[rip], eax
	jmp	.L176
.L189:
	mov	edx, DWORD PTR col[rip]
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	mov	DWORD PTR col[rip], eax
	jmp	.L176
.L166:
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	je	.L191
	mov	eax, DWORD PTR -48[rbp]
	jmp	.L192
.L191:
	mov	eax, 1
.L192:
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR col[rip]
	sub	eax, DWORD PTR -72[rbp]
	test	eax, eax
	jns	.L193
	mov	DWORD PTR col[rip], 0
	jmp	.L176
.L193:
	mov	eax, DWORD PTR col[rip]
	sub	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR col[rip], eax
	jmp	.L176
.L165:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 1
	je	.L195
	cmp	eax, 2
	je	.L196
	mov	eax, DWORD PTR lin[rip]
	test	eax, eax
	jne	.L197
	mov	eax, DWORD PTR col[rip]
	test	eax, eax
	jne	.L197
	mov	eax, 0
	call	flush
	mov	eax, 0
	call	clearscr
	jmp	.L198
.L197:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L199
	mov	eax, 0
	call	flush
.L199:
	mov	eax, DWORD PTR col[rip]
	mov	DWORD PTR -80[rbp], eax
	jmp	.L200
.L201:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	add	DWORD PTR -80[rbp], 1
.L200:
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L201
	mov	eax, DWORD PTR lin[rip]
	add	eax, 1
	mov	DWORD PTR -84[rbp], eax
	jmp	.L202
.L205:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L203
.L204:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	add	DWORD PTR -80[rbp], 1
.L203:
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L204
	add	DWORD PTR -84[rbp], 1
.L202:
	mov	eax, DWORD PTR lines[rip]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L205
	jmp	.L198
.L195:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L206
	mov	eax, 0
	call	flush
.L206:
	mov	DWORD PTR -84[rbp], 0
	jmp	.L207
.L210:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L208
.L209:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	add	DWORD PTR -80[rbp], 1
.L208:
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L209
	add	DWORD PTR -84[rbp], 1
.L207:
	mov	eax, DWORD PTR lin[rip]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L210
	mov	DWORD PTR -80[rbp], 0
	jmp	.L211
.L212:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	add	DWORD PTR -80[rbp], 1
.L211:
	mov	eax, DWORD PTR col[rip]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L212
	jmp	.L198
.L196:
	mov	eax, 0
	call	flush
	mov	eax, 0
	call	clearscr
	nop
.L198:
	jmp	.L176
.L164:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 1
	je	.L213
	cmp	eax, 2
	je	.L214
	mov	eax, DWORD PTR col[rip]
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR cols[rip]
	mov	DWORD PTR -76[rbp], eax
	jmp	.L215
.L213:
	mov	DWORD PTR -80[rbp], 0
	mov	eax, DWORD PTR col[rip]
	mov	DWORD PTR -76[rbp], eax
	jmp	.L215
.L214:
	mov	DWORD PTR -80[rbp], 0
	mov	eax, DWORD PTR cols[rip]
	mov	DWORD PTR -76[rbp], eax
	nop
.L215:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L216
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -84[rbp], eax
	jmp	.L217
.L219:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, 32
	je	.L218
	mov	eax, 0
	call	flush
	jmp	.L216
.L218:
	add	DWORD PTR -84[rbp], 1
.L217:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L219
.L216:
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -84[rbp], eax
	jmp	.L220
.L221:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	add	DWORD PTR -84[rbp], 1
.L220:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L221
	jmp	.L176
.L163:
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	je	.L222
	mov	eax, DWORD PTR -48[rbp]
	jmp	.L223
.L222:
	mov	eax, 1
.L223:
	mov	DWORD PTR -72[rbp], eax
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR scrtop[rip]
	cmp	edx, eax
	jl	.L288
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR scrend[rip]
	cmp	edx, eax
	jge	.L288
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L224
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR scrend[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L225
.L228:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, 32
	jne	.L289
	add	DWORD PTR -84[rbp], 1
.L225:
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L228
	jmp	.L227
.L289:
	nop
.L227:
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -84[rbp], eax
	jge	.L224
	mov	eax, 0
	call	flush
.L224:
	mov	DWORD PTR -84[rbp], 0
	jmp	.L229
.L234:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR scrend[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR scrend[rip]
	sub	eax, 1
	mov	DWORD PTR -80[rbp], eax
	jmp	.L230
.L231:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rcx, QWORD PTR screen[rip]
	mov	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	sub	DWORD PTR -80[rbp], 1
.L230:
	mov	eax, DWORD PTR lin[rip]
	cmp	DWORD PTR -80[rbp], eax
	jg	.L231
	mov	DWORD PTR -80[rbp], 0
	jmp	.L232
.L233:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	add	DWORD PTR -80[rbp], 1
.L232:
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L233
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -84[rbp], 1
.L229:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L234
	jmp	.L176
.L162:
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	je	.L235
	mov	eax, DWORD PTR -48[rbp]
	jmp	.L236
.L235:
	mov	eax, 1
.L236:
	mov	DWORD PTR -72[rbp], eax
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR scrtop[rip]
	cmp	edx, eax
	jl	.L288
	mov	edx, DWORD PTR lin[rip]
	mov	eax, DWORD PTR scrend[rip]
	cmp	edx, eax
	jge	.L288
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L237
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L238
.L241:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, 32
	jne	.L290
	add	DWORD PTR -84[rbp], 1
.L238:
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L241
	jmp	.L240
.L290:
	nop
.L240:
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -84[rbp], eax
	jge	.L237
	mov	eax, 0
	call	flush
.L237:
	mov	DWORD PTR -84[rbp], 0
	jmp	.L242
.L247:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR lin[rip]
	mov	DWORD PTR -80[rbp], eax
	jmp	.L243
.L244:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	add	rax, 1
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR screen[rip]
	mov	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -80[rbp], 1
.L243:
	mov	eax, DWORD PTR scrend[rip]
	sub	eax, 1
	cmp	DWORD PTR -80[rbp], eax
	jl	.L244
	mov	DWORD PTR -80[rbp], 0
	jmp	.L245
.L246:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	add	DWORD PTR -80[rbp], 1
.L245:
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L246
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR scrend[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -84[rbp], 1
.L242:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L247
	jmp	.L176
.L161:
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	je	.L248
	mov	eax, DWORD PTR -48[rbp]
	jmp	.L249
.L248:
	mov	eax, 1
.L249:
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L250
	mov	edx, DWORD PTR col[rip]
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L251
	mov	eax, DWORD PTR cols[rip]
	mov	DWORD PTR -80[rbp], eax
.L251:
	mov	eax, DWORD PTR col[rip]
	mov	DWORD PTR -84[rbp], eax
	jmp	.L252
.L255:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, 32
	jne	.L291
	add	DWORD PTR -84[rbp], 1
.L252:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jl	.L255
	jmp	.L254
.L291:
	nop
.L254:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jge	.L250
	mov	eax, 0
	call	flush
.L250:
	mov	DWORD PTR -84[rbp], 0
	jmp	.L256
.L259:
	mov	eax, DWORD PTR col[rip]
	mov	DWORD PTR -80[rbp], eax
	jmp	.L257
.L258:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	add	rax, 1
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR screen[rip]
	mov	edx, DWORD PTR lin[rip]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -80[rbp], 1
.L257:
	mov	eax, DWORD PTR cols[rip]
	sub	eax, 1
	cmp	DWORD PTR -80[rbp], eax
	jl	.L258
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR lin[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR cols[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	add	DWORD PTR -84[rbp], 1
.L256:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L259
	jmp	.L176
.L156:
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cmp	edx, eax
	jl	.L292
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	jne	.L261
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	jne	.L261
	mov	DWORD PTR scrtop[rip], 0
	mov	eax, DWORD PTR lines[rip]
	mov	DWORD PTR scrend[rip], eax
	jmp	.L176
.L261:
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	je	.L262
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, 1
	jmp	.L263
.L262:
	mov	eax, 0
.L263:
	mov	DWORD PTR scrtop[rip], eax
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	je	.L264
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	jmp	.L265
.L264:
	mov	eax, 0
.L265:
	mov	DWORD PTR scrend[rip], eax
	jmp	.L176
.L157:
	cmp	DWORD PTR -68[rbp], 0
	jne	.L266
	mov	eax, DWORD PTR -68[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -68[rbp], edx
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], 0
.L266:
	mov	DWORD PTR -84[rbp], 0
	jmp	.L267
.L273:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	cmp	eax, 7
	je	.L268
	cmp	eax, 7
	jg	.L293
	test	eax, eax
	je	.L270
	cmp	eax, 4
	je	.L271
	jmp	.L293
.L270:
	mov	eax, DWORD PTR attr[rip]
	and	eax, -196609
	mov	DWORD PTR attr[rip], eax
	jmp	.L272
.L271:
	mov	eax, DWORD PTR attr[rip]
	or	eax, 131072
	mov	DWORD PTR attr[rip], eax
	jmp	.L272
.L268:
	mov	eax, DWORD PTR attr[rip]
	or	eax, 65536
	mov	DWORD PTR attr[rip], eax
	jmp	.L272
.L293:
	nop
.L272:
	add	DWORD PTR -84[rbp], 1
.L267:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L273
	jmp	.L176
.L155:
	mov	eax, DWORD PTR lin[rip]
	mov	DWORD PTR savelin[rip], eax
	mov	eax, DWORD PTR col[rip]
	mov	DWORD PTR savecol[rip], eax
	mov	eax, DWORD PTR attr[rip]
	mov	DWORD PTR saveattr[rip], eax
	jmp	.L176
.L153:
	mov	eax, DWORD PTR savelin[rip]
	mov	DWORD PTR lin[rip], eax
	mov	eax, DWORD PTR savecol[rip]
	mov	DWORD PTR col[rip], eax
	mov	eax, DWORD PTR saveattr[rip]
	mov	DWORD PTR attr[rip], eax
	jmp	.L176
.L159:
	cmp	DWORD PTR -64[rbp], 0
	jne	.L294
	mov	DWORD PTR -84[rbp], 0
	jmp	.L275
.L277:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	cmp	eax, 20
	jne	.L276
	mov	DWORD PTR nlmode[rip], 1
.L276:
	add	DWORD PTR -84[rbp], 1
.L275:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L277
	jmp	.L294
.L158:
	cmp	DWORD PTR -64[rbp], 0
	jne	.L295
	mov	DWORD PTR -84[rbp], 0
	jmp	.L279
.L281:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	cmp	eax, 20
	jne	.L280
	mov	DWORD PTR nlmode[rip], 0
.L280:
	add	DWORD PTR -84[rbp], 1
.L279:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L281
	jmp	.L295
.L286:
	nop
	jmp	.L176
.L287:
	nop
	jmp	.L176
.L288:
	nop
	jmp	.L176
.L292:
	nop
	jmp	.L176
.L294:
	nop
	jmp	.L176
.L295:
	nop
.L176:
	mov	eax, 0
.L282:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L283
	call	__stack_chk_fail@PLT
.L283:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	csi, .-csi
	.globl	scrollup
	.type	scrollup, @function
scrollup:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L297
	mov	eax, DWORD PTR scrtop[rip]
	test	eax, eax
	jg	.L298
	mov	edx, DWORD PTR scrend[rip]
	mov	eax, DWORD PTR lines[rip]
	cmp	edx, eax
	jge	.L297
.L298:
	mov	eax, 0
	call	flush
.L297:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L299
.L305:
	mov	eax, DWORD PTR scrtop[rip]
	test	eax, eax
	jne	.L300
	mov	edx, DWORD PTR scrend[rip]
	mov	eax, DWORD PTR lines[rip]
	cmp	edx, eax
	jne	.L300
	mov	edi, 0
	mov	eax, 0
	call	flushline
.L300:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR scrtop[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR scrtop[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L301
.L302:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR screen[rip]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -12[rbp], 1
.L301:
	mov	eax, DWORD PTR scrend[rip]
	sub	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jl	.L302
	mov	DWORD PTR -12[rbp], 0
	jmp	.L303
.L304:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	add	DWORD PTR -12[rbp], 1
.L303:
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L304
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR scrend[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -16[rbp], 1
.L299:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L305
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	scrollup, .-scrollup
	.globl	scrolldown
	.type	scrolldown, @function
scrolldown:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L307
	mov	eax, 0
	call	flush
.L307:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L308
.L313:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR scrend[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR scrend[rip]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L309
.L310:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rcx, QWORD PTR screen[rip]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	sub	DWORD PTR -12[rbp], 1
.L309:
	mov	eax, DWORD PTR scrtop[rip]
	cmp	DWORD PTR -12[rbp], eax
	jg	.L310
	mov	DWORD PTR -12[rbp], 0
	jmp	.L311
.L312:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	add	DWORD PTR -12[rbp], 1
.L311:
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L312
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR scrtop[rip]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -16[rbp], 1
.L308:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L313
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	scrolldown, .-scrolldown
	.globl	clearscr
	.type	clearscr, @function
clearscr:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -8[rbp], 0
	jmp	.L315
.L318:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L316
.L317:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 32
	add	DWORD PTR -4[rbp], 1
.L316:
	mov	eax, DWORD PTR cols[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L317
	add	DWORD PTR -8[rbp], 1
.L315:
	mov	eax, DWORD PTR lines[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L318
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	clearscr, .-clearscr
	.globl	sepline
	.type	sepline, @function
sepline:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L320
.L321:
	mov	edi, 45
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L320:
	mov	eax, DWORD PTR cols[rip]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L321
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	sepline, .-sepline
	.globl	flush
	.type	flush, @function
flush:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L323
.L324:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	mov	eax, 0
	call	flushline
	add	DWORD PTR -4[rbp], 1
.L323:
	mov	eax, DWORD PTR lines[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L324
	mov	eax, 0
	call	sepline
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	flush, .-flush
	.section	.rodata
.LC13:
	.string	"\033[m"
.LC14:
	.string	"\033[7m"
.LC15:
	.string	"\033[4m"
.LC16:
	.string	"\033(%c"
.LC17:
	.string	"\033$%c"
.LC18:
	.string	"\033(I"
	.text
	.globl	flushline
	.type	flushline, @function
flushline:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR cols[rip]
	mov	DWORD PTR -32[rbp], eax
	jmp	.L326
.L328:
	sub	DWORD PTR -32[rbp], 1
.L326:
	cmp	DWORD PTR -32[rbp], 0
	jle	.L327
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, 32
	je	.L328
.L327:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L329
.L358:
	mov	rdx, QWORD PTR screen[rip]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 65535
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR keepgr[rip]
	test	eax, eax
	je	.L330
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 65536
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 131072
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	je	.L331
	cmp	DWORD PTR -16[rbp], 0
	je	.L332
.L331:
	cmp	DWORD PTR -20[rbp], 0
	je	.L333
	cmp	DWORD PTR -12[rbp], 0
	jne	.L333
.L332:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L333:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L334
	cmp	DWORD PTR -16[rbp], 0
	je	.L334
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L334:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L335
	cmp	DWORD PTR -12[rbp], 0
	je	.L335
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L335:
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -20[rbp], eax
.L330:
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 262144
	test	rax, rax
	je	.L336
	mov	eax, DWORD PTR kcode[rip]
	cmp	eax, 2
	jne	.L337
	cmp	DWORD PTR -28[rbp], 0
	je	.L337
	mov	eax, DWORD PTR ksela[rip]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 0
.L337:
	cmp	DWORD PTR -40[rbp], 120
	je	.L338
	cmp	DWORD PTR -40[rbp], 120
	jg	.L339
	cmp	DWORD PTR -40[rbp], 119
	jg	.L339
	cmp	DWORD PTR -40[rbp], 116
	jge	.L340
	cmp	DWORD PTR -40[rbp], 113
	je	.L341
	cmp	DWORD PTR -40[rbp], 113
	jg	.L339
	cmp	DWORD PTR -40[rbp], 32
	je	.L342
	cmp	DWORD PTR -40[rbp], 32
	jl	.L339
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 106
	cmp	eax, 4
	ja	.L339
.L340:
	mov	DWORD PTR -40[rbp], 43
	jmp	.L343
.L341:
	mov	DWORD PTR -40[rbp], 45
	jmp	.L343
.L338:
	mov	DWORD PTR -40[rbp], 124
	jmp	.L343
.L342:
	mov	DWORD PTR -40[rbp], 32
	jmp	.L343
.L339:
	mov	DWORD PTR -40[rbp], 63
	nop
.L343:
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	putchar@PLT
	jmp	.L344
.L336:
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 1048576
	test	rax, rax
	je	.L345
	mov	eax, DWORD PTR kcode[rip]
	cmp	eax, 3
	je	.L346
	cmp	eax, 3
	jg	.L344
	cmp	eax, 1
	jg	.L348
	test	eax, eax
	jns	.L349
	jmp	.L344
.L348:
	cmp	eax, 2
	jne	.L344
	cmp	DWORD PTR -28[rbp], 1
	je	.L350
	mov	eax, DWORD PTR kselk[rip]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 1
.L350:
	mov	eax, DWORD PTR -40[rbp]
	sar	eax, 8
	and	eax, 127
	mov	edi, eax
	call	putchar@PLT
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 127
	mov	edi, eax
	call	putchar@PLT
	jmp	.L344
.L349:
	mov	eax, DWORD PTR -40[rbp]
	sar	eax, 8
	movzx	eax, al
	or	al, -128
	mov	edi, eax
	call	putchar@PLT
	mov	eax, DWORD PTR -40[rbp]
	movzx	eax, al
	or	al, -128
	mov	edi, eax
	call	putchar@PLT
	jmp	.L344
.L346:
	mov	eax, DWORD PTR -40[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
	mov	eax, DWORD PTR -40[rbp]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
	jmp	.L344
.L345:
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 2097152
	test	rax, rax
	jne	.L344
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 128
	test	eax, eax
	je	.L351
	mov	eax, DWORD PTR kcode[rip]
	cmp	eax, 3
	je	.L352
	cmp	eax, 3
	jg	.L344
	cmp	eax, 1
	jg	.L354
	test	eax, eax
	jns	.L355
	jmp	.L344
.L354:
	cmp	eax, 2
	jne	.L344
	cmp	DWORD PTR -28[rbp], 2
	je	.L356
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 2
.L356:
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 127
	mov	edi, eax
	call	putchar@PLT
	jmp	.L344
.L355:
	mov	edi, -114
	call	putchar@PLT
	mov	eax, DWORD PTR -40[rbp]
	movzx	eax, al
	or	al, -128
	mov	edi, eax
	call	putchar@PLT
.L352:
	mov	eax, DWORD PTR -40[rbp]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
	jmp	.L344
.L351:
	mov	eax, DWORD PTR kcode[rip]
	cmp	eax, 2
	jne	.L357
	cmp	DWORD PTR -28[rbp], 0
	je	.L357
	mov	eax, DWORD PTR ksela[rip]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 0
.L357:
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 127
	mov	edi, eax
	call	putchar@PLT
.L344:
	add	DWORD PTR -36[rbp], 1
.L329:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L358
	cmp	DWORD PTR -28[rbp], 0
	je	.L359
	mov	eax, DWORD PTR ksela[rip]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L359:
	mov	eax, DWORD PTR keepgr[rip]
	test	eax, eax
	je	.L360
	cmp	DWORD PTR -24[rbp], 0
	jne	.L361
	cmp	DWORD PTR -20[rbp], 0
	je	.L360
.L361:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L360:
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	flushline, .-flushline
	.globl	cstring
	.type	cstring, @function
cstring:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L363
	mov	eax, -1
	jmp	.L364
.L363:
	cmp	DWORD PTR -8[rbp], 27
	jne	.L365
	mov	DWORD PTR -4[rbp], 1
	jmp	.L366
.L365:
	cmp	DWORD PTR -8[rbp], 7
	je	.L371
	cmp	DWORD PTR -4[rbp], 0
	je	.L366
	cmp	DWORD PTR -8[rbp], 92
	je	.L372
	mov	DWORD PTR -4[rbp], 0
.L366:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L363
	mov	eax, -1
	jmp	.L364
.L371:
	nop
	jmp	.L368
.L372:
	nop
.L368:
	mov	eax, 0
.L364:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	cstring, .-cstring
	.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	"346546.c"
	.text
	.global	progname
	.section	.rodata
	.align	2
.LC0:
	.ascii	"termlog\000"
	.data
	.align	2
	.type	progname, %object
	.size	progname, 4
progname:
	.word	.LC0
	.global	version
	.section	.rodata
	.align	2
.LC1:
	.ascii	"0.2\000"
	.data
	.align	2
	.type	version, %object
	.size	version, 4
version:
	.word	.LC1
	.global	kcode
	.bss
	.align	2
	.type	kcode, %object
	.size	kcode, 4
kcode:
	.space	4
	.comm	kselk,4,4
	.comm	ksela,4,4
	.comm	mode,4,4
	.comm	savemode,4,4
	.comm	screen,4,4
	.global	lines
	.data
	.align	2
	.type	lines, %object
	.size	lines, 4
lines:
	.word	24
	.global	cols
	.align	2
	.type	cols, %object
	.size	cols, 4
cols:
	.word	80
	.comm	lin,4,4
	.comm	col,4,4
	.comm	attr,4,4
	.comm	savelin,4,4
	.comm	savecol,4,4
	.comm	saveattr,4,4
	.comm	scrtop,4,4
	.comm	scrend,4,4
	.global	nlmode
	.bss
	.align	2
	.type	nlmode, %object
	.size	nlmode, 4
nlmode:
	.space	4
	.global	verbose
	.align	2
	.type	verbose, %object
	.size	verbose, 4
verbose:
	.space	4
	.global	keepgr
	.align	2
	.type	keepgr, %object
	.size	keepgr, 4
keepgr:
	.space	4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"rb\000"
	.align	2
.LC3:
	.ascii	"%s: can't open %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	sub	r2, fp, #20
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	scrinit
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r0, r3
	bl	termlog
	mov	r0, #0
	bl	exit
.L7:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, .L8+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L8+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L8+12
	bl	printf
	b	.L6
.L5:
	ldr	r0, [fp, #-8]
	bl	termlog
	ldr	r0, [fp, #-8]
	bl	fclose
.L6:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L7
	mov	r0, #0
	bl	exit
.L9:
	.align	2
.L8:
	.word	stdin
	.word	.LC2
	.word	progname
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%s: memory short\012\000"
	.text
	.align	2
	.global	scrinit
	.syntax unified
	.arm
	.fpu softvfp
	.type	scrinit, %function
scrinit:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	mvn	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	b	.L11
.L30:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #103
	cmp	r3, #15
	ldrls	pc, [pc, r3, asl #2]
	b	.L12
.L14:
	.word	.L18
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L17
	.word	.L12
	.word	.L16
	.word	.L15
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L13
.L18:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r3, r3, #2
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L38
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r3, r3, #2
	mov	r1, #120
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L38+4
	str	r3, [r2]
.L19:
	ldr	r3, .L38
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L20
	ldr	r3, .L38+4
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L37
.L20:
	bl	usage
	b	.L22
.L17:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #115
	beq	.L24
	cmp	r3, #115
	bgt	.L25
	cmp	r3, #101
	beq	.L26
	cmp	r3, #106
	beq	.L27
	b	.L25
.L26:
	ldr	r3, .L38+8
	mov	r2, #1
	str	r2, [r3]
	b	.L28
.L27:
	ldr	r3, .L38+8
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, .L38+12
	mov	r2, #66
	str	r2, [r3]
	ldr	r3, .L38+16
	mov	r2, #66
	str	r2, [r3]
	b	.L28
.L24:
	ldr	r3, .L38+8
	mov	r2, #3
	str	r2, [r3]
	b	.L28
.L25:
	bl	usage
	b	.L22
.L28:
	b	.L23
.L16:
	ldr	r3, .L38+20
	mov	r2, #1
	str	r2, [r3]
	b	.L23
.L15:
	ldr	r3, .L38+24
	mov	r2, #1
	str	r2, [r3]
	b	.L23
.L13:
	ldr	r3, .L38+28
	mov	r2, #1
	str	r2, [r3]
	b	.L23
.L12:
	bl	usage
	b	.L22
.L37:
	nop
.L23:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
.L11:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L29
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L30
.L29:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L31
	mov	r0, #0
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	bl	usage
	b	.L22
.L31:
	ldr	r3, .L38+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L38+32
	str	r2, [r3]
	ldr	r3, .L38+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L32
	ldr	r3, .L38+36
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L38+40
	bl	printf
	b	.L22
.L32:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L33
.L35:
	ldr	r3, .L38
	ldr	r3, [r3]
	lsl	r1, r3, #2
	ldr	r3, .L38+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L38+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L34
	ldr	r3, .L38+36
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L38+40
	bl	printf
	b	.L22
.L34:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L33:
	ldr	r3, .L38+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L35
	mov	r3, #0
	str	r3, [fp, #-28]
.L22:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L39:
	.align	2
.L38:
	.word	cols
	.word	lines
	.word	kcode
	.word	kselk
	.word	ksela
	.word	keepgr
	.word	nlmode
	.word	verbose
	.word	screen
	.word	progname
	.word	.LC4
	.size	scrinit, .-scrinit
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Usage: %s [-gCOLSxLINES] [-k[ejs]] [-m] [-n] [-v] f"
	.ascii	"ile ...\012\000"
	.align	2
.LC6:
	.ascii	"Options:\000"
	.align	2
.LC7:
	.ascii	"    -g: set screen size (default: -g80x24)\000"
	.align	2
.LC8:
	.ascii	"    -k: set input code (don't care if no kana exist"
	.ascii	"s)\000"
	.align	2
.LC9:
	.ascii	"    -m: retain graphic renditions (reverse, underli"
	.ascii	"ne)\000"
	.align	2
.LC10:
	.ascii	"    -n: new-line mode\000"
	.align	2
.LC11:
	.ascii	"    -v: verbose output\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L41
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L41+4
	bl	printf
	ldr	r0, .L41+8
	bl	puts
	ldr	r0, .L41+12
	bl	puts
	ldr	r0, .L41+16
	bl	puts
	ldr	r0, .L41+20
	bl	puts
	ldr	r0, .L41+24
	bl	puts
	ldr	r0, .L41+28
	bl	puts
	nop
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	progname
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	usage, .-usage
	.align	2
	.global	termlog
	.syntax unified
	.arm
	.fpu softvfp
	.type	termlog, %function
termlog:
	@ 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, #-24]
	ldr	r3, .L145
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L145
	ldr	r3, [r3]
	ldr	r2, .L145+4
	str	r3, [r2]
	ldr	r3, .L145+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L145+8
	ldr	r3, [r3]
	ldr	r2, .L145+12
	str	r3, [r2]
	ldr	r3, .L145+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L145+16
	ldr	r3, [r3]
	ldr	r2, .L145+20
	str	r3, [r2]
	ldr	r3, .L145+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L145+28
	ldr	r3, [r3]
	ldr	r2, .L145+32
	str	r3, [r2]
	ldr	r3, .L145+36
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L145+36
	ldr	r3, [r3]
	ldr	r2, .L145+40
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-16]
	bl	sepline
	bl	clearscr
	b	.L44
.L127:
	ldr	r3, [fp, #-20]
	cmp	r3, #31
	ble	.L45
	ldr	r3, [fp, #-20]
	cmp	r3, #126
	ble	.L129
.L45:
	ldr	r3, [fp, #-20]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L47
.L129:
	nop
.L46:
.L59:
	ldr	r3, .L145+12
	ldr	r2, [r3]
	ldr	r3, .L145+44
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L48
	ldr	r3, .L145+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
	ldr	r3, .L145+4
	ldr	r2, [r3]
	ldr	r3, .L145+32
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L49
	mov	r0, #1
	bl	scrollup
	ldr	r3, .L145+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
	b	.L50
.L49:
	ldr	r3, .L145+4
	ldr	r2, [r3]
	ldr	r3, .L145+28
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L50
	ldr	r3, .L145+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
.L50:
	ldr	r3, .L145+12
	mov	r2, #0
	str	r2, [r3]
.L48:
	ldr	r3, .L145+48
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L51
	ldr	r3, [fp, #-20]
	cmp	r3, #160
	ble	.L51
	ldr	r3, [fp, #-20]
	cmp	r3, #254
	ble	.L52
.L51:
	ldr	r3, .L145+48
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L53
	ldr	r3, [fp, #-20]
	cmp	r3, #128
	ble	.L54
	ldr	r3, [fp, #-20]
	cmp	r3, #159
	ble	.L52
.L54:
	ldr	r3, [fp, #-20]
	cmp	r3, #223
	ble	.L53
	ldr	r3, [fp, #-20]
	cmp	r3, #252
	ble	.L52
.L53:
	ldr	r3, .L145+48
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L55
	ldr	r3, [fp, #-20]
	cmp	r3, #128
	ble	.L55
	ldr	r3, [fp, #-20]
	cmp	r3, #254
	ble	.L52
.L55:
	ldr	r3, .L145+40
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L56
.L52:
	ldr	r3, .L145+44
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L145+12
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L57
	ldr	r3, .L145+52
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L58
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L58
	ldr	r3, .L145+56
	ldr	r2, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #32
	beq	.L58
	bl	flush
	mov	r3, #1
	str	r3, [fp, #-16]
.L58:
	ldr	r3, .L145+20
	ldr	r3, [r3]
	orr	ip, r3, #32
	ldr	r3, .L145+56
	ldr	r2, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L145+12
	str	r1, [r0]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, ip
	str	r2, [r3]
	b	.L59
.L57:
	ldr	r0, [fp, #-24]
	bl	getc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L130
	ldr	r3, .L145+48
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L62
	ldr	r3, [fp, #-20]
	cmp	r3, #128
	ble	.L63
	ldr	r3, [fp, #-20]
	cmp	r3, #159
	bgt	.L63
	ldr	r3, .L145+48
	mov	r2, #3
	str	r2, [r3]
	b	.L62
.L63:
	ldr	r3, [fp, #-20]
	cmp	r3, #239
	ble	.L62
	ldr	r3, .L145+48
	mov	r2, #1
	str	r2, [r3]
.L62:
	ldr	r3, .L145+52
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L64
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L64
	ldr	r3, .L145+56
	ldr	r2, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #32
	beq	.L64
	ldr	r3, .L145+56
	ldr	r2, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #32
	beq	.L64
	bl	flush
	mov	r3, #1
	str	r3, [fp, #-16]
.L64:
	ldr	r3, [fp, #-20]
	lsl	r2, r3, #8
	ldr	r3, [fp, #-12]
	orr	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L145+20
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	orr	r2, r2, r3
	ldr	r3, .L145+56
	ldr	r1, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	add	r0, r3, #1
	ldr	ip, .L145+12
	str	r0, [ip]
	lsl	r3, r3, #2
	add	r3, r1, r3
	orr	r2, r2, #1048576
	str	r2, [r3]
	ldr	r3, .L145+20
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	orr	r2, r2, r3
	ldr	r3, .L145+56
	ldr	r1, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	add	r0, r3, #1
	ldr	ip, .L145+12
	str	r0, [ip]
	lsl	r3, r3, #2
	add	r3, r1, r3
	orr	r2, r2, #2097152
	str	r2, [r3]
	ldr	r3, .L145+12
	ldr	r2, [r3]
	ldr	r3, .L145+44
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L131
	ldr	r3, .L145+56
	ldr	r2, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #2097152
	cmp	r3, #0
	beq	.L131
	ldr	r3, .L145+56
	ldr	r2, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	b	.L131
.L56:
	ldr	r3, .L145+48
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L67
	ldr	r3, [fp, #-20]
	cmp	r3, #142
	bne	.L67
	ldr	r0, [fp, #-24]
	bl	getc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L132
	ldr	r3, [fp, #-20]
	orr	r3, r3, #128
	str	r3, [fp, #-20]
.L67:
	ldr	r3, .L145+40
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L69
	ldr	r3, [fp, #-20]
	orr	r3, r3, #128
	str	r3, [fp, #-20]
.L69:
	ldr	r3, .L145+52
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L70
	ldr	r3, .L145+56
	ldr	r2, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #32
	beq	.L70
	bl	flush
	mov	r3, #1
	str	r3, [fp, #-16]
.L70:
	ldr	r3, .L145+40
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L71
	ldr	r3, .L145+20
	ldr	r3, [r3]
	orr	r2, r3, #262144
	ldr	r3, [fp, #-20]
	orr	ip, r2, r3
	ldr	r3, .L145+56
	ldr	r2, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L145+12
	str	r1, [r0]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, ip
	str	r2, [r3]
	b	.L72
.L71:
	ldr	r3, .L145+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	orr	ip, r2, r3
	ldr	r3, .L145+56
	ldr	r2, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L145+12
	str	r1, [r0]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, ip
	str	r2, [r3]
.L72:
	ldr	r3, .L145+12
	ldr	r2, [r3]
	ldr	r3, .L145+44
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L44
	ldr	r3, .L145+56
	ldr	r2, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #2097152
	cmp	r3, #0
	beq	.L44
	ldr	r3, .L145+56
	ldr	r2, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	b	.L44
.L131:
	nop
	b	.L44
.L47:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #8
	cmp	r3, #19
	ldrls	pc, [pc, r3, asl #2]
	b	.L144
.L75:
	.word	.L82
	.word	.L81
	.word	.L80
	.word	.L144
	.word	.L79
	.word	.L78
	.word	.L77
	.word	.L76
	.word	.L144
	.word	.L144
	.word	.L144
	.word	.L144
	.word	.L144
	.word	.L144
	.word	.L144
	.word	.L144
	.word	.L144
	.word	.L144
	.word	.L144
	.word	.L74
.L82:
	ldr	r3, .L145+12
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L44
	ldr	r3, .L145+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L145+12
	str	r3, [r2]
	b	.L44
.L78:
	ldr	r3, .L145+12
	mov	r2, #0
	str	r2, [r3]
	b	.L44
.L80:
	ldr	r3, .L145+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
	ldr	r3, .L145+4
	ldr	r2, [r3]
	ldr	r3, .L145+32
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L84
	mov	r0, #1
	bl	scrollup
	ldr	r3, .L145+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
	b	.L85
.L84:
	ldr	r3, .L145+4
	ldr	r2, [r3]
	ldr	r3, .L145+28
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L85
	ldr	r3, .L145+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
.L85:
	ldr	r3, .L145+60
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L44
	ldr	r3, .L145+12
	mov	r2, #0
	str	r2, [r3]
	b	.L44
.L81:
	ldr	r3, .L145+12
	ldr	r2, [r3]
	ldr	r3, .L145+44
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L44
	ldr	r3, .L145+12
	ldr	r3, [r3]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	rsb	r2, r3, #8
	ldr	r3, .L145+12
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L145+12
	str	r3, [r2]
	b	.L44
.L79:
	bl	flush
	bl	clearscr
	b	.L44
.L77:
	ldr	r3, .L145+48
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L88
	ldr	r3, .L145+48
	mov	r2, #2
	str	r2, [r3]
.L88:
	ldr	r3, .L145+40
	ldr	r3, [r3]
	ldr	r2, .L145+36
	str	r3, [r2]
	ldr	r3, .L145+40
	mov	r2, #2
	str	r2, [r3]
	b	.L44
.L76:
	ldr	r3, .L145+48
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L89
	ldr	r3, .L145+48
	mov	r2, #2
	str	r2, [r3]
.L89:
	ldr	r3, .L145+36
	ldr	r3, [r3]
	ldr	r2, .L145+40
	str	r3, [r2]
	b	.L44
.L74:
	ldr	r0, [fp, #-24]
	bl	getc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	cmp	r3, #94
	ldrls	pc, [pc, r3, asl #2]
	b	.L133
.L92:
	.word	.L134
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L102
	.word	.L101
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L100
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L99
	.word	.L98
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L96
	.word	.L95
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L94
	.word	.L133
	.word	.L133
	.word	.L91
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L133
	.word	.L93
	.word	.L133
	.word	.L91
.L101:
	ldr	r0, [fp, #-24]
	bl	getc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #66
	beq	.L104
	ldr	r3, [fp, #-20]
	cmp	r3, #66
	bgt	.L135
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L136
	ldr	r3, [fp, #-20]
	cmp	r3, #64
	bne	.L135
.L104:
	ldr	r3, .L145+48
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L107
	ldr	r3, .L145+48
	mov	r2, #2
	str	r2, [r3]
.L107:
	ldr	r2, .L145+64
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	ldr	r3, .L145+40
	mov	r2, #1
	str	r2, [r3]
	b	.L108
.L135:
	nop
.L108:
	b	.L109
.L100:
	ldr	r0, [fp, #-24]
	bl	getc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L137
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	blt	.L138
	ldr	r3, [fp, #-20]
	cmp	r3, #74
	bgt	.L138
	ldr	r3, [fp, #-20]
	cmp	r3, #48
	blt	.L138
	ldr	r3, [fp, #-20]
	sub	r3, r3, #48
	cmp	r3, #26
	ldrls	pc, [pc, r3, asl #2]
	b	.L138
.L113:
	.word	.L115
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L112
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L138
	.word	.L112
	.word	.L114
	.word	.L112
.L112:
	ldr	r2, .L145+68
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	ldr	r3, .L145+40
	mov	r2, #0
	str	r2, [r3]
	b	.L116
.L114:
	ldr	r3, .L145+48
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L117
	ldr	r3, .L145+48
	mov	r2, #2
	str	r2, [r3]
.L117:
	ldr	r3, .L145+40
	mov	r2, #2
	str	r2, [r3]
	b	.L116
.L115:
	ldr	r3, .L145+40
	mov	r2, #3
	str	r2, [r3]
	b	.L116
.L138:
	nop
.L116:
	b	.L109
.L99:
	ldr	r3, .L145+4
	ldr	r3, [r3]
	ldr	r2, .L145
	str	r3, [r2]
	ldr	r3, .L145+12
	ldr	r3, [r3]
	ldr	r2, .L145+8
	str	r3, [r2]
	ldr	r3, .L145+20
	ldr	r3, [r3]
	ldr	r2, .L145+16
	str	r3, [r2]
	b	.L109
.L98:
	ldr	r3, .L145
	ldr	r3, [r3]
	ldr	r2, .L145+4
	str	r3, [r2]
	ldr	r3, .L145+8
	ldr	r3, [r3]
	ldr	r2, .L145+12
	str	r3, [r2]
	ldr	r3, .L145+16
	ldr	r3, [r3]
	ldr	r2, .L145+20
	str	r3, [r2]
	b	.L109
.L96:
	ldr	r3, .L145+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
	ldr	r3, .L145+4
	ldr	r2, [r3]
	ldr	r3, .L145+32
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L118
	mov	r0, #1
	bl	scrollup
	ldr	r3, .L145+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
	b	.L139
.L118:
	ldr	r3, .L145+4
	ldr	r2, [r3]
	ldr	r3, .L145+28
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L139
	ldr	r3, .L145+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
	b	.L139
.L95:
	ldr	r3, .L145+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
	ldr	r3, .L145+4
	ldr	r2, [r3]
	ldr	r3, .L145+32
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L120
	mov	r0, #1
	bl	scrollup
	ldr	r3, .L145+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
	b	.L121
.L120:
	ldr	r3, .L145+4
	ldr	r2, [r3]
	ldr	r3, .L145+28
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L121
	ldr	r3, .L145+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
.L121:
	ldr	r3, .L145+12
	mov	r2, #0
	str	r2, [r3]
	b	.L109
.L94:
	ldr	r3, .L145+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L145+4
	str	r3, [r2]
	ldr	r3, .L145+24
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L145+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L122
	mov	r0, #1
	bl	scrolldown
	ldr	r3, .L145+24
	ldr	r3, [r3]
	ldr	r2, .L145+4
	str	r3, [r2]
	b	.L140
.L122:
	ldr	r3, .L145+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L140
	ldr	r3, .L145+4
	mov	r2, #0
	str	r2, [r3]
	b	.L140
.L102:
	ldr	r0, [fp, #-24]
	bl	getc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L141
	b	.L61
.L93:
	ldr	r0, [fp, #-24]
	bl	csi
	mov	r3, r0
	cmn	r3, #1
	bne	.L142
	b	.L61
.L91:
	ldr	r0, [fp, #-24]
	bl	cstring
	mov	r3, r0
	cmn	r3, #1
	beq	.L143
	b	.L109
.L133:
	nop
	b	.L44
.L139:
	nop
	b	.L44
.L140:
	nop
	b	.L44
.L141:
	nop
	b	.L44
.L142:
	nop
.L109:
	b	.L44
.L144:
	nop
.L44:
	ldr	r0, [fp, #-24]
	bl	getc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L127
	b	.L61
.L130:
	nop
	b	.L61
.L132:
	nop
	b	.L61
.L134:
	nop
	b	.L61
.L136:
	nop
	b	.L61
.L137:
	nop
	b	.L61
.L143:
	nop
.L61:
	bl	flush
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L146:
	.align	2
.L145:
	.word	savelin
	.word	lin
	.word	savecol
	.word	col
	.word	saveattr
	.word	attr
	.word	scrtop
	.word	lines
	.word	scrend
	.word	savemode
	.word	mode
	.word	cols
	.word	kcode
	.word	verbose
	.word	screen
	.word	nlmode
	.word	kselk
	.word	ksela
	.size	termlog, .-termlog
	.section	.rodata
	.align	2
.LC12:
	.ascii	"<=>?\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	csi
	.syntax unified
	.arm
	.fpu softvfp
	.type	csi, %function
csi:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	ldr	r3, .L304
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r0, [fp, #-88]
	bl	getc
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmn	r3, #1
	bne	.L148
	mvn	r3, #0
	b	.L290
.L148:
	ldr	r1, [fp, #-84]
	ldr	r0, .L304+4
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L150
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-60]
	ldr	r0, [fp, #-88]
	bl	getc
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmn	r3, #1
	bne	.L150
	mvn	r3, #0
	b	.L290
.L150:
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-64]
.L158:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L151
.L152:
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-84]
	sub	r3, r3, #48
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	str	r3, [fp, #-68]
	ldr	r0, [fp, #-88]
	bl	getc
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmn	r3, #1
	bne	.L151
	mvn	r3, #0
	b	.L290
.L151:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L152
	ldr	r3, [fp, #-64]
	cmp	r3, #9
	bgt	.L153
	ldr	r3, [fp, #-64]
	add	r2, r3, #1
	str	r2, [fp, #-64]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-68]
	str	r2, [r3, #-44]
.L153:
	ldr	r3, [fp, #-84]
	cmp	r3, #31
	ble	.L154
	ldr	r3, [fp, #-84]
	cmp	r3, #47
	bgt	.L154
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-56]
	b	.L155
.L154:
	ldr	r3, [fp, #-84]
	cmp	r3, #59
	bne	.L293
.L155:
	ldr	r0, [fp, #-88]
	bl	getc
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmn	r3, #1
	bne	.L158
	mvn	r3, #0
	b	.L290
.L293:
	nop
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L159
	mov	r3, #0
	b	.L290
.L159:
	ldr	r3, [fp, #-84]
	sub	r3, r3, #65
	cmp	r3, #52
	ldrls	pc, [pc, r3, asl #2]
	b	.L294
.L162:
	.word	.L177
	.word	.L176
	.word	.L175
	.word	.L174
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L168
	.word	.L294
	.word	.L173
	.word	.L172
	.word	.L171
	.word	.L170
	.word	.L294
	.word	.L294
	.word	.L169
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L168
	.word	.L294
	.word	.L167
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L166
	.word	.L165
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L294
	.word	.L164
	.word	.L163
	.word	.L294
	.word	.L161
.L168:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L178
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	b	.L179
.L178:
	mov	r3, #0
.L179:
	ldr	r2, .L304+36
	str	r3, [r2]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L180
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	b	.L181
.L180:
	mov	r3, #0
.L181:
	ldr	r2, .L304+44
	str	r3, [r2]
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, .L304+8
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L182
	ldr	r3, .L304+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L304+36
	str	r3, [r2]
.L182:
	ldr	r3, .L304+44
	ldr	r2, [r3]
	ldr	r3, .L304+12
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L295
	ldr	r3, .L304+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L304+44
	str	r3, [r2]
	b	.L295
.L177:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L185
	ldr	r3, [fp, #-48]
	b	.L186
.L185:
	mov	r3, #1
.L186:
	str	r3, [fp, #-68]
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, .L304+16
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L187
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	sub	r2, r2, r3
	ldr	r3, .L304+16
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L187
	ldr	r3, .L304+16
	ldr	r3, [r3]
	ldr	r2, .L304+36
	str	r3, [r2]
	b	.L184
.L187:
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	sub	r3, r2, r3
	cmp	r3, #0
	bge	.L189
	ldr	r3, .L304+36
	mov	r2, #0
	str	r2, [r3]
	b	.L184
.L189:
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	sub	r3, r2, r3
	ldr	r2, .L304+36
	str	r3, [r2]
	b	.L184
.L176:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L190
	ldr	r3, [fp, #-48]
	b	.L191
.L190:
	mov	r3, #1
.L191:
	str	r3, [fp, #-68]
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, .L304+20
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L192
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r2, r2, r3
	ldr	r3, .L304+20
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L192
	ldr	r3, .L304+20
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L304+36
	str	r3, [r2]
	b	.L184
.L192:
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r2, r2, r3
	ldr	r3, .L304+8
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L194
	ldr	r3, .L304+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L304+36
	str	r3, [r2]
	b	.L184
.L194:
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	ldr	r2, .L304+36
	str	r3, [r2]
	b	.L184
.L175:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L195
	ldr	r3, [fp, #-48]
	b	.L196
.L195:
	mov	r3, #1
.L196:
	str	r3, [fp, #-68]
	ldr	r3, .L304+44
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r2, r2, r3
	ldr	r3, .L304+12
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L197
	ldr	r3, .L304+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L304+44
	str	r3, [r2]
	b	.L184
.L197:
	ldr	r3, .L304+44
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	ldr	r2, .L304+44
	str	r3, [r2]
	b	.L184
.L174:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L199
	ldr	r3, [fp, #-48]
	b	.L200
.L199:
	mov	r3, #1
.L200:
	str	r3, [fp, #-68]
	ldr	r3, .L304+44
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	sub	r3, r2, r3
	cmp	r3, #0
	bge	.L201
	ldr	r3, .L304+44
	mov	r2, #0
	str	r2, [r3]
	b	.L184
.L201:
	ldr	r3, .L304+44
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	sub	r3, r2, r3
	ldr	r2, .L304+44
	str	r3, [r2]
	b	.L184
.L173:
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	beq	.L203
	cmp	r3, #2
	beq	.L204
	ldr	r3, .L304+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L205
	ldr	r3, .L304+44
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L205
	bl	flush
	bl	clearscr
	b	.L206
.L205:
	ldr	r3, .L304+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L207
	bl	flush
.L207:
	ldr	r3, .L304+44
	ldr	r3, [r3]
	str	r3, [fp, #-76]
	b	.L208
.L209:
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+36
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L208:
	ldr	r3, .L304+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L209
	ldr	r3, .L304+36
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	b	.L210
.L213:
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L211
.L212:
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L211:
	ldr	r3, .L304+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L212
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L210:
	ldr	r3, .L304+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	blt	.L213
	b	.L206
.L203:
	ldr	r3, .L304+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L214
	bl	flush
.L214:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L215
.L218:
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L216
.L217:
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L216:
	ldr	r3, .L304+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L217
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L215:
	ldr	r3, .L304+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	blt	.L218
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L219
.L220:
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+36
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L219:
	ldr	r3, .L304+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L220
	b	.L206
.L204:
	bl	flush
	bl	clearscr
	nop
.L206:
	b	.L184
.L172:
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	beq	.L221
	cmp	r3, #2
	beq	.L222
	ldr	r3, .L304+44
	ldr	r3, [r3]
	str	r3, [fp, #-76]
	ldr	r3, .L304+12
	ldr	r3, [r3]
	str	r3, [fp, #-72]
	b	.L223
.L221:
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, .L304+44
	ldr	r3, [r3]
	str	r3, [fp, #-72]
	b	.L223
.L222:
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, .L304+12
	ldr	r3, [r3]
	str	r3, [fp, #-72]
	nop
.L223:
	ldr	r3, .L304+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L224
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-80]
	b	.L225
.L227:
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+36
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #32
	beq	.L226
	bl	flush
	b	.L224
.L226:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L225:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L227
.L224:
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-80]
	b	.L228
.L229:
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+36
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L228:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L229
	b	.L184
.L171:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L230
	ldr	r3, [fp, #-48]
	b	.L231
.L230:
	mov	r3, #1
.L231:
	str	r3, [fp, #-68]
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, .L304+16
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L296
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, .L304+20
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L296
	ldr	r3, .L304+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L232
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+20
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L233
.L236:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #32
	bne	.L297
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L233:
	ldr	r3, .L304+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	blt	.L236
	b	.L235
.L297:
	nop
.L235:
	ldr	r3, .L304+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bge	.L232
	bl	flush
.L232:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L237
.L242:
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+20
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	ldr	r3, .L304+20
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-76]
	b	.L238
.L239:
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L304+28
	ldr	r1, [r3]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	str	r3, [fp, #-76]
.L238:
	ldr	r3, .L304+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	bgt	.L239
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L240
.L241:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L240:
	ldr	r3, .L304+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L241
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+36
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	str	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L237:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	blt	.L242
	b	.L184
.L170:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L243
	ldr	r3, [fp, #-48]
	b	.L244
.L243:
	mov	r3, #1
.L244:
	str	r3, [fp, #-68]
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, .L304+16
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L296
	ldr	r3, .L304+36
	ldr	r2, [r3]
	ldr	r3, .L304+20
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L296
	ldr	r3, .L304+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L245
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+36
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L246
.L249:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #32
	bne	.L298
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L246:
	ldr	r3, .L304+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	blt	.L249
	b	.L248
.L298:
	nop
.L248:
	ldr	r3, .L304+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bge	.L245
	bl	flush
.L245:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L250
.L255:
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+36
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	ldr	r3, .L304+36
	ldr	r3, [r3]
	str	r3, [fp, #-76]
	b	.L251
.L252:
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L304+28
	ldr	r1, [r3]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L251:
	ldr	r3, .L304+20
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L252
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L253
.L254:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L253:
	ldr	r3, .L304+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L254
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+20
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	str	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L250:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	blt	.L255
	b	.L184
.L169:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L256
	ldr	r3, [fp, #-48]
	b	.L257
.L256:
	mov	r3, #1
.L257:
	str	r3, [fp, #-68]
	ldr	r3, .L304+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L258
	ldr	r3, .L304+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r3, .L304+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L259
	ldr	r3, .L304+12
	ldr	r3, [r3]
	str	r3, [fp, #-76]
.L259:
	ldr	r3, .L304+44
	ldr	r3, [r3]
	str	r3, [fp, #-80]
	b	.L260
.L263:
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+36
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #32
	bne	.L299
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L260:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L263
	b	.L262
.L299:
	nop
.L262:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	bge	.L258
	bl	flush
.L258:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L264
.L267:
	ldr	r3, .L304+44
	ldr	r3, [r3]
	str	r3, [fp, #-76]
	b	.L265
.L266:
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+36
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L304+28
	ldr	r1, [r3]
	ldr	r3, .L304+36
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L265:
	ldr	r3, .L304+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L266
	ldr	r3, .L304+28
	ldr	r2, [r3]
	ldr	r3, .L304+36
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L304+12
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L264:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	blt	.L267
	b	.L184
.L164:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L300
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L269
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L269
	ldr	r3, .L304+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L304+8
	ldr	r3, [r3]
	ldr	r2, .L304+20
	str	r3, [r2]
	b	.L184
.L269:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L270
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	b	.L271
.L270:
	mov	r3, #0
.L271:
	ldr	r2, .L304+16
	str	r3, [r2]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L272
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	b	.L273
.L272:
	mov	r3, #0
.L273:
	ldr	r2, .L304+20
	str	r3, [r2]
	b	.L184
.L165:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L274
	ldr	r3, [fp, #-64]
	add	r2, r3, #1
	str	r2, [fp, #-64]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-44]
.L274:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L275
.L281:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #7
	beq	.L276
	cmp	r3, #7
	bgt	.L301
	cmp	r3, #0
	beq	.L278
	cmp	r3, #4
	beq	.L279
	b	.L301
.L278:
	ldr	r3, .L304+52
	ldr	r3, [r3]
	bic	r3, r3, #196608
	ldr	r2, .L304+52
	str	r3, [r2]
	b	.L280
.L279:
	ldr	r3, .L304+52
	ldr	r3, [r3]
	orr	r3, r3, #131072
	ldr	r2, .L304+52
	str	r3, [r2]
	b	.L280
.L305:
	.align	2
.L304:
	.word	.LC13
	.word	.LC12
	.word	lines
	.word	cols
	.word	scrtop
	.word	scrend
	.word	verbose
	.word	screen
	.word	savelin
	.word	lin
	.word	savecol
	.word	col
	.word	saveattr
	.word	attr
	.word	nlmode
	.word	.LC13
.L276:
	ldr	r3, .L304+52
	ldr	r3, [r3]
	orr	r3, r3, #65536
	ldr	r2, .L304+52
	str	r3, [r2]
	b	.L280
.L301:
	nop
.L280:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L275:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L281
	b	.L184
.L163:
	ldr	r3, .L304+36
	ldr	r3, [r3]
	ldr	r2, .L304+32
	str	r3, [r2]
	ldr	r3, .L304+44
	ldr	r3, [r3]
	ldr	r2, .L304+40
	str	r3, [r2]
	ldr	r3, .L304+52
	ldr	r3, [r3]
	ldr	r2, .L304+48
	str	r3, [r2]
	b	.L184
.L161:
	ldr	r3, .L304+32
	ldr	r3, [r3]
	ldr	r2, .L304+36
	str	r3, [r2]
	ldr	r3, .L304+40
	ldr	r3, [r3]
	ldr	r2, .L304+44
	str	r3, [r2]
	ldr	r3, .L304+48
	ldr	r3, [r3]
	ldr	r2, .L304+52
	str	r3, [r2]
	b	.L184
.L167:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L302
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L283
.L285:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #20
	bne	.L284
	ldr	r3, .L304+56
	mov	r2, #1
	str	r2, [r3]
.L284:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L283:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L285
	b	.L302
.L166:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L303
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L287
.L289:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #20
	bne	.L288
	ldr	r3, .L304+56
	mov	r2, #0
	str	r2, [r3]
.L288:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L287:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L289
	b	.L303
.L294:
	nop
	b	.L184
.L295:
	nop
	b	.L184
.L296:
	nop
	b	.L184
.L300:
	nop
	b	.L184
.L302:
	nop
	b	.L184
.L303:
	nop
.L184:
	mov	r3, #0
.L290:
	ldr	r2, .L304+60
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L291
	bl	__stack_chk_fail
.L291:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	csi, .-csi
	.align	2
	.global	scrollup
	.syntax unified
	.arm
	.fpu softvfp
	.type	scrollup, %function
scrollup:
	@ 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, #-24]
	ldr	r3, .L316
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L307
	ldr	r3, .L316+4
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L308
	ldr	r3, .L316+8
	ldr	r2, [r3]
	ldr	r3, .L316+12
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L307
.L308:
	bl	flush
.L307:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L309
.L315:
	ldr	r3, .L316+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L310
	ldr	r3, .L316+8
	ldr	r2, [r3]
	ldr	r3, .L316+12
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L310
	mov	r0, #0
	bl	flushline
.L310:
	ldr	r3, .L316+16
	ldr	r2, [r3]
	ldr	r3, .L316+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L316+4
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L311
.L312:
	ldr	r3, .L316+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L316+16
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L311:
	ldr	r3, .L316+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L312
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L313
.L314:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L313:
	ldr	r3, .L316+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L314
	ldr	r3, .L316+16
	ldr	r2, [r3]
	ldr	r3, .L316+8
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L309:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L315
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L317:
	.align	2
.L316:
	.word	verbose
	.word	scrtop
	.word	scrend
	.word	lines
	.word	screen
	.word	cols
	.size	scrollup, .-scrollup
	.align	2
	.global	scrolldown
	.syntax unified
	.arm
	.fpu softvfp
	.type	scrolldown, %function
scrolldown:
	@ 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, #-24]
	ldr	r3, .L326
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L319
	bl	flush
.L319:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L320
.L325:
	ldr	r3, .L326+4
	ldr	r2, [r3]
	ldr	r3, .L326+8
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L326+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L321
.L322:
	ldr	r3, .L326+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L326+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L321:
	ldr	r3, .L326+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bgt	.L322
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L323
.L324:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L323:
	ldr	r3, .L326+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L324
	ldr	r3, .L326+4
	ldr	r2, [r3]
	ldr	r3, .L326+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L320:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L325
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L327:
	.align	2
.L326:
	.word	verbose
	.word	screen
	.word	scrend
	.word	scrtop
	.word	cols
	.size	scrolldown, .-scrolldown
	.align	2
	.global	clearscr
	.syntax unified
	.arm
	.fpu softvfp
	.type	clearscr, %function
clearscr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L329
.L332:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L330
.L331:
	ldr	r3, .L333
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #32
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L330:
	ldr	r3, .L333+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L331
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L329:
	ldr	r3, .L333+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L332
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L334:
	.align	2
.L333:
	.word	screen
	.word	cols
	.word	lines
	.size	clearscr, .-clearscr
	.align	2
	.global	sepline
	.syntax unified
	.arm
	.fpu softvfp
	.type	sepline, %function
sepline:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L336
.L337:
	mov	r0, #45
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L336:
	ldr	r3, .L338
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L337
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L339:
	.align	2
.L338:
	.word	cols
	.size	sepline, .-sepline
	.align	2
	.global	flush
	.syntax unified
	.arm
	.fpu softvfp
	.type	flush, %function
flush:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L341
.L342:
	ldr	r0, [fp, #-8]
	bl	flushline
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L341:
	ldr	r3, .L343
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L342
	bl	sepline
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L344:
	.align	2
.L343:
	.word	lines
	.size	flush, .-flush
	.section	.rodata
	.align	2
.LC14:
	.ascii	"\033[m\000"
	.align	2
.LC15:
	.ascii	"\033[7m\000"
	.align	2
.LC16:
	.ascii	"\033[4m\000"
	.align	2
.LC17:
	.ascii	"\033(%c\000"
	.align	2
.LC18:
	.ascii	"\033$%c\000"
	.align	2
.LC19:
	.ascii	"\033(I\000"
	.text
	.align	2
	.global	flushline
	.syntax unified
	.arm
	.fpu softvfp
	.type	flushline, %function
flushline:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, .L383
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	b	.L346
.L348:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L346:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L347
	ldr	r3, .L383+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #32
	beq	.L348
.L347:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L349
.L379:
	ldr	r3, .L383+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-40]
	ldr	r3, .L383+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L350
	ldr	r3, [fp, #-16]
	and	r3, r3, #65536
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	and	r3, r3, #131072
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L351
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L352
.L351:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L353
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L353
.L352:
	ldr	r0, .L383+12
	bl	printf
.L353:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L354
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L354
	ldr	r0, .L383+16
	bl	printf
.L354:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L355
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L355
	ldr	r0, .L383+20
	bl	printf
.L355:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
.L350:
	ldr	r3, [fp, #-16]
	and	r3, r3, #262144
	cmp	r3, #0
	beq	.L356
	ldr	r3, .L383+24
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L357
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L357
	ldr	r3, .L383+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L383+32
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
.L357:
	ldr	r3, [fp, #-40]
	cmp	r3, #32
	beq	.L358
	ldr	r3, [fp, #-40]
	cmp	r3, #32
	blt	.L359
	ldr	r3, [fp, #-40]
	cmp	r3, #120
	bgt	.L359
	ldr	r3, [fp, #-40]
	cmp	r3, #106
	blt	.L359
	ldr	r3, [fp, #-40]
	sub	r3, r3, #106
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L359
.L361:
	.word	.L362
	.word	.L362
	.word	.L362
	.word	.L362
	.word	.L362
	.word	.L359
	.word	.L359
	.word	.L363
	.word	.L359
	.word	.L359
	.word	.L362
	.word	.L362
	.word	.L362
	.word	.L362
	.word	.L360
.L362:
	mov	r3, #43
	str	r3, [fp, #-40]
	b	.L364
.L363:
	mov	r3, #45
	str	r3, [fp, #-40]
	b	.L364
.L360:
	mov	r3, #124
	str	r3, [fp, #-40]
	b	.L364
.L358:
	mov	r3, #32
	str	r3, [fp, #-40]
	b	.L364
.L359:
	mov	r3, #63
	str	r3, [fp, #-40]
	nop
.L364:
	ldr	r0, [fp, #-40]
	bl	putchar
	b	.L365
.L356:
	ldr	r3, [fp, #-16]
	and	r3, r3, #1048576
	cmp	r3, #0
	beq	.L366
	ldr	r3, .L383+24
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L367
	cmp	r3, #3
	bgt	.L365
	cmp	r3, #1
	bgt	.L369
	cmp	r3, #0
	bge	.L370
	b	.L365
.L369:
	cmp	r3, #2
	bne	.L365
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L371
	ldr	r3, .L383+36
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L383+40
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-28]
.L371:
	ldr	r3, [fp, #-40]
	asr	r3, r3, #8
	and	r3, r3, #127
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-40]
	and	r3, r3, #127
	mov	r0, r3
	bl	putchar
	b	.L365
.L370:
	ldr	r3, [fp, #-40]
	asr	r3, r3, #8
	and	r3, r3, #255
	orr	r3, r3, #128
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-40]
	and	r3, r3, #255
	orr	r3, r3, #128
	mov	r0, r3
	bl	putchar
	b	.L365
.L367:
	ldr	r3, [fp, #-40]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-40]
	and	r3, r3, #255
	mov	r0, r3
	bl	putchar
	b	.L365
.L366:
	ldr	r3, [fp, #-16]
	and	r3, r3, #2097152
	cmp	r3, #0
	bne	.L365
	ldr	r3, [fp, #-40]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L372
	ldr	r3, .L383+24
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L373
	cmp	r3, #3
	bgt	.L365
	cmp	r3, #1
	bgt	.L375
	cmp	r3, #0
	bge	.L376
	b	.L365
.L375:
	cmp	r3, #2
	bne	.L365
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	beq	.L377
	ldr	r0, .L383+44
	bl	printf
	mov	r3, #2
	str	r3, [fp, #-28]
.L377:
	ldr	r3, [fp, #-40]
	and	r3, r3, #127
	mov	r0, r3
	bl	putchar
	b	.L365
.L376:
	mov	r0, #142
	bl	putchar
	ldr	r3, [fp, #-40]
	and	r3, r3, #255
	orr	r3, r3, #128
	mov	r0, r3
	bl	putchar
.L373:
	ldr	r3, [fp, #-40]
	and	r3, r3, #255
	mov	r0, r3
	bl	putchar
	b	.L365
.L372:
	ldr	r3, .L383+24
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L378
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L378
	ldr	r3, .L383+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L383+32
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
.L378:
	ldr	r3, [fp, #-40]
	and	r3, r3, #127
	mov	r0, r3
	bl	putchar
.L365:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L349:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L379
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L380
	ldr	r3, .L383+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L383+32
	bl	printf
.L380:
	ldr	r3, .L383+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L381
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L382
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L381
.L382:
	ldr	r0, .L383+12
	bl	printf
.L381:
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L384:
	.align	2
.L383:
	.word	cols
	.word	screen
	.word	keepgr
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	kcode
	.word	ksela
	.word	.LC17
	.word	kselk
	.word	.LC18
	.word	.LC19
	.size	flushline, .-flushline
	.align	2
	.global	cstring
	.syntax unified
	.arm
	.fpu softvfp
	.type	cstring, %function
cstring:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	getc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L386
	mvn	r3, #0
	b	.L387
.L386:
	ldr	r3, [fp, #-12]
	cmp	r3, #27
	bne	.L388
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L389
.L388:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	beq	.L394
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L389
	ldr	r3, [fp, #-12]
	cmp	r3, #92
	beq	.L395
	mov	r3, #0
	str	r3, [fp, #-8]
.L389:
	ldr	r0, [fp, #-16]
	bl	getc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L386
	mvn	r3, #0
	b	.L387
.L394:
	nop
	b	.L391
.L395:
	nop
.L391:
	mov	r3, #0
.L387:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cstring, .-cstring
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
