Jarryd Hayne had guilty state of mind: prosecutor