	.file	"45635.c"
	.intel_syntax noprefix
	.text
	.globl	StrCompare
	.type	StrCompare, @function
StrCompare:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], 1
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	edx, BYTE PTR 16[rbp+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR 280[rbp+rax]
	cmp	dl, al
	je	.L3
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR 16[rbp+rax]
	movsx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR 280[rbp+rax]
	movsx	ecx, al
	mov	eax, edx
	sub	eax, ecx
	jmp	.L4
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR 272[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jg	.L5
	mov	eax, DWORD PTR 536[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L6
.L5:
	mov	eax, DWORD PTR 272[rbp]
	mov	edx, DWORD PTR 536[rbp]
	sub	eax, edx
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	StrCompare, .-StrCompare
	.globl	SubString
	.type	SubString, @function
SubString:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	lea	edx, -1[rax]
	mov	eax, DWORD PTR 272[rbp]
	cmp	edx, eax
	jle	.L8
	mov	eax, 0
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -28[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	ecx, BYTE PTR 16[rbp+rax]
	mov	rdx, QWORD PTR -24[rbp]
	movsx	rax, esi
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -4[rbp], 1
.L10:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	cmp	DWORD PTR -4[rbp], eax
	jl	.L11
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR 256[rax], edx
	mov	eax, 1
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	SubString, .-SubString
	.globl	Index
	.type	Index, @function
Index:
.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -276[rbp], 1
	jmp	.L13
.L16:
	mov	r10d, DWORD PTR 536[rbp]
	mov	r9d, DWORD PTR -276[rbp]
	lea	r8, -272[rbp]
	sub	rsp, 264
	mov	rax, rsp
	mov	rdx, rax
	lea	rax, 16[rbp]
	mov	ecx, 32
	mov	rdi, rdx
	mov	rsi, rax
	rep movsq
	mov	rax, rsi
	mov	rdx, rdi
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR [rdx], ecx
	mov	edx, r10d
	mov	esi, r9d
	mov	rdi, r8
	call	SubString
	add	rsp, 264
	sub	rsp, 264
	mov	rax, rsp
	mov	rdx, rax
	lea	rax, 280[rbp]
	mov	ecx, 32
	mov	rdi, rdx
	mov	rsi, rax
	rep movsq
	mov	rax, rsi
	mov	rdx, rdi
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR [rdx], ecx
	sub	rsp, 264
	mov	rax, rsp
	mov	rdx, rax
	lea	rax, -272[rbp]
	mov	ecx, 32
	mov	rdi, rdx
	mov	rsi, rax
	rep movsq
	mov	rax, rsi
	mov	rdx, rdi
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR [rdx], ecx
	call	StrCompare
	add	rsp, 528
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR -276[rbp]
	jmp	.L17
.L14:
	add	DWORD PTR -276[rbp], 1
.L13:
	mov	eax, DWORD PTR 272[rbp]
	mov	edx, DWORD PTR 536[rbp]
	sub	eax, edx
	add	eax, 1
	cmp	DWORD PTR -276[rbp], eax
	jle	.L16
	mov	eax, 0
.L17:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	Index, .-Index
	.globl	naivePatternMatchingAlgorithm
	.type	naivePatternMatchingAlgorithm, @function
naivePatternMatchingAlgorithm:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -8[rbp], 1
	mov	DWORD PTR -4[rbp], 1
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	edx, BYTE PTR 16[rbp+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR 280[rbp+rax]
	cmp	dl, al
	jne	.L21
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -4[rbp], 1
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -4[rbp]
	add	eax, 2
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -4[rbp], 1
.L20:
	mov	eax, DWORD PTR 272[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jg	.L22
	mov	eax, DWORD PTR 536[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L23
.L22:
	mov	eax, DWORD PTR 536[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L24
	mov	edx, DWORD PTR 536[rbp]
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, edx
	jmp	.L26
.L24:
	mov	eax, 0
.L26:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	naivePatternMatchingAlgorithm, .-naivePatternMatchingAlgorithm
	.globl	Index_KMP
	.type	Index_KMP, @function
Index_KMP:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 1
	mov	DWORD PTR -4[rbp], 1
	jmp	.L28
.L32:
	cmp	DWORD PTR -4[rbp], 0
	je	.L29
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	edx, BYTE PTR 16[rbp+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR 280[rbp+rax]
	cmp	dl, al
	jne	.L30
.L29:
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -4[rbp], 1
	jmp	.L28
.L30:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
.L28:
	mov	eax, DWORD PTR 272[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jg	.L31
	mov	eax, DWORD PTR 536[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L32
.L31:
	mov	eax, DWORD PTR 536[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L33
	mov	edx, DWORD PTR 536[rbp]
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, edx
	jmp	.L35
.L33:
	mov	eax, 0
.L35:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	Index_KMP, .-Index_KMP
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	"45635.c"
	.text
	.align	2
	.global	StrCompare
	.syntax unified
	.arm
	.fpu softvfp
	.type	StrCompare, %function
StrCompare:
	@ args = 520, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #16
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L2
.L6:
	ldr	r3, [fp, #-8]
	add	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r1, fp, #264
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L3
	ldr	r3, [fp, #-8]
	add	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	add	r2, fp, #264
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r1, r3
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #260]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L5
	ldr	r3, [fp, #520]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L6
.L5:
	ldr	r2, [fp, #260]
	ldr	r3, [fp, #520]
	sub	r3, r2, r3
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
	.size	StrCompare, .-StrCompare
	.align	2
	.global	SubString
	.syntax unified
	.arm
	.fpu softvfp
	.type	SubString, %function
SubString:
	@ args = 272, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #16
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r2, [fp, #268]
	ldr	r3, [fp, #272]
	add	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #264]
	cmp	r2, r3
	ble	.L8
	mov	r3, #0
	b	.L9
.L8:
	ldr	r3, [fp, #268]
	str	r3, [fp, #-8]
	b	.L10
.L11:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #268]
	sub	r3, r2, r3
	add	r3, r3, #1
	add	r1, fp, #8
	ldr	r2, [fp, #-8]
	add	r2, r1, r2
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r2, [fp, #268]
	ldr	r3, [fp, #272]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #272]
	str	r2, [r3, #256]
	mov	r3, #1
.L9:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
	.size	SubString, .-SubString
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Index
	.syntax unified
	.arm
	.fpu softvfp
	.type	Index, %function
Index:
	@ args = 520, pretend = 16, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #780
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-280]
	b	.L13
.L16:
	ldr	r3, [fp, #520]
	sub	r4, fp, #276
	str	r3, [sp, #252]
	ldr	r3, [fp, #-280]
	str	r3, [sp, #248]
	mov	r0, sp
	add	r3, fp, #16
	mov	r2, #248
	mov	r1, r3
	bl	memcpy
	add	r3, fp, #4
	ldm	r3, {r1, r2, r3}
	mov	r0, r4
	bl	SubString
	add	r0, sp, #244
	add	r3, fp, #264
	mov	r2, #260
	mov	r1, r3
	bl	memcpy
	mov	r0, sp
	sub	r3, fp, #260
	mov	r2, #244
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #276
	ldm	r3, {r0, r1, r2, r3}
	bl	StrCompare
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-280]
	b	.L17
.L14:
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L13:
	ldr	r2, [fp, #260]
	ldr	r3, [fp, #520]
	sub	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-280]
	cmp	r2, r3
	ble	.L16
	mov	r3, #0
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, lr}
	add	sp, sp, #16
	bx	lr
.L20:
	.align	2
.L19:
	.word	.LC0
	.size	Index, .-Index
	.align	2
	.global	naivePatternMatchingAlgorithm
	.syntax unified
	.arm
	.fpu softvfp
	.type	naivePatternMatchingAlgorithm, %function
naivePatternMatchingAlgorithm:
	@ args = 520, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #16
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L22
.L25:
	ldr	r3, [fp, #-12]
	add	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r1, fp, #264
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L23
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L22
.L23:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	add	r3, r3, #2
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
.L22:
	ldr	r3, [fp, #260]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bgt	.L24
	ldr	r3, [fp, #520]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L25
.L24:
	ldr	r3, [fp, #520]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L26
	ldr	r3, [fp, #520]
	ldr	r2, [fp, #-12]
	sub	r3, r2, r3
	b	.L28
.L26:
	mov	r3, #0
.L28:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
	.size	naivePatternMatchingAlgorithm, .-naivePatternMatchingAlgorithm
	.align	2
	.global	Index_KMP
	.syntax unified
	.arm
	.fpu softvfp
	.type	Index_KMP, %function
Index_KMP:
	@ args = 524, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #16
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L30
.L34:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-12]
	add	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r1, fp, #264
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L32
.L31:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L30
.L32:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #524]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L30:
	ldr	r3, [fp, #260]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bgt	.L33
	ldr	r3, [fp, #520]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L34
.L33:
	ldr	r3, [fp, #520]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L35
	ldr	r3, [fp, #520]
	ldr	r2, [fp, #-12]
	sub	r3, r2, r3
	b	.L37
.L35:
	mov	r3, #0
.L37:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
	.size	Index_KMP, .-Index_KMP
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
