	.file	"37246.c"
	.intel_syntax noprefix
	.text
	.globl	documentation
	.section	.rodata
	.align 8
.LC0:
	.string	"grep searches a file for a given pattern.  Execute by"
	.align 8
.LC1:
	.string	"   grep [flags] regular_expression file_list\n"
	.align 8
.LC2:
	.string	"Flags are single characters preceeded by '-':"
	.align 8
.LC3:
	.string	"   -c      Only a count of matching lines is printed"
	.align 8
.LC4:
	.string	"   -f      Print file name for matching lines switch, see below"
	.align 8
.LC5:
	.string	"   -n      Each line is preceeded by its line number"
	.align 8
.LC6:
	.string	"   -v      Only print non-matching lines\n"
	.align 8
.LC7:
	.string	"The file_list is a list of files (wildcards are acceptable on RSX modes)."
	.align 8
.LC8:
	.string	"\nThe file name is normally printed if there is a file given."
	.align 8
.LC9:
	.string	"The -f flag reverses this action (print name no file, not if more).\n"
	.section	.data.rel.local,"aw"
	.align 32
	.type	documentation, @object
	.size	documentation, 88
documentation:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.quad	0
	.globl	patdoc
	.section	.rodata
	.align 8
.LC10:
	.string	"The regular_expression defines the pattern to search for.  Upper- and"
	.align 8
.LC11:
	.string	"lower-case are always ignored.  Blank lines never match.  The expression"
	.align 8
.LC12:
	.string	"should be quoted to prevent file-name translation."
	.align 8
.LC13:
	.string	"x      An ordinary character (not mentioned below) matches that character."
	.align 8
.LC14:
	.string	"'\\'    The backslash quotes any character.  \"\\$\" matches a dollar-sign."
	.align 8
.LC15:
	.string	"'^'    A circumflex at the beginning of an expression matches the"
.LC16:
	.string	"       beginning of a line."
	.align 8
.LC17:
	.string	"'$'    A dollar-sign at the end of an expression matches the end of a line."
	.align 8
.LC18:
	.string	"'.'    A period matches any character except \"new-line\"."
	.align 8
.LC19:
	.string	"':a'   A colon matches a class of characters described by the following"
	.align 8
.LC20:
	.string	"':d'     character.  \":a\" matches any alphabetic, \":d\" matches digits,"
	.align 8
.LC21:
	.string	"':n'     \":n\" matches alphanumerics, \": \" matches spaces, tabs, and"
	.align 8
.LC22:
	.string	"': '     other control characters, such as new-line."
	.align 8
.LC23:
	.string	"'*'    An expression followed by an asterisk matches zero or more"
	.align 8
.LC24:
	.string	"       occurrances of that expression: \"fo*\" matches \"f\", \"fo\""
.LC25:
	.string	"       \"foo\", etc."
	.align 8
.LC26:
	.string	"'+'    An expression followed by a plus sign matches one or more"
	.align 8
.LC27:
	.string	"       occurrances of that expression: \"fo+\" matches \"fo\", etc."
	.align 8
.LC28:
	.string	"'-'    An expression followed by a minus sign optionally matches"
.LC29:
	.string	"       the expression."
	.align 8
.LC30:
	.string	"'[]'   A string enclosed in square brackets matches any character in"
	.align 8
.LC31:
	.string	"       that string, but no others.  If the first character in the"
	.align 8
.LC32:
	.string	"       string is a circumflex, the expression matches any character"
	.align 8
.LC33:
	.string	"       except \"new-line\" and the characters in the string.  For"
	.align 8
.LC34:
	.string	"       example, \"[xyz]\" matches \"xx\" and \"zyx\", while \"[^xyz]\""
	.align 8
.LC35:
	.string	"       matches \"abc\" but not \"axb\".  A range of characters may be"
	.align 8
.LC36:
	.string	"       specified by two characters separated by \"-\".  Note that,"
	.align 8
.LC37:
	.string	"       [a-z] matches alphabetics, while [z-a] never matches."
	.align 8
.LC38:
	.string	"The concatenation of regular expressions is a regular expression."
	.section	.data.rel.local
	.align 32
	.type	patdoc, @object
	.size	patdoc, 240
patdoc:
	.quad	.LC10
	.quad	.LC11
	.quad	.LC12
	.quad	.LC13
	.quad	.LC14
	.quad	.LC15
	.quad	.LC16
	.quad	.LC17
	.quad	.LC18
	.quad	.LC19
	.quad	.LC20
	.quad	.LC21
	.quad	.LC22
	.quad	.LC23
	.quad	.LC24
	.quad	.LC25
	.quad	.LC26
	.quad	.LC27
	.quad	.LC28
	.quad	.LC29
	.quad	.LC30
	.quad	.LC31
	.quad	.LC32
	.quad	.LC33
	.quad	.LC34
	.quad	.LC35
	.quad	.LC36
	.quad	.LC37
	.quad	.LC38
	.quad	0
	.globl	cflag
	.bss
	.align 4
	.type	cflag, @object
	.size	cflag, 4
cflag:
	.zero	4
	.globl	fflag
	.align 4
	.type	fflag, @object
	.size	fflag, 4
fflag:
	.zero	4
	.globl	nflag
	.align 4
	.type	nflag, @object
	.size	nflag, 4
nflag:
	.zero	4
	.globl	vflag
	.align 4
	.type	vflag, @object
	.size	vflag, 4
vflag:
	.zero	4
	.globl	nfile
	.align 4
	.type	nfile, @object
	.size	nfile, 4
nfile:
	.zero	4
	.globl	debug
	.align 4
	.type	debug, @object
	.size	debug, 4
debug:
	.zero	4
	.globl	pp
	.align 8
	.type	pp, @object
	.size	pp, 8
pp:
	.zero	8
	.globl	lbuf
	.align 32
	.type	lbuf, @object
	.size	lbuf, 512
lbuf:
	.zero	512
	.globl	pbuf
	.align 32
	.type	pbuf, @object
	.size	pbuf, 256
pbuf:
	.zero	256
	.section	.rodata
.LC39:
	.string	"File %s:\n"
	.text
	.globl	file
	.type	file, @function
file:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	file, .-file
	.section	.rodata
.LC40:
	.string	"%s: cannot open\n"
	.text
	.globl	cant
	.type	cant, @function
