using System;
using Cpp2IlInjected;
using UnityEngine;

namespace RootMotion
{
	// Token: 0x02000391 RID: 913
	[Token(Token = "0x2000391")]
	[Serializable]
	public class BipedLimbOrientations
	{
		// Token: 0x06002256 RID: 8790 RVA: 0x0004F73C File Offset: 0x0004D93C
		[Token(Token = "0x6002256")]
		[Address(RVA = "0x8D6A50", Offset = "0x8D5850", VA = "0x1808D6A50")]
		public BipedLimbOrientations(BipedLimbOrientations.LimbOrientation leftArm, BipedLimbOrientations.LimbOrientation rightArm, BipedLimbOrientations.LimbOrientation leftLeg, BipedLimbOrientations.LimbOrientation rightLeg)
		{
			/*
An exception occurred when decompiling this method (06002256)

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: 0x170001EE RID: 494
		// (get) Token: 0x06002257 RID: 8791 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x170001EE")]
		public static BipedLimbOrientations UMA
		{
			[Token(Token = "0x6002257")]
			[Address(RVA = "0x8D6DE0", Offset = "0x8D5BE0", VA = "0x1808D6DE0")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x170001EF RID: 495
		// (get) Token: 0x06002258 RID: 8792 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x170001EF")]
		public static BipedLimbOrientations MaxBiped
		{
			[Token(Token = "0x6002258")]
			[Address(RVA = "0x8D6AD0", Offset = "0x8D58D0", VA = "0x1808D6AD0")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x04002BB2 RID: 11186
		[FieldOffset(Offset = "0x10")]
		[Token(Token = "0x4002BB2")]
		public BipedLimbOrientations.LimbOrientation leftArm;

		// Token: 0x04002BB3 RID: 11187
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4002BB3")]
		public BipedLimbOrientations.LimbOrientation rightArm;

		// Token: 0x04002BB4 RID: 11188
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4002BB4")]
		public BipedLimbOrientations.LimbOrientation leftLeg;

		// Token: 0x04002BB5 RID: 11189
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4002BB5")]
		public BipedLimbOrientations.LimbOrientation rightLeg;

		// Token: 0x02000392 RID: 914
		[Token(Token = "0x2000392")]
		[Serializable]
		public class LimbOrientation
		{
			// Token: 0x06002259 RID: 8793 RVA: 0x0004F76C File Offset: 0x0004D96C
			[Token(Token = "0x6002259")]
			[Address(RVA = "0x5FC930", Offset = "0x5FB730", VA = "0x1805FC930")]
			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: 0x04002BB6 RID: 11190
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x4002BB6")]
			public Vector3 upperBoneForwardAxis;

			// Token: 0x04002BB7 RID: 11191
			[FieldOffset(Offset = "0x1C")]
			[Token(Token = "0x4002BB7")]
			public Vector3 lowerBoneForwardAxis;

			// Token: 0x04002BB8 RID: 11192
			[FieldOffset(Offset = "0x28")]
			[Token(Token = "0x4002BB8")]
			public Vector3 lastBoneLeftAxis;
		}
	}
}
