	.file	"95624.c"
	.intel_syntax noprefix
	.text
	.globl	s1
	.data
	.align 32
	.type	s1, @object
	.size	s1, 100
s1:
	.string	"rishirishirishirishirishir"
	.zero	73
	.globl	s2
	.align 8
	.type	s2, @object
	.size	s2, 10
s2:
	.string	"rishi"
	.zero	4
	.globl	n1
	.bss
	.align 4
	.type	n1, @object
	.size	n1, 4
n1:
	.zero	4
	.globl	n2
	.align 4
	.type	n2, @object
	.size	n2, 4
n2:
	.zero	4
	.globl	size
	.align 4
	.type	size, @object
	.size	size, 4
size:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	sum
	.align 4
	.type	sum, @object
	.size	sum, 4
sum:
	.zero	4
	.section	.rodata
.LC0:
	.string	"\nThread no: %ld\n"
	.align 8
.LC1:
	.string	"Total embeddings of s2 in s1 = %d\n"
	.text
	.globl	PrintHello
	.type	PrintHello, @function
PrintHello:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -16[rbp]
	test	rax, rax
	jne	.L2
	mov	DWORD PTR -36[rbp], 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR size[rip]
	imul	edx, eax
	mov	eax, DWORD PTR n2[rip]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -36[rbp], eax
