	.file	"45451656.c"
	.intel_syntax noprefix
	.text
	.globl	simulation
	.type	simulation, @function
simulation:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -44[rbp], 1
	jmp	.L2
.L5:
	mov	DWORD PTR -40[rbp], 1
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -44[rbp]
	sal	eax, 9
	movsx	rdx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -24[rbp], xmm0
	mov	eax, DWORD PTR -44[rbp]
	sal	eax, 9
	movsx	rdx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -20[rbp], xmm0
	mov	eax, DWORD PTR -44[rbp]
	sal	eax, 9
	movsx	rdx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, rdx
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -44[rbp]
	sal	eax, 9
	movsx	rdx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -12[rbp], xmm0
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1
	sal	eax, 9
	movsx	rdx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	sal	eax, 9
	movsx	rdx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -12[rbp]
	addss	xmm0, DWORD PTR -16[rbp]
	addss	xmm0, DWORD PTR -4[rbp]
	addss	xmm0, DWORD PTR -8[rbp]
	movss	xmm2, DWORD PTR -24[rbp]
	movss	xmm1, DWORD PTR .LC0[rip]
	mulss	xmm1, xmm2
	subss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	mulsd	xmm1, xmm0
	movss	xmm0, DWORD PTR -24[rbp]
	addss	xmm0, xmm0
	cvtss2sd	xmm0, xmm0
	addsd	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -20[rbp]
	movsd	xmm1, QWORD PTR .LC2[rip]
	mulsd	xmm1, xmm2
	subsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	mov	eax, DWORD PTR -44[rbp]
	sal	eax, 9
	movsx	rdx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -40[rbp], 1
.L3:
	cmp	DWORD PTR -40[rbp], 510
	jle	.L4
	add	DWORD PTR -44[rbp], 1
