	.file	"240850.c"
	.intel_syntax noprefix
	.text
	.globl	hash
	.type	hash, @function
hash:
.LFB6:
	.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	QWORD PTR -40[rbp], rcx
	mov	DWORD PTR -44[rbp], r8d
	mov	QWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	imul	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rdx
	sub	rax, 31
	cqo
	idiv	QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rdx
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L3
	cmp	QWORD PTR -8[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR -40[rbp]
	add	QWORD PTR -8[rbp], rax
.L4:
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	hash, .-hash
	.globl	binPower
	.type	binPower, @function
binPower:
.LFB7:
	.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	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -8[rbp], 1
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 1
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR -8[rbp]
	imul	rax, QWORD PTR -24[rbp]
	cqo
	idiv	QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rdx
	sub	DWORD PTR -28[rbp], 1
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, rax
	mov	QWORD PTR -24[rbp], rax
	sar	DWORD PTR -28[rbp]
.L7:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	binPower, .-binPower
	.globl	rollingHash
	.type	rollingHash, @function
rollingHash:
.LFB8:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	QWORD PTR -32[rbp], rcx
	mov	QWORD PTR -40[rbp], r8
	mov	DWORD PTR -24[rbp], r9d
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 31
	cdqe
	imul	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	imul	rdx, rax
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR 16[rbp]
	add	eax, ecx
	cdqe
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rdx
	sub	rax, 31
	cqo
	idiv	QWORD PTR -32[rbp]
	mov	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	rollingHash, .-rollingHash
	.globl	isEqual
	.type	isEqual, @function
isEqual:
.LFB9:
	.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	QWORD PTR -40[rbp], rcx
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L15
	mov	eax, 0
	jmp	.L16
.L15:
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L17
	mov	eax, 1
.L16:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	isEqual, .-isEqual
	.globl	rabinKarp
	.type	rabinKarp, @function
rabinKarp:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	r8d, 2
	movabs	rcx, 999999000001
	mov	esi, 0
	mov	rdi, rax
	call	hash
	mov	QWORD PTR -16[rbp], rax
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, 2
	movabs	rcx, 999999000001
	mov	esi, 0
	mov	rdi, rax
	call	hash
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	movabs	rdx, 999999000001
	mov	esi, eax
	mov	edi, 2
	call	binPower
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -36[rbp], 1
	jmp	.L19
.L23:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jne	.L20
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	lea	edi, -1[rax]
	mov	eax, DWORD PTR -36[rbp]
	lea	esi, -1[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	isEqual
	test	al, al
	je	.L20
	mov	eax, DWORD PTR -36[rbp]
	jmp	.L21
.L20:
	mov	rdi, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -24[rbp]
	sub	rsp, 8
	mov	ecx, DWORD PTR -28[rbp]
	push	rcx
	mov	r9d, 2
	mov	r8, rdi
	movabs	rcx, 999999000001
	mov	rdi, rax
	call	rollingHash
	add	rsp, 16
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jns	.L22
	movabs	rax, 999999000001
	add	QWORD PTR -24[rbp], rax
.L22:
	add	DWORD PTR -36[rbp], 1
.L19:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -28[rbp]
	add	eax, 1
	cmp	DWORD PTR -36[rbp], eax
	jle	.L23
	mov	eax, -1
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	rabinKarp, .-rabinKarp
	.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	"240850.c"
	.text
	.global	__aeabi_ldivmod
	.align	2
	.global	hash
	.syntax unified
	.arm
	.fpu softvfp
	.type	hash, %function
hash:
	@ args = 12, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #32
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-40]
	b	.L2
.L3:
	ldr	r3, [fp, #12]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-36]
	mul	r2, r1, r3
	ldr	r3, [fp, #-32]
	mul	r3, r0, r3
	add	ip, r2, r3
	ldr	lr, [fp, #-36]
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-48]
	add	r1, r0, r1
	ldrb	r1, [r1]	@ zero_extendqisi2
	and	r0, r1, #255
	mov	r1, #0
	adds	r4, r2, r0
	adc	r5, r3, r1
	subs	r8, r4, #31
	sbc	r9, r5, #0
	ldmib	fp, {r2-r3}
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_ldivmod
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	bge	.L4
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	ldmib	fp, {r2-r3}
	adds	r6, r0, r2
	adc	r7, r1, r3
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
.L4:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	hash, .-hash
	.align	2
	.global	binPower
	.syntax unified
	.arm
	.fpu softvfp
	.type	binPower, %function
binPower:
	@ args = 8, 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, #-20]
	str	r1, [fp, #-16]
	str	r2, [fp, #-24]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L7
.L9:
	ldr	r3, [fp, #-24]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	add	r3, r2, r3
	ldr	ip, [fp, #-12]
	ldr	r2, [fp, #-20]
	umull	r0, r1, ip, r2
	add	r3, r3, r1
	mov	r1, r3
	ldmib	fp, {r2-r3}
	bl	__aeabi_ldivmod
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L7
.L8:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-20]
	mul	r3, r1, r3
	add	r0, r2, r3
	ldr	r1, [fp, #-20]
	umull	r2, r3, r1, r1
	add	r1, r0, r3
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	asr	r3, r3, #1
	str	r3, [fp, #-24]
.L7:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	binPower, .-binPower
	.align	2
	.global	rollingHash
	.syntax unified
	.arm
	.fpu softvfp
	.type	rollingHash, %function
rollingHash:
	@ args = 24, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #31
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #12]
	mul	r2, r1, r3
	ldr	r3, [fp, #16]
	mul	r3, r0, r3
	add	ip, r2, r3
	ldr	lr, [fp, #12]
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	ldr	r3, [fp, #20]
	mov	r0, r3
	asr	r1, r0, #31
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	ip, r2, r3
	umull	r2, r3, r4, r0
	add	r1, ip, r3
	mov	r3, r1
	ldr	r0, [fp, #-44]
	ldr	r1, [fp, #24]
	add	r1, r0, r1
	sub	r1, r1, #1
	ldr	r0, [fp, #-40]
	add	r1, r0, r1
	ldrb	r1, [r1]	@ zero_extendqisi2
	and	r0, r1, #255
	mov	r1, #0
	adds	r6, r2, r0
	adc	r7, r3, r1
	subs	r8, r6, #31
	sbc	r9, r7, #0
	ldmib	fp, {r2-r3}
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_ldivmod
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	rollingHash, .-rollingHash
	.align	2
	.global	isEqual
	.syntax unified
	.arm
	.fpu softvfp
	.type	isEqual, %function
isEqual:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L14
.L17:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-20]
	sub	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L15
	mov	r3, #0
	b	.L16
.L15:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L14:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L17
	mov	r3, #1
.L16:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isEqual, .-isEqual
	.align	2
	.global	rabinKarp
	.syntax unified
	.arm
	.fpu softvfp
	.type	rabinKarp, %function
rabinKarp:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #72
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-60]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-40]
	mov	r3, #2
	str	r3, [sp, #8]
	adr	r3, .L24
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-40]
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	hash
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	mov	r3, #2
	str	r3, [sp, #8]
	adr	r3, .L24
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-40]
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	hash
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	ldr	r3, [fp, #-40]
	sub	r1, r3, #1
	adr	r3, .L24
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r1
	mov	r0, #2
	mov	r1, #0
	bl	binPower
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-48]
	b	.L19
.L23:
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L20
	ldr	r3, [fp, #-48]
	sub	r1, r3, #1
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	isEqual
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-48]
	b	.L21
.L20:
	ldr	r3, [fp, #-40]
	str	r3, [sp, #20]
	mov	r3, #2
	str	r3, [sp, #16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	adr	r3, .L24
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	rollingHash
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	bge	.L22
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adr	r1, .L24
	ldmia	r1, {r0-r1}
	adds	r4, r2, r0
	adc	r5, r3, r1
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
.L22:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L19:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	ble	.L23
	mvn	r3, #0
.L21:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L25:
	.align	3
.L24:
	.word	-728379967
	.word	232
	.size	rabinKarp, .-rabinKarp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
