main:
	push	r30
	mov	r30,r29
	addi	r29,0
	movi	r24,0
	movi	r25,16
	movi	r26,1024
L0:
	geq	r23,r24,r25
	jcci	_main_epilogue
	push	r24
	calli	_fib
	addi	r29,2
	str	r26,r3
	addi	r26,2
	addi	r24,1
	jmpi	_L0
main_epilogue:
	addi	r29,0
	pop	r30
	ret
fib:
	push	r30
	mov	r30,r29
	addi	r29,-4
	lda	r1,4
	push	r1
	movi	r1,0
	push	r1
	pop	r2
	pop	r1
	neq	r3,r1,r2
	jcci	_L9
	movi	r3,1
	jmpi	_fib_epilogue
L9:
	lda	r1,4
	push	r1
	movi	r1,1
	push	r1
	pop	r2
	pop	r1
	neq	r3,r1,r2
	jcci	_L10
	movi	r3,1
	jmpi	_fib_epilogue
L10:
	lda	r1,4
	push	r1
	movi	r1,1
	push	r1
	pop	r2
	pop	r1
	sub	r3,r1,r2
	mov	r1,r3
	push	r1
	calli	_fib
	addi	r29,2
	mov	r1,r3
	push	r1
	lda	r1,4
	push	r1
	movi	r1,2
	push	r1
	pop	r2
	pop	r1
	sub	r3,r1,r2
	mov	r1,r3
	push	r1
	calli	_fib
	addi	r29,2
	mov	r1,r3
	push	r1
	pop	r2
	pop	r1
	add	r3,r1,r2
	jmpi	_fib_epilogue
fib_epilogue:
	addi	r29,4
	pop	r30
	ret
