	.file	"103266009.c"
	.intel_syntax noprefix
	.text
	.globl	E
	.bss
	.align 32
	.type	E, @object
	.size	E, 104
E:
	.zero	104
	.section	.rodata
.LC0:
	.string	"\033[2J"
.LC1:
	.string	"\033[H"
	.text
	.globl	die
	.type	die, @function
die:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	edx, 4
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	write@PLT
	mov	edx, 3
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	write@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	die, .-die
	.section	.rodata
.LC2:
	.string	"tcsetattr"
	.text
	.globl	disableRawMode
	.type	disableRawMode, @function
disableRawMode:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdx, E[rip+40]
	mov	esi, 2
	mov	edi, 0
	call	tcsetattr@PLT
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	die
.L4:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	disableRawMode, .-disableRawMode
	.section	.rodata
.LC3:
	.string	"tcgetattr"
	.text
	.globl	enableRawMode
	.type	enableRawMode, @function
enableRawMode:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, E[rip+40]
	mov	edi, 0
	call	tcgetattr@PLT
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC3[rip]
	call	die
.L6:
	lea	rdi, disableRawMode[rip]
	call	atexit@PLT
	mov	rax, QWORD PTR E[rip+40]
	mov	rdx, QWORD PTR E[rip+48]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR E[rip+56]
	mov	rdx, QWORD PTR E[rip+64]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR E[rip+72]
	mov	rdx, QWORD PTR E[rip+80]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR E[rip+88]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR E[rip+96]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	and	eax, -1331
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	and	eax, -2
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	or	eax, 48
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -32780
	mov	DWORD PTR -68[rbp], eax
	mov	BYTE PTR -57[rbp], 0
	mov	BYTE PTR -58[rbp], 1
	lea	rax, -80[rbp]
	mov	rdx, rax
	mov	esi, 2
	mov	edi, 0
	call	tcsetattr@PLT
	cmp	eax, -1
	jne	.L9
	lea	rdi, .LC2[rip]
	call	die
.L9:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	enableRawMode, .-enableRawMode
	.section	.rodata
.LC4:
	.string	"read"
	.text
	.globl	editorReadKey
	.type	editorReadKey, @function
editorReadKey:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L11
.L12:
	cmp	DWORD PTR -16[rbp], -1
	jne	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L11
	lea	rdi, .LC4[rip]
	call	die