cant:
.LFB1:
	.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 stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	cant, .-cant
	.globl	help
	.type	help, @function
help:
.LFB2:
	.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	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	add	QWORD PTR -8[rbp], 8
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	help, .-help
	.section	.rodata
.LC41:
	.string	"?GREP-E-%s\n"
	.align 8
.LC42:
	.string	"Usage: grep [-cfnv] pattern [file ...].  grep ? for help\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB3:
	.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 stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 57
	mov	esi, 1
	lea	rdi, .LC42[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE3:
	.size	usage, .-usage
	.section	.rodata
.LC43:
	.string	"Pattern = \"%s\"\n"
.LC44:
	.string	"Illegal occurrance op."
.LC45:
	.string	"Unknown : type"
.LC46:
	.string	"No : type"
.LC47:
	.string	"\\%o "
.LC48:
	.string	"%c "
	.text
	.globl	compile
	.type	compile, @function
compile:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR debug[rip]
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	lea	rax, pbuf[rip]
	mov	QWORD PTR pp[rip], rax
	jmp	.L9
.L35:
	cmp	DWORD PTR -32[rbp], 42
	je	.L10
	cmp	DWORD PTR -32[rbp], 43
	je	.L10
	cmp	DWORD PTR -32[rbp], 45
	jne	.L11
.L10:
	mov	rax, QWORD PTR pp[rip]
	lea	rdx, pbuf[rip]
	cmp	rax, rdx
	je	.L12
	mov	rax, QWORD PTR pp[rip]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 2
	je	.L12
	cmp	DWORD PTR -28[rbp], 3
	je	.L12
	cmp	DWORD PTR -28[rbp], 7
	je	.L12
	cmp	DWORD PTR -28[rbp], 8
	je	.L12
	cmp	DWORD PTR -28[rbp], 9
	jne	.L13
.L12:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	badpat
.L13:
	mov	edi, 15
	mov	eax, 0
	call	store
	mov	edi, 15
	mov	eax, 0
	call	store
	mov	rax, QWORD PTR pp[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L14
.L15:
	mov	rdx, QWORD PTR pp[rip]
	mov	rax, QWORD PTR pp[rip]
	movzx	edx, BYTE PTR -1[rdx]
	mov	BYTE PTR [rax], dl
.L14:
	mov	rax, QWORD PTR pp[rip]
	sub	rax, 1
	mov	QWORD PTR pp[rip], rax
	mov	rax, QWORD PTR pp[rip]
	cmp	QWORD PTR -16[rbp], rax
	jb	.L15
	cmp	DWORD PTR -32[rbp], 42
	je	.L16
	cmp	DWORD PTR -32[rbp], 45
	jne	.L17
	mov	eax, 9
	jmp	.L19
.L17:
	mov	eax, 8
	jmp	.L19
.L16:
	mov	eax, 7
.L19:
	mov	rdx, QWORD PTR pp[rip]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR pp[rip], rax
	jmp	.L9
.L11:
	mov	rax, QWORD PTR pp[rip]
	mov	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -32[rbp], 94
	je	.L20
	cmp	DWORD PTR -32[rbp], 94
	jg	.L21
	cmp	DWORD PTR -32[rbp], 92
	je	.L22
	cmp	DWORD PTR -32[rbp], 92
	jg	.L21
	cmp	DWORD PTR -32[rbp], 91
	je	.L23
	cmp	DWORD PTR -32[rbp], 91
	jg	.L21
	cmp	DWORD PTR -32[rbp], 58
	je	.L24
	cmp	DWORD PTR -32[rbp], 58
	jg	.L21
	cmp	DWORD PTR -32[rbp], 36
	je	.L25
	cmp	DWORD PTR -32[rbp], 46
	je	.L26
	jmp	.L21
.L20:
	mov	edi, 2
	mov	eax, 0
	call	store
	jmp	.L9
.L25:
	mov	edi, 3
	mov	eax, 0
	call	store
	jmp	.L9
.L26:
	mov	edi, 4
	mov	eax, 0
	call	store
	jmp	.L9
.L23:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	cclass
	mov	QWORD PTR -24[rbp], rax
	jmp	.L9
.L24:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L27
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	tolower@PLT
	cmp	eax, 32
	je	.L28
	cmp	eax, 32
	jl	.L29
	cmp	eax, 110
	jg	.L29
	cmp	eax, 65
	jl	.L29
	sub	eax, 65
	cmp	eax, 45
	ja	.L29
	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	.L33-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L32-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L30-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L33-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L32-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L29-.L31
	.long	.L30-.L31
	.text
.L33:
	mov	edi, 10
	mov	eax, 0
	call	store
	jmp	.L34
.L32:
	mov	edi, 11
	mov	eax, 0
	call	store
	jmp	.L34
.L30:
	mov	edi, 12
	mov	eax, 0
	call	store
	jmp	.L34
.L28:
	mov	edi, 13
	mov	eax, 0
	call	store
	jmp	.L34
.L29:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	badpat
.L34:
	jmp	.L9
.L27:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	badpat
.L22:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L21
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -32[rbp], eax
.L21:
	mov	edi, 1
	mov	eax, 0
	call	store
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	tolower@PLT
	mov	edi, eax
	mov	eax, 0
	call	store
.L9:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	jne	.L35
	mov	edi, 15
	mov	eax, 0
	call	store
	mov	edi, 0
	mov	eax, 0
	call	store
	mov	eax, DWORD PTR debug[rip]
	test	eax, eax
	je	.L40
	lea	rax, pbuf[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L37
.L39:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 255
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 31
	jg	.L38
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC47[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L37
.L38:
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
.L37:
	mov	rax, QWORD PTR pp[rip]
	cmp	QWORD PTR -16[rbp], rax
	jb	.L39
	mov	edi, 10
	call	putchar@PLT
.L40:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	compile, .-compile
	.section	.rodata
.LC49:
	.string	"Class terminates badly"
.LC50:
	.string	"Unterminated class"
.LC51:
	.string	"Class too large"
.LC52:
	.string	"Empty class"
	.text
	.globl	cclass
	.type	cclass, @function
cclass:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -24[rbp], 5
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 94
	jne	.L42
	add	QWORD PTR -16[rbp], 1
	mov	DWORD PTR -24[rbp], 6
.L42:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	mov	eax, 0
	call	store
	mov	rax, QWORD PTR pp[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	edi, 0
	mov	eax, 0
	call	store
	jmp	.L43
.L48:
	cmp	DWORD PTR -20[rbp], 92
	jne	.L44
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L45
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	badpat
	jmp	.L43
.L45:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	tolower@PLT
	mov	edi, eax
	mov	eax, 0
	call	store
	jmp	.L43
.L44:
	cmp	DWORD PTR -20[rbp], 45
	jne	.L46
	mov	rax, QWORD PTR pp[rip]
	sub	rax, QWORD PTR -8[rbp]
	cmp	rax, 1
	jle	.L46
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 93
	je	.L46
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L46
	mov	rax, QWORD PTR pp[rip]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR pp[rip]
	sub	rax, 1
	mov	BYTE PTR [rax], 14
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	mov	eax, 0
	call	store
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	tolower@PLT
	mov	edi, eax
	mov	eax, 0
	call	store
	jmp	.L43
.L46:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	tolower@PLT
	mov	edi, eax
	mov	eax, 0
	call	store
.L43:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L47
	cmp	DWORD PTR -20[rbp], 93
	jne	.L48
.L47:
	cmp	DWORD PTR -20[rbp], 93
	je	.L49
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	badpat
.L49:
	mov	rax, QWORD PTR pp[rip]
	sub	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 255
	jle	.L50
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC51[rip]
	mov	eax, 0
	call	badpat
.L50:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L51
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	badpat
.L51:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	cclass, .-cclass
	.section	.rodata
.LC53:
	.string	"Pattern too complex\n"
	.text
	.globl	store
	.type	store, @function
store:
.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	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR pp[rip]
	lea	rdx, pbuf[rip+256]
	cmp	rax, rdx
	jb	.L54
	lea	rdi, .LC53[rip]
	mov	eax, 0
	call	error
.L54:
	mov	rax, QWORD PTR pp[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR pp[rip], rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	store, .-store
	.section	.rodata
.LC54:
	.string	"-GREP-E-%s, pattern is\"%s\"\n"
	.align 8
.LC55:
	.string	"-GREP-E-Stopped at byte %d, '%c'\n"
.LC56:
	.string	"?GREP-E-Bad pattern\n"
	.text
	.globl	badpat
	.type	badpat, @function
badpat:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC54[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC55[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, .LC56[rip]
	mov	eax, 0
	call	error
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	badpat, .-badpat
	.section	.rodata
.LC57:
	.string	"%d\t"
.LC58:
	.string	"%d\n"
	.text
	.globl	grep
	.type	grep, @function
grep:
.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L57
.L62:
	add	DWORD PTR -12[rbp], 1
	mov	eax, 0
	call	match
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L58
	mov	eax, DWORD PTR vflag[rip]
	test	eax, eax
	je	.L59
.L58:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L57
	mov	eax, DWORD PTR vflag[rip]
	test	eax, eax
	je	.L57
.L59:
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR cflag[rip]
	test	eax, eax
	jne	.L57
	mov	eax, DWORD PTR fflag[rip]
	test	eax, eax
	je	.L60
	cmp	QWORD PTR -32[rbp], 0
	je	.L60
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	file
	mov	QWORD PTR -32[rbp], 0
.L60:
	mov	eax, DWORD PTR nflag[rip]
	test	eax, eax
	je	.L61
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC57[rip]
	mov	eax, 0
	call	printf@PLT
.L61:
	lea	rdi, lbuf[rip]
	call	puts@PLT
.L57:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	esi, 512
	lea	rdi, lbuf[rip]
	call	fgets@PLT
	test	rax, rax
	jne	.L62
	mov	eax, DWORD PTR cflag[rip]
	test	eax, eax
	je	.L65
	mov	eax, DWORD PTR fflag[rip]
	test	eax, eax
	je	.L64
	cmp	QWORD PTR -32[rbp], 0
	je	.L64
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	file
.L64:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC58[rip]
	mov	eax, 0
	call	printf@PLT
.L65:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	grep, .-grep
	.globl	match
	.type	match, @function
match:
.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, 16
	lea	rax, lbuf[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L67
.L70:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, pbuf[rip]
	mov	rdi, rax
	mov	eax, 0
	call	pmatch
	test	rax, rax
	je	.L68
	mov	eax, 1
	jmp	.L69
.L68:
	add	QWORD PTR -8[rbp], 1
.L67:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L70
	mov	eax, 0
.L69:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	match, .-match
	.section	.rodata
.LC59:
	.string	"pmatch(\"%s\")\n"
	.align 8
.LC60:
	.string	"byte[%d] = 0%o, '%c', op = 0%o\n"
.LC61:
	.string	"Bad op code %d\n"
.LC62:
	.string	"Cannot happen -- match\n"
	.text
	.globl	pmatch
	.type	pmatch, @function
pmatch:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR debug[rip]
	cmp	eax, 1
	jle	.L72
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC59[rip]
	mov	eax, 0
	call	printf@PLT
.L72:
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L73
.L118:
	mov	eax, DWORD PTR debug[rip]
	cmp	eax, 1
	jle	.L74
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -56[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC60[rip]
	mov	eax, 0
	call	printf@PLT
.L74:
	cmp	DWORD PTR -36[rbp], 13
	ja	.L75
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L77[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L77[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L77:
	.long	.L75-.L77
	.long	.L88-.L77
	.long	.L87-.L77
	.long	.L86-.L77
	.long	.L85-.L77
	.long	.L84-.L77
	.long	.L84-.L77
	.long	.L83-.L77
	.long	.L82-.L77
	.long	.L81-.L77
	.long	.L80-.L77
	.long	.L79-.L77
	.long	.L78-.L77
	.long	.L76-.L77
	.text
.L88:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -24[rbp], rcx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	edx, eax
	je	.L73
	mov	eax, 0
	jmp	.L90
.L87:
	lea	rax, lbuf[rip]
	cmp	QWORD PTR -32[rbp], rax
	je	.L73
	mov	eax, 0
	jmp	.L90
.L86:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L73
	mov	eax, 0
	jmp	.L90
.L85:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L73
	mov	eax, 0
	jmp	.L90
.L79:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -41[rbp], al
	cmp	BYTE PTR -41[rbp], 47
	jle	.L94
	cmp	BYTE PTR -41[rbp], 57
	jle	.L73
.L94:
	mov	eax, 0
	jmp	.L90
.L80:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	BYTE PTR -41[rbp], al
	cmp	BYTE PTR -41[rbp], 96
	jle	.L96
	cmp	BYTE PTR -41[rbp], 122
	jle	.L73
.L96:
	mov	eax, 0
	jmp	.L90
.L78:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	BYTE PTR -41[rbp], al
	cmp	BYTE PTR -41[rbp], 96
	jle	.L98
	cmp	BYTE PTR -41[rbp], 122
	jle	.L119
.L98:
	cmp	BYTE PTR -41[rbp], 47
	jle	.L99
	cmp	BYTE PTR -41[rbp], 57
	jle	.L73
.L99:
	mov	eax, 0
	jmp	.L90
.L76:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -41[rbp], al
	cmp	BYTE PTR -41[rbp], 0
	je	.L101
	cmp	BYTE PTR -41[rbp], 32
	jle	.L73
.L101:
	mov	eax, 0
	jmp	.L90
.L84:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	BYTE PTR -41[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 255
	mov	DWORD PTR -40[rbp], eax
.L106:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 14
	jne	.L103
	add	QWORD PTR -24[rbp], 3
	sub	DWORD PTR -40[rbp], 2
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -41[rbp], al
	jl	.L104
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -41[rbp], al
	jg	.L104
	jmp	.L105
.L103:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -41[rbp], al
	je	.L120
.L104:
	sub	DWORD PTR -40[rbp], 1
	cmp	DWORD PTR -40[rbp], 1
	jg	.L106
	jmp	.L105
.L120:
	nop
.L105:
	cmp	DWORD PTR -36[rbp], 5
	setne	dl
	cmp	DWORD PTR -40[rbp], 1
	setle	al
	xor	eax, edx
	test	al, al
	je	.L107
	mov	eax, 0
	jmp	.L90
.L107:
	cmp	DWORD PTR -36[rbp], 5
	jne	.L73
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sub	rax, 2
	add	QWORD PTR -24[rbp], rax
	jmp	.L73
.L81:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pmatch
	mov	QWORD PTR -16[rbp], rax
	nop
.L109:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 15
	jne	.L109
	cmp	QWORD PTR -16[rbp], 0
	je	.L73
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L73
.L82:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pmatch
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L83
	mov	eax, 0
	jmp	.L90
.L83:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L111
.L113:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -32[rbp], rax
.L111:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L121
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pmatch
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L113
.L121:
	nop
.L114:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 15
	jne	.L114
	jmp	.L115
.L117:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pmatch
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L116
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L90
.L116:
	sub	QWORD PTR -32[rbp], 1
.L115:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jnb	.L117
	mov	eax, 0
	jmp	.L90
.L75:
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC61[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC62[rip]
	mov	eax, 0
	call	error
	jmp	.L73
.L119:
	nop
.L73:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 15
	jne	.L118
	mov	rax, QWORD PTR -32[rbp]
.L90:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	pmatch, .-pmatch
	.globl	error
	.type	error, @function
error:
.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
	mov	rdx, QWORD PTR stderr[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.size	error, .-error
	.section	.rodata
.LC63:
	.string	"No arguments"
.LC64:
	.string	"Unknown flag"
.LC65:
	.string	"No pattern"
.LC66:
	.string	"r"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 1
	jg	.L124
	lea	rdi, .LC63[rip]
	call	usage
.L124:
	cmp	DWORD PTR -36[rbp], 2
	jne	.L125
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 63
	jne	.L125
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L125
	lea	rdi, documentation[rip]
	call	help
	lea	rdi, patdoc[rip]
	call	help
	mov	eax, 0
	jmp	.L126
.L125:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	DWORD PTR nfile[rip], eax
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -28[rbp], 1
	jmp	.L127
.L140:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L128
	add	QWORD PTR -16[rbp], 1
	jmp	.L129
.L138:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 63
	cmp	eax, 55
	ja	.L130
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L132[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L132[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L132:
	.long	.L137-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L136-.L132
	.long	.L135-.L132
	.long	.L130-.L132
	.long	.L134-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L133-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L131-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L136-.L132
	.long	.L135-.L132
	.long	.L130-.L132
	.long	.L134-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L133-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L130-.L132
	.long	.L131-.L132
	.text
.L137:
	lea	rdi, documentation[rip]
	call	help
	jmp	.L129
.L136:
	mov	eax, DWORD PTR cflag[rip]
	add	eax, 1
	mov	DWORD PTR cflag[rip], eax
	jmp	.L129
.L135:
	mov	eax, DWORD PTR debug[rip]
	add	eax, 1
	mov	DWORD PTR debug[rip], eax
	jmp	.L129
.L134:
	mov	eax, DWORD PTR fflag[rip]
	add	eax, 1
	mov	DWORD PTR fflag[rip], eax
	jmp	.L129
.L133:
	mov	eax, DWORD PTR nflag[rip]
	add	eax, 1
	mov	DWORD PTR nflag[rip], eax
	jmp	.L129
.L131:
	mov	eax, DWORD PTR vflag[rip]
	add	eax, 1
	mov	DWORD PTR vflag[rip], eax
	jmp	.L129
.L130:
	lea	rdi, .LC64[rip]
	call	usage
.L129:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L138
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	eax, DWORD PTR nfile[rip]
	sub	eax, 1
	mov	DWORD PTR nfile[rip], eax
	jmp	.L139
.L128:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L139
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	compile
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR nfile[rip]
	sub	eax, 1
	mov	DWORD PTR nfile[rip], eax
.L139:
	add	DWORD PTR -28[rbp], 1
.L127:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L140
	cmp	DWORD PTR -24[rbp], 0
	jne	.L141
	lea	rdi, .LC65[rip]
	call	usage
.L141:
	mov	eax, DWORD PTR nfile[rip]
	test	eax, eax
	jne	.L142
	mov	rax, QWORD PTR stdin[rip]
	mov	esi, 0
	mov	rdi, rax
	call	grep
	jmp	.L143
.L142:
	mov	eax, DWORD PTR nfile[rip]
	test	eax, eax
	setg	al
	movzx	edx, al
	mov	eax, DWORD PTR fflag[rip]
	xor	eax, edx
	mov	DWORD PTR fflag[rip], eax
	mov	DWORD PTR -28[rbp], 1
	jmp	.L144
.L147:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L145
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC66[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L146
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	cant
	jmp	.L145
.L146:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	grep
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L145:
	add	DWORD PTR -28[rbp], 1
.L144:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L147
.L143:
	mov	eax, 0
.L126:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"37246.c"
	.text
	.global	documentation
	.section	.rodata
	.align	2
.LC0:
	.ascii	"grep searches a file for a given pattern.  Execute "
	.ascii	"by\000"
	.align	2
.LC1:
	.ascii	"   grep [flags] regular_expression file_list\012\000"
	.align	2
.LC2:
	.ascii	"Flags are single characters preceeded by '-':\000"
	.align	2
.LC3:
	.ascii	"   -c      Only a count of matching lines is printe"
	.ascii	"d\000"
	.align	2
.LC4:
	.ascii	"   -f      Print file name for matching lines switc"
	.ascii	"h, see below\000"
	.align	2
.LC5:
	.ascii	"   -n      Each line is preceeded by its line numbe"
	.ascii	"r\000"
	.align	2
.LC6:
	.ascii	"   -v      Only print non-matching lines\012\000"
	.align	2
.LC7:
	.ascii	"The file_list is a list of files (wildcards are acc"
	.ascii	"eptable on RSX modes).\000"
	.align	2
.LC8:
	.ascii	"\012The file name is normally printed if there is a"
	.ascii	" file given.\000"
	.align	2
.LC9:
	.ascii	"The -f flag reverses this action (print name no fil"
	.ascii	"e, not if more).\012\000"
	.data
	.align	2
	.type	documentation, %object
	.size	documentation, 44
documentation:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	0
	.global	patdoc
	.section	.rodata
	.align	2
.LC10:
	.ascii	"The regular_expression defines the pattern to searc"
	.ascii	"h for.  Upper- and\000"
	.align	2
.LC11:
	.ascii	"lower-case are always ignored.  Blank lines never m"
	.ascii	"atch.  The expression\000"
	.align	2
.LC12:
	.ascii	"should be quoted to prevent file-name translation.\000"
	.align	2
.LC13:
	.ascii	"x      An ordinary character (not mentioned below) "
	.ascii	"matches that character.\000"
	.align	2
.LC14:
	.ascii	"'\\'    The backslash quotes any character.  \"\\$\""
	.ascii	" matches a dollar-sign.\000"
	.align	2
.LC15:
	.ascii	"'^'    A circumflex at the beginning of an expressi"
	.ascii	"on matches the\000"
	.align	2
.LC16:
	.ascii	"       beginning of a line.\000"
	.align	2
.LC17:
	.ascii	"'$'    A dollar-sign at the end of an expression ma"
	.ascii	"tches the end of a line.\000"
	.align	2
.LC18:
	.ascii	"'.'    A period matches any character except \"new-"
	.ascii	"line\".\000"
	.align	2
.LC19:
	.ascii	"':a'   A colon matches a class of characters descri"
	.ascii	"bed by the following\000"
	.align	2
.LC20:
	.ascii	"':d'     character.  \":a\" matches any alphabetic,"
	.ascii	" \":d\" matches digits,\000"
	.align	2
.LC21:
	.ascii	"':n'     \":n\" matches alphanumerics, \": \" match"
	.ascii	"es spaces, tabs, and\000"
	.align	2
.LC22:
	.ascii	"': '     other control characters, such as new-line"
	.ascii	".\000"
	.align	2
.LC23:
	.ascii	"'*'    An expression followed by an asterisk matche"
	.ascii	"s zero or more\000"
	.align	2
.LC24:
	.ascii	"       occurrances of that expression: \"fo*\" matc"
	.ascii	"hes \"f\", \"fo\"\000"
	.align	2
.LC25:
	.ascii	"       \"foo\", etc.\000"
	.align	2
.LC26:
	.ascii	"'+'    An expression followed by a plus sign matche"
	.ascii	"s one or more\000"
	.align	2
.LC27:
	.ascii	"       occurrances of that expression: \"fo+\" matc"
	.ascii	"hes \"fo\", etc.\000"
	.align	2
.LC28:
	.ascii	"'-'    An expression followed by a minus sign optio"
	.ascii	"nally matches\000"
	.align	2
.LC29:
	.ascii	"       the expression.\000"
	.align	2
.LC30:
	.ascii	"'[]'   A string enclosed in square brackets matches"
	.ascii	" any character in\000"
	.align	2
.LC31:
	.ascii	"       that string, but no others.  If the first ch"
	.ascii	"aracter in the\000"
	.align	2
.LC32:
	.ascii	"       string is a circumflex, the expression match"
	.ascii	"es any character\000"
	.align	2
.LC33:
	.ascii	"       except \"new-line\" and the characters in th"
	.ascii	"e string.  For\000"
	.align	2
.LC34:
	.ascii	"       example, \"[xyz]\" matches \"xx\" and \"zyx\""
	.ascii	", while \"[^xyz]\"\000"
	.align	2
.LC35:
	.ascii	"       matches \"abc\" but not \"axb\".  A range of"
	.ascii	" characters may be\000"
	.align	2
.LC36:
	.ascii	"       specified by two characters separated by \"-"
	.ascii	"\".  Note that,\000"
	.align	2
.LC37:
	.ascii	"       [a-z] matches alphabetics, while [z-a] never"
	.ascii	" matches.\000"
	.align	2
.LC38:
	.ascii	"The concatenation of regular expressions is a regul"
	.ascii	"ar expression.\000"
	.data
	.align	2
	.type	patdoc, %object
	.size	patdoc, 120
patdoc:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	0
	.global	cflag
	.bss
	.align	2
	.type	cflag, %object
	.size	cflag, 4
cflag:
	.space	4
	.global	fflag
	.align	2
	.type	fflag, %object
	.size	fflag, 4
fflag:
	.space	4
	.global	nflag
	.align	2
	.type	nflag, %object
	.size	nflag, 4
nflag:
	.space	4
	.global	vflag
	.align	2
	.type	vflag, %object
	.size	vflag, 4
vflag:
	.space	4
	.global	nfile
	.align	2
	.type	nfile, %object
	.size	nfile, 4
nfile:
	.space	4
	.global	debug
	.align	2
	.type	debug, %object
	.size	debug, 4
debug:
	.space	4
	.comm	pp,4,4
	.comm	lbuf,512,4
	.comm	pbuf,256,4
	.section	.rodata
	.align	2
.LC39:
	.ascii	"File %s:\012\000"
	.text
	.align	2
	.global	file
	.syntax unified
	.arm
	.fpu softvfp
	.type	file, %function
file:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L2
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC39
	.size	file, .-file
	.section	.rodata
	.align	2
.LC40:
	.ascii	"%s: cannot open\012\000"
	.text
	.align	2
	.global	cant
	.syntax unified
	.arm
	.fpu softvfp
	.type	cant, %function
cant:
	@ 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, .L5
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L5+4
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stderr
	.word	.LC40
	.size	cant, .-cant
	.align	2
	.global	help
	.syntax unified
	.arm
	.fpu softvfp
	.type	help, %function
help:
	@ 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, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L8
.L9:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
.L8:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	help, .-help
	.section	.rodata
	.align	2
.LC41:
	.ascii	"?GREP-E-%s\012\000"
	.align	2
.LC42:
	.ascii	"Usage: grep [-cfnv] pattern [file ...].  grep ? for"
	.ascii	" help\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ 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, .L11
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L11+4
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #57
	mov	r1, #1
	ldr	r0, .L11+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L12:
	.align	2
.L11:
	.word	stderr
	.word	.LC41
	.word	.LC42
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC43:
	.ascii	"Pattern = \"%s\"\012\000"
	.align	2
.LC44:
	.ascii	"Illegal occurrance op.\000"
	.align	2
.LC45:
	.ascii	"Unknown : type\000"
	.align	2
.LC46:
	.ascii	"No : type\000"
	.align	2
.LC47:
	.ascii	"\\%o \000"
	.align	2
.LC48:
	.ascii	"%c \000"
	.text
	.align	2
	.global	compile
	.syntax unified
	.arm
	.fpu softvfp
	.type	compile, %function
compile:
	@ 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, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, .L47
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r1, [fp, #-24]
	ldr	r0, .L47+4
	bl	printf
.L14:
	ldr	r3, .L47+8
	ldr	r2, .L47+12
	str	r2, [r3]
	b	.L15
.L41:
	ldr	r3, [fp, #-16]
	cmp	r3, #42
	beq	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #43
	beq	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #45
	bne	.L17
.L16:
	ldr	r3, .L47+8
	ldr	r3, [r3]
	ldr	r2, .L47+12
	cmp	r3, r2
	beq	.L18
	ldr	r3, .L47+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	beq	.L18
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	beq	.L18
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	beq	.L18
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	beq	.L18
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	bne	.L19
.L18:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-32]
	ldr	r0, .L47+16
	bl	badpat
.L19:
	mov	r0, #15
	bl	store
	mov	r0, #15
	bl	store
	ldr	r3, .L47+8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L20
.L21:
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, .L47+8
	ldr	r3, [r3]
	ldrb	r2, [r2, #-1]	@ zero_extendqisi2
	strb	r2, [r3]
.L20:
	ldr	r3, .L47+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L47+8
	str	r3, [r2]
	ldr	r3, .L47+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcc	.L21
	ldr	r3, [fp, #-16]
	cmp	r3, #42
	beq	.L22
	ldr	r3, [fp, #-16]
	cmp	r3, #45
	bne	.L23
	mov	r3, #9
	b	.L25
.L23:
	mov	r3, #8
	b	.L25
.L22:
	mov	r3, #7
.L25:
	ldr	r2, .L47+8
	ldr	r2, [r2]
	strb	r3, [r2]
	ldr	r2, .L47+8
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L15
.L17:
	ldr	r3, .L47+8
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #94
	beq	.L26
	ldr	r3, [fp, #-16]
	cmp	r3, #94
	bgt	.L27
	ldr	r3, [fp, #-16]
	cmp	r3, #92
	beq	.L28
	ldr	r3, [fp, #-16]
	cmp	r3, #92
	bgt	.L27
	ldr	r3, [fp, #-16]
	cmp	r3, #91
	beq	.L29
	ldr	r3, [fp, #-16]
	cmp	r3, #91
	bgt	.L27
	ldr	r3, [fp, #-16]
	cmp	r3, #58
	beq	.L30
	ldr	r3, [fp, #-16]
	cmp	r3, #58
	bgt	.L27
	ldr	r3, [fp, #-16]
	cmp	r3, #36
	beq	.L31
	ldr	r3, [fp, #-16]
	cmp	r3, #46
	beq	.L32
	b	.L27
.L26:
	mov	r0, #2
	bl	store
	b	.L15
.L31:
	mov	r0, #3
	bl	store
	b	.L15
.L32:
	mov	r0, #4
	bl	store
	b	.L15
.L29:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-32]
	bl	cclass
	str	r0, [fp, #-24]
	b	.L15
.L30:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	tolower
	mov	r3, r0
	cmp	r3, #32
	beq	.L34
	cmp	r3, #32
	blt	.L35
	cmp	r3, #110
	bgt	.L35
	cmp	r3, #65
	blt	.L35
	sub	r3, r3, #65
	cmp	r3, #45
	ldrls	pc, [pc, r3, asl #2]
	b	.L35
.L37:
	.word	.L39
	.word	.L35
	.word	.L35
	.word	.L38
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L36
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L39
	.word	.L35
	.word	.L35
	.word	.L38
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L36
.L39:
	mov	r0, #10
	bl	store
	b	.L40
.L38:
	mov	r0, #11
	bl	store
	b	.L40
.L36:
	mov	r0, #12
	bl	store
	b	.L40
.L34:
	mov	r0, #13
	bl	store
	b	.L40
.L35:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-32]
	ldr	r0, .L47+20
	bl	badpat
.L40:
	b	.L15
.L33:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-32]
	ldr	r0, .L47+24
	bl	badpat
.L28:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-16]
.L27:
	mov	r0, #1
	bl	store
	ldr	r0, [fp, #-16]
	bl	tolower
	mov	r3, r0
	mov	r0, r3
	bl	store
.L15:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L41
	mov	r0, #15
	bl	store
	mov	r0, #0
	bl	store
	ldr	r3, .L47
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L47+12
	str	r3, [fp, #-20]
	b	.L43
.L45:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #31
	bgt	.L44
	ldr	r1, [fp, #-16]
	ldr	r0, .L47+28
	bl	printf
	b	.L43
.L44:
	ldr	r1, [fp, #-16]
	ldr	r0, .L47+32
	bl	printf
.L43:
	ldr	r3, .L47+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcc	.L45
	mov	r0, #10
	bl	putchar
.L46:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	debug
	.word	.LC43
	.word	pp
	.word	pbuf
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.size	compile, .-compile
	.section	.rodata
	.align	2
.LC49:
	.ascii	"Class terminates badly\000"
	.align	2
.LC50:
	.ascii	"Unterminated class\000"
	.align	2
.LC51:
	.ascii	"Class too large\000"
	.align	2
.LC52:
	.ascii	"Empty class\000"
	.text
	.align	2
	.global	cclass
	.syntax unified
	.arm
	.fpu softvfp
	.type	cclass, %function
cclass:
	@ 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, [fp, #-28]
	str	r3, [fp, #-20]
	mov	r3, #5
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #94
	bne	.L50
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #6
	str	r3, [fp, #-16]
.L50:
	ldr	r0, [fp, #-16]
	bl	store
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r0, #0
	bl	store
	b	.L51
.L56:
	ldr	r3, [fp, #-8]
	cmp	r3, #92
	bne	.L52
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L53
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, .L61+4
	bl	badpat
	b	.L51
.L53:
	ldr	r0, [fp, #-8]
	bl	tolower
	mov	r3, r0
	mov	r0, r3
	bl	store
	b	.L51
.L52:
	ldr	r3, [fp, #-8]
	cmp	r3, #45
	bne	.L54
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	cmp	r3, #1
	ble	.L54
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #93
	beq	.L54
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L54
	ldr	r3, .L61
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, .L61
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r2, #14
	strb	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	store
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	tolower
	mov	r3, r0
	mov	r0, r3
	bl	store
	b	.L51
.L54:
	ldr	r0, [fp, #-8]
	bl	tolower
	mov	r3, r0
	mov	r0, r3
	bl	store
.L51:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-8]
	cmp	r3, #93
	bne	.L56
.L55:
	ldr	r3, [fp, #-8]
	cmp	r3, #93
	beq	.L57
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, .L61+8
	bl	badpat
.L57:
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L58
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, .L61+12
	bl	badpat
.L58:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L59
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, .L61+16
	bl	badpat
.L59:
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	pp
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.size	cclass, .-cclass
	.section	.rodata
	.align	2
.LC53:
	.ascii	"Pattern too complex\012\000"
	.text
	.align	2
	.global	store
	.syntax unified
	.arm
	.fpu softvfp
	.type	store, %function
store:
	@ 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, .L65
	ldr	r3, [r3]
	ldr	r2, .L65+4
	cmp	r3, r2
	bcc	.L64
	ldr	r0, .L65+8
	bl	error
.L64:
	ldr	r3, .L65
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L65
	str	r2, [r1]
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	pp
	.word	pbuf+256
	.word	.LC53
	.size	store, .-store
	.section	.rodata
	.align	2
.LC54:
	.ascii	"-GREP-E-%s, pattern is\"%s\"\012\000"
	.align	2
.LC55:
	.ascii	"-GREP-E-Stopped at byte %d, '%c'\012\000"
	.align	2
.LC56:
	.ascii	"?GREP-E-Bad pattern\012\000"
	.text
	.align	2
	.global	badpat
	.syntax unified
	.arm
	.fpu softvfp
	.type	badpat, %function
badpat:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, .L68
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r1, .L68+4
	bl	fprintf
	ldr	r3, .L68
	ldr	r0, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L68+8
	bl	fprintf
	ldr	r0, .L68+12
	bl	error
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	stderr
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.size	badpat, .-badpat
	.section	.rodata
	.align	2
.LC57:
	.ascii	"%d\011\000"
	.align	2
.LC58:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	grep
	.syntax unified
	.arm
	.fpu softvfp
	.type	grep, %function
grep:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L71
.L76:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	bl	match
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L72
	ldr	r3, .L80
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L73
.L72:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L71
	ldr	r3, .L80
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L71
.L73:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, .L80+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L71
	ldr	r3, .L80+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L74
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L74
	ldr	r0, [fp, #-28]
	bl	file
	mov	r3, #0
	str	r3, [fp, #-28]
.L74:
	ldr	r3, .L80+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L75
	ldr	r1, [fp, #-16]
	ldr	r0, .L80+16
	bl	printf
.L75:
	ldr	r0, .L80+20
	bl	puts
.L71:
	ldr	r2, [fp, #-24]
	mov	r1, #512
	ldr	r0, .L80+20
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
	ldr	r3, .L80+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L79
	ldr	r3, .L80+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L78
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L78
	ldr	r0, [fp, #-28]
	bl	file
.L78:
	ldr	r1, [fp, #-12]
	ldr	r0, .L80+24
	bl	printf
.L79:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L81:
	.align	2
.L80:
	.word	vflag
	.word	cflag
	.word	fflag
	.word	nflag
	.word	.LC57
	.word	lbuf
	.word	.LC58
	.size	grep, .-grep
	.align	2
	.global	match
	.syntax unified
	.arm
	.fpu softvfp
	.type	match, %function
match:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L87
	str	r3, [fp, #-8]
	b	.L83
.L86:
	ldr	r1, .L87+4
	ldr	r0, [fp, #-8]
	bl	pmatch
	mov	r3, r0
	cmp	r3, #0
	beq	.L84
	mov	r3, #1
	b	.L85
.L84:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L83:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L86
	mov	r3, #0
.L85:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	lbuf
	.word	pbuf
	.size	match, .-match
	.section	.rodata
	.align	2
.LC59:
	.ascii	"pmatch(\"%s\")\012\000"
	.align	2
.LC60:
	.ascii	"byte[%d] = 0%o, '%c', op = 0%o\012\000"
	.align	2
.LC61:
	.ascii	"Bad op code %d\012\000"
	.align	2
.LC62:
	.ascii	"Cannot happen -- match\012\000"
	.text
	.align	2
	.global	pmatch
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmatch, %function
pmatch:
	@ 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, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
	ldr	r3, .L140
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L90
	ldr	r1, [fp, #-40]
	ldr	r0, .L140+4
	bl	printf
.L90:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-24]
	b	.L91
.L136:
	ldr	r3, .L140
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L92
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	sub	r1, r2, r3
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L140+8
	bl	printf
.L92:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	cmp	r3, #12
	ldrls	pc, [pc, r3, asl #2]
	b	.L93
.L95:
	.word	.L106
	.word	.L105
	.word	.L104
	.word	.L103
	.word	.L102
	.word	.L102
	.word	.L101
	.word	.L100
	.word	.L99
	.word	.L98
	.word	.L97
	.word	.L96
	.word	.L94
.L106:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r1, r0
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	beq	.L91
	mov	r3, #0
	b	.L108
.L105:
	ldr	r3, [fp, #-28]
	ldr	r2, .L140+12
	cmp	r3, r2
	beq	.L91
	mov	r3, #0
	b	.L108
.L104:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L91
	mov	r3, #0
	b	.L108
.L103:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L91
	mov	r3, #0
	b	.L108
.L97:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L112
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L91
.L112:
	mov	r3, #0
	b	.L108
.L98:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L114
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L91
.L114:
	mov	r3, #0
	b	.L108
.L96:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L116
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L137
.L116:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L117
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L91
.L117:
	mov	r3, #0
	b	.L108
.L94:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L119
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #32
	bls	.L91
.L119:
	mov	r3, #0
	b	.L108
.L102:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-20]
.L124:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #14
	bne	.L121
	ldr	r3, [fp, #-24]
	add	r3, r3, #3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L122
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bhi	.L122
	b	.L123
.L121:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L138
.L122:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bgt	.L124
	b	.L123
.L138:
	nop
.L123:
	ldr	r3, [fp, #-16]
	cmp	r3, #5
	movne	r3, #1
	moveq	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	eor	r3, r3, r2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L125
	mov	r3, #0
	b	.L108
.L125:
	ldr	r3, [fp, #-16]
	cmp	r3, #5
	bne	.L91
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	b	.L91
.L99:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	pmatch
	str	r0, [fp, #-12]
	nop
.L127:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #15
	bne	.L127
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L91
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	b	.L91
.L100:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	pmatch
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L101
	mov	r3, #0
	b	.L108
.L101:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-8]
	b	.L129
.L131:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
.L129:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L139
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	pmatch
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L131
.L139:
	nop
.L132:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #15
	bne	.L132
	b	.L133
.L135:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	pmatch
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L134
	ldr	r3, [fp, #-12]
	b	.L108
.L134:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L133:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcs	.L135
	mov	r3, #0
	b	.L108
.L93:
	ldr	r1, [fp, #-16]
	ldr	r0, .L140+16
	bl	printf
	ldr	r0, .L140+20
	bl	error
	b	.L91
.L137:
	nop
.L91:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bne	.L136
	ldr	r3, [fp, #-28]
.L108:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L141:
	.align	2
.L140:
	.word	debug
	.word	.LC59
	.word	.LC60
	.word	lbuf
	.word	.LC61
	.word	.LC62
	.size	pmatch, .-pmatch
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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, .L143
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	fputs
	mov	r0, #1
	bl	exit
.L144:
	.align	2
.L143:
	.word	stderr
	.size	error, .-error
	.section	.rodata
	.align	2
.LC63:
	.ascii	"No arguments\000"
	.align	2
.LC64:
	.ascii	"Unknown flag\000"
	.align	2
.LC65:
	.ascii	"No pattern\000"
	.align	2
.LC66:
	.ascii	"r\000"
	.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, [fp, #-32]
	cmp	r3, #1
	bgt	.L146
	ldr	r0, .L170
	bl	usage
.L146:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L147
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #63
	bne	.L147
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L147
	ldr	r0, .L170+4
	bl	help
	ldr	r0, .L170+8
	bl	help
	mov	r3, #0
	b	.L148
.L147:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, .L170+12
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L149
.L162:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L150
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L151
.L160:
	ldr	r0, [fp, #-8]
	bl	tolower
	mov	r3, r0
	sub	r3, r3, #63
	cmp	r3, #55
	ldrls	pc, [pc, r3, asl #2]
	b	.L152
.L154:
	.word	.L159
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L158
	.word	.L157
	.word	.L152
	.word	.L156
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L155
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L153
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L158
	.word	.L157
	.word	.L152
	.word	.L156
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L155
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L152
	.word	.L153
.L159:
	ldr	r0, .L170+4
	bl	help
	b	.L151
.L158:
	ldr	r3, .L170+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L170+16
	str	r3, [r2]
	b	.L151
.L157:
	ldr	r3, .L170+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L170+20
	str	r3, [r2]
	b	.L151
.L156:
	ldr	r3, .L170+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L170+24
	str	r3, [r2]
	b	.L151
.L155:
	ldr	r3, .L170+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L170+28
	str	r3, [r2]
	b	.L151
.L153:
	ldr	r3, .L170+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L170+32
	str	r3, [r2]
	b	.L151
.L152:
	ldr	r0, .L170+36
	bl	usage
.L151:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L160
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L170+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L170+12
	str	r3, [r2]
	b	.L161
.L150:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L161
	ldr	r0, [fp, #-24]
	bl	compile
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L170+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L170+12
	str	r3, [r2]
.L161:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L149:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L162
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L163
	ldr	r0, .L170+40
	bl	usage
.L163:
	ldr	r3, .L170+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L164
	ldr	r3, .L170+44
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	grep
	b	.L165
.L164:
	ldr	r3, .L170+12
	ldr	r3, [r3]
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L170+24
	ldr	r3, [r3]
	eor	r3, r3, r2
	ldr	r2, .L170+24
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L166
.L169:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L167
	ldr	r1, .L170+48
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L168
	ldr	r0, [fp, #-24]
	bl	cant
	b	.L167
.L168:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-12]
	bl	grep
	ldr	r0, [fp, #-12]
	bl	fclose
.L167:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L166:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L169
.L165:
	mov	r3, #0
.L148:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L171:
	.align	2
.L170:
	.word	.LC63
	.word	documentation
	.word	patdoc
	.word	nfile
	.word	cflag
	.word	debug
	.word	fflag
	.word	nflag
	.word	vflag
	.word	.LC64
	.word	.LC65
	.word	stdin
	.word	.LC66
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
