	.file	"129930.c"
	.intel_syntax noprefix
	.text
	.globl	laplacian
	.type	laplacian, @function
laplacian:
.LFB6:
	.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	QWORD PTR -48[rbp], xmm1
	mov	QWORD PTR -56[rbp], rcx
	mov	QWORD PTR -64[rbp], r8
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	imul	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 1
	jmp	.L2
.L7:
	mov	DWORD PTR -16[rbp], 1
	jmp	.L3
.L6:
	mov	DWORD PTR -8[rbp], 1
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -24[rbp]
	imul	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movapd	xmm1, xmm0
	mulsd	xmm1, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -12[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -24[rbp]
	imul	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm2, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -12[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -24[rbp]
	imul	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	addsd	xmm2, xmm0
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	imul	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -24[rbp]
	imul	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	addsd	xmm2, xmm0
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -24[rbp]
	imul	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	addsd	xmm2, xmm0
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	add	edx, 1
	imul	eax, edx
	add	eax, ecx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	addsd	xmm2, xmm0
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	sub	edx, 1
	imul	eax, edx
	add	eax, ecx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	addsd	xmm0, xmm2
	mulsd	xmm0, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -24[rbp]
	imul	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -8[rbp], 1
.L4:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jl	.L5
	add	DWORD PTR -16[rbp], 1
.L3:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cmp	DWORD PTR -16[rbp], eax
	jl	.L6
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jl	.L7
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	laplacian, .-laplacian
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: %s <nx> <ny> <ns> <nt>\n"
.LC1:
	.string	"Value for nx is invalid: %d\n"
.LC2:
	.string	"Value for ny is invalid: %d\n"
.LC3:
	.string	"Value for ns is invalid: %d\n"
.LC4:
	.string	"Value for nt is invalid: %d\n"
.LC6:
	.string	"alpha = %f, beta = %f\n"
	.align 8
.LC7:
	.string	"Error allocating memory for arrays: %p, %p\n"
.LC10:
	.string	"Final mean = %f\n"
.LC11:
	.string	"Time for computing: %.2f s\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
	sub	rsp, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -132[rbp], 5
	je	.L10
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	edi, 17
	call	srand@PLT
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], 0
	jns	.L11
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L12
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -112[rbp], eax
	cmp	DWORD PTR -112[rbp], 0
	jns	.L13
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	jns	.L14
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -72[rbp], xmm0
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -64[rbp], xmm0
	movsd	xmm0, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 2
	call	printf@PLT
	mov	edx, DWORD PTR -120[rbp]
	mov	eax, DWORD PTR -116[rbp]
	imul	edx, eax
	mov	eax, DWORD PTR -112[rbp]
	imul	eax, edx
	mov	DWORD PTR -104[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	sal	eax, 3
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	je	.L15
	cmp	QWORD PTR -80[rbp], 0
	jne	.L16
.L15:
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	DWORD PTR -128[rbp], 0
	jmp	.L17
.L18:
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -128[rbp], 1
.L17:
	mov	eax, DWORD PTR -128[rbp]
	cmp	DWORD PTR -104[rbp], eax
	ja	.L18
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC8[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	mov	DWORD PTR -124[rbp], 0
	jmp	.L19
.L20:
	mov	r8, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR -88[rbp]
	movsd	xmm0, QWORD PTR -64[rbp]
	mov	rdi, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -112[rbp]
	mov	esi, DWORD PTR -116[rbp]
	mov	eax, DWORD PTR -120[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rdi
	mov	edi, eax
	call	laplacian
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -80[rbp], rax
	add	DWORD PTR -124[rbp], 1
.L19:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L20
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC8[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR -48[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -96[rbp], xmm0
	mov	DWORD PTR -128[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR -96[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -96[rbp], xmm0
	add	DWORD PTR -128[rbp], 1
.L21:
	mov	eax, DWORD PTR -128[rbp]
	cmp	DWORD PTR -104[rbp], eax
	ja	.L22
	mov	eax, DWORD PTR -104[rbp]
	test	rax, rax
	js	.L23
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L24
.L23:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L24:
	movsd	xmm1, QWORD PTR -96[rbp]
	divsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR -48[rbp]
	subsd	xmm0, QWORD PTR -56[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	-4194304
	.long	1105199103
	.align 8
.LC8:
	.long	0
	.long	1093567616
	.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	"129930.c"
	.text
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
	.global	laplacian
	.syntax unified
	.arm
	.fpu softvfp
	.type	laplacian, %function
laplacian:
	@ args = 24, 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]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	ldr	r2, [fp, #-56]
	mul	r3, r2, r3
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L2
.L7:
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L3
.L6:
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L4
.L5:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-40]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-52]
	mul	r3, r1, r3
	ldr	r1, [fp, #-36]
	mul	r3, r1, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldmib	fp, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-40]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-52]
	mul	r3, r1, r3
	ldr	r1, [fp, #-36]
	mul	r3, r1, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-44]
	sub	r2, r3, #1
	ldr	r3, [fp, #-48]
	ldr	ip, [fp, #-40]
	mul	r3, ip, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	ldr	ip, [fp, #-52]
	mul	r3, ip, r3
	ldr	ip, [fp, #-36]
	mul	r3, ip, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldr	r2, [fp, #-48]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-52]
	mul	r3, r1, r3
	ldr	r1, [fp, #-36]
	mul	r3, r1, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	ldr	r2, [fp, #-48]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-52]
	mul	r3, r1, r3
	ldr	r1, [fp, #-36]
	mul	r3, r1, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-40]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-52]
	mul	r3, r1, r3
	ldr	r1, [fp, #-36]
	add	r1, r1, #1
	mul	r3, r1, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-40]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-52]
	mul	r3, r1, r3
	ldr	r1, [fp, #-36]
	sub	r1, r1, #1
	mul	r3, r1, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-40]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-52]
	mul	r3, r1, r3
	ldr	r1, [fp, #-36]
	mul	r3, r1, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #24]
	add	r4, r2, r3
	mov	r2, r8
	mov	r3, r9
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L4:
	ldr	r3, [fp, #-56]
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L3:
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	laplacian, .-laplacian
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s <nx> <ny> <ns> <nt>\012\000"
	.align	2
.LC1:
	.ascii	"Value for nx is invalid: %d\012\000"
	.align	2
.LC2:
	.ascii	"Value for ny is invalid: %d\012\000"
	.align	2
.LC3:
	.ascii	"Value for ns is invalid: %d\012\000"
	.align	2
.LC4:
	.ascii	"Value for nt is invalid: %d\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC5:
	.ascii	"alpha = %f, beta = %f\012\000"
	.align	2
.LC6:
	.ascii	"Error allocating memory for arrays: %p, %p\012\000"
	.global	__aeabi_ui2d
	.align	2
.LC7:
	.ascii	"Final mean = %f\012\000"
	.global	__aeabi_dsub
	.align	2
.LC8:
	.ascii	"Time for computing: %.2f s\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #136
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-120]
	cmp	r3, #5
	beq	.L10
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L25+4
	bl	printf
	mov	r0, #1
	bl	exit
.L10:
	mov	r0, #17
	bl	srand
	ldr	r3, [fp, #-124]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bge	.L11
	ldr	r1, [fp, #-96]
	ldr	r0, .L25+8
	bl	printf
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-124]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bge	.L12
	ldr	r1, [fp, #-92]
	ldr	r0, .L25+12
	bl	printf
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-124]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bge	.L13
	ldr	r1, [fp, #-88]
	ldr	r0, .L25+16
	bl	printf
	mov	r0, #1
	bl	exit
.L13:
	ldr	r3, [fp, #-124]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bge	.L14
	ldr	r1, [fp, #-84]
	ldr	r0, .L25+20
	bl	printf
	mov	r0, #1
	bl	exit
.L14:
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L25+24
	ldr	r3, .L25+28
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L25+24
	ldr	r3, .L25+28
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, .L25+32
	bl	printf
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-92]
	mul	r3, r2, r3
	ldr	r2, [fp, #-88]
	mul	r3, r2, r3
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #3
	str	r3, [fp, #-76]
	ldr	r0, [fp, #-76]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r0, [fp, #-76]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L16
.L15:
	ldr	r2, [fp, #-100]
	ldr	r1, [fp, #-104]
	ldr	r0, .L25+36
	bl	printf
	mov	r0, #1
	bl	exit
.L16:
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L17
.L18:
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-104]
	add	r4, r2, r3
	ldr	r2, .L25+24
	ldr	r3, .L25+28
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-100]
	add	r4, r2, r3
	ldr	r2, .L25+24
	ldr	r3, .L25+28
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L17:
	ldr	r3, [fp, #-112]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bhi	.L18
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L25+40
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L19
.L20:
	ldr	r3, [fp, #-100]
	str	r3, [sp, #20]
	ldr	r3, [fp, #-104]
	str	r3, [sp, #16]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-88]
	ldr	r1, [fp, #-92]
	ldr	r0, [fp, #-96]
	bl	laplacian
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L19:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L20
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L25+40
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L21
.L22:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L21:
	ldr	r3, [fp, #-112]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bhi	.L22
	ldr	r0, [fp, #-80]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L25+44
	bl	printf
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L25+48
	bl	printf
	ldr	r0, [fp, #-104]
	bl	free
	ldr	r0, [fp, #-100]
	bl	free
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	-4194304
	.word	1105199103
	.word	.LC5
	.word	.LC6
	.word	1093567616
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
