	.file	"34512527.c"
	.intel_syntax noprefix
	.text
	.local	text
	.comm	text,8192,32
	.local	mw
	.comm	mw,4,4
	.local	mh
	.comm	mh,4,4
	.data
	.align 4
	.type	lines, @object
	.size	lines, 4
lines:
	.long	10
	.local	inputw
	.comm	inputw,4,4
	.local	promptw
	.comm	promptw,4,4
	.local	cursor
	.comm	cursor,8,8
	.local	prompt
	.comm	prompt,8,8
	.local	items
	.comm	items,8,8
	.local	matches
	.comm	matches,8,8
	.local	matchend
	.comm	matchend,8,8
	.local	prev
	.comm	prev,8,8
	.local	curr
	.comm	curr,8,8
	.local	next
	.comm	next,8,8
	.local	sel
	.comm	sel,8,8
	.local	tio_old
	.comm	tio_old,60,32
	.local	tio_new
	.comm	tio_new,60,32
	.section	.data.rel,"aw"
	.align 8
	.type	fstrncmp, @object
	.size	fstrncmp, 8
fstrncmp:
	.quad	strncasecmp
	.text
	.type	appenditem, @function
appenditem:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
.L3:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	appenditem, .-appenditem
	.type	textwn, @function
textwn:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 192
	cmp	eax, 128
	je	.L6
	add	DWORD PTR -4[rbp], 1
.L6:
	add	DWORD PTR -8[rbp], 1
.L5:
	cmp	QWORD PTR -24[rbp], 0
	je	.L7
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L7
	cmp	DWORD PTR -28[rbp], 0
	js	.L8
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L8
.L7:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 4
	cdqe
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	textwn, .-textwn
	.type	textw, @function
textw:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, -1
	mov	rdi, rax
	call	textwn
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	textw, .-textw
	.type	calcoffsets, @function
calcoffsets:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR lines[rip]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR curr[rip]
	mov	QWORD PTR next[rip], rax
	jmp	.L13
