	.file	"1158410.c"
	.intel_syntax noprefix
	.text
	.globl	appendToPath
	.type	appendToPath, @function
appendToPath:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L2
	sub	DWORD PTR -16[rbp], 1
.L2:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	add	eax, 2
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 47
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	appendToPath, .-appendToPath
	.globl	wordSearch
	.type	wordSearch, @function
wordSearch:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L6
	mov	eax, 1
	jmp	.L7
.L6:
	add	DWORD PTR -12[rbp], 1
.L5:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L8
	mov	eax, 0
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	wordSearch, .-wordSearch
	.section	.rodata
.LC0:
	.string	"Error! Cannot open file %s\n"
.LC1:
	.string	"%s:%s\n"
	.text
	.globl	grepfile
	.type	grepfile, @function
grepfile:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -98304[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1760
	mov	QWORD PTR -100040[rbp], rdi
	mov	QWORD PTR -100048[rbp], rsi
	mov	DWORD PTR -100052[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -100048[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -100020[rbp], eax
	cmp	DWORD PTR -100020[rbp], -1
	jne	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -100048[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L9
.L10:
	mov	BYTE PTR -100016[rbp], 0
	mov	DWORD PTR -100024[rbp], 0
	jmp	.L12
.L15:
	movzx	eax, BYTE PTR -100025[rbp]
	cmp	al, 10
	jne	.L13
	mov	eax, DWORD PTR -100024[rbp]
	cdqe
	mov	BYTE PTR -100016[rbp+rax], 0
	mov	DWORD PTR -100024[rbp], 0
	lea	rdx, -100016[rbp]
	mov	rax, QWORD PTR -100040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	wordSearch
	test	eax, eax
	je	.L12
	cmp	DWORD PTR -100052[rbp], 0
	je	.L14
	lea	rax, -100016[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L12
.L14:
	lea	rdx, -100016[rbp]
	mov	rax, QWORD PTR -100048[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L13:
	movzx	edx, BYTE PTR -100025[rbp]
	mov	eax, DWORD PTR -100024[rbp]
	cdqe
	mov	BYTE PTR -100016[rbp+rax], dl
	add	DWORD PTR -100024[rbp], 1
.L12:
	lea	rcx, -100025[rbp]
	mov	eax, DWORD PTR -100020[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jne	.L15
	mov	eax, DWORD PTR -100024[rbp]
	cdqe
	mov	BYTE PTR -100016[rbp+rax], 0
	movzx	eax, BYTE PTR -100016[rbp]
	test	al, al
	je	.L16
	lea	rdx, -100016[rbp]
	mov	rax, QWORD PTR -100040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	wordSearch
	test	eax, eax
	je	.L16
	cmp	DWORD PTR -100052[rbp], 0
	je	.L17
	lea	rax, -100016[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L16
.L17:
	lea	rdx, -100016[rbp]
	mov	rax, QWORD PTR -100048[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	mov	eax, DWORD PTR -100020[rbp]
	mov	edi, eax
	call	close@PLT
.L9:
	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
.LFE8:
	.size	grepfile, .-grepfile
	.section	.rodata
.LC2:
	.string	"."
.LC3:
	.string	".."
	.text
	.globl	grep
	.type	grep, @function
grep:
.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, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	je	.L20
	mov	rcx, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	grepfile
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -184[rbp], rax
	mov	QWORD PTR -176[rbp], 0
	jmp	.L22
.L26:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 19
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L22
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 19
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	jmp	.L22
.L24:
	mov	rax, QWORD PTR -176[rbp]
	lea	rdx, 19[rax]
	mov	rax, QWORD PTR -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	appendToPath
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR 18[rax]
	cmp	al, 4
	jne	.L25
	mov	rdx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	grep
	jmp	.L22
.L25:
	mov	rcx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	grepfile
.L22:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L26
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	closedir@PLT
.L19:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	grep, .-grep
	.section	.rodata
	.align 8
.LC4:
	.string	"Insufficient arguments!\n Format: ./mygrep search_string search_path\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	jg	.L29
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 68
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	grep
	mov	eax, 0
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"1158410.c"
	.text
	.align	2
	.global	appendToPath
	.syntax unified
	.arm
	.fpu softvfp
	.type	appendToPath, %function
appendToPath:
	@ 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	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L2
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	add	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-8]
	bl	strcpy
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #47
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	appendToPath, .-appendToPath
	.align	2
	.global	wordSearch
	.syntax unified
	.arm
	.fpu softvfp
	.type	wordSearch, %function
wordSearch:
	@ 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	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L5
.L8:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	mov	r3, #1
	b	.L7
.L6:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L5:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L8
	mov	r3, #0
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	wordSearch, .-wordSearch
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error! Cannot open file %s\012\000"
	.align	2
.LC1:
	.ascii	"%s:%s\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	grepfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	grepfile, %function
grepfile:
	@ args = 0, pretend = 0, frame = 100032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #99328
	sub	sp, sp, #708
	sub	r3, fp, #98304
	sub	r3, r3, #12
	str	r0, [r3, #-1716]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	str	r1, [r3, #-1720]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	str	r2, [r3, #-1724]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r1, #0
	ldr	r0, [r3, #-1720]
	bl	open
	str	r0, [r4, #-1704]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1704]
	cmn	r3, #1
	bne	.L10
	ldr	r3, .L19+4
	ldr	r3, [r3]
	sub	r2, fp, #98304
	sub	r2, r2, #12
	ldr	r2, [r2, #-1720]
	ldr	r1, .L19+8
	mov	r0, r3
	bl	fprintf
	b	.L9
.L10:
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-1700]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1708]
	b	.L12
.L15:
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldrb	r3, [r3, #-1709]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L13
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1708]
	add	r3, r2, r3
	sub	r3, r3, #1696
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1708]
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	sub	r2, fp, #98304
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-1716]
	bl	wordSearch
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1724]
	cmp	r3, #0
	beq	.L14
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	mov	r0, r3
	bl	puts
	b	.L12
.L14:
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	sub	r2, fp, #98304
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-1720]
	ldr	r0, .L19+12
	bl	printf
	b	.L12
.L13:
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldrb	r2, [r3, #-1709]	@ zero_extendqisi2
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1708]
	add	r3, r1, r3
	sub	r3, r3, #1696
	sub	r3, r3, #4
	strb	r2, [r3]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1708]
	add	r3, r3, #1
	str	r3, [r2, #-1708]
.L12:
	ldr	r3, .L19+16
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r2, fp, #98304
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-1704]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1708]
	add	r3, r2, r3
	sub	r3, r3, #1696
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldrb	r3, [r3, #-1700]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	sub	r2, fp, #98304
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-1716]
	bl	wordSearch
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1724]
	cmp	r3, #0
	beq	.L17
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	mov	r0, r3
	bl	puts
	b	.L16
.L17:
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	sub	r2, fp, #98304
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-1720]
	ldr	r0, .L19+12
	bl	printf
.L16:
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r0, [r3, #-1704]
	bl	close
.L9:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	-100013
	.size	grepfile, .-grepfile
	.section	.rodata
	.align	2
.LC3:
	.ascii	".\000"
	.align	2
.LC4:
	.ascii	"..\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	grep
	.syntax unified
	.arm
	.fpu softvfp
	.type	grep, %function
grep:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	stat
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	beq	.L22
	mov	r2, #1
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-120]
	bl	grepfile
	b	.L21
.L22:
	ldr	r0, [fp, #-124]
	bl	opendir
	str	r0, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L24
.L28:
	ldr	r3, [fp, #-108]
	add	r3, r3, #11
	ldr	r1, .L30+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-108]
	add	r3, r3, #11
	ldr	r1, .L30+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	b	.L24
.L26:
	ldr	r3, [fp, #-108]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	appendToPath
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-108]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L27
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-120]
	bl	grep
	b	.L24
.L27:
	mov	r2, #0
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-120]
	bl	grepfile
.L24:
	ldr	r0, [fp, #-112]
	bl	readdir
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L28
	ldr	r0, [fp, #-112]
	bl	closedir
.L21:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC5
	.word	.LC3
	.word	.LC4
	.size	grep, .-grep
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Insufficient arguments!\012 Format: ./mygrep search"
	.ascii	"_string search_path\012\000"
	.text
	.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]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L33
	ldr	r3, .L35
	ldr	r3, [r3]
	mov	r2, #68
	mov	r1, #1
	ldr	r0, .L35+4
	bl	fwrite
	mov	r3, #0
	b	.L34
.L33:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	grep
	mov	r3, #0
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	stderr
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
