using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000082 RID: 130
[Token(Token = "0x2000082")]
public class AI_GhostE02 : AI_NPC
{
	// Token: 0x06000555 RID: 1365 RVA: 0x0000CE34 File Offset: 0x0000B034
	[Token(Token = "0x6000555")]
	[Address(RVA = "0x181FEF0", Offset = "0x181EEF0", VA = "0x18181FEF0", Slot = "4")]
	public override void Start(GameObject This, NPCManage NPCM)
	{
		base.Start(This, NPCM);
		Shake shake = new Shake();
		this.g_ShakeHead = shake;
		GameObject g_This = this.g_This;
		Shake shake2 = this.g_ShakeHead;
		Transform transform = Common.FindChild(g_This.transform, "Bip001 Head");
		int num = 0;
		shake2.Start(transform, num != 0);
		Shake shake3 = new Shake();
		this.g_ShakeSpine = shake3;
		GameObject g_This2 = this.g_This;
		Shake shake4 = this.g_ShakeSpine;
		Transform transform2 = Common.FindChild(g_This2.transform, "Bip001 Spine1");
		int num2 = 0;
		shake4.Start(transform2, num2 != 0);
		Shake shake5 = new Shake();
		this.g_ShakeUpperArmL = shake5;
		GameObject g_This3 = this.g_This;
		Shake shake6 = this.g_ShakeUpperArmL;
		Transform transform3 = Common.FindChild(g_This3.transform, "Bip001 L UpperArm");
		int num3 = 0;
		shake6.Start(transform3, num3 != 0);
		Shake shake7 = new Shake();
		this.g_ShakeUpperArmR = shake7;
		GameObject g_This4 = this.g_This;
		Shake shake8 = this.g_ShakeUpperArmR;
		Transform transform4 = Common.FindChild(g_This4.transform, "Bip001 R UpperArm");
		int num4 = 0;
		shake8.Start(transform4, num4 != 0);
		Shake shake9 = new Shake();
		this.g_ShakeThighL = shake9;
		GameObject g_This5 = this.g_This;
		Shake shake10 = this.g_ShakeThighL;
		Transform transform5 = Common.FindChild(g_This5.transform, "Bip001 L Thigh");
		int num5 = 0;
		shake10.Start(transform5, num5 != 0);
		Shake shake11 = new Shake();
		this.g_ShakeThighR = shake11;
		GameObject g_This6 = this.g_This;
		Shake shake12 = this.g_ShakeThighR;
		Transform transform6 = Common.FindChild(g_This6.transform, "Bip001 R Thigh");
		int num6 = 0;
		shake12.Start(transform6, num6 != 0);
		Shake shake13 = new Shake();
		this.g_ShakeAll = shake13;
		GameObject g_This7 = this.g_This;
		Shake shake14 = this.g_ShakeAll;
		Transform transform7 = Common.FindChild(g_This7.transform, "Bip_GhostE");
		int num7 = 0;
		shake14.Start(transform7, num7 != 0);
		this.g_bLookAtEnable = true;
		this.g_Status = (AI_NPC.AIStatus)((ulong)17L);
		this.InitFightStatus(AI_GhostE02.AIFighting.Watch);
	}

	// Token: 0x06000556 RID: 1366 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000556")]
	[Address(RVA = "0x18202F0", Offset = "0x181F2F0", VA = "0x1818202F0", Slot = "5")]
	public override void Update(float fDeltaTime)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000557 RID: 1367 RVA: 0x0000D020 File Offset: 0x0000B220
	[Token(Token = "0x6000557")]
	[Address(RVA = "0x181FE50", Offset = "0x181EE50", VA = "0x18181FE50", Slot = "6")]
	public override void LateUpdate()
	{
		this.g_ShakeHead.Update();
		this.g_ShakeSpine.Update();
		this.g_ShakeUpperArmL.Update();
		this.g_ShakeUpperArmR.Update();
		this.g_ShakeThighL.Update();
		this.g_ShakeThighR.Update();
		this.g_ShakeAll.Update();
	}

	// Token: 0x06000558 RID: 1368 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000558")]
	[Address(RVA = "0x181F060", Offset = "0x181E060", VA = "0x18181F060", Slot = "22")]
	public override void Fighting()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000559 RID: 1369 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000559")]
	[Address(RVA = "0x181F990", Offset = "0x181E990", VA = "0x18181F990")]
	private void InitFightStatus(AI_GhostE02.AIFighting Status)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600055A RID: 1370 RVA: 0x0000D080 File Offset: 0x0000B280
	[Token(Token = "0x600055A")]
	[Address(RVA = "0x181EC20", Offset = "0x181DC20", VA = "0x18181EC20")]
	private void AttackSelect()
	{
		int num = UnityEngine.Random.Range(0, 4);
		if (num != 0)
		{
			if (num == 0)
			{
				this.g_NextFighting = (AI_GhostE02.AIFighting)((ulong)7L);
				return;
			}
			if (num == 0)
			{
				this.g_NextFighting = (AI_GhostE02.AIFighting)((ulong)8L);
				return;
			}
			if (num == 1)
			{
				this.g_NextFighting = (AI_GhostE02.AIFighting)((ulong)9L);
				return;
			}
		}
		else
		{
			this.g_NextFighting = (AI_GhostE02.AIFighting)((ulong)6L);
		}
	}

