	.file	"604745.c"
	.intel_syntax noprefix
	.text
	.globl	keyword
	.bss
	.align 16
	.type	keyword, @object
	.size	keyword, 20
keyword:
	.zero	20
	.section	.rodata
.LC0:
	.string	"yoo!!..word found..."
.LC1:
	.string	"not found..."
	.text
	.globl	search_key
	.type	search_key, @function
search_key:
.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	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -8[rbp], eax
	lea	rdi, keyword[rip]
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, keyword[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L4
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -16[rbp], 1
	jmp	.L5
.L4:
	add	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -12[rbp], 0
.L3:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L6
.L5:
	add	DWORD PTR -20[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L3
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jne	.L8
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L10
.L8:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	search_key, .-search_key
	.section	.rodata
.LC2:
	.string	"Enter keyword to search"
.LC3:
	.string	"%s"
	.align 8
.LC4:
	.string	"/home/ashish/project2/ashish.txt"
.LC5:
	.string	"word=%d\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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1872
	mov	DWORD PTR -10052[rbp], edi
	mov	QWORD PTR -10064[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rsi, keyword[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	esi, 2
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -10024[rbp], eax
	mov	DWORD PTR -10020[rbp], 1
	mov	DWORD PTR -10036[rbp], 1
	mov	DWORD PTR -10032[rbp], 0
	mov	DWORD PTR -10028[rbp], 0
	jmp	.L12
.L15:
	lea	rcx, -10037[rbp]
	mov	eax, DWORD PTR -10024[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -10036[rbp], eax
	movzx	eax, BYTE PTR -10037[rbp]
	cmp	al, 32
	je	.L13
	movzx	eax, BYTE PTR -10037[rbp]
	cmp	al, 10
	jne	.L14
.L13:
	add	DWORD PTR -10028[rbp], 1
.L14:
	movzx	edx, BYTE PTR -10037[rbp]
	mov	eax, DWORD PTR -10032[rbp]
	cdqe
	mov	BYTE PTR -10016[rbp+rax], dl
	add	DWORD PTR -10032[rbp], 1
.L12:
	cmp	DWORD PTR -10036[rbp], 0
	jne	.L15
	lea	rax, -10016[rbp]
	mov	rdi, rax
	call	search_key
	mov	eax, DWORD PTR -10028[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"604745.c"
	.text
	.comm	keyword,20,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"yoo!!..word found...\000"
	.align	2
.LC1:
	.ascii	"not found...\000"
	.text
	.align	2
	.global	search_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_key, %function
search_key:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r0, .L11
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L6:
	ldr	r2, .L11
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L4
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L5
.L4:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
.L3:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L6
.L5:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L3
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L8
	ldr	r0, .L11+4
	bl	puts
	b	.L10
.L8:
	ldr	r0, .L11+8
	bl	puts
.L10:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	keyword
	.word	.LC0
	.word	.LC1
	.size	search_key, .-search_key
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Enter keyword to search\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"/home/ashish/project2/ashish.txt\000"
	.align	2
.LC5:
	.ascii	"word=%d\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 10040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #9984
	sub	sp, sp, #60
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-1844]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-1848]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L20+4
	bl	puts
	ldr	r1, .L20+8
	ldr	r0, .L20+12
	bl	__isoc99_scanf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, #2
	ldr	r0, .L20+16
	bl	open
	str	r0, [r4, #-1820]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-1816]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-1832]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1828]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1824]
	b	.L14
.L17:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #41
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-1820]
	bl	read
	str	r0, [r4, #-1832]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrb	r3, [r3, #-1833]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L15
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrb	r3, [r3, #-1833]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L16
.L15:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1824]
	add	r3, r3, #1
	str	r3, [r2, #-1824]
.L16:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrb	r2, [r3, #-1833]	@ zero_extendqisi2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1828]
	add	r3, r1, r3
	sub	r3, r3, #1808
	sub	r3, r3, #4
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1828]
	add	r3, r3, #1
	str	r3, [r2, #-1828]
.L14:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1832]
	cmp	r3, #0
	bne	.L17
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	search_key
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-1824]
	ldr	r0, .L20+20
	bl	printf
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC6
	.word	.LC2
	.word	keyword
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
