	.file	"985397.c"
	.intel_syntax noprefix
	.text
	.globl	index_substring
	.type	index_substring, @function
index_substring:
.LFB0:
	.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	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	DWORD PTR -20[rbp], -1
	mov	DWORD PTR -16[rbp], 0
	jmp	.L4
.L10:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L5
.L9:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L11
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jne	.L8
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L7
.L8:
	add	DWORD PTR -12[rbp], 1
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L9
	jmp	.L7
.L11:
	nop
.L7:
	add	DWORD PTR -16[rbp], 1
.L4:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L10
	mov	eax, DWORD PTR -20[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	index_substring, .-index_substring
	.globl	index_match
	.type	index_match, @function
index_match:
.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, 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	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L13
	mov	eax, -1
	jmp	.L14
.L13:
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L16
	add	DWORD PTR -16[rbp], 1
	add	DWORD PTR -12[rbp], 1
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], 0
.L15:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jge	.L17
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L18
.L17:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jne	.L19
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -4[rbp]
	jmp	.L14
.L19:
	mov	eax, -1
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	index_match, .-index_match
	.globl	getNext
	.type	getNext, @function
getNext:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], -1
	jmp	.L21
.L24:
	cmp	DWORD PTR -8[rbp], -1
	je	.L22
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L23
.L22:
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L21
.L23:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
.L21:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jl	.L24
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	getNext, .-getNext
	.section	.rodata
.LC0:
	.string	"%d\t"
	.text
	.globl	kmp_index
	.type	kmp_index, @function
