using System;
using System.Linq.Expressions;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000088 RID: 136
[Token(Token = "0x2000088")]
public class AI_SealGhost02 : AI_NPC
{
	// Token: 0x060005C2 RID: 1474 RVA: 0x0000E024 File Offset: 0x0000C224
	[Token(Token = "0x60005C2")]
	[Address(RVA = "0x18BBC20", Offset = "0x18BAA20", VA = "0x1818BBC20", Slot = "4")]
	public override void Start(GameObject This, NPCManage NPCM)
	{
		base.Start(This, NPCM);
		SealGhost02EffectPlay component = This.GetComponent<SealGhost02EffectPlay>();
		this.g_Effect = component;
		SealGhost02EffectPlay sealGhost02EffectPlay = this.g_Effect;
		MoveController g_Move = this.g_Move;
		sealGhost02EffectPlay.InitData(g_Move);
		this.g_Move.gravity = 42f;
		this.g_Move.fallSpeedMax = -45f;
		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);
		Animator g_Anim = this.g_Anim;
		this.g_fAniSkirtWeights = 0.3f;
		g_Anim.SetLayerWeight(1, 0.3f);
		Animator g_Anim2 = this.g_Anim;
		this.g_fAniDamageHead = 0f;
		int num8 = 0;
		g_Anim2.SetLayerWeight(2, (float)num8);
		this.g_bLookAtEnable = true;
		int num9 = 0;
		this.g_Status = (AI_NPC.AIStatus)((ulong)17L);
		this.InitFightStatus((AI_SealGhost02.AIFighting)num9);
	}

	// Token: 0x060005C3 RID: 1475 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005C3")]
	[Address(RVA = "0x18BC110", Offset = "0x18BAF10", VA = "0x1818BC110", Slot = "5")]
	public override void Update(float fDeltaTime)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005C4 RID: 1476 RVA: 0x0000E29C File Offset: 0x0000C49C
	[Token(Token = "0x60005C4")]
	[Address(RVA = "0x18BB890", Offset = "0x18BA690", VA = "0x1818BB890", Slot = "6")]
	public override void LateUpdate()
	{
		this.FDebut();
		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: 0x060005C5 RID: 1477 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005C5")]
	[Address(RVA = "0x18B9650", Offset = "0x18B8450", VA = "0x1818B9650", Slot = "22")]
	public override void Fighting()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005C6 RID: 1478 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005C6")]
	[Address(RVA = "0x18BA970", Offset = "0x18B9770", VA = "0x1818BA970")]
	private void InitFightStatus(AI_SealGhost02.AIFighting Status)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005C7 RID: 1479 RVA: 0x0000E304 File Offset: 0x0000C504
	[Token(Token = "0x60005C7")]
	[Address(RVA = "0x18B8510", Offset = "0x18B7310", VA = "0x1818B8510")]
	private void AttackSelect()
	{
		int num = UnityEngine.Random.Range(0, 4);
		if (num != 0)
		{
			if (num == 0)
			{
				this.g_NextFighting = (AI_SealGhost02.AIFighting)((ulong)10L);
				return;
			}
			if (num == 0)
			{
				this.g_NextFighting = (AI_SealGhost02.AIFighting)((ulong)11L);
				return;
			}
			if (num == 1)
			{
				this.g_NextFighting = (AI_SealGhost02.AIFighting)((ulong)12L);
				return;
			}
		}
		else
		{
			this.g_NextFighting = (AI_SealGhost02.AIFighting)((ulong)9L);
		}
	}

	// Token: 0x060005C8 RID: 1480 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005C8")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00")]
	private void FDebut()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005C9 RID: 1481 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005C9")]
	[Address(RVA = "0x18B93B0", Offset = "0x18B81B0", VA = "0x1818B93B0")]
	private void FWatch()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005CA RID: 1482 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005CA")]
	[Address(RVA = "0x18B8F30", Offset = "0x18B7D30", VA = "0x1818B8F30")]
	private void FMoveStart()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005CB RID: 1483 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005CB")]
	[Address(RVA = "0x18B9040", Offset = "0x18B7E40", VA = "0x1818B9040")]
	private void FMove()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005CC RID: 1484 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005CC")]
	[Address(RVA = "0x18B8C70", Offset = "0x18B7A70", VA = "0x1818B8C70")]
	private void FMoveEnd()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005CD RID: 1485 RVA: 0x0000E354 File Offset: 0x0000C554
	[Token(Token = "0x60005CD")]
	[Address(RVA = "0x18B8710", Offset = "0x18B7510", VA = "0x1818B8710")]
	private void FAttack()
	{
		float g_fWaitTime = this.g_fWaitTime;
		int num = 0;
		if (g_fWaitTime <= (float)num)
		{
			this.InitFightStatus(AI_SealGhost02.AIFighting.Watch);
			return;
		}
		this.g_fWaitTime = g_fWaitTime;
	}

	// Token: 0x060005CE RID: 1486 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005CE")]
	[Address(RVA = "0x18B9200", Offset = "0x18B8000", VA = "0x1818B9200")]
	private void FTrunBack()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005CF RID: 1487 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005CF")]
	[Address(RVA = "0x18B8A40", Offset = "0x18B7840", VA = "0x1818B8A40")]
	private void FJump()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005D0 RID: 1488 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005D0")]
	[Address(RVA = "0x18B8850", Offset = "0x18B7650", VA = "0x1818B8850")]
	private void FFall()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005D1 RID: 1489 RVA: 0x0000E380 File Offset: 0x0000C580
	[Token(Token = "0x60005D1")]
	[Address(RVA = "0x18B8710", Offset = "0x18B7510", VA = "0x1818B8710")]
	private void FDamage()
	{
		float g_fWaitTime = this.g_fWaitTime;
		int num = 0;
		if (g_fWaitTime <= (float)num)
		{
			this.InitFightStatus(AI_SealGhost02.AIFighting.Watch);
			return;
		}
		this.g_fWaitTime = g_fWaitTime;
	}

	// Token: 0x060005D2 RID: 1490 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005D2")]
	[Address(RVA = "0x18B8740", Offset = "0x18B7540", VA = "0x1818B8740")]
	private void FDeath()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005D3 RID: 1491 RVA: 0x0000E3AC File Offset: 0x0000C5AC
	[Token(Token = "0x60005D3")]
	[Address(RVA = "0x18B8820", Offset = "0x18B7620", VA = "0x1818B8820")]
	private void FDestory()
	{
		float g_fWaitTime = this.g_fWaitTime;
		int num = 0;
		if (g_fWaitTime <= (float)num)
		{
			this.InitFightStatus(AI_SealGhost02.AIFighting.End);
			return;
		}
		this.g_fWaitTime = g_fWaitTime;
	}

	// Token: 0x060005D4 RID: 1492 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005D4")]
	[Address(RVA = "0x18B9ED0", Offset = "0x18B8CD0", VA = "0x1818B9ED0", Slot = "33")]
	public override void Hit(AttackData Data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005D5 RID: 1493 RVA: 0x0000E3D8 File Offset: 0x0000C5D8
	[Token(Token = "0x60005D5")]
	[Address(RVA = "0x11D8140", Offset = "0x11D6F40", VA = "0x1811D8140", Slot = "30")]
	public override void Resurrection()
	{
		base.Resurrection();
		this.g_bDeath = false;
		int parameterCount = ((IParameterProvider)this).ParameterCount;
	}

	// Token: 0x060005D6 RID: 1494 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005D6")]
	[Address(RVA = "0x18B8580", Offset = "0x18B7380", VA = "0x1818B8580", Slot = "31")]
	public override void Create()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005D7 RID: 1495 RVA: 0x0000E3FC File Offset: 0x0000C5FC
	[Token(Token = "0x60005D7")]
	[Address(RVA = "0x18BB930", Offset = "0x18BA730", VA = "0x1818BB930", Slot = "32")]
	public override void Remove()
	{
		this.FDebut();
		NPCManage g_NPCM = this.g_NPCM;
		int num = 0;
		g_NPCM.SetLockPoint(num != 0);
		this.g_Effect.RemoveEnemy();
		GameObject g_This = this.g_This;
		int num2 = 0;
		g_This.SetActive(num2 != 0);
	}

	// Token: 0x060005D8 RID: 1496 RVA: 0x0000E440 File Offset: 0x0000C640
	[Token(Token = "0x60005D8")]
	[Address(RVA = "0x18BBBE0", Offset = "0x18BA9E0", VA = "0x1818BBBE0", Slot = "35")]
	public override void SetTimeScale(float fTimeScale)
	{
		base.SetTimeScale(fTimeScale);
		this.g_Effect.SetTimeScale(fTimeScale);
	}

	// Token: 0x060005D9 RID: 1497 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005D9")]
	[Address(RVA = "0x18BB990", Offset = "0x18BA790", VA = "0x1818BB990", Slot = "36")]
	public override void SetAiStatus(AI_NPC.AIStatus Status)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005DA RID: 1498 RVA: 0x0000E468 File Offset: 0x0000C668
	[Token(Token = "0x60005DA")]
	[Address(RVA = "0x18BC1E0", Offset = "0x18BAFE0", VA = "0x1818BC1E0")]
	public AI_SealGhost02()
	{
	}

	// Token: 0x040006CE RID: 1742
	[FieldOffset(Offset = "0x170")]
	[Token(Token = "0x40006CE")]
	private SealGhost02EffectPlay g_Effect;

	// Token: 0x040006CF RID: 1743
	[FieldOffset(Offset = "0x178")]
	[Token(Token = "0x40006CF")]
	private float g_fAniSkirtWeights;

	// Token: 0x040006D0 RID: 1744
	[FieldOffset(Offset = "0x17C")]
	[Token(Token = "0x40006D0")]
	private float g_fAniDamageHead;

	// Token: 0x040006D1 RID: 1745
	[FieldOffset(Offset = "0x180")]
	[Token(Token = "0x40006D1")]
	private Shake g_ShakeHead;

	// Token: 0x040006D2 RID: 1746
	[FieldOffset(Offset = "0x188")]
	[Token(Token = "0x40006D2")]
	private Shake g_ShakeSpine;

	// Token: 0x040006D3 RID: 1747
	[FieldOffset(Offset = "0x190")]
	[Token(Token = "0x40006D3")]
	private Shake g_ShakeUpperArmL;

	// Token: 0x040006D4 RID: 1748
	[FieldOffset(Offset = "0x198")]
	[Token(Token = "0x40006D4")]
	private Shake g_ShakeUpperArmR;

	// Token: 0x040006D5 RID: 1749
	[FieldOffset(Offset = "0x1A0")]
	[Token(Token = "0x40006D5")]
	private Shake g_ShakeThighL;

	// Token: 0x040006D6 RID: 1750
	[FieldOffset(Offset = "0x1A8")]
	[Token(Token = "0x40006D6")]
	private Shake g_ShakeThighR;

	// Token: 0x040006D7 RID: 1751
	[FieldOffset(Offset = "0x1B0")]
	[Token(Token = "0x40006D7")]
	private Shake g_ShakeAll;

	// Token: 0x040006D8 RID: 1752
	[FieldOffset(Offset = "0x1B8")]
	[Token(Token = "0x40006D8")]
	private AI_SealGhost02.AIFighting g_Fighting = (AI_SealGhost02.AIFighting)((ulong)1L);

	// Token: 0x040006D9 RID: 1753
	[FieldOffset(Offset = "0x1BC")]
	[Token(Token = "0x40006D9")]
	private AI_SealGhost02.AIFighting g_NextFighting;

	// Token: 0x040006DA RID: 1754
	[Token(Token = "0x40006DA")]
	private const float g_fAttackRange = 10.5f;

	// Token: 0x040006DB RID: 1755
	[FieldOffset(Offset = "0x1C0")]
	[Token(Token = "0x40006DB")]
	private float g_fTemp01Time;

	// Token: 0x040006DC RID: 1756
	[FieldOffset(Offset = "0x1C4")]
	[Token(Token = "0x40006DC")]
	private bool g_bMove;

	// Token: 0x040006DD RID: 1757
	[Token(Token = "0x40006DD")]
	private const float g_fTrunAngle = 105f;

	// Token: 0x040006DE RID: 1758
	[FieldOffset(Offset = "0x1C8")]
	[Token(Token = "0x40006DE")]
	private Vector3 g_v3MoveDirection;

	// Token: 0x040006DF RID: 1759
	[FieldOffset(Offset = "0x1D4")]
	[Token(Token = "0x40006DF")]
	private Quaternion g_qMoveDirection;

	// Token: 0x040006E0 RID: 1760
	[FieldOffset(Offset = "0x1E4")]
	[Token(Token = "0x40006E0")]
	private Vector3 g_v3JumpPoint;

	// Token: 0x040006E1 RID: 1761
	[FieldOffset(Offset = "0x1F0")]
	[Token(Token = "0x40006E1")]
	private int g_iPlayerArea;

	// Token: 0x040006E2 RID: 1762
	[FieldOffset(Offset = "0x1F4")]
	[Token(Token = "0x40006E2")]
	private int g_iOwnArea;

	// Token: 0x040006E3 RID: 1763
	[FieldOffset(Offset = "0x1F8")]
	[Token(Token = "0x40006E3")]
	private int g_iScript;

	// Token: 0x02000089 RID: 137
	[Token(Token = "0x2000089")]
	private enum AIFighting
	{
		// Token: 0x040006E5 RID: 1765
		[Token(Token = "0x40006E5")]
		Null,
		// Token: 0x040006E6 RID: 1766
		[Token(Token = "0x40006E6")]
		Watch,
		// Token: 0x040006E7 RID: 1767
		[Token(Token = "0x40006E7")]
		MoveStart,
		// Token: 0x040006E8 RID: 1768
		[Token(Token = "0x40006E8")]
		Move,
		// Token: 0x040006E9 RID: 1769
		[Token(Token = "0x40006E9")]
		MoveEnd,
		// Token: 0x040006EA RID: 1770
		[Token(Token = "0x40006EA")]
		TrunBack,
		// Token: 0x040006EB RID: 1771
		[Token(Token = "0x40006EB")]
		Jump,
		// Token: 0x040006EC RID: 1772
		[Token(Token = "0x40006EC")]
		Fall,
		// Token: 0x040006ED RID: 1773
		[Token(Token = "0x40006ED")]
		Land,
		// Token: 0x040006EE RID: 1774
		[Token(Token = "0x40006EE")]
		Attack01,
		// Token: 0x040006EF RID: 1775
		[Token(Token = "0x40006EF")]
		Attack02,
		// Token: 0x040006F0 RID: 1776
		[Token(Token = "0x40006F0")]
		Attack03,
		// Token: 0x040006F1 RID: 1777
		[Token(Token = "0x40006F1")]
		Attack04,
		// Token: 0x040006F2 RID: 1778
		[Token(Token = "0x40006F2")]
		Attack05,
		// Token: 0x040006F3 RID: 1779
		[Token(Token = "0x40006F3")]
		Damage,
		// Token: 0x040006F4 RID: 1780
		[Token(Token = "0x40006F4")]
		Death,
		// Token: 0x040006F5 RID: 1781
		[Token(Token = "0x40006F5")]
		Destroy,
		// Token: 0x040006F6 RID: 1782
		[Token(Token = "0x40006F6")]
		End,
		// Token: 0x040006F7 RID: 1783
		[Token(Token = "0x40006F7")]
		Debut
	}
}