.L2:
	cmp	DWORD PTR -44[rbp], 510
	jle	.L5
	mov	DWORD PTR -36[rbp], 1
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -36[rbp]
	sal	eax, 9
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -28[rbp], xmm0
	mov	eax, DWORD PTR -36[rbp]
	sal	eax, 9
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR -28[rbp]
	movss	xmm0, DWORD PTR .LC4[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -36[rbp]
	sal	eax, 9
	cdqe
	add	rax, 512
	sal	rax, 2
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -28[rbp], xmm0
	mov	eax, DWORD PTR -36[rbp]
	sal	eax, 9
	cdqe
	add	rax, 512
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR -28[rbp]
	movss	xmm0, DWORD PTR .LC4[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 512
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -28[rbp], xmm0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR -28[rbp]
	movss	xmm0, DWORD PTR .LC4[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 261120
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -28[rbp], xmm0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 261632
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR -28[rbp]
	movss	xmm0, DWORD PTR .LC4[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -36[rbp], 1
.L6:
	cmp	DWORD PTR -36[rbp], 510
	jle	.L7
	mov	rax, QWORD PTR -64[rbp]
	movss	xmm0, DWORD PTR 2048[rax]
	movss	DWORD PTR -32[rbp], xmm0
	movss	xmm1, DWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR .LC4[rip]
	mulss	xmm0, xmm1
	mov	rax, QWORD PTR -56[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -64[rbp]
	movss	xmm0, DWORD PTR 2040[rax]
	movss	DWORD PTR -32[rbp], xmm0
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 2044
	movss	xmm1, DWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR .LC4[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -64[rbp]
	movss	xmm0, DWORD PTR 1044480[rax]
	movss	DWORD PTR -32[rbp], xmm0
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1046528
	movss	xmm1, DWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR .LC4[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -64[rbp]
	movss	xmm0, DWORD PTR 1046524[rax]
	movss	DWORD PTR -32[rbp], xmm0
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1048572
	movss	xmm1, DWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR .LC4[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 1048576
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 1048576
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	simulation, .-simulation
	.section	.rodata
.LC5:
	.string	"(%d,%d): %f "
	.text
	.globl	print_grid
	.type	print_grid, @function
print_grid:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L10
.L13:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -8[rbp]
	sal	eax, 9
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rcx, xmm1
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L11:
	cmp	DWORD PTR -4[rbp], 511
	jle	.L12
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L10:
	cmp	DWORD PTR -8[rbp], 511
	jle	.L13
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_grid, .-print_grid
	.section	.rodata
.LC6:
	.string	"RuntimeError: Wrong inputs"
	.align 8
.LC7:
	.string	"Correct Format: ./grid_%d_%d_sequential <number of iterations>\n"
.LC9:
	.string	"Size of the grid: %d nodes\n"
.LC10:
	.string	"#%d (%d,%d): %f\n"
.LC13:
	.string	"Runtime for #%d: %f ms\n"
	.align 8
.LC14:
	.string	"------------------------------"
	.align 8
.LC15:
	.string	"Runtime for simluation: %f ms\n"
	.align 8
.LC16:
	.string	"Avg. runtime per iteration %f ms\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
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	cmp	DWORD PTR -84[rbp], 2
	je	.L16
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edx, 512
	mov	esi, 512
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	esi, 4
	mov	edi, 262144
	call	calloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	esi, 4
	mov	edi, 262144
	call	calloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	esi, 4
	mov	edi, 262144
	call	calloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 525312
	movss	xmm0, DWORD PTR .LC8[rip]
	movss	DWORD PTR [rax], xmm0
	mov	esi, 262144
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	call	clock@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -64[rbp], 0
	jmp	.L18
.L19:
	call	clock@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	simulation
	call	clock@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	sub	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	add	eax, edx
	mov	DWORD PTR -68[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 525312
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rdx, xmm2
	mov	eax, DWORD PTR -64[rbp]
	movq	xmm0, rdx
	mov	ecx, 256
	mov	edx, 256
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -16[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC11[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC12[rip]
	divsd	xmm0, xmm1
	movq	rdx, xmm0
	mov	eax, DWORD PTR -64[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -64[rbp], 1
.L18:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L19
	call	clock@PLT
	mov	QWORD PTR -24[rbp], rax
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC11[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC12[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC15[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -68[rbp]
	movsd	xmm0, QWORD PTR .LC11[rip]
	mulsd	xmm0, xmm1
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	imul	rax, rax, 1000000
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf@PLT
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	1082130432
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.align 8
.LC2:
	.long	-1848553924
	.long	1072692828
	.align 8
.LC3:
	.long	-1223206686
	.long	1072693457
	.align 4
.LC4:
	.long	1061158912
	.align 4
.LC8:
	.long	1065353216
	.align 8
.LC11:
	.long	0
	.long	1083129856
	.align 8
.LC12:
	.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	"45451656.c"
	.text
	.global	__aeabi_fadd
	.global	__aeabi_fmul
	.global	__aeabi_fsub
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.global	__aeabi_d2f
	.align	2
	.global	simulation
	.syntax unified
	.arm
	.fpu softvfp
	.type	simulation, %function
simulation:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L2
.L5:
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L3
.L4:
	ldr	r3, [fp, #-56]
	lsl	r2, r3, #9
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-36]	@ float
	ldr	r3, [fp, #-56]
	lsl	r2, r3, #9
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-32]	@ float
	ldr	r3, [fp, #-56]
	lsl	r2, r3, #9
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-28]	@ float
	ldr	r3, [fp, #-56]
	lsl	r2, r3, #9
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-24]	@ float
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	lsl	r2, r3, #9
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-20]	@ float
	ldr	r3, [fp, #-56]
	sub	r3, r3, #1
	lsl	r2, r3, #9
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-16]	@ float
	ldr	r1, [fp, #-28]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r1, .L9
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L9+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-36]	@ float
	mov	r1, r3
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L9+8
	ldr	r3, .L9+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L9+16
	ldr	r3, .L9+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-56]
	lsl	r2, r3, #9
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L3:
	ldr	r3, [fp, #-52]
	ldr	r2, .L9+24
	cmp	r3, r2
	ble	.L4
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L2:
	ldr	r3, [fp, #-56]
	ldr	r2, .L9+24
	cmp	r3, r2
	ble	.L5
	mov	r3, #1
	str	r3, [fp, #-48]
	b	.L6
.L7:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #11
	add	r3, r3, #4
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-40]	@ float
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #11
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	mov	r1, #1061158912
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	lsl	r3, r3, #11
	sub	r3, r3, #8
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-40]	@ float
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	lsl	r3, r3, #11
	sub	r3, r3, #4
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	mov	r1, #1061158912
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-48]
	add	r3, r3, #512
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-40]	@ float
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	mov	r1, #1061158912
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-48]
	add	r3, r3, #261120
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-40]	@ float
	ldr	r3, [fp, #-48]
	add	r3, r3, #261120
	add	r3, r3, #512
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	mov	r1, #1061158912
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L6:
	ldr	r3, [fp, #-48]
	ldr	r2, .L9+24
	cmp	r3, r2
	ble	.L7
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #2048]	@ float
	str	r3, [fp, #-44]	@ float
	mov	r1, #1061158912
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-64]
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #2040]	@ float
	str	r3, [fp, #-44]	@ float
	ldr	r3, [fp, #-64]
	add	r4, r3, #2032
	add	r4, r4, #12
	mov	r1, #1061158912
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-68]
	add	r3, r3, #1044480
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-44]	@ float
	ldr	r3, [fp, #-64]
	add	r4, r3, #1044480
	add	r4, r4, #2048
	mov	r1, #1061158912
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-68]
	add	r3, r3, #1044480
	ldr	r3, [r3, #2044]	@ float
	str	r3, [fp, #-44]	@ float
	ldr	r3, [fp, #-64]
	sub	r4, r3, #-268435452
	sub	r4, r4, #267386880
	mov	r1, #1061158912
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [r4]	@ float
	mov	r2, #1048576
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-72]
	bl	memcpy
	mov	r2, #1048576
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-68]
	bl	memcpy
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L10:
	.align	2
.L9:
	.word	1082130432
	.word	1071644672
	.word	-1848553924
	.word	1072692828
	.word	-1223206686
	.word	1072693457
	.word	510
	.size	simulation, .-simulation
	.section	.rodata
	.align	2
.LC0:
	.ascii	"(%d,%d): %f \000"
	.text
	.align	2
	.global	print_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_grid, %function
print_grid:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L12
.L15:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L13
.L14:
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #9
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L17
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #512
	blt	.L14
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L12:
	ldr	r3, [fp, #-12]
	cmp	r3, #512
	blt	.L15
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.size	print_grid, .-print_grid
	.section	.rodata
	.align	2
.LC1:
	.ascii	"RuntimeError: Wrong inputs\000"
	.align	2
.LC2:
	.ascii	"Correct Format: ./grid_%d_%d_sequential <number of "
	.ascii	"iterations>\012\000"
	.align	2
.LC3:
	.ascii	"Size of the grid: %d nodes\012\000"
	.align	2
.LC4:
	.ascii	"#%d (%d,%d): %f\012\000"
	.global	__aeabi_i2d
	.align	2
.LC5:
	.ascii	"Runtime for #%d: %f ms\012\000"
	.align	2
.LC6:
	.ascii	"------------------------------\000"
	.align	2
.LC7:
	.ascii	"Runtime for simluation: %f ms\012\000"
	.align	2
.LC8:
	.ascii	"Avg. runtime per iteration %f ms\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	beq	.L20
	ldr	r0, .L24
	bl	puts
	mov	r2, #512
	mov	r1, #512
	ldr	r0, .L24+4
	bl	printf
	mov	r3, #1
	b	.L21
.L20:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-44]
	mov	r1, #4
	mov	r0, #262144
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-40]
	mov	r1, #4
	mov	r0, #262144
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-36]
	mov	r1, #4
	mov	r0, #262144
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r3, r3, #524288
	add	r3, r3, #1024
	mov	r2, #1065353216
	str	r2, [r3]	@ float
	mov	r1, #262144
	ldr	r0, .L24+8
	bl	printf
	bl	clock
	str	r0, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L22
.L23:
	bl	clock
	str	r0, [fp, #-20]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	simulation
	bl	clock
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-40]
	add	r3, r3, #524288
	add	r3, r3, #1024
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r3, #256
	mov	r2, #256
	ldr	r1, [fp, #-48]
	ldr	r0, .L24+12
	bl	printf
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L24+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L24+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-48]
	ldr	r0, .L24+24
	bl	printf
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L22:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L23
	bl	clock
	str	r0, [fp, #-24]
	ldr	r0, .L24+28
	bl	puts
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L24+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L24+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L24+32
	bl	printf
	ldr	r0, [fp, #-52]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L24+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r1, [fp, #-44]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L24+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	free
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	mov	r3, #0
.L21:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1083129856
	.word	1093567616
	.word	.LC5
	.word	.LC6
	.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