.L16:
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jg	.L22
	mov	rax, QWORD PTR next[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR next[rip], rax
.L13:
	mov	rax, QWORD PTR next[rip]
	test	rax, rax
	jne	.L16
	jmp	.L15
.L22:
	nop
.L15:
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR curr[rip]
	mov	QWORD PTR prev[rip], rax
	jmp	.L17
.L20:
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jg	.L23
	mov	rax, QWORD PTR prev[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR prev[rip], rax
.L17:
	mov	rax, QWORD PTR prev[rip]
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR prev[rip]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L20
	jmp	.L24
.L23:
	nop
.L24:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	calcoffsets, .-calcoffsets
	.type	cleanup, @function
cleanup:
.LFB10:
	.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 stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	lea	rdx, tio_old[rip]
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cleanup, .-cleanup
	.section	.rodata
.LC0:
	.string	"%s\n"
	.text
	.type	die, @function
die:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdx, tio_old[rip]
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.size	die, .-die
	.section	.rodata
.LC1:
	.string	"Can't calloc."
.LC2:
	.string	"\033[7m"
.LC3:
	.string	"\033[0m"
.LC4:
	.string	""
.LC5:
	.string	"%s  %s  %s"
	.text
	.type	drawtext, @function
drawtext:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	cmp	QWORD PTR -48[rbp], 4
	jbe	.L38
	mov	rax, QWORD PTR -48[rbp]
	sub	eax, 4
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	cdqe
	mov	rsi, rax
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L30
	lea	rdi, .LC1[rip]
	call	die
.L30:
	cmp	DWORD PTR -52[rbp], 1
	jne	.L31
	lea	rax, .LC2[rip]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L32
.L31:
	lea	rax, .LC4[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
.L32:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	jnb	.L33
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	jmp	.L34
.L33:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
.L34:
	mov	rsi, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	textw
	cmp	QWORD PTR -48[rbp], rax
	jnb	.L35
	mov	eax, 4
	cmp	DWORD PTR -28[rbp], 4
	cmovge	eax, DWORD PTR -28[rbp]
	sub	eax, 4
	mov	DWORD PTR -32[rbp], eax
	jmp	.L36
.L37:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 46
	add	DWORD PTR -32[rbp], 1
.L36:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L37
.L35:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L27
.L38:
	nop
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	drawtext, .-drawtext
	.section	.rodata
.LC6:
	.string	"\033[%iF"
	.text
	.type	resetline, @function
resetline:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, DWORD PTR lines[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	resetline, .-resetline
	.section	.rodata
.LC7:
	.string	"\033[0G"
.LC8:
	.string	"\033[K"
.LC9:
	.string	"\n\033[K"
.LC10:
	.string	"\033[%iG"
	.text
	.type	drawmenu, @function
drawmenu:
.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	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR prompt[rip]
	test	rax, rax
	je	.L41
	mov	eax, DWORD PTR promptw[rip]
	movsx	rcx, eax
	mov	rax, QWORD PTR prompt[rip]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	drawtext
.L41:
	mov	eax, DWORD PTR mw[rip]
	mov	edx, DWORD PTR promptw[rip]
	sub	eax, edx
	cdqe
	mov	edx, 0
	mov	rsi, rax
	lea	rdi, text[rip]
	call	drawtext
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR curr[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L42
.L43:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR sel[rip]
	cmp	QWORD PTR -8[rbp], rax
	sete	al
	movzx	edx, al
	mov	eax, DWORD PTR mw[rip]
	movsx	rcx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	drawtext
	add	DWORD PTR -12[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L42:
	mov	rax, QWORD PTR next[rip]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L43
	jmp	.L44
.L45:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	add	DWORD PTR -12[rbp], 1
.L44:
	mov	eax, DWORD PTR lines[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L45
	call	resetline
	mov	rax, QWORD PTR cursor[rip]
	mov	esi, eax
	lea	rdi, text[rip]
	call	textwn
	mov	edx, eax
	mov	eax, DWORD PTR promptw[rip]
	add	eax, edx
	sub	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	drawmenu, .-drawmenu
	.type	fstrstr, @function
fstrstr:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L47
.L50:
	mov	r8, QWORD PTR fstrncmp[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	r8
	test	eax, eax
	jne	.L48
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L49
.L48:
	add	QWORD PTR -24[rbp], 1
.L47:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L50
	mov	eax, 0
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	fstrstr, .-fstrstr
	.section	.rodata
.LC11:
	.string	" "
.LC12:
	.string	"Can't realloc."
	.text
	.type	match, @function
match:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8276[rbp], 0
	lea	rax, -8208[rbp]
	lea	rsi, text[rip]
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -8208[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -8240[rbp], rax
	jmp	.L52
.L54:
	add	DWORD PTR -8276[rbp], 1
	mov	eax, DWORD PTR tokn.1[rip]
	cmp	DWORD PTR -8276[rbp], eax
	jle	.L53
	mov	eax, DWORD PTR tokn.1[rip]
	add	eax, 1
	mov	DWORD PTR tokn.1[rip], eax
	mov	eax, DWORD PTR tokn.1[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR tokv.0[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR tokv.0[rip], rax
	mov	rax, QWORD PTR tokv.0[rip]
	test	rax, rax
	jne	.L53
	lea	rdi, .LC12[rip]
	call	die
.L53:
	mov	rdx, QWORD PTR tokv.0[rip]
	mov	eax, DWORD PTR -8276[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rdx, rax
	mov	rax, QWORD PTR -8240[rbp]
	mov	QWORD PTR [rdx], rax
	lea	rsi, .LC11[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -8240[rbp], rax
.L52:
	cmp	QWORD PTR -8240[rbp], 0
	jne	.L54
	cmp	DWORD PTR -8276[rbp], 0
	je	.L55
	mov	rax, QWORD PTR tokv.0[rip]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	jmp	.L56
.L55:
	mov	eax, 0
.L56:
	mov	QWORD PTR -8224[rbp], rax
	mov	QWORD PTR -8248[rbp], 0
	mov	rax, QWORD PTR -8248[rbp]
	mov	QWORD PTR -8256[rbp], rax
	mov	rax, QWORD PTR -8256[rbp]
	mov	QWORD PTR matchend[rip], rax
	mov	rax, QWORD PTR matchend[rip]
	mov	QWORD PTR -8264[rbp], rax
	mov	rax, QWORD PTR -8264[rbp]
	mov	QWORD PTR -8272[rbp], rax
	mov	rax, QWORD PTR -8272[rbp]
	mov	QWORD PTR matches[rip], rax
	lea	rdi, text[rip]
	call	strlen@PLT
	add	rax, 1
	mov	QWORD PTR -8216[rbp], rax
	mov	rax, QWORD PTR items[rip]
	mov	QWORD PTR -8232[rbp], rax
	jmp	.L57
.L69:
	mov	DWORD PTR -8280[rbp], 0
	jmp	.L58
.L62:
	mov	rdx, QWORD PTR tokv.0[rip]
	mov	eax, DWORD PTR -8280[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L59
	mov	rdx, QWORD PTR tokv.0[rip]
	mov	eax, DWORD PTR -8280[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L60
	mov	rdx, QWORD PTR tokv.0[rip]
	mov	eax, DWORD PTR -8280[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8232[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	fstrstr
	test	rax, rax
	je	.L60
	jmp	.L61
.L59:
	mov	rdx, QWORD PTR tokv.0[rip]
	mov	eax, DWORD PTR -8280[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8232[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	fstrstr
	test	rax, rax
	je	.L77
.L60:
	add	DWORD PTR -8280[rbp], 1
.L58:
	mov	eax, DWORD PTR -8280[rbp]
	cmp	eax, DWORD PTR -8276[rbp]
	jl	.L62
	jmp	.L61
.L77:
	nop
.L61:
	mov	eax, DWORD PTR -8280[rbp]
	cmp	eax, DWORD PTR -8276[rbp]
	jne	.L78
	cmp	DWORD PTR -8276[rbp], 0
	je	.L65
	mov	rcx, QWORD PTR fstrncmp[rip]
	mov	rax, QWORD PTR -8232[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8216[rbp]
	mov	rsi, rax
	lea	rdi, text[rip]
	call	rcx
	test	eax, eax
	jne	.L66
.L65:
	mov	rax, QWORD PTR -8232[rbp]
	lea	rdx, matchend[rip]
	lea	rsi, matches[rip]
	mov	rdi, rax
	call	appenditem
	jmp	.L64
.L66:
	mov	r8, QWORD PTR fstrncmp[rip]
	mov	rax, QWORD PTR -8232[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR tokv.0[rip]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8224[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	r8
	test	eax, eax
	jne	.L67
	lea	rdx, -8256[rbp]
	lea	rcx, -8272[rbp]
	mov	rax, QWORD PTR -8232[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	appenditem
	jmp	.L64
.L67:
	lea	rdx, -8248[rbp]
	lea	rcx, -8264[rbp]
	mov	rax, QWORD PTR -8232[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	appenditem
	jmp	.L64
.L78:
	nop
.L64:
	add	QWORD PTR -8232[rbp], 24
.L57:
	cmp	QWORD PTR -8232[rbp], 0
	je	.L68
	mov	rax, QWORD PTR -8232[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L69
.L68:
	mov	rax, QWORD PTR -8272[rbp]
	test	rax, rax
	je	.L70
	mov	rax, QWORD PTR matches[rip]
	test	rax, rax
	je	.L71
	mov	rax, QWORD PTR matchend[rip]
	mov	rdx, QWORD PTR -8272[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8272[rbp]
	mov	rdx, QWORD PTR matchend[rip]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L72
.L71:
	mov	rax, QWORD PTR -8272[rbp]
	mov	QWORD PTR matches[rip], rax
.L72:
	mov	rax, QWORD PTR -8256[rbp]
	mov	QWORD PTR matchend[rip], rax
.L70:
	mov	rax, QWORD PTR -8264[rbp]
	test	rax, rax
	je	.L73
	mov	rax, QWORD PTR matches[rip]
	test	rax, rax
	je	.L74
	mov	rax, QWORD PTR matchend[rip]
	mov	rdx, QWORD PTR -8264[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8264[rbp]
	mov	rdx, QWORD PTR matchend[rip]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L75
.L74:
	mov	rax, QWORD PTR -8264[rbp]
	mov	QWORD PTR matches[rip], rax
.L75:
	mov	rax, QWORD PTR -8248[rbp]
	mov	QWORD PTR matchend[rip], rax
.L73:
	mov	rax, QWORD PTR matches[rip]
	mov	QWORD PTR sel[rip], rax
	mov	rax, QWORD PTR sel[rip]
	mov	QWORD PTR curr[rip], rax
	call	calcoffsets
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L76
	call	__stack_chk_fail@PLT
.L76:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	match, .-match
	.type	insert, @function
insert:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	lea	rdi, text[rip]
	call	strlen@PLT
	mov	rdx, QWORD PTR -16[rbp]
	add	rax, rdx
	cmp	rax, 8191
	ja	.L83
	mov	eax, 0
	cmp	QWORD PTR -16[rbp], 0
	cmovns	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR cursor[rip]
	add	rax, rdx
	mov	edx, 8192
	sub	rdx, rax
	mov	rax, QWORD PTR cursor[rip]
	lea	rcx, text[rip]
	add	rcx, rax
	mov	rsi, QWORD PTR cursor[rip]
	mov	rax, QWORD PTR -16[rbp]
	add	rsi, rax
	lea	rax, text[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	cmp	QWORD PTR -16[rbp], 0
	jle	.L82
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR cursor[rip]
	lea	rcx, text[rip]
	add	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
.L82:
	mov	rdx, QWORD PTR cursor[rip]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR cursor[rip], rax
	call	match
	jmp	.L79
.L83:
	nop
.L79:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	insert, .-insert
	.type	nextrune, @function
nextrune:
.LFB18:
	.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 -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR cursor[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	jmp	.L85
.L87:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	QWORD PTR -8[rbp], rax
.L85:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	test	rax, rax
	js	.L86
	lea	rdx, text[rip]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 192
	cmp	eax, 128
	je	.L87
.L86:
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	nextrune, .-nextrune
	.section	.rodata
.LC13:
	.string	"Can't strdup."
	.text
	.type	readstdin, @function
readstdin:
.LFB19:
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -8264[rbp], 0
	mov	QWORD PTR -8248[rbp], 0
	mov	QWORD PTR -8240[rbp], 0
	mov	QWORD PTR -8256[rbp], 0
	jmp	.L90
.L95:
	mov	rax, QWORD PTR -8256[rbp]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -8240[rbp]
	movabs	rdx, -6148914691236517205
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	cmp	rcx, rax
	jb	.L91
	add	QWORD PTR -8240[rbp], 8192
	mov	rax, QWORD PTR items[rip]
	mov	rdx, QWORD PTR -8240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR items[rip], rax
	mov	rax, QWORD PTR items[rip]
	test	rax, rax
	jne	.L91
	lea	rdi, .LC12[rip]
	call	die
.L91:
	lea	rax, -8224[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -8232[rbp], rax
	cmp	QWORD PTR -8232[rbp], 0
	je	.L92
	mov	rax, QWORD PTR -8232[rbp]
	mov	BYTE PTR [rax], 0
.L92:
	mov	rcx, QWORD PTR items[rip]
	mov	rdx, QWORD PTR -8256[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rbx, [rcx+rax]
	lea	rax, -8224[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	jne	.L93
	lea	rdi, .LC13[rip]
	call	die
.L93:
	mov	rcx, QWORD PTR items[rip]
	mov	rdx, QWORD PTR -8256[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	cmp	QWORD PTR -8248[rbp], rax
	jnb	.L94
	mov	rcx, QWORD PTR items[rip]
	mov	rdx, QWORD PTR -8256[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8264[rbp], rax
	mov	rax, QWORD PTR -8264[rbp]
	mov	rdi, rax
	call	textw
	mov	QWORD PTR -8248[rbp], rax
.L94:
	add	QWORD PTR -8256[rbp], 1
.L90:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -8224[rbp]
	mov	esi, 8192
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L95
	mov	rax, QWORD PTR items[rip]
	test	rax, rax
	je	.L96
	mov	rcx, QWORD PTR items[rip]
	mov	rdx, QWORD PTR -8256[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR [rax], 0
.L96:
	mov	rax, QWORD PTR -8264[rbp]
	mov	rdi, rax
	call	textw
	mov	DWORD PTR inputw[rip], eax
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L97
	call	__stack_chk_fail@PLT
.L97:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	readstdin, .-readstdin
	.section	.rodata
.LC14:
	.string	"Can not read."
	.text
	.type	xread, @function
xread:
.LFB20:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	js	.L99
	mov	rax, QWORD PTR -40[rbp]
	cmp	QWORD PTR -8[rbp], rax
	je	.L101
.L99:
	lea	rdi, .LC14[rip]
	call	die
.L101:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	xread, .-xread
	.section	.rodata
.LC15:
	.string	"r"
.LC16:
	.string	"/dev/tty"
.LC17:
	.string	"Can't reopen tty as stdin."
.LC18:
	.string	"w"
.LC19:
	.string	"Can't reopen tty as stderr."
	.text
	.type	setup, @function
setup:
.LFB21:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], -1
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	lea	rsi, .LC15[rip]
	lea	rdi, .LC16[rip]
	call	freopen@PLT
	test	rax, rax
	jne	.L103
	lea	rdi, .LC17[rip]
	call	die
.L103:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, rax
	lea	rsi, .LC18[rip]
	lea	rdi, .LC16[rip]
	call	freopen@PLT
	test	rax, rax
	jne	.L104
	lea	rdi, .LC19[rip]
	call	die
.L104:
	mov	esi, 2
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L105
	mov	DWORD PTR mh[rip], 24
	mov	DWORD PTR mw[rip], 80
	jmp	.L106
.L105:
	lea	rdx, -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 21523
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -24[rbp], 0
	jns	.L107
	mov	DWORD PTR mw[rip], 80
	mov	DWORD PTR mh[rip], 24
	jmp	.L106
.L107:
	movzx	eax, WORD PTR -14[rbp]
	movzx	eax, ax
	mov	DWORD PTR mw[rip], eax
	movzx	eax, WORD PTR -16[rbp]
	movzx	eax, ax
	mov	DWORD PTR mh[rip], eax
.L106:
	lea	rsi, tio_old[rip]
	mov	edi, 0
	call	tcgetattr@PLT
	mov	rax, QWORD PTR tio_old[rip]
	mov	rdx, QWORD PTR tio_old[rip+8]
	mov	QWORD PTR tio_new[rip], rax
	mov	QWORD PTR tio_new[rip+8], rdx
	mov	rax, QWORD PTR tio_old[rip+16]
	mov	rdx, QWORD PTR tio_old[rip+24]
	mov	QWORD PTR tio_new[rip+16], rax
	mov	QWORD PTR tio_new[rip+24], rdx
	mov	rax, QWORD PTR tio_old[rip+32]
	mov	rdx, QWORD PTR tio_old[rip+40]
	mov	QWORD PTR tio_new[rip+32], rax
	mov	QWORD PTR tio_new[rip+40], rdx
	mov	rax, QWORD PTR tio_old[rip+48]
	mov	QWORD PTR tio_new[rip+48], rax
	mov	eax, DWORD PTR tio_old[rip+56]
	mov	DWORD PTR tio_new[rip+56], eax
	mov	eax, DWORD PTR tio_new[rip]
	and	eax, -1515
	mov	DWORD PTR tio_new[rip], eax
	mov	eax, DWORD PTR tio_new[rip+12]
	and	eax, -32844
	mov	DWORD PTR tio_new[rip+12], eax
	mov	eax, DWORD PTR tio_new[rip+8]
	and	eax, -305
	mov	DWORD PTR tio_new[rip+8], eax
	mov	eax, DWORD PTR tio_new[rip+8]
	or	eax, 48
	mov	DWORD PTR tio_new[rip+8], eax
	mov	BYTE PTR tio_new[rip+23], 1
	lea	rdx, tio_new[rip]
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	mov	eax, DWORD PTR mh[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR lines[rip]
	mov	ecx, 0
	test	eax, eax
	cmovs	eax, ecx
	cmp	edx, eax
	cmovle	eax, edx
	mov	DWORD PTR lines[rip], eax
	mov	eax, DWORD PTR lines[rip]
	test	eax, eax
	jne	.L108
	mov	eax, DWORD PTR mh[rip]
	sub	eax, 1
	mov	DWORD PTR lines[rip], eax
.L108:
	mov	rax, QWORD PTR prompt[rip]
	test	rax, rax
	je	.L109
	mov	rax, QWORD PTR prompt[rip]
	mov	rdi, rax
	call	textw
	jmp	.L110
.L109:
	mov	eax, 0
.L110:
	mov	DWORD PTR promptw[rip], eax
	mov	eax, DWORD PTR mw[rip]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	sub	edx, eax
	mov	eax, DWORD PTR inputw[rip]
	cmp	edx, eax
	cmovle	eax, edx
	mov	DWORD PTR inputw[rip], eax
	call	match
	call	drawmenu
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L111
	call	__stack_chk_fail@PLT
.L111:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	setup, .-setup
	.type	run, @function
run:
.LFB22:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L196:
	lea	rax, -49[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	xread
	lea	rax, -48[rbp]
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	movzx	eax, BYTE PTR -49[rbp]
	mov	BYTE PTR -48[rbp], al
.L113:
	movzx	eax, BYTE PTR -49[rbp]
	movsx	eax, al
	cmp	eax, 127
	ja	.L114
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L116[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L116[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L116:
	.long	.L114-.L116
	.long	.L132-.L116
	.long	.L131-.L116
	.long	.L130-.L116
	.long	.L129-.L116
	.long	.L128-.L116
	.long	.L127-.L116
	.long	.L114-.L116
	.long	.L115-.L116
	.long	.L126-.L116
	.long	.L124-.L116
	.long	.L125-.L116
	.long	.L114-.L116
	.long	.L124-.L116
	.long	.L123-.L116
	.long	.L114-.L116
	.long	.L122-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L121-.L116
	.long	.L120-.L116
	.long	.L188-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L118-.L116
	.long	.L117-.L116
	.long	.L117-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L114-.L116
	.long	.L115-.L116
	.text
.L118:
	lea	rax, -49[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	xread
.L133:
	movzx	eax, BYTE PTR -49[rbp]
	movsx	eax, al
	cmp	eax, 27
	je	.L134
	cmp	eax, 27
	jl	.L199
	cmp	eax, 118
	jg	.L199
	cmp	eax, 91
	jl	.L199
	sub	eax, 91
	cmp	eax, 27
	ja	.L199
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L137[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L137[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L137:
	.long	.L141-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L157-.L137
	.long	.L199-.L137
	.long	.L168-.L137
	.long	.L199-.L137
	.long	.L163-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L199-.L137
	.long	.L136-.L137
	.text
.L134:
	mov	BYTE PTR -49[rbp], 3
	jmp	.L113
.L141:
	lea	rax, -49[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	xread
	movzx	eax, BYTE PTR -49[rbp]
	movsx	eax, al
	sub	eax, 49
	cmp	eax, 23
	ja	.L200
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L144[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L144[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L144:
	.long	.L143-.L144
	.long	.L153-.L144
	.long	.L152-.L144
	.long	.L145-.L144
	.long	.L151-.L144
	.long	.L150-.L144
	.long	.L143-.L144
	.long	.L145-.L144
	.long	.L200-.L144
	.long	.L200-.L144
	.long	.L200-.L144
	.long	.L200-.L144
	.long	.L200-.L144
	.long	.L200-.L144
	.long	.L200-.L144
	.long	.L200-.L144
	.long	.L149-.L144
	.long	.L148-.L144
	.long	.L147-.L144
	.long	.L146-.L144
	.long	.L200-.L144
	.long	.L145-.L144
	.long	.L200-.L144
	.long	.L143-.L144
	.text
.L143:
	movzx	eax, BYTE PTR -49[rbp]
	cmp	al, 72
	je	.L154
	lea	rax, -49[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	xread
.L154:
	mov	BYTE PTR -49[rbp], 1
	jmp	.L113
.L153:
	lea	rax, -49[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	xread
	mov	BYTE PTR -49[rbp], 25
	jmp	.L113
.L152:
	lea	rax, -49[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	xread
	mov	BYTE PTR -49[rbp], 4
	jmp	.L113
.L145:
	movzx	eax, BYTE PTR -49[rbp]
	cmp	al, 70
	je	.L155
	lea	rax, -49[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	xread
.L155:
	mov	BYTE PTR -49[rbp], 5
	jmp	.L113
.L151:
	lea	rax, -49[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	xread
	mov	BYTE PTR -49[rbp], 22
	jmp	.L113
.L150:
	lea	rax, -49[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	xread
	mov	BYTE PTR -49[rbp], 118
	jmp	.L133
.L149:
	mov	BYTE PTR -49[rbp], 16
	jmp	.L113
.L148:
	mov	BYTE PTR -49[rbp], 14
	jmp	.L113
.L147:
	mov	BYTE PTR -49[rbp], 6
	jmp	.L113
.L146:
	mov	BYTE PTR -49[rbp], 2
	jmp	.L113
.L159:
	mov	edi, -1
	call	nextrune
	mov	QWORD PTR cursor[rip], rax
.L157:
	mov	rax, QWORD PTR cursor[rip]
	test	rax, rax
	je	.L160
	mov	edi, -1
	call	nextrune
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	je	.L159
	jmp	.L160
.L162:
	mov	edi, -1
	call	nextrune
	mov	QWORD PTR cursor[rip], rax
.L160:
	mov	rax, QWORD PTR cursor[rip]
	test	rax, rax
	je	.L201
	mov	edi, -1
	call	nextrune
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	jne	.L162
	jmp	.L201
.L165:
	mov	edi, 1
	call	nextrune
	mov	QWORD PTR cursor[rip], rax
.L163:
	mov	rax, QWORD PTR cursor[rip]
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L164
	mov	edi, 1
	call	nextrune
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	je	.L165
.L164:
	mov	rax, QWORD PTR cursor[rip]
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L202
.L167:
	mov	edi, 1
	call	nextrune
	mov	QWORD PTR cursor[rip], rax
	mov	rax, QWORD PTR cursor[rip]
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L202
	mov	rax, QWORD PTR cursor[rip]
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	jne	.L167
	jmp	.L202
.L170:
	mov	edi, 1
	call	nextrune
	mov	QWORD PTR cursor[rip], rax
	mov	edi, -1
	call	nextrune
	mov	rdx, QWORD PTR cursor[rip]
	sub	rax, rdx
	mov	rsi, rax
	mov	edi, 0
	call	insert
.L168:
	mov	rax, QWORD PTR cursor[rip]
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L169
	mov	edi, 1
	call	nextrune
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	je	.L170
.L169:
	mov	rax, QWORD PTR cursor[rip]
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L203
.L172:
	mov	edi, 1
	call	nextrune
	mov	QWORD PTR cursor[rip], rax
	mov	edi, -1
	call	nextrune
	mov	rdx, QWORD PTR cursor[rip]
	sub	rax, rdx
	mov	rsi, rax
	mov	edi, 0
	call	insert
	mov	rax, QWORD PTR cursor[rip]
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L203
	mov	rax, QWORD PTR cursor[rip]
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	jne	.L172
	jmp	.L203
.L136:
	mov	rax, QWORD PTR next[rip]
	test	rax, rax
	je	.L204
	mov	rax, QWORD PTR next[rip]
	mov	QWORD PTR curr[rip], rax
	mov	rax, QWORD PTR curr[rip]
	mov	QWORD PTR sel[rip], rax
	call	calcoffsets
	jmp	.L156
.L199:
	nop
	jmp	.L174
.L200:
	nop
	jmp	.L174
.L201:
	nop
	jmp	.L174
.L202:
	nop
	jmp	.L174
.L203:
	nop
	jmp	.L174
.L204:
	nop
.L156:
	jmp	.L174
.L130:
	mov	eax, 1
	jmp	.L197
.L124:
	mov	rax, QWORD PTR sel[rip]
	test	rax, rax
	je	.L176
	mov	rax, QWORD PTR sel[rip]
	mov	rax, QWORD PTR [rax]
	mov	edx, 8191
	mov	rsi, rax
	lea	rdi, text[rip]
	call	strncpy@PLT
.L176:
	lea	rdi, text[rip]
	call	strlen@PLT
	mov	QWORD PTR cursor[rip], rax
	call	match
	call	drawmenu
.L117:
	lea	rdi, text[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L197
.L132:
	mov	rdx, QWORD PTR sel[rip]
	mov	rax, QWORD PTR matches[rip]
	cmp	rdx, rax
	jne	.L177
	mov	QWORD PTR cursor[rip], 0
	jmp	.L174
.L177:
	mov	rax, QWORD PTR matches[rip]
	mov	QWORD PTR curr[rip], rax
	mov	rax, QWORD PTR curr[rip]
	mov	QWORD PTR sel[rip], rax
	call	calcoffsets
	jmp	.L174
.L128:
	mov	rax, QWORD PTR cursor[rip]
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L178
	lea	rdi, text[rip]
	call	strlen@PLT
	mov	QWORD PTR cursor[rip], rax
	jmp	.L174
.L178:
	mov	rax, QWORD PTR next[rip]
	test	rax, rax
	je	.L179
	mov	rax, QWORD PTR matchend[rip]
	mov	QWORD PTR curr[rip], rax
	call	calcoffsets
	mov	rax, QWORD PTR prev[rip]
	mov	QWORD PTR curr[rip], rax
	call	calcoffsets
	jmp	.L180
.L181:
	call	calcoffsets
.L180:
	mov	rax, QWORD PTR next[rip]
	test	rax, rax
	je	.L179
	mov	rax, QWORD PTR curr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR curr[rip], rax
	mov	rax, QWORD PTR curr[rip]
	test	rax, rax
	jne	.L181
.L179:
	mov	rax, QWORD PTR matchend[rip]
	mov	QWORD PTR sel[rip], rax
	jmp	.L174
.L131:
	mov	rax, QWORD PTR cursor[rip]
	test	rax, rax
	je	.L122
	mov	edi, -1
	call	nextrune
	mov	QWORD PTR cursor[rip], rax
	jmp	.L174
.L122:
	mov	rax, QWORD PTR sel[rip]
	test	rax, rax
	je	.L205
	mov	rax, QWORD PTR sel[rip]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L205
	mov	rax, QWORD PTR sel[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR sel[rip], rax
	mov	rax, QWORD PTR sel[rip]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR curr[rip]
	cmp	rdx, rax
	jne	.L205
	mov	rax, QWORD PTR prev[rip]
	mov	QWORD PTR curr[rip], rax
	call	calcoffsets
	jmp	.L205
.L127:
	mov	rax, QWORD PTR cursor[rip]
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L123
	mov	edi, 1
	call	nextrune
	mov	QWORD PTR cursor[rip], rax
	jmp	.L174
.L123:
	mov	rax, QWORD PTR sel[rip]
	test	rax, rax
	je	.L206
	mov	rax, QWORD PTR sel[rip]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L206
	mov	rax, QWORD PTR sel[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR sel[rip], rax
	mov	rdx, QWORD PTR sel[rip]
	mov	rax, QWORD PTR next[rip]
	cmp	rdx, rax
	jne	.L206
	mov	rax, QWORD PTR next[rip]
	mov	QWORD PTR curr[rip], rax
	call	calcoffsets
	jmp	.L206
.L129:
	mov	rax, QWORD PTR cursor[rip]
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L184
	mov	rax, QWORD PTR cursor[rip]
	test	rax, rax
	jne	.L207
	mov	eax, 1
	jmp	.L197
.L184:
	mov	edi, 1
	call	nextrune
	mov	QWORD PTR cursor[rip], rax
.L115:
	mov	rax, QWORD PTR cursor[rip]
	test	rax, rax
	je	.L208
	mov	edi, -1
	call	nextrune
	mov	rdx, QWORD PTR cursor[rip]
	sub	rax, rdx
	mov	rsi, rax
	mov	edi, 0
	call	insert
	jmp	.L174
.L126:
	mov	rax, QWORD PTR sel[rip]
	test	rax, rax
	je	.L209
	mov	rax, QWORD PTR sel[rip]
	mov	rax, QWORD PTR [rax]
	mov	edx, 8192
	mov	rsi, rax
	lea	rdi, text[rip]
	call	strncpy@PLT
	lea	rdi, text[rip]
	call	strlen@PLT
	mov	QWORD PTR cursor[rip], rax
	call	match
	jmp	.L174
.L121:
	mov	QWORD PTR cursor[rip], 0
.L125:
	mov	rax, QWORD PTR cursor[rip]
	lea	rdx, text[rip]
	mov	BYTE PTR [rax+rdx], 0
	call	match
	jmp	.L174
.L190:
	mov	edi, -1
	call	nextrune
	mov	rdx, QWORD PTR cursor[rip]
	sub	rax, rdx
	mov	rsi, rax
	mov	edi, 0
	call	insert
.L188:
	mov	rax, QWORD PTR cursor[rip]
	test	rax, rax
	je	.L191
	mov	edi, -1
	call	nextrune
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	je	.L190
	jmp	.L191
.L193:
	mov	edi, -1
	call	nextrune
	mov	rdx, QWORD PTR cursor[rip]
	sub	rax, rdx
	mov	rsi, rax
	mov	edi, 0
	call	insert
.L191:
	mov	rax, QWORD PTR cursor[rip]
	test	rax, rax
	je	.L210
	mov	edi, -1
	call	nextrune
	lea	rdx, text[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	jne	.L193
	jmp	.L210
.L120:
	mov	rax, QWORD PTR prev[rip]
	test	rax, rax
	je	.L211
	mov	rax, QWORD PTR prev[rip]
	mov	QWORD PTR curr[rip], rax
	mov	rax, QWORD PTR curr[rip]
	mov	QWORD PTR sel[rip], rax
	call	calcoffsets
	jmp	.L174
.L114:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -48[rbp]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2
	test	eax, eax
	jne	.L212
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	insert
	jmp	.L212
.L205:
	nop
	jmp	.L174
.L206:
	nop
	jmp	.L174
.L207:
	nop
	jmp	.L174
.L208:
	nop
	jmp	.L174
.L209:
	nop
	jmp	.L174
.L210:
	nop
	jmp	.L174
.L211:
	nop
	jmp	.L174
.L212:
	nop
.L174:
	call	drawmenu
	jmp	.L196
.L197:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L198
	call	__stack_chk_fail@PLT
.L198:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	run, .-run
	.section	.rodata
	.align 8
.LC20:
	.string	"usage: vmenu [-i] [-l lines] [-p prompt] [initial selection]\n"
	.text
	.type	usage, @function
usage:
.LFB23:
	.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 stderr[rip]
	mov	rcx, rax
	mov	edx, 61
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE23:
	.size	usage, .-usage
	.section	.rodata
.LC21:
	.string	"ip:l:"
	.text
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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
	jmp	.L215
.L222:
	cmp	DWORD PTR -8[rbp], 112
	je	.L216
	cmp	DWORD PTR -8[rbp], 112
	jg	.L217
	cmp	DWORD PTR -8[rbp], 105
	je	.L218
	cmp	DWORD PTR -8[rbp], 108
	je	.L219
	jmp	.L217
.L218:
	mov	rax, QWORD PTR strncmp@GOTPCREL[rip]
	mov	QWORD PTR fstrncmp[rip], rax
	jmp	.L215
.L216:
	mov	rax, QWORD PTR optarg[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L220
	mov	rax, QWORD PTR optarg[rip]
	jmp	.L221
.L220:
	mov	eax, 0
.L221:
	mov	QWORD PTR prompt[rip], rax
	jmp	.L215
.L219:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR lines[rip], eax
	jmp	.L215
.L217:
	call	usage
.L215:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC21[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L222
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jle	.L223
	call	usage
.L223:
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jne	.L224
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 8191
	mov	rsi, rax
	lea	rdi, text[rip]
	call	strncpy@PLT
	lea	rdi, text[rip]
	call	strlen@PLT
	mov	QWORD PTR cursor[rip], rax
.L224:
	mov	eax, 0
	call	readstdin
	call	setup
	call	run
	mov	DWORD PTR -4[rbp], eax
	mov	eax, 0
	call	cleanup
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.local	tokn.1
	.comm	tokn.1,4,4
	.local	tokv.0
	.comm	tokv.0,8,8
	.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	"34512527.c"
	.text
	.local	text
	.comm	text,8192,4
	.local	mw
	.comm	mw,4,4
	.local	mh
	.comm	mh,4,4
	.data
	.align	2
	.type	lines, %object
	.size	lines, 4
lines:
	.word	10
	.local	inputw
	.comm	inputw,4,4
	.local	promptw
	.comm	promptw,4,4
	.local	cursor
	.comm	cursor,4,4
	.local	prompt
	.comm	prompt,4,4
	.local	items
	.comm	items,4,4
	.local	matches
	.comm	matches,4,4
	.local	matchend
	.comm	matchend,4,4
	.local	prev
	.comm	prev,4,4
	.local	curr
	.comm	curr,4,4
	.local	next
	.comm	next,4,4
	.local	sel
	.comm	sel,4,4
	.local	tio_old
	.comm	tio_old,60,4
	.local	tio_new
	.comm	tio_new,60,4
	.align	2
	.type	fstrncmp, %object
	.size	fstrncmp, 4
fstrncmp:
	.word	strncasecmp
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	appenditem, %function
appenditem:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L3
.L2:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
.L3:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	appenditem, .-appenditem
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	textwn, %function
textwn:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	b	.L5
.L8:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #192
	cmp	r3, #128
	beq	.L6
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L8
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L8
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	textwn, .-textwn
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	textw, %function
textw:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mvn	r1, #0
	ldr	r0, [fp, #-8]
	bl	textwn
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	textw, .-textw
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calcoffsets, %function
calcoffsets:
	@ 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
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r2, .L25+8
	str	r3, [r2]
	b	.L13
.L16:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bgt	.L22
	ldr	r3, .L25+8
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L25+8
	str	r3, [r2]
.L13:
	ldr	r3, .L25+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	b	.L15
.L22:
	nop
.L15:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r2, .L25+12
	str	r3, [r2]
	b	.L17
.L20:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bgt	.L23
	ldr	r3, .L25+12
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L25+12
	str	r3, [r2]
.L17:
	ldr	r3, .L25+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L25+12
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L20
	b	.L24
.L23:
	nop
.L24:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L26:
	.align	2
.L25:
	.word	lines
	.word	curr
	.word	next
	.word	prev
	.size	calcoffsets, .-calcoffsets
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup, %function
cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r2, .L28+4
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	nop
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	stderr
	.word	tio_old
	.size	cleanup, .-cleanup
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r2, .L31
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	ldr	r3, .L31+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L31+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L32:
	.align	2
.L31:
	.word	tio_old
	.word	stderr
	.word	.LC0
	.size	die, .-die
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Can't calloc.\000"
	.align	2
.LC2:
	.ascii	"\033[7m\000"
	.align	2
.LC3:
	.ascii	"\033[0m\000"
	.align	2
.LC4:
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"%s  %s  %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	drawtext, %function
drawtext:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	bls	.L44
	ldr	r3, [fp, #-36]
	sub	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L36
	ldr	r0, .L45
	bl	die
.L36:
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bne	.L37
	ldr	r3, .L45+4
	str	r3, [fp, #-24]
	ldr	r3, .L45+8
	str	r3, [fp, #-20]
	b	.L38
.L37:
	ldr	r3, .L45+12
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
.L38:
	ldr	r3, [fp, #-12]
	mov	r2, r3
	mov	r1, #32
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcs	.L39
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	b	.L40
.L39:
	ldr	r3, [fp, #-12]
.L40:
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-8]
	bl	memcpy
	ldr	r0, [fp, #-32]
	bl	textw
	mov	r2, r0
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	bcs	.L41
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	movge	r3, r3
	movlt	r3, #4
	sub	r3, r3, #4
	str	r3, [fp, #-16]
	b	.L42
.L43:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #46
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L42:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L43
.L41:
	ldr	r3, .L45+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	ldr	r1, .L45+20
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	free
	b	.L33
.L44:
	nop
.L33:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC5
	.size	drawtext, .-drawtext
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\033[%iF\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	resetline, %function
resetline:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L48
	ldr	r3, [r3]
	ldr	r2, .L48+4
	ldr	r2, [r2]
	ldr	r1, .L48+8
	mov	r0, r3
	bl	fprintf
	nop
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	stderr
	.word	lines
	.word	.LC6
	.size	resetline, .-resetline
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\033[0G\000"
	.align	2
.LC8:
	.ascii	"\033[K\000"
	.align	2
.LC9:
	.ascii	"\012\033[K\000"
	.align	2
.LC10:
	.ascii	"\033[%iG\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	drawmenu, %function
drawmenu:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r3, .L56
	ldr	r3, [r3]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L56+4
	bl	fwrite
	ldr	r3, .L56
	ldr	r3, [r3]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L56+8
	bl	fwrite
	ldr	r3, .L56
	ldr	r3, [r3]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L56+12
	bl	fwrite
	ldr	r3, .L56+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L56+16
	ldr	r3, [r3]
	ldr	r2, .L56+20
	ldr	r2, [r2]
	mov	r1, r2
	mov	r2, #1
	mov	r0, r3
	bl	drawtext
.L51:
	ldr	r3, .L56+24
	ldr	r2, [r3]
	ldr	r3, .L56+20
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, .L56+28
	bl	drawtext
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L56+32
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L52
.L53:
	ldr	r3, .L56
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-20]
	ldr	r0, [r3]
	ldr	r3, .L56+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L56+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	bl	drawtext
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-20]
.L52:
	ldr	r3, .L56+40
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L53
	b	.L54
.L55:
	ldr	r3, .L56
	ldr	r3, [r3]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L56+44
	bl	fwrite
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L54:
	ldr	r3, .L56+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L55
	bl	resetline
	ldr	r3, .L56
	ldr	r4, [r3]
	ldr	r3, .L56+52
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L56+28
	bl	textwn
	mov	r3, r0
	ldr	r2, .L56+20
	ldr	r2, [r2]
	add	r3, r3, r2
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L56+56
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L56
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L57:
	.align	2
.L56:
	.word	stderr
	.word	.LC3
	.word	.LC7
	.word	.LC8
	.word	prompt
	.word	promptw
	.word	mw
	.word	text
	.word	curr
	.word	sel
	.word	next
	.word	.LC9
	.word	lines
	.word	cursor
	.word	.LC10
	.size	drawmenu, .-drawmenu
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fstrstr, %function
fstrstr:
	@ 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]
	ldr	r0, [fp, #-20]
	bl	strlen
	str	r0, [fp, #-8]
	b	.L59
.L62:
	ldr	r3, .L63
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	blx	r3
	mov	r3, r0
	cmp	r3, #0
	bne	.L60
	ldr	r3, [fp, #-16]
	b	.L61
.L60:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L59:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L62
	mov	r3, #0
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	fstrncmp
	.size	fstrstr, .-fstrstr
	.section	.rodata
	.align	2
.LC11:
	.ascii	" \000"
	.align	2
.LC12:
	.ascii	"Can't realloc.\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	match, %function
match:
	@ args = 0, pretend = 0, frame = 8240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #52
	ldr	r3, .L93
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L93+4
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L93+8
	mov	r0, r3
	bl	strtok
	str	r0, [r4, #-28]
	b	.L66
.L68:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	add	r3, r3, #1
	str	r3, [r2, #-20]
	ldr	r3, .L93+12
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-20]
	cmp	r2, r3
	ble	.L67
	ldr	r3, .L93+16
	ldr	r2, [r3]
	ldr	r3, .L93+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r1, .L93+12
	str	r3, [r1]
	ldr	r3, .L93+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	ldr	r2, .L93+16
	str	r3, [r2]
	ldr	r3, .L93+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L67
	ldr	r0, .L93+20
	bl	die
.L67:
	ldr	r3, .L93+16
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-28]
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L93+8
	mov	r0, #0
	bl	strtok
	str	r0, [r4, #-28]
.L66:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	bne	.L68
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #0
	beq	.L69
	ldr	r3, .L93+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	b	.L70
.L69:
	mov	r3, #0
.L70:
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-36]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	ldr	r2, .L93+24
	str	r3, [r2]
	ldr	r3, .L93+24
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-44]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldr	r2, .L93+28
	str	r3, [r2]
	ldr	r0, .L93+4
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	add	r3, r3, #1
	str	r3, [r2, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L93+32
	ldr	r3, [r3]
	str	r3, [r2, #-16]
	b	.L71
.L83:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-24]
	b	.L72
.L76:
	ldr	r3, .L93+16
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L73
	ldr	r3, .L93+16
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L74
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldr	r0, [r3]
	ldr	r3, .L93+16
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r1, r3
	bl	fstrstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L74
	b	.L75
.L73:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldr	r0, [r3]
	ldr	r3, .L93+16
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	fstrstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L91
.L74:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	add	r3, r3, #1
	str	r3, [r2, #-24]
.L72:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-24]
	ldr	r3, [r3, #-20]
	cmp	r2, r3
	blt	.L76
	b	.L75
.L91:
	nop
.L75:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-24]
	ldr	r3, [r3, #-20]
	cmp	r2, r3
	bne	.L92
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #0
	beq	.L79
	ldr	r3, .L93+36
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	ldr	r1, [r2]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-8]
	ldr	r0, .L93+4
	blx	r3
	mov	r3, r0
	cmp	r3, #0
	bne	.L80
.L79:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, .L93+24
	ldr	r1, .L93+28
	ldr	r0, [r3, #-16]
	bl	appenditem
	b	.L78
.L80:
	ldr	r3, .L93+36
	ldr	r3, [r3]
	ldr	r2, .L93+16
	ldr	r2, [r2]
	ldr	r0, [r2]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	ldr	r1, [r2]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-12]
	blx	r3
	mov	r3, r0
	cmp	r3, #0
	bne	.L81
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r2, r2, #36
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #44
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	appenditem
	b	.L78
.L81:
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r2, r2, #32
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #40
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	appenditem
	b	.L78
.L92:
	nop
.L78:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r3, #12
	str	r3, [r2, #-16]
.L71:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	beq	.L82
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L83
.L82:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	beq	.L84
	ldr	r3, .L93+28
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L85
	ldr	r3, .L93+24
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-44]
	str	r2, [r3, #8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldr	r2, .L93+24
	ldr	r2, [r2]
	str	r2, [r3, #4]
	b	.L86
.L85:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldr	r2, .L93+28
	str	r3, [r2]
.L86:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	ldr	r2, .L93+24
	str	r3, [r2]
.L84:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r3, #0
	beq	.L87
	ldr	r3, .L93+28
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L88
	ldr	r3, .L93+24
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-40]
	str	r2, [r3, #8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r2, .L93+24
	ldr	r2, [r2]
	str	r2, [r3, #4]
	b	.L89
.L88:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r2, .L93+28
	str	r3, [r2]
.L89:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r2, .L93+24
	str	r3, [r2]
.L87:
	ldr	r3, .L93+28
	ldr	r3, [r3]
	ldr	r2, .L93+40
	str	r3, [r2]
	ldr	r3, .L93+40
	ldr	r3, [r3]
	ldr	r2, .L93+44
	str	r3, [r2]
	bl	calcoffsets
	nop
	ldr	r3, .L93
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L90
	bl	__stack_chk_fail
.L90:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L94:
	.align	2
.L93:
	.word	.LC13
	.word	text
	.word	.LC11
	.word	tokn.6308
	.word	tokv.6307
	.word	.LC12
	.word	matchend
	.word	matches
	.word	items
	.word	fstrncmp
	.word	sel
	.word	curr
	.size	match, .-match
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r0, .L100
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #8192
	bcs	.L99
	ldr	r3, .L100+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, .L100
	add	r0, r3, r2
	ldr	r3, .L100+4
	ldr	r3, [r3]
	ldr	r2, .L100
	add	r1, r3, r2
	ldr	r3, [fp, #-12]
	bic	r3, r3, r3, asr #31
	mov	r2, r3
	ldr	r3, .L100+4
	ldr	r3, [r3]
	add	r3, r2, r3
	rsb	r3, r3, #8192
	mov	r2, r3
	bl	memmove
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L98
	ldr	r3, .L100+4
	ldr	r3, [r3]
	ldr	r2, .L100
	add	r3, r3, r2
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	memcpy
.L98:
	ldr	r3, .L100+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, .L100+4
	str	r3, [r2]
	bl	match
	b	.L95
.L99:
	nop
.L95:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L101:
	.align	2
.L100:
	.word	text
	.word	cursor
	.size	insert, .-insert
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nextrune, %function
nextrune:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, .L107
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	b	.L103
.L105:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L103:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	cmp	r3, #0
	blt	.L104
	ldr	r2, .L107+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #192
	cmp	r3, #128
	beq	.L105
.L104:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L108:
	.align	2
.L107:
	.word	cursor
	.word	text
	.size	nextrune, .-nextrune
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Can't strdup.\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	readstdin, %function
readstdin:
	@ args = 0, pretend = 0, frame = 8216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #28
	ldr	r3, .L118
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	b	.L110
.L115:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	add	r2, r3, #1
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	ldr	r1, .L118+4
	umull	r0, r3, r1, r3
	lsr	r3, r3, #3
	cmp	r2, r3
	bcc	.L111
	ldr	r3, .L118+8
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	add	r3, r3, #8192
	str	r3, [r1, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-12]
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	ldr	r2, .L118+8
	str	r3, [r2]
	ldr	r3, .L118+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L111
	ldr	r0, .L118+12
	bl	die
.L111:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #10
	mov	r0, r3
	bl	strchr
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	beq	.L112
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	mov	r2, #0
	strb	r2, [r3]
.L112:
	ldr	r3, .L118+8
	ldr	r1, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r4, r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L113
	ldr	r0, .L118+16
	bl	die
.L113:
	ldr	r3, .L118+8
	ldr	r1, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, r2
	bcs	.L114
	ldr	r3, .L118+8
	ldr	r1, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-24]
	bl	textw
	str	r0, [r4, #-16]
.L114:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	add	r3, r3, #1
	str	r3, [r2, #-20]
.L110:
	ldr	r3, .L118+20
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #8192
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L115
	ldr	r3, .L118+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L116
	ldr	r3, .L118+8
	ldr	r1, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
.L116:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-24]
	bl	textw
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L118+24
	str	r2, [r3]
	nop
	ldr	r3, .L118
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L117
	bl	__stack_chk_fail
.L117:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L119:
	.align	2
.L118:
	.word	.LC15
	.word	-1431655765
	.word	items
	.word	.LC12
	.word	.LC14
	.word	stdin
	.word	inputw
	.size	readstdin, .-readstdin
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Can not read.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xread, %function
xread:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L121
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L123
.L121:
	ldr	r0, .L124
	bl	die
.L123:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L125:
	.align	2
.L124:
	.word	.LC16
	.size	xread, .-xread
	.section	.rodata
	.align	2
.LC17:
	.ascii	"r\000"
	.align	2
.LC18:
	.ascii	"/dev/tty\000"
	.align	2
.LC19:
	.ascii	"Can't reopen tty as stdin.\000"
	.align	2
.LC20:
	.ascii	"w\000"
	.align	2
.LC21:
	.ascii	"Can't reopen tty as stderr.\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup, %function
setup:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L136
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L136+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L136+8
	ldr	r0, .L136+12
	bl	freopen
	mov	r3, r0
	cmp	r3, #0
	bne	.L127
	ldr	r0, .L136+16
	bl	die
.L127:
	ldr	r3, .L136+20
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L136+24
	ldr	r0, .L136+12
	bl	freopen
	mov	r3, r0
	cmp	r3, #0
	bne	.L128
	ldr	r0, .L136+28
	bl	die
.L128:
	mov	r1, #2
	ldr	r0, .L136+12
	bl	open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L129
	ldr	r3, .L136+32
	mov	r2, #24
	str	r2, [r3]
	ldr	r3, .L136+36
	mov	r2, #80
	str	r2, [r3]
	b	.L130
.L129:
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L136+40
	ldr	r0, [fp, #-20]
	bl	ioctl
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	close
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L131
	ldr	r3, .L136+36
	mov	r2, #80
	str	r2, [r3]
	ldr	r3, .L136+32
	mov	r2, #24
	str	r2, [r3]
	b	.L130
.L131:
	ldrh	r3, [fp, #-14]
	mov	r2, r3
	ldr	r3, .L136+36
	str	r2, [r3]
	ldrh	r3, [fp, #-16]
	mov	r2, r3
	ldr	r3, .L136+32
	str	r2, [r3]
.L130:
	ldr	r1, .L136+44
	mov	r0, #0
	bl	tcgetattr
	ldr	r2, .L136+48
	ldr	r3, .L136+44
	mov	ip, r2
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, .L136+48
	ldr	r3, [r3]
	bic	r3, r3, #1504
	bic	r3, r3, #10
	ldr	r2, .L136+48
	str	r3, [r2]
	ldr	r3, .L136+48
	ldr	r3, [r3, #12]
	bic	r3, r3, #32768
	bic	r3, r3, #75
	ldr	r2, .L136+48
	str	r3, [r2, #12]
	ldr	r3, .L136+48
	ldr	r3, [r3, #8]
	bic	r3, r3, #304
	ldr	r2, .L136+48
	str	r3, [r2, #8]
	ldr	r3, .L136+48
	ldr	r3, [r3, #8]
	orr	r3, r3, #48
	ldr	r2, .L136+48
	str	r3, [r2, #8]
	ldr	r3, .L136+48
	mov	r2, #1
	strb	r2, [r3, #23]
	ldr	r2, .L136+48
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	ldr	r3, .L136+32
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L136+52
	ldr	r3, [r3]
	bic	r3, r3, r3, asr #31
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	ldr	r2, .L136+52
	str	r3, [r2]
	ldr	r3, .L136+52
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L132
	ldr	r3, .L136+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L136+52
	str	r3, [r2]
.L132:
	ldr	r3, .L136+56
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L133
	ldr	r3, .L136+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	textw
	mov	r3, r0
	b	.L134
.L133:
	mov	r3, #0
.L134:
	ldr	r2, .L136+60
	str	r3, [r2]
	ldr	r3, .L136+36
	ldr	r3, [r3]
	ldr	r2, .L136+64
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, .L136+68
	ldr	r3, [r3]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	ldr	r2, .L136+68
	str	r3, [r2]
	bl	match
	bl	drawmenu
	nop
	ldr	r3, .L136
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L135
	bl	__stack_chk_fail
.L135:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L137:
	.align	2
.L136:
	.word	.LC22
	.word	stdin
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	stderr
	.word	.LC20
	.word	.LC21
	.word	mh
	.word	mw
	.word	21523
	.word	tio_old
	.word	tio_new
	.word	lines
	.word	prompt
	.word	promptw
	.word	1431655766
	.word	inputw
	.size	setup, .-setup
	.section	.rodata
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L239
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L222:
	sub	r3, fp, #41
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	xread
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	strb	r3, [fp, #-40]
.L139:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	sub	r3, r3, #1
	cmp	r3, #126
	ldrls	pc, [pc, r3, asl #2]
	b	.L140
.L142:
	.word	.L158
	.word	.L157
	.word	.L156
	.word	.L155
	.word	.L154
	.word	.L153
	.word	.L140
	.word	.L141
	.word	.L152
	.word	.L150
	.word	.L151
	.word	.L140
	.word	.L150
	.word	.L149
	.word	.L140
	.word	.L148
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L147
	.word	.L146
	.word	.L214
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L144
	.word	.L143
	.word	.L143
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L140
	.word	.L141
.L144:
	sub	r3, fp, #41
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	xread
.L159:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #27
	beq	.L160
	cmp	r3, #27
	blt	.L225
	cmp	r3, #118
	bgt	.L225
	cmp	r3, #91
	blt	.L225
	sub	r3, r3, #91
	cmp	r3, #27
	ldrls	pc, [pc, r3, asl #2]
	b	.L225
.L163:
	.word	.L167
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L183
	.word	.L225
	.word	.L194
	.word	.L225
	.word	.L189
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L225
	.word	.L162
.L160:
	mov	r3, #3
	strb	r3, [fp, #-41]
	b	.L139
.L167:
	sub	r3, fp, #41
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	xread
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	sub	r3, r3, #49
	cmp	r3, #23
	ldrls	pc, [pc, r3, asl #2]
	b	.L226
.L170:
	.word	.L169
	.word	.L179
	.word	.L178
	.word	.L171
	.word	.L177
	.word	.L176
	.word	.L169
	.word	.L171
	.word	.L226
	.word	.L226
	.word	.L226
	.word	.L226
	.word	.L226
	.word	.L226
	.word	.L226
	.word	.L226
	.word	.L175
	.word	.L174
	.word	.L173
	.word	.L172
	.word	.L226
	.word	.L171
	.word	.L226
	.word	.L169
.L169:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #72
	beq	.L180
	sub	r3, fp, #41
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	xread
.L180:
	mov	r3, #1
	strb	r3, [fp, #-41]
	b	.L139
.L179:
	sub	r3, fp, #41
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	xread
	mov	r3, #25
	strb	r3, [fp, #-41]
	b	.L139
.L178:
	sub	r3, fp, #41
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	xread
	mov	r3, #4
	strb	r3, [fp, #-41]
	b	.L139
.L171:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #70
	beq	.L181
	sub	r3, fp, #41
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	xread
.L181:
	mov	r3, #5
	strb	r3, [fp, #-41]
	b	.L139
.L177:
	sub	r3, fp, #41
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	xread
	mov	r3, #22
	strb	r3, [fp, #-41]
	b	.L139
.L176:
	sub	r3, fp, #41
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	xread
	mov	r3, #118
	strb	r3, [fp, #-41]
	b	.L159
.L175:
	mov	r3, #16
	strb	r3, [fp, #-41]
	b	.L139
.L174:
	mov	r3, #14
	strb	r3, [fp, #-41]
	b	.L139
.L173:
	mov	r3, #6
	strb	r3, [fp, #-41]
	b	.L139
.L172:
	mov	r3, #2
	strb	r3, [fp, #-41]
	b	.L139
.L185:
	mvn	r0, #0
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+4
	str	r3, [r2]
.L183:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L186
	mvn	r0, #0
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L185
	b	.L186
.L188:
	mvn	r0, #0
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+4
	str	r3, [r2]
.L186:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L227
	mvn	r0, #0
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L188
	b	.L227
.L191:
	mov	r0, #1
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+4
	str	r3, [r2]
.L189:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L190
	mov	r0, #1
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L191
.L190:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L228
.L193:
	mov	r0, #1
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+4
	str	r3, [r2]
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L228
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L193
	b	.L228
.L196:
	mov	r0, #1
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+4
	str	r3, [r2]
	mvn	r0, #0
	bl	nextrune
	mov	r2, r0
	ldr	r3, .L239+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r1, r3
	mov	r0, #0
	bl	insert
.L194:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L195
	mov	r0, #1
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L196
.L195:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L229
.L198:
	mov	r0, #1
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+4
	str	r3, [r2]
	mvn	r0, #0
	bl	nextrune
	mov	r2, r0
	ldr	r3, .L239+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r1, r3
	mov	r0, #0
	bl	insert
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L229
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L198
	b	.L229
.L162:
	ldr	r3, .L239+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L230
	ldr	r3, .L239+12
	ldr	r3, [r3]
	ldr	r2, .L239+16
	str	r3, [r2]
	ldr	r3, .L239+16
	ldr	r3, [r3]
	ldr	r2, .L239+20
	str	r3, [r2]
	bl	calcoffsets
	b	.L182
.L225:
	nop
	b	.L200
.L226:
	nop
	b	.L200
.L227:
	nop
	b	.L200
.L228:
	nop
	b	.L200
.L229:
	nop
	b	.L200
.L230:
	nop
.L182:
	b	.L200
.L156:
	mov	r3, #1
	b	.L223
.L150:
	ldr	r3, .L239+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L202
	ldr	r3, .L239+20
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, .L239+24
	mov	r1, r3
	ldr	r0, .L239+8
	bl	strncpy
.L202:
	ldr	r0, .L239+8
	bl	strlen
	mov	r3, r0
	ldr	r2, .L239+4
	str	r3, [r2]
	bl	match
	bl	drawmenu
.L143:
	ldr	r0, .L239+8
	bl	puts
	mov	r3, #0
	b	.L223
.L158:
	ldr	r3, .L239+20
	ldr	r2, [r3]
	ldr	r3, .L239+28
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L203
	ldr	r3, .L239+4
	mov	r2, #0
	str	r2, [r3]
	b	.L200
.L203:
	ldr	r3, .L239+28
	ldr	r3, [r3]
	ldr	r2, .L239+16
	str	r3, [r2]
	ldr	r3, .L239+16
	ldr	r3, [r3]
	ldr	r2, .L239+20
	str	r3, [r2]
	bl	calcoffsets
	b	.L200
.L154:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L204
	ldr	r0, .L239+8
	bl	strlen
	mov	r3, r0
	ldr	r2, .L239+4
	str	r3, [r2]
	b	.L200
.L204:
	ldr	r3, .L239+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L205
	ldr	r3, .L239+32
	ldr	r3, [r3]
	ldr	r2, .L239+16
	str	r3, [r2]
	bl	calcoffsets
	ldr	r3, .L239+36
	ldr	r3, [r3]
	ldr	r2, .L239+16
	str	r3, [r2]
	bl	calcoffsets
	b	.L206
.L207:
	bl	calcoffsets
.L206:
	ldr	r3, .L239+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L205
	ldr	r3, .L239+16
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L239+16
	str	r3, [r2]
	ldr	r3, .L239+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L207
.L205:
	ldr	r3, .L239+32
	ldr	r3, [r3]
	ldr	r2, .L239+20
	str	r3, [r2]
	b	.L200
.L157:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L148
	mvn	r0, #0
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+4
	str	r3, [r2]
	b	.L200
.L148:
	ldr	r3, .L239+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L231
	ldr	r3, .L239+20
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L231
	ldr	r3, .L239+20
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L239+20
	str	r3, [r2]
	ldr	r3, .L239+20
	ldr	r3, [r3]
	ldr	r2, [r3, #8]
	ldr	r3, .L239+16
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L231
	ldr	r3, .L239+36
	ldr	r3, [r3]
	ldr	r2, .L239+16
	str	r3, [r2]
	bl	calcoffsets
	b	.L231
.L153:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L149
	mov	r0, #1
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+4
	str	r3, [r2]
	b	.L200
.L149:
	ldr	r3, .L239+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L232
	ldr	r3, .L239+20
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L232
	ldr	r3, .L239+20
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L239+20
	str	r3, [r2]
	ldr	r3, .L239+20
	ldr	r2, [r3]
	ldr	r3, .L239+12
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L232
	ldr	r3, .L239+12
	ldr	r3, [r3]
	ldr	r2, .L239+16
	str	r3, [r2]
	bl	calcoffsets
	b	.L232
.L155:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L210
	ldr	r3, .L239+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L233
	mov	r3, #1
	b	.L223
.L210:
	mov	r0, #1
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+4
	str	r3, [r2]
.L141:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L234
	mvn	r0, #0
	bl	nextrune
	mov	r2, r0
	ldr	r3, .L239+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r1, r3
	mov	r0, #0
	bl	insert
	b	.L200
.L152:
	ldr	r3, .L239+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L235
	ldr	r3, .L239+20
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, #8192
	mov	r1, r3
	ldr	r0, .L239+8
	bl	strncpy
	ldr	r0, .L239+8
	bl	strlen
	mov	r3, r0
	ldr	r2, .L239+4
	str	r3, [r2]
	bl	match
	b	.L200
.L147:
	ldr	r3, .L239+4
	mov	r2, #0
	str	r2, [r3]
.L151:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r2, .L239+8
	mov	r1, #0
	strb	r1, [r2, r3]
	bl	match
	b	.L200
.L216:
	mvn	r0, #0
	bl	nextrune
	mov	r2, r0
	ldr	r3, .L239+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r1, r3
	mov	r0, #0
	bl	insert
.L214:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L217
	mvn	r0, #0
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L216
	b	.L217
.L219:
	mvn	r0, #0
	bl	nextrune
	mov	r2, r0
	ldr	r3, .L239+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r1, r3
	mov	r0, #0
	bl	insert
.L217:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L236
	mvn	r0, #0
	bl	nextrune
	mov	r3, r0
	ldr	r2, .L239+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L219
	b	.L236
.L146:
	ldr	r3, .L239+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L237
	ldr	r3, .L239+36
	ldr	r3, [r3]
	ldr	r2, .L239+16
	str	r3, [r2]
	ldr	r3, .L239+16
	ldr	r3, [r3]
	ldr	r2, .L239+20
	str	r3, [r2]
	bl	calcoffsets
	b	.L200
.L140:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-40]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	bne	.L238
	sub	r3, fp, #40
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	insert
	b	.L238
.L231:
	nop
	b	.L200
.L232:
	nop
	b	.L200
.L233:
	nop
	b	.L200
.L234:
	nop
	b	.L200
.L235:
	nop
	b	.L200
.L236:
	nop
	b	.L200
.L237:
	nop
	b	.L200
.L238:
	nop
.L200:
	bl	drawmenu
	b	.L222
.L223:
	ldr	r2, .L239
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L224
	bl	__stack_chk_fail
.L224:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L240:
	.align	2
.L239:
	.word	.LC23
	.word	cursor
	.word	text
	.word	next
	.word	curr
	.word	sel
	.word	8191
	.word	matches
	.word	matchend
	.word	prev
	.size	run, .-run
	.section	.rodata
	.align	2
.LC24:
	.ascii	"usage: vmenu [-i] [-l lines] [-p prompt] [initial s"
	.ascii	"election]\012\000"
	.text
	.align	2
	.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, .L242
	ldr	r3, [r3]
	mov	r2, #61
	mov	r1, #1
	ldr	r0, .L242+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L243:
	.align	2
.L242:
	.word	stderr
	.word	.LC24
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC25:
	.ascii	"ip:l:\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]
	b	.L245
.L252:
	ldr	r3, [fp, #-12]
	cmp	r3, #112
	beq	.L246
	ldr	r3, [fp, #-12]
	cmp	r3, #112
	bgt	.L247
	ldr	r3, [fp, #-12]
	cmp	r3, #105
	beq	.L248
	ldr	r3, [fp, #-12]
	cmp	r3, #108
	beq	.L249
	b	.L247
.L248:
	ldr	r3, .L256
	ldr	r2, .L256+4
	str	r2, [r3]
	b	.L245
.L246:
	ldr	r3, .L256+8
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L250
	ldr	r3, .L256+8
	ldr	r3, [r3]
	b	.L251
.L250:
	mov	r3, #0
.L251:
	ldr	r2, .L256+12
	str	r3, [r2]
	b	.L245
.L249:
	ldr	r3, .L256+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L256+16
	str	r3, [r2]
	b	.L245
.L247:
	bl	usage
.L245:
	ldr	r2, .L256+20
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getopt
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L252
	ldr	r3, .L256+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L253
	bl	usage
.L253:
	ldr	r3, .L256+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L254
	ldr	r3, .L256+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L256+28
	mov	r1, r3
	ldr	r0, .L256+32
	bl	strncpy
	ldr	r0, .L256+32
	bl	strlen
	mov	r3, r0
	ldr	r2, .L256+36
	str	r3, [r2]
.L254:
	bl	readstdin
	bl	setup
	bl	run
	str	r0, [fp, #-8]
	bl	cleanup
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L257:
	.align	2
.L256:
	.word	fstrncmp
	.word	strncmp
	.word	optarg
	.word	prompt
	.word	lines
	.word	.LC25
	.word	optind
	.word	8191
	.word	text
	.word	cursor
	.size	main, .-main
	.local	tokn.6308
	.comm	tokn.6308,4,4
	.local	tokv.6307
	.comm	tokv.6307,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
