using System;
using Cpp2IlInjected;
using UnityEngine;

namespace RootMotion
{
	// Token: 0x020003E9 RID: 1001
	[Token(Token = "0x20003E9")]
	[Serializable]
	public class BipedLimbOrientations
	{
		// Token: 0x0600251F RID: 9503 RVA: 0x000569D8 File Offset: 0x00054BD8
		[Token(Token = "0x600251F")]
		[Address(RVA = "0x7A2610", Offset = "0x7A1610", VA = "0x1807A2610")]
		public BipedLimbOrientations(BipedLimbOrientations.LimbOrientation leftArm, BipedLimbOrientations.LimbOrientation rightArm, BipedLimbOrientations.LimbOrientation leftLeg, BipedLimbOrientations.LimbOrientation rightLeg)
		{
			/*
An exception occurred when decompiling this method (0600251F)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.BipedLimbOrientations::.ctor(RootMotion.BipedLimbOrientations/LimbOrientation,RootMotion.BipedLimbOrientations/LimbOrientation,RootMotion.BipedLimbOrientations/LimbOrientation,RootMotion.BipedLimbOrientations/LimbOrientation)

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	call:void(object::.ctor, ldloc:BipedLimbOrientations[exp:object](this)); 	stfld:LimbOrientation(BipedLimbOrientations::leftArm, ldloc:BipedLimbOrientations(this), ldloc:LimbOrientation(leftArm)); 	stfld:LimbOrientation(BipedLimbOrientations::rightArm, ldloc:BipedLimbOrientations(this), ldloc:LimbOrientation(rightArm)); 	stfld:LimbOrientation(BipedLimbOrientations::leftLeg, ldloc:BipedLimbOrientations(this), ldloc:LimbOrientation(leftLeg)); 	stfld:LimbOrientation(BipedLimbOrientations::rightLeg, ldloc:BipedLimbOrientations(this), ldc.i4:int32[exp:LimbOrientation](0)); }; 
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
   --- End of inner exception stack trace ---
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
   at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
		}

		// Token: 0x17000213 RID: 531
		// (get) Token: 0x06002520 RID: 9504 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000213")]
		public static BipedLimbOrientations UMA
		{
			[Token(Token = "0x6002520")]
			[Address(RVA = "0x7A29A0", Offset = "0x7A19A0", VA = "0x1807A29A0")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x17000214 RID: 532
		// (get) Token: 0x06002521 RID: 9505 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000214")]
		public static BipedLimbOrientations MaxBiped
		{
			[Token(Token = "0x6002521")]
			[Address(RVA = "0x7A2690", Offset = "0x7A1690", VA = "0x1807A2690")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x04002E9C RID: 11932
		[FieldOffset(Offset = "0x10")]
		[Token(Token = "0x4002E9C")]
		public BipedLimbOrientations.LimbOrientation leftArm;

		// Token: 0x04002E9D RID: 11933
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4002E9D")]
		public BipedLimbOrientations.LimbOrientation rightArm;

		// Token: 0x04002E9E RID: 11934
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4002E9E")]
		public BipedLimbOrientations.LimbOrientation leftLeg;

		// Token: 0x04002E9F RID: 11935
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4002E9F")]
		public BipedLimbOrientations.LimbOrientation rightLeg;

		// Token: 0x020003EA RID: 1002
		[Token(Token = "0x20003EA")]
		[Serializable]
		public class LimbOrientation
		{
			// Token: 0x06002522 RID: 9506 RVA: 0x00056A08 File Offset: 0x00054C08
			[Token(Token = "0x6002522")]
			[Address(RVA = "0x19BD660", Offset = "0x19BC660", VA = "0x1819BD660")]
			public LimbOrientation(Vector3 upperBoneForwardAxis, Vector3 lowerBoneForwardAxis, Vector3 lastBoneLeftAxis)
			{
				float z = upperBoneForwardAxis.z;
				this.upperBoneForwardAxis.z = z;
				float z2 = lowerBoneForwardAxis.z;
				this.lowerBoneForwardAxis.z = z2;
				float z3 = lastBoneLeftAxis.z;
				this.lastBoneLeftAxis.z = z3;
			}

			// Token: 0x04002EA0 RID: 11936
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x4002EA0")]
			public Vector3 upperBoneForwardAxis;

			// Token: 0x04002EA1 RID: 11937
			[FieldOffset(Offset = "0x1C")]
			[Token(Token = "0x4002EA1")]
			public Vector3 lowerBoneForwardAxis;

			// Token: 0x04002EA2 RID: 11938
			[FieldOffset(Offset = "0x28")]
			[Token(Token = "0x4002EA2")]
			public Vector3 lastBoneLeftAxis;
		}
	}
}