.L3:
	mov	eax, DWORD PTR m[rip]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	cmp	rdx, rax
	jne	.L4
	mov	edx, DWORD PTR m[rip]
	mov	eax, DWORD PTR size[rip]
	imul	eax, edx
	lea	esi, -1[rax]
	mov	eax, DWORD PTR n1[rip]
	mov	ecx, DWORD PTR m[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	add	eax, esi
	mov	DWORD PTR -32[rbp], eax
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	mov	edx, eax
	mov	eax, DWORD PTR size[rip]
	imul	edx, eax
	mov	eax, DWORD PTR n2[rip]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	add	eax, edx
	sub	eax, 1
	mov	DWORD PTR -32[rbp], eax
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L6
.L10:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, s1[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, s2[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	jne	.L7
	mov	eax, DWORD PTR n2[rip]
	sub	eax, 1
	cmp	DWORD PTR -28[rbp], eax
	jne	.L8
	add	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -28[rbp], -1
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	StringPrint
.L8:
	add	DWORD PTR -36[rbp], 1
	add	DWORD PTR -28[rbp], 1
	jmp	.L6
.L7:
	cmp	DWORD PTR -28[rbp], 0
	je	.L9
	mov	DWORD PTR -28[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -28[rbp], 0
	add	DWORD PTR -36[rbp], 1
.L6:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L10
	mov	edx, DWORD PTR sum[rip]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	mov	DWORD PTR sum[rip], eax
	mov	eax, DWORD PTR sum[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	PrintHello, .-PrintHello
	.section	.rodata
.LC2:
	.string	"match at thread: %ld\n"
	.text
	.globl	StringPrint
	.type	StringPrint, @function
StringPrint:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	StringPrint, .-StringPrint
	.section	.rodata
.LC3:
	.string	"Enter s1: "
.LC4:
	.string	"%s"
.LC5:
	.string	"Enter s2: "
.LC6:
	.string	"Enter no of threads: "
.LC7:
	.string	"%d"
.LC8:
	.string	"\nCreating thread %ld\n"
	.align 8
.LC9:
	.string	"ERROR; return code from pthread_create() is %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR m[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -40[rbp], rdx
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	movsx	rdx, eax
	mov	rcx, rdx
	mov	ebx, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L14:
	cmp	rsp, rdx
	je	.L15
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L14
.L15:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L16
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L16:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -32[rbp], rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, s1[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, s2[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, s1[rip]
	call	strlen@PLT
	mov	DWORD PTR n1[rip], eax
	lea	rdi, s2[rip]
	call	strlen@PLT
	mov	DWORD PTR n2[rip], eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, m[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR n1[rip]
	mov	ebx, DWORD PTR m[rip]
	cdq
	idiv	ebx
	mov	DWORD PTR size[rip], eax
	mov	QWORD PTR -48[rbp], 0
	jmp	.L17
.L19:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rdi, [rcx+rdx]
	mov	rcx, rax
	lea	rdx, PrintHello[rip]
	mov	esi, 0
	call	pthread_create@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	je	.L18
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L18:
	add	QWORD PTR -48[rbp], 1
.L17:
	mov	eax, DWORD PTR m[rip]
	cdqe
	cmp	QWORD PTR -48[rbp], rax
	jl	.L19
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE8:
	.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	"95624.c"
	.text
	.global	s1
	.data
	.align	2
	.type	s1, %object
	.size	s1, 100
s1:
	.ascii	"rishirishirishirishirishir\000"
	.space	73
	.global	s2
	.align	2
	.type	s2, %object
	.size	s2, 10
s2:
	.ascii	"rishi\000"
	.space	4
	.comm	n1,4,4
	.comm	n2,4,4
	.global	size
	.bss
	.align	2
	.type	size, %object
	.size	size, 4
size:
	.space	4
	.global	m
	.align	2
	.type	m, %object
	.size	m, 4
m:
	.space	4
	.global	sum
	.align	2
	.type	sum, %object
	.size	sum, 4
sum:
	.space	4
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Thread no: %ld\012\000"
	.align	2
.LC1:
	.ascii	"Total embeddings of s2 in s1 = %d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	PrintHello
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintHello, %function
PrintHello:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L3
.L2:
	ldr	r3, [fp, #-40]
	ldr	r2, .L12+4
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, .L12+8
	ldr	r3, [r3]
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	add	r3, r2, r3
	str	r3, [fp, #-36]
.L3:
	ldr	r3, .L12+12
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bne	.L4
	ldr	r3, .L12+12
	ldr	r3, [r3]
	ldr	r2, .L12+4
	ldr	r2, [r2]
	mul	r3, r2, r3
	sub	r4, r3, #1
	ldr	r3, .L12+16
	ldr	r3, [r3]
	ldr	r2, .L12+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r4, r3
	str	r3, [fp, #-32]
	b	.L5
.L4:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldr	r2, .L12+4
	ldr	r2, [r2]
	mul	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, .L12+8
	ldr	r3, [r3]
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	add	r3, r2, r3
	str	r3, [fp, #-32]
.L5:
	ldr	r1, [fp, #-40]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	ldr	r0, .L12+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L6
.L10:
	ldr	r2, .L12+24
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, .L12+28
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L7
	ldr	r3, .L12+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L8
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-28]
	sub	r3, fp, #40
	mov	r0, r3
	bl	StringPrint
.L8:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L6
.L7:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L9
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L6
.L9:
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L6:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L10
	ldr	r3, .L12+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, .L12+32
	str	r3, [r2]
	ldr	r3, .L12+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+36
	bl	printf
	mov	r0, #0
	bl	pthread_exit
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	size
	.word	n2
	.word	m
	.word	n1
	.word	.LC0
	.word	s1
	.word	s2
	.word	sum
	.word	.LC1
	.size	PrintHello, .-PrintHello
	.section	.rodata
	.align	2
.LC3:
	.ascii	"match at thread: %ld\012\000"
	.text
	.align	2
	.global	StringPrint
	.syntax unified
	.arm
	.fpu softvfp
	.type	StringPrint, %function
StringPrint:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC3
	.size	StringPrint, .-StringPrint
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Enter s1: \000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"Enter s2: \000"
	.align	2
.LC7:
	.ascii	"Enter no of threads: \000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.global	__aeabi_idiv
	.align	2
.LC9:
	.ascii	"\012Creating thread %ld\012\000"
	.align	2
.LC10:
	.ascii	"ERROR; return code from pthread_create() is %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 = 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	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L22+4
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-20]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r0, .L22+8
	bl	printf
	ldr	r1, .L22+12
	ldr	r0, .L22+16
	bl	__isoc99_scanf
	ldr	r0, .L22+20
	bl	printf
	ldr	r1, .L22+24
	ldr	r0, .L22+16
	bl	__isoc99_scanf
	ldr	r0, .L22+12
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L22+28
	str	r2, [r3]
	ldr	r0, .L22+24
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L22+32
	str	r2, [r3]
	ldr	r0, .L22+36
	bl	printf
	ldr	r1, .L22+4
	ldr	r0, .L22+40
	bl	__isoc99_scanf
	ldr	r3, .L22+28
	ldr	r3, [r3]
	ldr	r2, .L22+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L22+44
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L18
.L20:
	ldr	r1, [fp, #-24]
	ldr	r0, .L22+48
	bl	printf
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r2, .L22+52
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L19
	ldr	r1, [fp, #-12]
	ldr	r0, .L22+56
	bl	printf
	mvn	r0, #0
	bl	exit
.L19:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L18:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L20
	mov	r0, #0
	bl	pthread_exit
.L23:
	.align	2
.L22:
	.word	.LC11
	.word	m
	.word	.LC4
	.word	s1
	.word	.LC5
	.word	.LC6
	.word	s2
	.word	n1
	.word	n2
	.word	.LC7
	.word	.LC8
	.word	size
	.word	.LC9
	.word	PrintHello
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
