	.file	"764249.c"
	.intel_syntax noprefix
	.text
	.globl	cur_lines
	.data
	.align 4
	.type	cur_lines, @object
	.size	cur_lines, 4
cur_lines:
	.long	1
	.globl	file_lines
	.align 4
	.type	file_lines, @object
	.size	file_lines, 4
file_lines:
	.long	1
	.globl	page_len
	.bss
	.align 4
	.type	page_len, @object
	.size	page_len, 4
page_len:
	.zero	4
	.globl	flag
	.data
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.long	1
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"error opening file"
.LC2:
	.string	"----------------------\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 1
	jne	.L2
	mov	DWORD PTR page_len[rip], 24
	mov	DWORD PTR flag[rip], 0
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	get_lines_count
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	do_more
	jmp	.L3
.L2:
	lea	rax, -16[rbp]
	mov	rdx, rax
	mov	esi, 21523
	mov	edi, 0
	mov	eax, 0
	call	ioctl@PLT
	movzx	eax, WORD PTR -16[rbp]
	movzx	eax, ax
	mov	DWORD PTR page_len[rip], eax
.L3:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	get_lines_count
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	do_more
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -28[rbp], 1
	mov	DWORD PTR cur_lines[rip], 0
	mov	DWORD PTR file_lines[rip], 0
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L4:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	cmp	DWORD PTR -28[rbp], eax
	jl	.L7
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"/dev/tty"
.LC4:
	.string	" \033[1K \033[1G"
.LC5:
	.string	"\033[1A \033[2K \033[1G"
	.text
	.globl	do_more
	.type	do_more, @function
