	.file	"11074153.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"NOT FOUND"
	.align 8
.LC1:
	.string	"Pattern found starting at index: %d\n"
	.align 8
.LC2:
	.string	"...TOTAL %d MATCHING FOUND...\n"
	.text
	.globl	kmp_match
	.type	kmp_match, @function
kmp_match:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 264
	.cfi_offset 3, -24
	mov	QWORD PTR -264[rbp], rdi
	mov	QWORD PTR -272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -244[rbp], 0
	mov	DWORD PTR -236[rbp], 0
	mov	DWORD PTR -232[rbp], 1
	lea	rdx, -224[rbp]
	mov	eax, 0
	mov	ecx, 25
	mov	rdi, rdx
	rep stosq
	mov	rax, QWORD PTR -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -228[rbp], eax
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -228[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	jnb	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L1
.L2:
	mov	DWORD PTR -248[rbp], 1
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -244[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -272[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -248[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -272[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L5
	mov	eax, DWORD PTR -248[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -224[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -248[rbp]
	cdqe
	mov	DWORD PTR -224[rbp+rax*4], edx
	add	DWORD PTR -244[rbp], 1
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -248[rbp]
	cdqe
	mov	DWORD PTR -224[rbp+rax*4], 0
	mov	DWORD PTR -244[rbp], 0
.L6:
	add	DWORD PTR -248[rbp], 1
.L4:
	mov	eax, DWORD PTR -248[rbp]
	cmp	eax, DWORD PTR -228[rbp]
	jl	.L7
	mov	DWORD PTR -248[rbp], 0
	mov	DWORD PTR -240[rbp], 0
	jmp	.L8
.L15:
	mov	DWORD PTR -232[rbp], 1
	mov	eax, DWORD PTR -240[rbp]
	mov	DWORD PTR -244[rbp], eax
	jmp	.L9
.L14:
	mov	eax, DWORD PTR -248[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -264[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -244[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -272[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L10
	add	DWORD PTR -248[rbp], 1
	jmp	.L17
.L10:
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	mov	eax, DWORD PTR -224[rbp+rax*4]
	mov	DWORD PTR -240[rbp], eax
	mov	DWORD PTR -232[rbp], 0
	cmp	DWORD PTR -244[rbp], 0
	jne	.L18
	add	DWORD PTR -248[rbp], 1
	jmp	.L18
.L17:
	add	DWORD PTR -244[rbp], 1
.L9:
	mov	eax, DWORD PTR -244[rbp]
	cmp	eax, DWORD PTR -228[rbp]
	jl	.L14
	jmp	.L13
.L18:
	nop
.L13:
	cmp	DWORD PTR -232[rbp], 1
	jne	.L8
	mov	eax, DWORD PTR -248[rbp]
	sub	eax, DWORD PTR -228[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -228[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -224[rbp+rax*4]
	mov	DWORD PTR -240[rbp], eax
	add	DWORD PTR -236[rbp], 1
.L8:
	mov	eax, DWORD PTR -248[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jbe	.L15
	mov	eax, DWORD PTR -236[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L1:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	kmp_match, .-kmp_match
	.section	.rodata
.LC3:
	.string	"Enter the text to search in: "
.LC4:
	.string	"%s"
.LC5:
	.string	"Enter the pattern to search: "
	.text
	.globl	main
	.type	main, @function
main:
.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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -176[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -176[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	kmp_match
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"11074153.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"NOT FOUND\000"
	.align	2
.LC1:
	.ascii	"Pattern found starting at index: %d\012\000"
	.align	2
.LC2:
	.ascii	"...TOTAL %d MATCHING FOUND...\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kmp_match
	.syntax unified
	.arm
	.fpu softvfp
	.type	kmp_match, %function
kmp_match:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	str	r0, [fp, #-240]
	str	r1, [fp, #-244]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-228]
	mov	r3, #0
	str	r3, [fp, #-220]
	mov	r3, #1
	str	r3, [fp, #-216]
	sub	r3, fp, #208
	mov	r2, #200
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, [fp, #-244]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-212]
	ldr	r0, [fp, #-240]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-212]
	cmp	r2, r3
	bcs	.L2
	ldr	r0, .L19+4
	bl	puts
	b	.L1
.L2:
	mov	r3, #1
	str	r3, [fp, #-232]
	b	.L4
.L7:
	ldr	r3, [fp, #-228]
	ldr	r2, [fp, #-244]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-232]
	ldr	r1, [fp, #-244]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L5
	ldr	r3, [fp, #-232]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-204]
	add	r2, r3, #1
	ldr	r3, [fp, #-232]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-204]
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
	b	.L6
.L5:
	ldr	r3, [fp, #-232]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-204]
	mov	r3, #0
	str	r3, [fp, #-228]
.L6:
	ldr	r3, [fp, #-232]
	add	r3, r3, #1
	str	r3, [fp, #-232]
.L4:
	ldr	r2, [fp, #-232]
	ldr	r3, [fp, #-212]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	str	r3, [fp, #-232]
	mov	r3, #0
	str	r3, [fp, #-224]
	b	.L8
.L15:
	mov	r3, #1
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-224]
	str	r3, [fp, #-228]
	b	.L9
.L14:
	ldr	r3, [fp, #-232]
	ldr	r2, [fp, #-240]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-228]
	ldr	r1, [fp, #-244]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-232]
	add	r3, r3, #1
	str	r3, [fp, #-232]
	b	.L17
.L10:
	ldr	r3, [fp, #-228]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-204]
	str	r3, [fp, #-224]
	mov	r3, #0
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-232]
	add	r3, r3, #1
	str	r3, [fp, #-232]
	b	.L18
.L17:
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
.L9:
	ldr	r2, [fp, #-228]
	ldr	r3, [fp, #-212]
	cmp	r2, r3
	blt	.L14
	b	.L13
.L18:
	nop
.L13:
	ldr	r3, [fp, #-216]
	cmp	r3, #1
	bne	.L8
	ldr	r2, [fp, #-232]
	ldr	r3, [fp, #-212]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L19+8
	bl	printf
	ldr	r3, [fp, #-212]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-204]
	str	r3, [fp, #-224]
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
.L8:
	ldr	r0, [fp, #-240]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-232]
	cmp	r2, r3
	bcs	.L15
	ldr	r1, [fp, #-220]
	ldr	r0, .L19+12
	bl	printf
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	kmp_match, .-kmp_match
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Enter the text to search in: \000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"Enter the pattern to search: \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L24+4
	bl	printf
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L24+8
	bl	__isoc99_scanf
	ldr	r0, .L24+12
	bl	printf
	sub	r3, fp, #160
	mov	r1, r3
	ldr	r0, .L24+8
	bl	__isoc99_scanf
	sub	r2, fp, #160
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	kmp_match
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC7
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