kmp_index:
.LFB3:
	.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, 472
	.cfi_offset 3, -24
	mov	QWORD PTR -472[rbp], rdi
	mov	QWORD PTR -480[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -472[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -440[rbp], eax
	mov	rax, QWORD PTR -480[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -436[rbp], eax
	mov	eax, DWORD PTR -440[rbp]
	cmp	eax, DWORD PTR -436[rbp]
	jge	.L26
	mov	eax, -1
	jmp	.L36
.L26:
	mov	DWORD PTR -452[rbp], 0
	mov	DWORD PTR -448[rbp], 0
	lea	rdx, -432[rbp]
	mov	eax, 0
	mov	ecx, 50
	mov	rdi, rdx
	rep stosq
	lea	rdx, -432[rbp]
	mov	rax, QWORD PTR -480[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getNext
	mov	DWORD PTR -444[rbp], 0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	eax, DWORD PTR -432[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -444[rbp], 1
.L28:
	mov	eax, DWORD PTR -444[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -480[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L29
	mov	edi, 10
	call	putchar@PLT
	jmp	.L30
.L34:
	cmp	DWORD PTR -448[rbp], -1
	je	.L31
	mov	eax, DWORD PTR -452[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -472[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -448[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -480[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L32
.L31:
	add	DWORD PTR -452[rbp], 1
	add	DWORD PTR -448[rbp], 1
	jmp	.L30
.L32:
	mov	eax, DWORD PTR -448[rbp]
	cdqe
	mov	eax, DWORD PTR -432[rbp+rax*4]
	mov	DWORD PTR -448[rbp], eax
.L30:
	mov	eax, DWORD PTR -452[rbp]
	cmp	eax, DWORD PTR -440[rbp]
	jge	.L33
	mov	eax, DWORD PTR -448[rbp]
	cmp	eax, DWORD PTR -436[rbp]
	jl	.L34
.L33:
	mov	eax, DWORD PTR -448[rbp]
	cmp	eax, DWORD PTR -436[rbp]
	jl	.L35
	mov	eax, DWORD PTR -452[rbp]
	sub	eax, DWORD PTR -436[rbp]
	jmp	.L36
.L35:
	mov	eax, -1
.L36:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	kmp_index, .-kmp_index
	.globl	kmp_indexOfPos
	.type	kmp_indexOfPos, @function
kmp_indexOfPos:
.LFB4:
	.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, 488
	.cfi_offset 3, -24
	mov	QWORD PTR -472[rbp], rdi
	mov	QWORD PTR -480[rbp], rsi
	mov	DWORD PTR -484[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -472[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -440[rbp], eax
	mov	rax, QWORD PTR -480[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -436[rbp], eax
	mov	eax, DWORD PTR -440[rbp]
	cmp	eax, DWORD PTR -436[rbp]
	jge	.L39
	mov	eax, -1
	jmp	.L49
.L39:
	mov	eax, DWORD PTR -484[rbp]
	mov	DWORD PTR -452[rbp], eax
	mov	DWORD PTR -448[rbp], 0
	lea	rdx, -432[rbp]
	mov	eax, 0
	mov	ecx, 50
	mov	rdi, rdx
	rep stosq
	lea	rdx, -432[rbp]
	mov	rax, QWORD PTR -480[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getNext
	mov	DWORD PTR -444[rbp], 0
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	eax, DWORD PTR -432[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -444[rbp], 1
.L41:
	mov	eax, DWORD PTR -444[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -480[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L42
	mov	edi, 10
	call	putchar@PLT
	jmp	.L43
.L47:
	cmp	DWORD PTR -448[rbp], -1
	je	.L44
	mov	eax, DWORD PTR -452[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -472[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -448[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -480[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L45
.L44:
	add	DWORD PTR -452[rbp], 1
	add	DWORD PTR -448[rbp], 1
	jmp	.L43
.L45:
	mov	eax, DWORD PTR -448[rbp]
	cdqe
	mov	eax, DWORD PTR -432[rbp+rax*4]
	mov	DWORD PTR -448[rbp], eax
.L43:
	mov	eax, DWORD PTR -452[rbp]
	cmp	eax, DWORD PTR -440[rbp]
	jge	.L46
	mov	eax, DWORD PTR -448[rbp]
	cmp	eax, DWORD PTR -436[rbp]
	jl	.L47
.L46:
	mov	eax, DWORD PTR -448[rbp]
	cmp	eax, DWORD PTR -436[rbp]
	jl	.L48
	mov	eax, DWORD PTR -452[rbp]
	sub	eax, DWORD PTR -436[rbp]
	jmp	.L49
.L48:
	mov	eax, -1
.L49:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	kmp_indexOfPos, .-kmp_indexOfPos
	.globl	getNextVal
	.type	getNextVal, @function
getNextVal:
.LFB5:
	.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	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], -1
	jmp	.L52
.L57:
	cmp	DWORD PTR -8[rbp], -1
	je	.L53
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L54
.L53:
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L55
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L52
.L55:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	jmp	.L52
.L54:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
.L52:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L57
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	getNextVal, .-getNextVal
	.globl	kmp_indexVal
	.type	kmp_indexVal, @function
kmp_indexVal:
.LFB6:
	.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, 472
	.cfi_offset 3, -24
	mov	QWORD PTR -472[rbp], rdi
	mov	QWORD PTR -480[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -472[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -440[rbp], eax
	mov	rax, QWORD PTR -480[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -436[rbp], eax
	mov	eax, DWORD PTR -440[rbp]
	cmp	eax, DWORD PTR -436[rbp]
	jge	.L59
	mov	eax, -1
	jmp	.L69
.L59:
	mov	DWORD PTR -452[rbp], 0
	mov	DWORD PTR -448[rbp], 0
	lea	rdx, -432[rbp]
	mov	eax, 0
	mov	ecx, 50
	mov	rdi, rdx
	rep stosq
	lea	rdx, -432[rbp]
	mov	rax, QWORD PTR -480[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getNext
	mov	DWORD PTR -444[rbp], 0
	jmp	.L61
.L62:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	eax, DWORD PTR -432[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -444[rbp], 1
.L61:
	mov	eax, DWORD PTR -444[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -480[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L62
	mov	edi, 10
	call	putchar@PLT
	jmp	.L63
.L67:
	cmp	DWORD PTR -448[rbp], -1
	je	.L64
	mov	eax, DWORD PTR -452[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -472[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -448[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -480[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L65
.L64:
	add	DWORD PTR -452[rbp], 1
	add	DWORD PTR -448[rbp], 1
	jmp	.L63
.L65:
	mov	eax, DWORD PTR -448[rbp]
	cdqe
	mov	eax, DWORD PTR -432[rbp+rax*4]
	mov	DWORD PTR -448[rbp], eax
.L63:
	mov	eax, DWORD PTR -452[rbp]
	cmp	eax, DWORD PTR -440[rbp]
	jge	.L66
	mov	eax, DWORD PTR -448[rbp]
	cmp	eax, DWORD PTR -436[rbp]
	jl	.L67
.L66:
	mov	eax, DWORD PTR -448[rbp]
	cmp	eax, DWORD PTR -436[rbp]
	jl	.L68
	mov	eax, DWORD PTR -452[rbp]
	sub	eax, DWORD PTR -436[rbp]
	jmp	.L69
.L68:
	mov	eax, -1
.L69:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L70
	call	__stack_chk_fail@PLT
.L70:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	kmp_indexVal, .-kmp_indexVal
	.section	.rodata
.LC1:
	.string	"ababcababaf"
.LC2:
	.string	"bca"
.LC3:
	.string	"%s\345\234\250%s\344\270\255\347\232\204\345\214\271\351\205\215\344\275\215\347\275\256:%d\n"
.LC4:
	.string	"abaabcac"
.LC5:
	.string	"abcdabcefhm"
.LC6:
	.string	"cef"
.LC7:
	.string	"kmp_indexOfPos position:%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
	push	rbx
	sub	rsp, 904
	.cfi_offset 3, -24
	mov	DWORD PTR -900[rbp], edi
	mov	QWORD PTR -912[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -872[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -864[rbp], rax
	mov	rdx, QWORD PTR -864[rbp]
	mov	rax, QWORD PTR -872[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	kmp_indexVal
	mov	DWORD PTR -880[rbp], eax
	mov	ecx, DWORD PTR -880[rbp]
	mov	rdx, QWORD PTR -872[rbp]
	mov	rax, QWORD PTR -864[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, .LC4[rip]
	mov	QWORD PTR -856[rbp], rax
	lea	rdx, -832[rbp]
	mov	eax, 0
	mov	ecx, 50
	mov	rdi, rdx
	rep stosq
	lea	rdx, -832[rbp]
	mov	rax, QWORD PTR -856[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getNext
	mov	DWORD PTR -888[rbp], 0
	jmp	.L72
.L73:
	mov	eax, DWORD PTR -888[rbp]
	cdqe
	mov	eax, DWORD PTR -832[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -888[rbp], 1
.L72:
	mov	eax, DWORD PTR -888[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -856[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L73
	mov	edi, 10
	call	putchar@PLT
	lea	rdx, -432[rbp]
	mov	eax, 0
	mov	ecx, 50
	mov	rdi, rdx
	rep stosq
	lea	rdx, -432[rbp]
	mov	rax, QWORD PTR -856[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getNextVal
	mov	DWORD PTR -884[rbp], 0
	jmp	.L74
.L75:
	mov	eax, DWORD PTR -884[rbp]
	cdqe
	mov	eax, DWORD PTR -432[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -884[rbp], 1
.L74:
	mov	eax, DWORD PTR -884[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -856[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L75
	mov	edi, 10
	call	putchar@PLT
	lea	rax, .LC5[rip]
	mov	QWORD PTR -848[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -840[rbp], rax
	mov	rcx, QWORD PTR -840[rbp]
	mov	rax, QWORD PTR -848[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	rdi, rax
	call	kmp_indexOfPos
	mov	DWORD PTR -876[rbp], eax
	mov	eax, DWORD PTR -876[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L77
	call	__stack_chk_fail@PLT
.L77:
	mov	rbx, QWORD PTR -8[rbp]
	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	"985397.c"
	.text
	.align	2
	.global	index_substring
	.syntax unified
	.arm
	.fpu softvfp
	.type	index_substring, %function
index_substring:
	@ 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]
	str	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L2
	mvn	r3, #0
	b	.L3
.L2:
	mvn	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L4
.L10:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L5
.L9:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-36]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L11
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L8
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	b	.L7
.L8:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L5:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L9
	b	.L7
.L11:
	nop
.L7:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L4:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-24]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	index_substring, .-index_substring
	.align	2
	.global	index_match
	.syntax unified
	.arm
	.fpu softvfp
	.type	index_match, %function
index_match:
	@ 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]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L13
	mvn	r3, #0
	b	.L14
.L13:
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L15
.L18:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L16
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L15
.L16:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
.L15:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L17
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L18
.L17:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L19
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	b	.L14
.L19:
	mvn	r3, #0
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	index_match, .-index_match
	.align	2
	.global	getNext
	.syntax unified
	.arm
	.fpu softvfp
	.type	getNext, %function
getNext:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	mvn	r2, #0
	str	r2, [r3]
	b	.L21
.L24:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L22
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L23
.L22:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	b	.L21
.L23:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L21:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L24
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getNext, .-getNext
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\011\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kmp_index
	.syntax unified
	.arm
	.fpu softvfp
	.type	kmp_index, %function
kmp_index:
	@ args = 0, pretend = 0, frame = 432
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #432
	str	r0, [fp, #-432]
	str	r1, [fp, #-436]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-432]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-416]
	ldr	r0, [fp, #-436]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-412]
	ldr	r2, [fp, #-416]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	bge	.L26
	mvn	r3, #0
	b	.L36
.L26:
	mov	r3, #0
	str	r3, [fp, #-428]
	mov	r3, #0
	str	r3, [fp, #-424]
	sub	r3, fp, #408
	mov	r2, #400
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #408
	mov	r1, r3
	ldr	r0, [fp, #-436]
	bl	getNext
	mov	r3, #0
	str	r3, [fp, #-420]
	b	.L28
.L29:
	ldr	r3, [fp, #-420]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r1, r3
	ldr	r0, .L38+4
	bl	printf
	ldr	r3, [fp, #-420]
	add	r3, r3, #1
	str	r3, [fp, #-420]
.L28:
	ldr	r0, [fp, #-436]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-420]
	cmp	r2, r3
	bhi	.L29
	mov	r0, #10
	bl	putchar
	b	.L30
.L34:
	ldr	r3, [fp, #-424]
	cmn	r3, #1
	beq	.L31
	ldr	r3, [fp, #-428]
	ldr	r2, [fp, #-432]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-424]
	ldr	r1, [fp, #-436]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L32
.L31:
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	str	r3, [fp, #-428]
	ldr	r3, [fp, #-424]
	add	r3, r3, #1
	str	r3, [fp, #-424]
	b	.L30
.L32:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	str	r3, [fp, #-424]
.L30:
	ldr	r2, [fp, #-428]
	ldr	r3, [fp, #-416]
	cmp	r2, r3
	bge	.L33
	ldr	r2, [fp, #-424]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	blt	.L34
.L33:
	ldr	r2, [fp, #-424]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	blt	.L35
	ldr	r2, [fp, #-428]
	ldr	r3, [fp, #-412]
	sub	r3, r2, r3
	b	.L36
.L35:
	mvn	r3, #0
.L36:
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC1
	.word	.LC0
	.size	kmp_index, .-kmp_index
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kmp_indexOfPos
	.syntax unified
	.arm
	.fpu softvfp
	.type	kmp_indexOfPos, %function
kmp_indexOfPos:
	@ args = 0, pretend = 0, frame = 440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #440
	str	r0, [fp, #-432]
	str	r1, [fp, #-436]
	str	r2, [fp, #-440]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-432]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-416]
	ldr	r0, [fp, #-436]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-412]
	ldr	r2, [fp, #-416]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	bge	.L41
	mvn	r3, #0
	b	.L51
.L41:
	ldr	r3, [fp, #-440]
	str	r3, [fp, #-428]
	mov	r3, #0
	str	r3, [fp, #-424]
	sub	r3, fp, #408
	mov	r2, #400
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #408
	mov	r1, r3
	ldr	r0, [fp, #-436]
	bl	getNext
	mov	r3, #0
	str	r3, [fp, #-420]
	b	.L43
.L44:
	ldr	r3, [fp, #-420]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r1, r3
	ldr	r0, .L53+4
	bl	printf
	ldr	r3, [fp, #-420]
	add	r3, r3, #1
	str	r3, [fp, #-420]
.L43:
	ldr	r0, [fp, #-436]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-420]
	cmp	r2, r3
	bhi	.L44
	mov	r0, #10
	bl	putchar
	b	.L45
.L49:
	ldr	r3, [fp, #-424]
	cmn	r3, #1
	beq	.L46
	ldr	r3, [fp, #-428]
	ldr	r2, [fp, #-432]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-424]
	ldr	r1, [fp, #-436]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L47
.L46:
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	str	r3, [fp, #-428]
	ldr	r3, [fp, #-424]
	add	r3, r3, #1
	str	r3, [fp, #-424]
	b	.L45
.L47:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	str	r3, [fp, #-424]
.L45:
	ldr	r2, [fp, #-428]
	ldr	r3, [fp, #-416]
	cmp	r2, r3
	bge	.L48
	ldr	r2, [fp, #-424]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	blt	.L49
.L48:
	ldr	r2, [fp, #-424]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	blt	.L50
	ldr	r2, [fp, #-428]
	ldr	r3, [fp, #-412]
	sub	r3, r2, r3
	b	.L51
.L50:
	mvn	r3, #0
.L51:
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC2
	.word	.LC0
	.size	kmp_indexOfPos, .-kmp_indexOfPos
	.align	2
	.global	getNextVal
	.syntax unified
	.arm
	.fpu softvfp
	.type	getNextVal, %function
getNextVal:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	mvn	r2, #0
	str	r2, [r3]
	b	.L56
.L61:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L57
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L58
.L57:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L59
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	b	.L56
.L59:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L56
.L58:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L56:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L61
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getNextVal, .-getNextVal
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kmp_indexVal
	.syntax unified
	.arm
	.fpu softvfp
	.type	kmp_indexVal, %function
kmp_indexVal:
	@ args = 0, pretend = 0, frame = 432
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #432
	str	r0, [fp, #-432]
	str	r1, [fp, #-436]
	ldr	r3, .L75
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-432]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-416]
	ldr	r0, [fp, #-436]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-412]
	ldr	r2, [fp, #-416]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	bge	.L63
	mvn	r3, #0
	b	.L73
.L63:
	mov	r3, #0
	str	r3, [fp, #-428]
	mov	r3, #0
	str	r3, [fp, #-424]
	sub	r3, fp, #408
	mov	r2, #400
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #408
	mov	r1, r3
	ldr	r0, [fp, #-436]
	bl	getNext
	mov	r3, #0
	str	r3, [fp, #-420]
	b	.L65
.L66:
	ldr	r3, [fp, #-420]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r1, r3
	ldr	r0, .L75+4
	bl	printf
	ldr	r3, [fp, #-420]
	add	r3, r3, #1
	str	r3, [fp, #-420]
.L65:
	ldr	r0, [fp, #-436]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-420]
	cmp	r2, r3
	bhi	.L66
	mov	r0, #10
	bl	putchar
	b	.L67
.L71:
	ldr	r3, [fp, #-424]
	cmn	r3, #1
	beq	.L68
	ldr	r3, [fp, #-428]
	ldr	r2, [fp, #-432]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-424]
	ldr	r1, [fp, #-436]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L69
.L68:
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	str	r3, [fp, #-428]
	ldr	r3, [fp, #-424]
	add	r3, r3, #1
	str	r3, [fp, #-424]
	b	.L67
.L69:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	str	r3, [fp, #-424]
.L67:
	ldr	r2, [fp, #-428]
	ldr	r3, [fp, #-416]
	cmp	r2, r3
	bge	.L70
	ldr	r2, [fp, #-424]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	blt	.L71
.L70:
	ldr	r2, [fp, #-424]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	blt	.L72
	ldr	r2, [fp, #-428]
	ldr	r3, [fp, #-412]
	sub	r3, r2, r3
	b	.L73
.L72:
	mvn	r3, #0
.L73:
	ldr	r2, .L75
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L74
	bl	__stack_chk_fail
.L74:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC3
	.word	.LC0
	.size	kmp_indexVal, .-kmp_indexVal
	.section	.rodata
	.align	2
.LC4:
	.ascii	"ababcababaf\000"
	.align	2
.LC5:
	.ascii	"bca\000"
	.align	2
.LC6:
	.ascii	"%s\345\234\250%s\344\270\255\347\232\204\345\214\271"
	.ascii	"\351\205\215\344\275\215\347\275\256:%d\012\000"
	.align	2
.LC7:
	.ascii	"abaabcac\000"
	.align	2
.LC8:
	.ascii	"abcdabcefhm\000"
	.align	2
.LC9:
	.ascii	"cef\000"
	.align	2
.LC10:
	.ascii	"kmp_indexOfPos position:%d\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 848
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #848
	str	r0, [fp, #-848]
	str	r1, [fp, #-852]
	ldr	r3, .L84
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L84+4
	str	r3, [fp, #-836]
	ldr	r3, .L84+8
	str	r3, [fp, #-832]
	ldr	r1, [fp, #-832]
	ldr	r0, [fp, #-836]
	bl	kmp_indexVal
	str	r0, [fp, #-828]
	ldr	r3, [fp, #-828]
	ldr	r2, [fp, #-836]
	ldr	r1, [fp, #-832]
	ldr	r0, .L84+12
	bl	printf
	ldr	r3, .L84+16
	str	r3, [fp, #-824]
	sub	r3, fp, #808
	mov	r2, #400
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #808
	mov	r1, r3
	ldr	r0, [fp, #-824]
	bl	getNext
	mov	r3, #0
	str	r3, [fp, #-844]
	b	.L78
.L79:
	ldr	r3, [fp, #-844]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-804]
	mov	r1, r3
	ldr	r0, .L84+20
	bl	printf
	ldr	r3, [fp, #-844]
	add	r3, r3, #1
	str	r3, [fp, #-844]
.L78:
	ldr	r0, [fp, #-824]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-844]
	cmp	r2, r3
	bhi	.L79
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #408
	mov	r2, #400
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #408
	mov	r1, r3
	ldr	r0, [fp, #-824]
	bl	getNextVal
	mov	r3, #0
	str	r3, [fp, #-840]
	b	.L80
.L81:
	ldr	r3, [fp, #-840]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r1, r3
	ldr	r0, .L84+20
	bl	printf
	ldr	r3, [fp, #-840]
	add	r3, r3, #1
	str	r3, [fp, #-840]
.L80:
	ldr	r0, [fp, #-824]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-840]
	cmp	r2, r3
	bhi	.L81
	mov	r0, #10
	bl	putchar
	ldr	r3, .L84+24
	str	r3, [fp, #-820]
	ldr	r3, .L84+28
	str	r3, [fp, #-816]
	mov	r2, #2
	ldr	r1, [fp, #-816]
	ldr	r0, [fp, #-820]
	bl	kmp_indexOfPos
	str	r0, [fp, #-812]
	ldr	r1, [fp, #-812]
	ldr	r0, .L84+32
	bl	printf
	mov	r3, #0
	ldr	r2, .L84
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L83
	bl	__stack_chk_fail
.L83:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC11
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC0
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