do_more:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 608
	mov	QWORD PTR -600[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -584[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -568[rbp], rax
	jmp	.L11
.L17:
	mov	rdx, QWORD PTR stdout[rip]
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	add	DWORD PTR -584[rbp], 1
	mov	eax, DWORD PTR cur_lines[rip]
	add	eax, 1
	mov	DWORD PTR cur_lines[rip], eax
	mov	eax, DWORD PTR page_len[rip]
	cmp	DWORD PTR -584[rbp], eax
	jne	.L11
	mov	rax, QWORD PTR -568[rbp]
	mov	rdi, rax
	call	get_input
	mov	DWORD PTR -580[rbp], eax
	cmp	DWORD PTR -580[rbp], 0
	jne	.L12
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L12:
	cmp	DWORD PTR -580[rbp], 1
	jne	.L14
	mov	eax, DWORD PTR page_len[rip]
	sub	DWORD PTR -584[rbp], eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L14:
	cmp	DWORD PTR -580[rbp], 2
	jne	.L15
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -584[rbp], 1
	jmp	.L11
.L15:
	cmp	DWORD PTR -580[rbp], 4
	jne	.L16
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -560[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -560[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -576[rbp], eax
	mov	eax, DWORD PTR -576[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -560[rbp+rax], 0
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -600[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -572[rbp], eax
	lea	rdx, -560[rbp]
	mov	rax, QWORD PTR -600[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	mygrep
	mov	eax, DWORD PTR -572[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	call	getchar@PLT
	jmp	.L11
.L16:
	cmp	DWORD PTR -580[rbp], 3
	jne	.L11
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L11:
	mov	rdx, QWORD PTR -600[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L17
.L13:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	do_more, .-do_more
	.section	.rodata
.LC6:
	.string	"\033[7m --more-- (%d %)  \033[m"
	.text
	.globl	get_input
	.type	get_input, @function
get_input:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, DWORD PTR cur_lines[rip]
	imul	eax, eax, 100
	mov	ecx, DWORD PTR file_lines[rip]
	cdq
	idiv	ecx
	sub	eax, 1
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 113
	jne	.L20
	mov	eax, 0
	jmp	.L21
.L20:
	cmp	BYTE PTR -1[rbp], 32
	jne	.L22
	mov	eax, 1
	jmp	.L21
.L22:
	cmp	BYTE PTR -1[rbp], 10
	jne	.L23
	mov	eax, 2
	jmp	.L21
.L23:
	cmp	BYTE PTR -1[rbp], 47
	jne	.L24
	mov	eax, 4
	jmp	.L21
.L24:
	mov	eax, 3
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_input, .-get_input
	.globl	get_lines_count
	.type	get_lines_count, @function
get_lines_count:
.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, 560
	mov	QWORD PTR -552[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -532[rbp], 0
	jmp	.L26
.L27:
	mov	eax, DWORD PTR file_lines[rip]
	add	eax, 1
	mov	DWORD PTR file_lines[rip], eax
.L26:
	mov	rdx, QWORD PTR -552[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L27
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	rewind@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_lines_count, .-get_lines_count
	.section	.rodata
.LC7:
	.string	" "
.LC8:
	.string	"\033[7m%s\033[m"
	.text
	.globl	mygrep
	.type	mygrep, @function
mygrep:
.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, 256
	mov	QWORD PTR -248[rbp], rdi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -240[rbp], 0
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	rewind@PLT
	jmp	.L30
.L34:
	add	DWORD PTR -240[rbp], 1
	mov	DWORD PTR -236[rbp], 0
	lea	rcx, -224[rbp]
	lea	rax, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -224[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -232[rbp], rax
	jmp	.L31
.L33:
	mov	rdx, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L32
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L32:
	lea	rsi, .LC7[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -232[rbp], rax
.L31:
	cmp	QWORD PTR -232[rbp], 0
	jne	.L33
.L30:
	mov	rdx, QWORD PTR -248[rbp]
	lea	rax, -224[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L34
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	mygrep, .-mygrep
	.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	"764249.c"
	.text
	.global	cur_lines
	.data
	.align	2
	.type	cur_lines, %object
	.size	cur_lines, 4
cur_lines:
	.word	1
	.global	file_lines
	.align	2
	.type	file_lines, %object
	.size	file_lines, 4
file_lines:
	.word	1
	.global	page_len
	.bss
	.align	2
	.type	page_len, %object
	.size	page_len, 4
page_len:
	.space	4
	.global	flag
	.data
	.align	2
	.type	flag, %object
	.size	flag, 4
flag:
	.word	1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"error opening file\000"
	.align	2
.LC2:
	.ascii	"----------------------\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-36]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L2
	ldr	r3, .L10+4
	mov	r2, #24
	str	r2, [r3]
	ldr	r3, .L10+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L10+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	get_lines_count
	ldr	r3, .L10+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	do_more
	b	.L3
.L2:
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L10+16
	mov	r0, #0
	bl	ioctl
	ldrh	r3, [fp, #-16]
	mov	r2, r3
	ldr	r3, .L10+4
	str	r2, [r3]
.L3:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L4
.L7:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L10+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L10+24
	bl	puts
	mov	r0, #1
	bl	exit
.L5:
	ldr	r0, [fp, #-20]
	bl	get_lines_count
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L10+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L10+24
	bl	puts
	mov	r0, #1
	bl	exit
.L6:
	ldr	r0, [fp, #-20]
	bl	do_more
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, .L10+28
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L10+32
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L10+36
	bl	puts
.L4:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	page_len
	.word	flag
	.word	stdin
	.word	21523
	.word	.LC0
	.word	.LC1
	.word	cur_lines
	.word	file_lines
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"/dev/tty\000"
	.align	2
.LC5:
	.ascii	" \033[1K \033[1G\000"
	.align	2
.LC6:
	.ascii	"\033[1A \033[2K \033[1G\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_more
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_more, %function
do_more:
	@ args = 0, pretend = 0, frame = 568
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #568
	str	r0, [fp, #-568]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-560]
	ldr	r1, .L21+4
	ldr	r0, .L21+8
	bl	fopen
	str	r0, [fp, #-556]
	b	.L13
.L19:
	ldr	r3, .L21+12
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	ldr	r3, [fp, #-560]
	add	r3, r3, #1
	str	r3, [fp, #-560]
	ldr	r3, .L21+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L21+16
	str	r3, [r2]
	ldr	r3, .L21+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-560]
	cmp	r2, r3
	bne	.L13
	ldr	r0, [fp, #-556]
	bl	get_input
	str	r0, [fp, #-552]
	ldr	r3, [fp, #-552]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L21+24
	bl	printf
	b	.L15
.L14:
	ldr	r3, [fp, #-552]
	cmp	r3, #1
	bne	.L16
	ldr	r3, .L21+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-560]
	sub	r3, r2, r3
	str	r3, [fp, #-560]
	ldr	r0, .L21+24
	bl	printf
	b	.L13
.L16:
	ldr	r3, [fp, #-552]
	cmp	r3, #2
	bne	.L17
	ldr	r0, .L21+28
	bl	printf
	ldr	r3, [fp, #-560]
	sub	r3, r3, #1
	str	r3, [fp, #-560]
	b	.L13
.L17:
	ldr	r3, [fp, #-552]
	cmp	r3, #4
	bne	.L18
	ldr	r3, .L21+32
	ldr	r2, [r3]
	sub	r3, fp, #540
	mov	r1, #20
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #540
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-548]
	ldr	r3, [fp, #-548]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-536]
	ldr	r0, .L21+28
	bl	printf
	ldr	r0, [fp, #-568]
	bl	ftell
	str	r0, [fp, #-544]
	sub	r3, fp, #540
	mov	r1, r3
	ldr	r0, [fp, #-568]
	bl	mygrep
	mov	r2, #0
	ldr	r1, [fp, #-544]
	ldr	r0, [fp, #-568]
	bl	fseek
	bl	getchar
	b	.L13
.L18:
	ldr	r3, [fp, #-552]
	cmp	r3, #3
	bne	.L13
	ldr	r0, .L21+24
	bl	printf
	b	.L15
.L13:
	sub	r3, fp, #520
	ldr	r2, [fp, #-568]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
.L15:
	nop
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC7
	.word	.LC0
	.word	.LC4
	.word	stdout
	.word	cur_lines
	.word	page_len
	.word	.LC5
	.word	.LC6
	.word	stdin
	.size	do_more, .-do_more
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\033[7m --more-- (%d %)  \033[m\000"
	.text
	.align	2
	.global	get_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_input, %function
get_input:
	@ 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]
	ldr	r3, .L29
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, .L29+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r3, r0
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L29+8
	bl	printf
	ldr	r0, [fp, #-16]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #113
	bne	.L24
	mov	r3, #0
	b	.L25
.L24:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L26
	mov	r3, #1
	b	.L25
.L26:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L27
	mov	r3, #2
	b	.L25
.L27:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L28
	mov	r3, #4
	b	.L25
.L28:
	mov	r3, #3
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	cur_lines
	.word	file_lines
	.word	.LC8
	.size	get_input, .-get_input
	.section	.rodata
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_lines_count
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_lines_count, %function
get_lines_count:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	str	r0, [fp, #-528]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L32
.L33:
	ldr	r3, .L35+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L35+4
	str	r3, [r2]
.L32:
	sub	r3, fp, #520
	ldr	r2, [fp, #-528]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r0, [fp, #-528]
	bl	rewind
	nop
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC9
	.word	file_lines
	.size	get_lines_count, .-get_lines_count
	.section	.rodata
	.align	2
.LC10:
	.ascii	" \000"
	.align	2
.LC11:
	.ascii	"\033[7m%s\033[m\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mygrep
	.syntax unified
	.arm
	.fpu softvfp
	.type	mygrep, %function
mygrep:
	@ args = 0, pretend = 0, frame = 224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #224
	str	r0, [fp, #-224]
	str	r1, [fp, #-228]
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-220]
	ldr	r0, [fp, #-224]
	bl	rewind
	b	.L38
.L42:
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
	mov	r3, #0
	str	r3, [fp, #-212]
	sub	r1, fp, #208
	sub	r3, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #208
	ldr	r1, .L44+4
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-216]
	b	.L39
.L41:
	ldr	r1, [fp, #-228]
	ldr	r0, [fp, #-216]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L44+8
	bl	printf
.L40:
	ldr	r1, .L44+4
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-216]
.L39:
	ldr	r3, [fp, #-216]
	cmp	r3, #0
	bne	.L41
.L38:
	sub	r3, fp, #208
	ldr	r2, [fp, #-224]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	nop
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC12
	.word	.LC10
	.word	.LC11
	.size	mygrep, .-mygrep
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