	// Token: 0x0600055B RID: 1371 RVA: 0x0000D0D0 File Offset: 0x0000B2D0
	[Token(Token = "0x600055B")]
	[Address(RVA = "0x181F010", Offset = "0x181E010", VA = "0x18181F010")]
	private void FWatch()
	{
		float g_fWaitTime = this.g_fWaitTime;
		int num = 0;
		if (g_fWaitTime <= (float)num)
		{
			AI_GhostE02.AIFighting aifighting = this.g_NextFighting;
			this.InitFightStatus(aifighting);
			return;
		}
		float g_fPlayerDistance = this.g_fPlayerDistance;
		this.g_fWaitTime = g_fWaitTime;
		this.InitFightStatus((AI_GhostE02.AIFighting)((uint)3));
	}

	// Token: 0x0600055C RID: 1372 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600055C")]
	[Address(RVA = "0x181EDD0", Offset = "0x181DDD0", VA = "0x18181EDD0")]
	private void FMoveStart()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600055D RID: 1373 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600055D")]
	[Address(RVA = "0x181EEE0", Offset = "0x181DEE0", VA = "0x18181EEE0")]
	private void FMove()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600055E RID: 1374 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600055E")]
	[Address(RVA = "0x181ECC0", Offset = "0x181DCC0", VA = "0x18181ECC0")]
	private void FMoveEnd()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600055F RID: 1375 RVA: 0x0000D110 File Offset: 0x0000B310
	[Token(Token = "0x600055F")]
	[Address(RVA = "0x181EC90", Offset = "0x181DC90", VA = "0x18181EC90")]
	private void FAttack()
	{
		float g_fWaitTime = this.g_fWaitTime;
		int num = 0;
		if (g_fWaitTime <= (float)num)
		{
			this.InitFightStatus(AI_GhostE02.AIFighting.Watch);
			return;
		}
		this.g_fWaitTime = g_fWaitTime;
	}

	// Token: 0x06000560 RID: 1376 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000560")]
	[Address(RVA = "0x181F480", Offset = "0x181E480", VA = "0x18181F480", Slot = "33")]
	public override void Hit(AttackData Data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000561 RID: 1377 RVA: 0x0000D13C File Offset: 0x0000B33C
	[Token(Token = "0x6000561")]
	[Address(RVA = "0x18203A0", Offset = "0x181F3A0", VA = "0x1818203A0")]
	public AI_GhostE02()
	{
	}

	// Token: 0x0400064E RID: 1614
	[FieldOffset(Offset = "0x180")]
	[Token(Token = "0x400064E")]
	private Shake g_ShakeHead;

	// Token: 0x0400064F RID: 1615
	[FieldOffset(Offset = "0x188")]
	[Token(Token = "0x400064F")]
	private Shake g_ShakeSpine;

	// Token: 0x04000650 RID: 1616
	[FieldOffset(Offset = "0x190")]
	[Token(Token = "0x4000650")]
	private Shake g_ShakeUpperArmL;

	// Token: 0x04000651 RID: 1617
	[FieldOffset(Offset = "0x198")]
	[Token(Token = "0x4000651")]
	private Shake g_ShakeUpperArmR;

	// Token: 0x04000652 RID: 1618
	[FieldOffset(Offset = "0x1A0")]
	[Token(Token = "0x4000652")]
	private Shake g_ShakeThighL;

	// Token: 0x04000653 RID: 1619
	[FieldOffset(Offset = "0x1A8")]
	[Token(Token = "0x4000653")]
	private Shake g_ShakeThighR;

	// Token: 0x04000654 RID: 1620
	[FieldOffset(Offset = "0x1B0")]
	[Token(Token = "0x4000654")]
	private Shake g_ShakeAll;

	// Token: 0x04000655 RID: 1621
	[FieldOffset(Offset = "0x1B8")]
	[Token(Token = "0x4000655")]
	private AI_GhostE02.AIFighting g_Fighting = (AI_GhostE02.AIFighting)((ulong)1L);

	// Token: 0x04000656 RID: 1622
	[FieldOffset(Offset = "0x1BC")]
	[Token(Token = "0x4000656")]
	private AI_GhostE02.AIFighting g_NextFighting;

	// Token: 0x04000657 RID: 1623
	[Token(Token = "0x4000657")]
	private const float g_fAttackRange = 10.5f;

	// Token: 0x04000658 RID: 1624
	[FieldOffset(Offset = "0x1C0")]
	[Token(Token = "0x4000658")]
	private bool g_bMove;

	// Token: 0x02000083 RID: 131
	[Token(Token = "0x2000083")]
	private enum AIFighting
	{
		// Token: 0x0400065A RID: 1626
		[Token(Token = "0x400065A")]
		Null,
		// Token: 0x0400065B RID: 1627
		[Token(Token = "0x400065B")]
		Watch,
		// Token: 0x0400065C RID: 1628
		[Token(Token = "0x400065C")]
		WatchFast,
		// Token: 0x0400065D RID: 1629
		[Token(Token = "0x400065D")]
		MoveStart,
		// Token: 0x0400065E RID: 1630
		[Token(Token = "0x400065E")]
		Move,
		// Token: 0x0400065F RID: 1631
		[Token(Token = "0x400065F")]
		MoveEnd,
		// Token: 0x04000660 RID: 1632
		[Token(Token = "0x4000660")]
		Attack01,
		// Token: 0x04000661 RID: 1633
		[Token(Token = "0x4000661")]
		Attack02,
		// Token: 0x04000662 RID: 1634
		[Token(Token = "0x4000662")]
		Attack03,
		// Token: 0x04000663 RID: 1635
		[Token(Token = "0x4000663")]
		Attack04,
		// Token: 0x04000664 RID: 1636
		[Token(Token = "0x4000664")]
		Death,
		// Token: 0x04000665 RID: 1637
		[Token(Token = "0x4000665")]
		Destroy,
		// Token: 0x04000666 RID: 1638
		[Token(Token = "0x4000666")]
		End
	}
}
