	.file	"541733.c"
	.intel_syntax noprefix
	.text
	.globl	filepath
	.bss
	.align 32
	.type	filepath, @object
	.size	filepath, 8192
filepath:
	.zero	8192
	.globl	pattern
	.align 8
	.type	pattern, @object
	.size	pattern, 8
pattern:
	.zero	8
	.section	.rodata
.LC0:
	.string	"r"
	.text
	.type	file_contains_pattern, @function
file_contains_pattern:
.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
	lea	rsi, .LC0[rip]
	lea	rdi, filepath[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR pattern[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L2
.L6:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L3
	mov	eax, 1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -17[rbp], al
	jne	.L5
	add	QWORD PTR -16[rbp], 1
	jmp	.L2
.L5:
	mov	rax, QWORD PTR pattern[rip]
	mov	QWORD PTR -16[rbp], rax
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -17[rbp], al
	cmp	BYTE PTR -17[rbp], -1
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	file_contains_pattern, .-file_contains_pattern
	.section	.rodata
.LC1:
	.string	"csearch [pattern]\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 2
	je	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR pattern[rip], rax
	jmp	.L10
.L13:
	lea	rax, filepath[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L11
.L12:
	add	QWORD PTR -8[rbp], 1
.L11:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	mov	eax, 0
	call	file_contains_pattern
	test	eax, eax
	je	.L10
	lea	rdi, filepath[rip]
	call	puts@PLT
.L10:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 8192
	lea	rdi, filepath[rip]
	call	fgets@PLT
	test	rax, rax
	jne	.L13
	mov	eax, 0
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"541733.c"
	.text
	.comm	filepath,8192,4
	.comm	pattern,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_contains_pattern, %function
file_contains_pattern:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r1, .L9
	ldr	r0, .L9+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, .L9+8
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L2
.L8:
	mov	r3, #1
	b	.L7
.L3:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L5
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L5:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L2:
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
	b	.L8
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	filepath
	.word	pattern
	.size	file_contains_pattern, .-file_contains_pattern
	.section	.rodata
	.align	2
.LC1:
	.ascii	"csearch [pattern]\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L12
	ldr	r3, .L18
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L18+4
	bl	fwrite
	mvn	r3, #0
	b	.L13
.L12:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r2, .L18+8
	str	r3, [r2]
	b	.L14
.L17:
	ldr	r3, .L18+12
	str	r3, [fp, #-8]
	b	.L15
.L16:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L16
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	bl	file_contains_pattern
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r0, .L18+12
	bl	puts
.L14:
	ldr	r3, .L18+16
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #8192
	ldr	r0, .L18+12
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	mov	r3, #0
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	stderr
	.word	.LC1
	.word	pattern
	.word	filepath
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
