	.file	"sum.c"
	.text
	.align	2
	.globl	sum
	.type	sum, @function
sum:
	add	sp,sp,-48
	sd	s0,40(sp)
	add	s0,sp,48
	sw	a0,-36(s0)
	sd	a1,-48(s0)
	fsw	fa2,-40(s0)
	sw	zero,-24(s0)
	sw	zero,-20(s0)
	j	.L2
.L3:
	lw	a5,-20(s0)
	sll	a5,a5,2
	ld	a4,-48(s0)
	add	a5,a4,a5
	flw	fa4,0(a5)
	flw	fa5,-40(s0)
	fmul.s	fa5,fa4,fa5
	flw	fa4,-24(s0)
	fadd.s	fa5,fa4,fa5
	fsw	fa5,-24(s0)
	lw	a5,-20(s0)
	addw	a5,a5,1
	sw	a5,-20(s0)
.L2:
	lw	a4,-20(s0)
	lw	a5,-36(s0)
	blt	a4,a5,.L3
	flw	fa5,-24(s0)
	fmv.s	fa0,fa5
	ld	s0,40(sp)
	add	sp,sp,48
	jr	ra
	.size	sum, .-sum
	.ident	"GCC: (GNU) 6.1.0"