.L11:
	lea	rax, -17[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 1
	jne	.L12
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 27
	jne	.L13
	lea	rax, -11[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	cmp	rax, 1
	je	.L14
	mov	eax, 27
	jmp	.L40
.L14:
	lea	rax, -11[rbp]
	add	rax, 1
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	cmp	rax, 1
	je	.L16
	mov	eax, 27
	jmp	.L40
.L16:
	movzx	eax, BYTE PTR -11[rbp]
	cmp	al, 91
	jne	.L17
	movzx	eax, BYTE PTR -10[rbp]
	cmp	al, 47
	jle	.L18
	movzx	eax, BYTE PTR -10[rbp]
	cmp	al, 57
	jg	.L18
	lea	rax, -11[rbp]
	add	rax, 2
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	read@PLT
	cmp	rax, 1
	je	.L19
	mov	eax, 27
	jmp	.L40
.L19:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 62
	jne	.L42
	movzx	eax, BYTE PTR -10[rbp]
	movsx	eax, al
	sub	eax, 49
	cmp	eax, 7
	ja	.L42
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L22[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L22[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L22:
	.long	.L28-.L22
	.long	.L42-.L22
	.long	.L27-.L22
	.long	.L26-.L22
	.long	.L25-.L22
	.long	.L24-.L22
	.long	.L23-.L22
	.long	.L21-.L22
	.text
.L28:
	mov	eax, 1005
	jmp	.L40
.L27:
	mov	eax, 1004
	jmp	.L40
.L26:
	mov	eax, 1006
	jmp	.L40
.L25:
	mov	eax, 1007
	jmp	.L40
.L24:
	mov	eax, 1008
	jmp	.L40
.L23:
	mov	eax, 1005
	jmp	.L40
.L21:
	mov	eax, 1005
	jmp	.L40
.L18:
	movzx	eax, BYTE PTR -10[rbp]
	movsx	eax, al
	sub	eax, 65
	cmp	eax, 7
	ja	.L37
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L31[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L31[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L31:
	.long	.L36-.L31
	.long	.L35-.L31
	.long	.L34-.L31
	.long	.L33-.L31
	.long	.L37-.L31
	.long	.L32-.L31
	.long	.L37-.L31
	.long	.L30-.L31
	.text
.L36:
	mov	eax, 1002
	jmp	.L40
.L35:
	mov	eax, 1003
	jmp	.L40
.L34:
	mov	eax, 1001
	jmp	.L40
.L33:
	mov	eax, 1000
	jmp	.L40
.L30:
	mov	eax, 1005
	jmp	.L40
.L32:
	mov	eax, 1006
	jmp	.L40
.L17:
	movzx	eax, BYTE PTR -11[rbp]
	cmp	al, 48
	jne	.L37
	movzx	eax, BYTE PTR -10[rbp]
	movsx	eax, al
	cmp	eax, 70
	je	.L38
	cmp	eax, 72
	jne	.L37
	mov	eax, 1005
	jmp	.L40
.L38:
	mov	eax, 1006
	jmp	.L40
.L42:
	nop
.L37:
	mov	eax, 27
	jmp	.L40
.L13:
	movzx	eax, BYTE PTR -17[rbp]
	movsx	eax, al
.L40:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	editorReadKey, .-editorReadKey
	.section	.rodata
.LC5:
	.string	"\033[6n"
.LC6:
	.string	"%d;%d"
	.text
	.globl	getCursorPosition
	.type	getCursorPosition, @function
getCursorPosition:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	edi, 1
	call	write@PLT
	cmp	rax, 4
	je	.L46
	mov	eax, -1
	jmp	.L54
.L50:
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	add	rax, rdx
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	cmp	rax, 1
	jne	.L56
	mov	eax, DWORD PTR -52[rbp]
	movzx	eax, BYTE PTR -48[rbp+rax]
	cmp	al, 82
	je	.L57
	add	DWORD PTR -52[rbp], 1
.L46:
	cmp	DWORD PTR -52[rbp], 30
	jbe	.L50
	jmp	.L48
.L56:
	nop
	jmp	.L48
.L57:
	nop
.L48:
	mov	eax, DWORD PTR -52[rbp]
	mov	BYTE PTR -48[rbp+rax], 0
	movzx	eax, BYTE PTR -48[rbp]
	cmp	al, 27
	jne	.L51
	movzx	eax, BYTE PTR -47[rbp]
	cmp	al, 91
	je	.L52
.L51:
	mov	eax, -1
	jmp	.L54
.L52:
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rcx, -48[rbp]
	lea	rdi, 2[rcx]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 2
	je	.L53
	mov	eax, -1
	jmp	.L54
.L53:
	mov	eax, 0
.L54:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	getCursorPosition, .-getCursorPosition
	.section	.rodata
.LC7:
	.string	"\033[999C\033[999B"
	.text
	.globl	getWindowSize
	.type	getWindowSize, @function
getWindowSize:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	rdx, rax
	mov	esi, 21523
	mov	edi, 1
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	je	.L59
	movzx	eax, WORD PTR -14[rbp]
	test	ax, ax
	jne	.L60
.L59:
	mov	edx, 12
	lea	rsi, .LC7[rip]
	mov	edi, 1
	call	write@PLT
	cmp	rax, 12
	je	.L61
	mov	eax, -1
	jmp	.L63
.L61:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getCursorPosition
	jmp	.L63
.L60:
	movzx	eax, WORD PTR -14[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	movzx	eax, WORD PTR -16[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L63:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	getWindowSize, .-getWindowSize
	.globl	editorAppendRow
	.type	editorAppendRow, @function
editorAppendRow:
.LFB12:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	eax, DWORD PTR E[rip+24]
	add	eax, 1
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR E[rip+32]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR E[rip+32], rax
	mov	eax, DWORD PTR E[rip+24]
	mov	DWORD PTR -20[rbp], eax
	mov	rdx, QWORD PTR E[rip+32]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	rcx, QWORD PTR E[rip+32]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	sal	rdx, 4
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdx, QWORD PTR E[rip+32]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rdx, QWORD PTR E[rip+32]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR E[rip+24]
	add	eax, 1
	mov	DWORD PTR E[rip+24], eax
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	editorAppendRow, .-editorAppendRow
	.section	.rodata
.LC8:
	.string	"r"
.LC9:
	.string	"fopen"
	.text
	.globl	editorOpen
	.type	editorOpen, @function
editorOpen:
.LFB13:
	.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 -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L67
	lea	rdi, .LC9[rip]
	call	die
.L67:
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, -32[rbp]
	lea	rax, -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -24[rbp], rax
	jmp	.L68
.L71:
	sub	QWORD PTR -24[rbp], 1
.L69:
	cmp	QWORD PTR -24[rbp], 0
	jle	.L70
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L71
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	je	.L71
.L70:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	editorAppendRow
.L68:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, -32[rbp]
	lea	rax, -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], -1
	jne	.L69
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	editorOpen, .-editorOpen
	.globl	abAppend
	.type	abAppend, @function
abAppend:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L77
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	movsx	rcx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -36[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	jmp	.L74
.L77:
	nop
.L74:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	abAppend, .-abAppend
	.globl	abFree
	.type	abFree, @function
abFree:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	abFree, .-abFree
	.globl	editorScroll
	.type	editorScroll, @function
editorScroll:
.LFB16:
	.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 E[rip+4]
	mov	eax, DWORD PTR E[rip+8]
	cmp	edx, eax
	jge	.L80
	mov	eax, DWORD PTR E[rip+4]
	mov	DWORD PTR E[rip+8], eax
.L80:
	mov	eax, DWORD PTR E[rip+4]
	mov	ecx, DWORD PTR E[rip+8]
	mov	edx, DWORD PTR E[rip+16]
	add	edx, ecx
	cmp	eax, edx
	jl	.L81
	mov	eax, DWORD PTR E[rip+4]
	mov	edx, DWORD PTR E[rip+16]
	sub	eax, edx
	add	eax, 1
	mov	DWORD PTR E[rip+8], eax
.L81:
	mov	edx, DWORD PTR E[rip]
	mov	eax, DWORD PTR E[rip+12]
	cmp	edx, eax
	jge	.L82
	mov	eax, DWORD PTR E[rip]
	mov	DWORD PTR E[rip+12], eax
.L82:
	mov	eax, DWORD PTR E[rip]
	mov	ecx, DWORD PTR E[rip+12]
	mov	edx, DWORD PTR E[rip+20]
	add	edx, ecx
	cmp	eax, edx
	jl	.L84
	mov	eax, DWORD PTR E[rip]
	mov	edx, DWORD PTR E[rip+20]
	sub	eax, edx
	add	eax, 1
	mov	DWORD PTR E[rip+12], eax
.L84:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	editorScroll, .-editorScroll
	.section	.rodata
.LC10:
	.string	"alpha_0.0.1"
.LC11:
	.string	"FOO editor -- version %s"
.LC12:
	.string	">"
.LC13:
	.string	" "
.LC14:
	.string	"\033[K"
.LC15:
	.string	"\r\n"
	.text
	.globl	editorDrawRows
	.type	editorDrawRows, @function
editorDrawRows:
.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, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -116[rbp], 0
	jmp	.L86
.L98:
	mov	edx, DWORD PTR E[rip+8]
	mov	eax, DWORD PTR -116[rbp]
	add	eax, edx
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR E[rip+24]
	cmp	DWORD PTR -100[rbp], eax
	jl	.L87
	mov	eax, DWORD PTR E[rip+24]
	test	eax, eax
	jne	.L88
	mov	eax, DWORD PTR E[rip+16]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	DWORD PTR -116[rbp], eax
	jne	.L88
	lea	rax, -96[rbp]
	lea	rcx, .LC10[rip]
	lea	rdx, .LC11[rip]
	mov	esi, 80
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -112[rbp], eax
	mov	eax, DWORD PTR E[rip+20]
	cmp	DWORD PTR -112[rbp], eax
	jle	.L89
	mov	eax, DWORD PTR E[rip+20]
	mov	DWORD PTR -112[rbp], eax
.L89:
	mov	eax, DWORD PTR E[rip+20]
	sub	eax, DWORD PTR -112[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	je	.L91
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, 1
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	abAppend
	sub	DWORD PTR -108[rbp], 1
	jmp	.L91
.L92:
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, 1
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	abAppend
.L91:
	mov	eax, DWORD PTR -108[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -108[rbp], edx
	test	eax, eax
	jne	.L92
	mov	edx, DWORD PTR -112[rbp]
	lea	rcx, -96[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	abAppend
	jmp	.L94
.L88:
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, 1
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	abAppend
	jmp	.L94
.L87:
	mov	rdx, QWORD PTR E[rip+32]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR E[rip+12]
	sub	eax, edx
	mov	DWORD PTR -104[rbp], eax
	cmp	DWORD PTR -104[rbp], 0
	jns	.L95
	mov	DWORD PTR -104[rbp], 0
.L95:
	mov	eax, DWORD PTR E[rip+20]
	cmp	DWORD PTR -104[rbp], eax
	jle	.L96
	mov	eax, DWORD PTR E[rip+20]
	mov	DWORD PTR -104[rbp], eax
.L96:
	mov	rdx, QWORD PTR E[rip+32]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR E[rip+12]
	cdqe
	lea	rcx, [rdx+rax]
	mov	edx, DWORD PTR -104[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	abAppend
.L94:
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, 3
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	abAppend
	mov	eax, DWORD PTR E[rip+16]
	sub	eax, 1
	cmp	DWORD PTR -116[rbp], eax
	jge	.L97
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, 2
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	abAppend
.L97:
	add	DWORD PTR -116[rbp], 1
.L86:
	mov	eax, DWORD PTR E[rip+16]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L98
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L99
	call	__stack_chk_fail@PLT
.L99:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	editorDrawRows, .-editorDrawRows
	.section	.rodata
.LC16:
	.string	"\033[?25l"
.LC17:
	.string	"\033[%d;%dH"
.LC18:
	.string	"\033[?25h"
	.text
	.globl	editorRefreshScreen
	.type	editorRefreshScreen, @function
editorRefreshScreen:
.LFB18:
	.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
	mov	eax, 0
	call	editorScroll
	mov	QWORD PTR -64[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	lea	rax, -64[rbp]
	mov	edx, 6
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	abAppend
	lea	rax, -64[rbp]
	mov	edx, 3
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	abAppend
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	editorDrawRows
	mov	eax, DWORD PTR E[rip]
	mov	edx, DWORD PTR E[rip+12]
	sub	eax, edx
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR E[rip+4]
	mov	edx, DWORD PTR E[rip+8]
	sub	eax, edx
	lea	edx, 1[rax]
	lea	rax, -48[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	lea	rdx, .LC17[rip]
	mov	esi, 32
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	lea	rcx, -48[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	abAppend
	lea	rax, -64[rbp]
	mov	edx, 3
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	abAppend
	lea	rax, -64[rbp]
	mov	edx, 6
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	abAppend
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	abFree
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L101
	call	__stack_chk_fail@PLT
.L101:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	editorRefreshScreen, .-editorRefreshScreen
	.globl	editorMoveCursor
	.type	editorMoveCursor, @function
editorMoveCursor:
.LFB19:
	.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 1003
	je	.L103
	cmp	DWORD PTR -4[rbp], 1003
	jg	.L111
	cmp	DWORD PTR -4[rbp], 1002
	je	.L105
	cmp	DWORD PTR -4[rbp], 1002
	jg	.L111
	cmp	DWORD PTR -4[rbp], 1000
	je	.L106
	cmp	DWORD PTR -4[rbp], 1001
	je	.L107
	jmp	.L111
.L106:
	mov	eax, DWORD PTR E[rip]
	test	eax, eax
	je	.L112
	mov	eax, DWORD PTR E[rip]
	sub	eax, 1
	mov	DWORD PTR E[rip], eax
	jmp	.L112
.L107:
	mov	eax, DWORD PTR E[rip]
	add	eax, 1
	mov	DWORD PTR E[rip], eax
	jmp	.L104
.L105:
	mov	eax, DWORD PTR E[rip+4]
	test	eax, eax
	je	.L113
	mov	eax, DWORD PTR E[rip+4]
	sub	eax, 1
	mov	DWORD PTR E[rip+4], eax
	jmp	.L113
.L103:
	mov	edx, DWORD PTR E[rip+4]
	mov	eax, DWORD PTR E[rip+24]
	cmp	edx, eax
	jge	.L114
	mov	eax, DWORD PTR E[rip+4]
	add	eax, 1
	mov	DWORD PTR E[rip+4], eax
	jmp	.L114
.L112:
	nop
	jmp	.L111
.L113:
	nop
	jmp	.L111
.L114:
	nop
.L104:
.L111:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	editorMoveCursor, .-editorMoveCursor
	.globl	editorProcessKeypress
	.type	editorProcessKeypress, @function
editorProcessKeypress:
.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, 16
	mov	eax, 0
	call	editorReadKey
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 1008
	jg	.L126
	cmp	DWORD PTR -4[rbp], 1007
	jge	.L117
	cmp	DWORD PTR -4[rbp], 1006
	je	.L118
	cmp	DWORD PTR -4[rbp], 1006
	jg	.L126
	cmp	DWORD PTR -4[rbp], 1005
	je	.L119
	cmp	DWORD PTR -4[rbp], 1005
	jg	.L126
	cmp	DWORD PTR -4[rbp], 17
	je	.L120
	cmp	DWORD PTR -4[rbp], 17
	jl	.L126
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1000
	cmp	eax, 3
	ja	.L126
	jmp	.L121
.L120:
	mov	edx, 4
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	write@PLT
	mov	edx, 3
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	write@PLT
	mov	edi, 0
	call	exit@PLT
.L119:
	mov	DWORD PTR E[rip], 0
	jmp	.L116
.L118:
	mov	eax, DWORD PTR E[rip+20]
	sub	eax, 1
	mov	DWORD PTR E[rip], eax
	jmp	.L116
.L117:
	mov	eax, DWORD PTR E[rip+16]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L122
.L125:
	cmp	DWORD PTR -4[rbp], 1007
	jne	.L123
	mov	eax, 1002
	jmp	.L124
.L123:
	mov	eax, 1003
.L124:
	mov	edi, eax
	call	editorMoveCursor
.L122:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -8[rbp], edx
	test	eax, eax
	jne	.L125
.L121:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	editorMoveCursor
	nop
.L116:
.L126:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	editorProcessKeypress, .-editorProcessKeypress
	.section	.rodata
.LC19:
	.string	"getWindowSize"
	.text
	.globl	initEditor
	.type	initEditor, @function
initEditor:
.LFB21:
	.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 E[rip], 0
	mov	DWORD PTR E[rip+4], 0
	mov	DWORD PTR E[rip+8], 0
	mov	DWORD PTR E[rip+12], 0
	mov	DWORD PTR E[rip+24], 0
	mov	QWORD PTR E[rip+32], 0
	lea	rsi, E[rip+20]
	lea	rdi, E[rip+16]
	call	getWindowSize
	cmp	eax, -1
	jne	.L129
	lea	rdi, .LC19[rip]
	call	die
.L129:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	initEditor, .-initEditor
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 0
	call	enableRawMode
	mov	eax, 0
	call	initEditor
	cmp	DWORD PTR -4[rbp], 1
	jle	.L132
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	editorOpen
.L132:
	mov	eax, 0
	call	editorRefreshScreen
	mov	eax, 0
	call	editorProcessKeypress
	jmp	.L132
	.cfi_endproc
.LFE22:
	.size	main, .-main
	.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	"103266009.c"
	.text
	.comm	E,92,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\033[2J\000"
	.align	2
.LC1:
	.ascii	"\033[H\000"
	.text
	.align	2
	.global	die
	.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]
	mov	r2, #4
	ldr	r1, .L2
	mov	r0, #1
	bl	write
	mov	r2, #3
	ldr	r1, .L2+4
	mov	r0, #1
	bl	write
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.size	die, .-die
	.section	.rodata
	.align	2
.LC2:
	.ascii	"tcsetattr\000"
	.text
	.align	2
	.global	disableRawMode
	.syntax unified
	.arm
	.fpu softvfp
	.type	disableRawMode, %function
disableRawMode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r2, .L7
	mov	r1, #2
	mov	r0, #0
	bl	tcsetattr
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L7+4
	bl	die
.L6:
	nop
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	E+32
	.word	.LC2
	.size	disableRawMode, .-disableRawMode
	.section	.rodata
	.align	2
.LC3:
	.ascii	"tcgetattr\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	enableRawMode
	.syntax unified
	.arm
	.fpu softvfp
	.type	enableRawMode, %function
enableRawMode:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L14+4
	mov	r0, #0
	bl	tcgetattr
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L14+8
	bl	die
.L10:
	ldr	r0, .L14+12
	bl	atexit
	ldr	r3, .L14+16
	sub	ip, fp, #68
	add	lr, r3, #32
	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, [fp, #-68]
	bic	r3, r3, #1328
	bic	r3, r3, #2
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-64]
	bic	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-60]
	orr	r3, r3, #48
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-56]
	bic	r3, r3, #32768
	bic	r3, r3, #11
	str	r3, [fp, #-56]
	mov	r3, #0
	strb	r3, [fp, #-45]
	mov	r3, #1
	strb	r3, [fp, #-46]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #2
	mov	r0, #0
	bl	tcsetattr
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L14+20
	bl	die
.L13:
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC4
	.word	E+32
	.word	.LC3
	.word	disableRawMode
	.word	E
	.word	.LC2
	.size	enableRawMode, .-enableRawMode
	.section	.rodata
	.align	2
.LC5:
	.ascii	"read\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	editorReadKey
	.syntax unified
	.arm
	.fpu softvfp
	.type	editorReadKey, %function
editorReadKey:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L17
.L18:
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L17
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L17
	ldr	r0, .L49+4
	bl	die
.L17:
	sub	r3, fp, #17
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L18
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #27
	bne	.L19
	sub	r3, fp, #12
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	mov	r3, r0
	cmp	r3, #1
	beq	.L20
	mov	r3, #27
	b	.L46
.L20:
	sub	r3, fp, #12
	add	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	mov	r3, r0
	cmp	r3, #1
	beq	.L22
	mov	r3, #27
	b	.L46
.L22:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L23
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L24
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L24
	sub	r3, fp, #12
	add	r3, r3, #2
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	read
	mov	r3, r0
	cmp	r3, #1
	beq	.L25
	mov	r3, #27
	b	.L46
.L25:
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L48
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	sub	r3, r3, #49
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L48
.L28:
	.word	.L34
	.word	.L48
	.word	.L33
	.word	.L32
	.word	.L31
	.word	.L30
	.word	.L29
	.word	.L27
.L34:
	ldr	r3, .L49+8
	b	.L46
.L33:
	mov	r3, #1004
	b	.L46
.L32:
	ldr	r3, .L49+12
	b	.L46
.L31:
	ldr	r3, .L49+16
	b	.L46
.L30:
	mov	r3, #1008
	b	.L46
.L29:
	ldr	r3, .L49+8
	b	.L46
.L27:
	ldr	r3, .L49+8
	b	.L46
.L24:
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	sub	r3, r3, #65
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L43
.L37:
	.word	.L42
	.word	.L41
	.word	.L40
	.word	.L39
	.word	.L43
	.word	.L38
	.word	.L43
	.word	.L36
.L42:
	ldr	r3, .L49+20
	b	.L46
.L41:
	ldr	r3, .L49+24
	b	.L46
.L40:
	ldr	r3, .L49+28
	b	.L46
.L39:
	mov	r3, #1000
	b	.L46
.L36:
	ldr	r3, .L49+8
	b	.L46
.L38:
	ldr	r3, .L49+12
	b	.L46
.L23:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L43
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	cmp	r3, #70
	beq	.L44
	cmp	r3, #72
	bne	.L43
	ldr	r3, .L49+8
	b	.L46
.L44:
	ldr	r3, .L49+12
	b	.L46
.L48:
	nop
.L43:
	mov	r3, #27
	b	.L46
.L19:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
.L46:
	ldr	r2, .L49
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC6
	.word	.LC5
	.word	1005
	.word	1006
	.word	1007
	.word	1002
	.word	1003
	.word	1001
	.size	editorReadKey, .-editorReadKey
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\033[6n\000"
	.align	2
.LC8:
	.ascii	"%d;%d\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getCursorPosition
	.syntax unified
	.arm
	.fpu softvfp
	.type	getCursorPosition, %function
getCursorPosition:
	@ 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]
	str	r1, [fp, #-52]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r2, #4
	ldr	r1, .L66+4
	mov	r0, #1
	bl	write
	mov	r3, r0
	cmp	r3, #4
	beq	.L54
	mvn	r3, #0
	b	.L62
.L58:
	sub	r2, fp, #40
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	mov	r3, r0
	cmp	r3, #1
	bne	.L64
	sub	r2, fp, #40
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #82
	beq	.L65
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L54:
	ldr	r3, [fp, #-44]
	cmp	r3, #30
	bls	.L58
	b	.L56
.L64:
	nop
	b	.L56
.L65:
	nop
.L56:
	sub	r2, fp, #40
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldrb	r3, [fp, #-40]	@ zero_extendqisi2
	cmp	r3, #27
	bne	.L59
	ldrb	r3, [fp, #-39]	@ zero_extendqisi2
	cmp	r3, #91
	beq	.L60
.L59:
	mvn	r3, #0
	b	.L62
.L60:
	sub	r3, fp, #40
	add	r0, r3, #2
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-48]
	ldr	r1, .L66+8
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L61
	mvn	r3, #0
	b	.L62
.L61:
	mov	r3, #0
.L62:
	ldr	r2, .L66
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC9
	.word	.LC7
	.word	.LC8
	.size	getCursorPosition, .-getCursorPosition
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\033[999C\033[999B\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getWindowSize
	.syntax unified
	.arm
	.fpu softvfp
	.type	getWindowSize, %function
getWindowSize:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L75
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L75+4
	mov	r0, #1
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	beq	.L69
	ldrh	r3, [fp, #-14]
	cmp	r3, #0
	bne	.L70
.L69:
	mov	r2, #12
	ldr	r1, .L75+8
	mov	r0, #1
	bl	write
	mov	r3, r0
	cmp	r3, #12
	beq	.L71
	mvn	r3, #0
	b	.L73
.L71:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	getCursorPosition
	mov	r3, r0
	b	.L73
.L70:
	ldrh	r3, [fp, #-14]
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldrh	r3, [fp, #-16]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	mov	r3, #0
.L73:
	ldr	r2, .L75
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L74
	bl	__stack_chk_fail
.L74:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC11
	.word	21523
	.word	.LC10
	.size	getWindowSize, .-getWindowSize
	.align	2
	.global	editorAppendRow
	.syntax unified
	.arm
	.fpu softvfp
	.type	editorAppendRow, %function
editorAppendRow:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L78
	ldr	r2, [r3, #28]
	ldr	r3, .L78
	ldr	r3, [r3, #24]
	add	r3, r3, #1
	lsl	r3, r3, #3
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	ldr	r2, .L78
	str	r3, [r2, #28]
	ldr	r3, .L78
	ldr	r3, [r3, #24]
	str	r3, [fp, #-16]
	ldr	r3, .L78
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	ldr	r3, .L78
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, .L78
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L78
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L78
	ldr	r3, [r3, #24]
	add	r3, r3, #1
	ldr	r2, .L78
	str	r3, [r2, #24]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L79:
	.align	2
.L78:
	.word	E
	.size	editorAppendRow, .-editorAppendRow
	.section	.rodata
	.align	2
.LC12:
	.ascii	"r\000"
	.align	2
.LC13:
	.ascii	"fopen\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	editorOpen
	.syntax unified
	.arm
	.fpu softvfp
	.type	editorOpen, %function
editorOpen:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L88
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L88+4
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L81
	ldr	r0, .L88+8
	bl	die
.L81:
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r1, fp, #20
	sub	r3, fp, #24
	ldr	r2, [fp, #-12]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-16]
	b	.L82
.L85:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L83:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L84
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L85
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L85
.L84:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	editorAppendRow
.L82:
	sub	r1, fp, #20
	sub	r3, fp, #24
	ldr	r2, [fp, #-12]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L83
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-12]
	bl	fclose
	nop
	ldr	r3, .L88
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L87
	bl	__stack_chk_fail
.L87:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	.LC14
	.word	.LC12
	.word	.LC13
	.size	editorOpen, .-editorOpen
	.align	2
	.global	abAppend
	.syntax unified
	.arm
	.fpu softvfp
	.type	abAppend, %function
abAppend:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	bl	realloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L93
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	b	.L90
.L93:
	nop
.L90:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	abAppend, .-abAppend
	.align	2
	.global	abFree
	.syntax unified
	.arm
	.fpu softvfp
	.type	abFree, %function
abFree:
	@ 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	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	abFree, .-abFree
	.align	2
	.global	editorScroll
	.syntax unified
	.arm
	.fpu softvfp
	.type	editorScroll, %function
editorScroll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L101
	ldr	r2, [r3, #4]
	ldr	r3, .L101
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bge	.L96
	ldr	r3, .L101
	ldr	r3, [r3, #4]
	ldr	r2, .L101
	str	r3, [r2, #8]
.L96:
	ldr	r3, .L101
	ldr	r2, [r3, #4]
	ldr	r3, .L101
	ldr	r1, [r3, #8]
	ldr	r3, .L101
	ldr	r3, [r3, #16]
	add	r3, r1, r3
	cmp	r2, r3
	blt	.L97
	ldr	r3, .L101
	ldr	r2, [r3, #4]
	ldr	r3, .L101
	ldr	r3, [r3, #16]
	sub	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, .L101
	str	r3, [r2, #8]
.L97:
	ldr	r3, .L101
	ldr	r2, [r3]
	ldr	r3, .L101
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bge	.L98
	ldr	r3, .L101
	ldr	r3, [r3]
	ldr	r2, .L101
	str	r3, [r2, #12]
.L98:
	ldr	r3, .L101
	ldr	r2, [r3]
	ldr	r3, .L101
	ldr	r1, [r3, #12]
	ldr	r3, .L101
	ldr	r3, [r3, #20]
	add	r3, r1, r3
	cmp	r2, r3
	blt	.L100
	ldr	r3, .L101
	ldr	r2, [r3]
	ldr	r3, .L101
	ldr	r3, [r3, #20]
	sub	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, .L101
	str	r3, [r2, #12]
.L100:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L102:
	.align	2
.L101:
	.word	E
	.size	editorScroll, .-editorScroll
	.section	.rodata
	.align	2
.LC15:
	.ascii	"alpha_0.0.1\000"
	.align	2
.LC16:
	.ascii	"FOO editor -- version %s\000"
	.align	2
.LC17:
	.ascii	">\000"
	.align	2
.LC18:
	.ascii	" \000"
	.align	2
.LC19:
	.ascii	"\033[K\000"
	.align	2
.LC20:
	.ascii	"\015\012\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	editorDrawRows
	.syntax unified
	.arm
	.fpu softvfp
	.type	editorDrawRows, %function
editorDrawRows:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	ldr	r3, .L118
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L104
.L116:
	ldr	r3, .L118+4
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	str	r3, [fp, #-92]
	ldr	r3, .L118+4
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	blt	.L105
	ldr	r3, .L118+4
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L106
	ldr	r3, .L118+4
	ldr	r3, [r3, #16]
	ldr	r2, .L118+8
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	bne	.L106
	sub	r0, fp, #88
	ldr	r3, .L118+12
	ldr	r2, .L118+16
	mov	r1, #80
	bl	snprintf
	str	r0, [fp, #-104]
	ldr	r3, .L118+4
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	ble	.L107
	ldr	r3, .L118+4
	ldr	r3, [r3, #20]
	str	r3, [fp, #-104]
.L107:
	ldr	r3, .L118+4
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-104]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	beq	.L109
	mov	r2, #1
	ldr	r1, .L118+20
	ldr	r0, [fp, #-112]
	bl	abAppend
	ldr	r3, [fp, #-100]
	sub	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L109
.L110:
	mov	r2, #1
	ldr	r1, .L118+24
	ldr	r0, [fp, #-112]
	bl	abAppend
.L109:
	ldr	r3, [fp, #-100]
	sub	r2, r3, #1
	str	r2, [fp, #-100]
	cmp	r3, #0
	bne	.L110
	sub	r3, fp, #88
	ldr	r2, [fp, #-104]
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	abAppend
	b	.L112
.L106:
	mov	r2, #1
	ldr	r1, .L118+20
	ldr	r0, [fp, #-112]
	bl	abAppend
	b	.L112
.L105:
	ldr	r3, .L118+4
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L118+4
	ldr	r3, [r3, #12]
	sub	r3, r2, r3
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bge	.L113
	mov	r3, #0
	str	r3, [fp, #-96]
.L113:
	ldr	r3, .L118+4
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	ble	.L114
	ldr	r3, .L118+4
	ldr	r3, [r3, #20]
	str	r3, [fp, #-96]
.L114:
	ldr	r3, .L118+4
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, .L118+4
	ldr	r2, [r2, #12]
	add	r3, r3, r2
	ldr	r2, [fp, #-96]
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	abAppend
.L112:
	mov	r2, #3
	ldr	r1, .L118+28
	ldr	r0, [fp, #-112]
	bl	abAppend
	ldr	r3, .L118+4
	ldr	r3, [r3, #16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	bge	.L115
	mov	r2, #2
	ldr	r1, .L118+32
	ldr	r0, [fp, #-112]
	bl	abAppend
.L115:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L104:
	ldr	r3, .L118+4
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	blt	.L116
	nop
	ldr	r3, .L118
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L117
	bl	__stack_chk_fail
.L117:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L119:
	.align	2
.L118:
	.word	.LC21
	.word	E
	.word	1431655766
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	editorDrawRows, .-editorDrawRows
	.section	.rodata
	.align	2
.LC22:
	.ascii	"\033[?25l\000"
	.align	2
.LC23:
	.ascii	"\033[%d;%dH\000"
	.align	2
.LC24:
	.ascii	"\033[?25h\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	editorRefreshScreen
	.syntax unified
	.arm
	.fpu softvfp
	.type	editorRefreshScreen, %function
editorRefreshScreen:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L122
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	editorScroll
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	sub	r3, fp, #48
	mov	r2, #6
	ldr	r1, .L122+4
	mov	r0, r3
	bl	abAppend
	sub	r3, fp, #48
	mov	r2, #3
	ldr	r1, .L122+8
	mov	r0, r3
	bl	abAppend
	sub	r3, fp, #48
	mov	r0, r3
	bl	editorDrawRows
	ldr	r3, .L122+12
	ldr	r2, [r3, #4]
	ldr	r3, .L122+12
	ldr	r3, [r3, #8]
	sub	r3, r2, r3
	add	r1, r3, #1
	ldr	r3, .L122+12
	ldr	r2, [r3]
	ldr	r3, .L122+12
	ldr	r3, [r3, #12]
	sub	r3, r2, r3
	add	r3, r3, #1
	sub	r0, fp, #40
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, .L122+16
	mov	r1, #32
	bl	snprintf
	sub	r3, fp, #40
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r1, fp, #40
	sub	r3, fp, #48
	mov	r0, r3
	bl	abAppend
	sub	r3, fp, #48
	mov	r2, #3
	ldr	r1, .L122+8
	mov	r0, r3
	bl	abAppend
	sub	r3, fp, #48
	mov	r2, #6
	ldr	r1, .L122+20
	mov	r0, r3
	bl	abAppend
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	mov	r1, r3
	mov	r0, #1
	bl	write
	sub	r3, fp, #48
	mov	r0, r3
	bl	abFree
	nop
	ldr	r3, .L122
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L121
	bl	__stack_chk_fail
.L121:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L123:
	.align	2
.L122:
	.word	.LC25
	.word	.LC22
	.word	.LC1
	.word	E
	.word	.LC23
	.word	.LC24
	.size	editorRefreshScreen, .-editorRefreshScreen
	.align	2
	.global	editorMoveCursor
	.syntax unified
	.arm
	.fpu softvfp
	.type	editorMoveCursor, %function
editorMoveCursor:
	@ 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
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1000
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L134
.L127:
	.word	.L130
	.word	.L129
	.word	.L128
	.word	.L126
.L130:
	ldr	r3, .L138
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L135
	ldr	r3, .L138
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L138
	str	r3, [r2]
	b	.L135
.L129:
	ldr	r3, .L138
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L138
	str	r3, [r2]
	b	.L125
.L128:
	ldr	r3, .L138
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L136
	ldr	r3, .L138
	ldr	r3, [r3, #4]
	sub	r3, r3, #1
	ldr	r2, .L138
	str	r3, [r2, #4]
	b	.L136
.L126:
	ldr	r3, .L138
	ldr	r2, [r3, #4]
	ldr	r3, .L138
	ldr	r3, [r3, #24]
	cmp	r2, r3
	bge	.L137
	ldr	r3, .L138
	ldr	r3, [r3, #4]
	add	r3, r3, #1
	ldr	r2, .L138
	str	r3, [r2, #4]
	b	.L137
.L135:
	nop
	b	.L134
.L136:
	nop
	b	.L134
.L137:
	nop
.L125:
.L134:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L139:
	.align	2
.L138:
	.word	E
	.size	editorMoveCursor, .-editorMoveCursor
	.align	2
	.global	editorProcessKeypress
	.syntax unified
	.arm
	.fpu softvfp
	.type	editorProcessKeypress, %function
editorProcessKeypress:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	editorReadKey
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #17
	beq	.L141
	ldr	r3, [fp, #-8]
	cmp	r3, #17
	blt	.L152
	ldr	r3, [fp, #-8]
	cmp	r3, #1008
	bgt	.L152
	ldr	r3, [fp, #-8]
	cmp	r3, #1000
	blt	.L152
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1000
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L152
.L144:
	.word	.L147
	.word	.L147
	.word	.L147
	.word	.L147
	.word	.L152
	.word	.L146
	.word	.L145
	.word	.L143
	.word	.L143
.L141:
	mov	r2, #4
	ldr	r1, .L153
	mov	r0, #1
	bl	write
	mov	r2, #3
	ldr	r1, .L153+4
	mov	r0, #1
	bl	write
	mov	r0, #0
	bl	exit
.L146:
	ldr	r3, .L153+8
	mov	r2, #0
	str	r2, [r3]
	b	.L142
.L145:
	ldr	r3, .L153+8
	ldr	r3, [r3, #20]
	sub	r3, r3, #1
	ldr	r2, .L153+8
	str	r3, [r2]
	b	.L142
.L143:
	ldr	r3, .L153+8
	ldr	r3, [r3, #16]
	str	r3, [fp, #-12]
	b	.L148
.L151:
	ldr	r3, [fp, #-8]
	ldr	r2, .L153+12
	cmp	r3, r2
	bne	.L149
	ldr	r3, .L153+16
	b	.L150
.L149:
	ldr	r3, .L153+20
.L150:
	mov	r0, r3
	bl	editorMoveCursor
.L148:
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	str	r2, [fp, #-12]
	cmp	r3, #0
	bne	.L151
.L147:
	ldr	r0, [fp, #-8]
	bl	editorMoveCursor
	nop
.L142:
.L152:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L154:
	.align	2
.L153:
	.word	.LC0
	.word	.LC1
	.word	E
	.word	1007
	.word	1002
	.word	1003
	.size	editorProcessKeypress, .-editorProcessKeypress
	.section	.rodata
	.align	2
.LC26:
	.ascii	"getWindowSize\000"
	.text
	.align	2
	.global	initEditor
	.syntax unified
	.arm
	.fpu softvfp
	.type	initEditor, %function
initEditor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L158
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L158
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L158
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L158
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L158
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, .L158
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r1, .L158+4
	ldr	r0, .L158+8
	bl	getWindowSize
	mov	r3, r0
	cmn	r3, #1
	bne	.L157
	ldr	r0, .L158+12
	bl	die
.L157:
	nop
	pop	{fp, pc}
.L159:
	.align	2
.L158:
	.word	E
	.word	E+20
	.word	E+16
	.word	.LC26
	.size	initEditor, .-initEditor
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	bl	enableRawMode
	bl	initEditor
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	ble	.L162
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	editorOpen
.L162:
	bl	editorRefreshScreen
	bl	editorProcessKeypress
	b	.L162
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
