using System;
using Cpp2IlInjected;
using UnityEngine;

namespace RootMotion.FinalIK
{
	// Token: 0x020003F4 RID: 1012
	[Token(Token = "0x20003F4")]
	[Serializable]
	public class ConstraintPositionOffset : Constraint
	{
		// Token: 0x06002442 RID: 9282 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002442")]
		[Address(RVA = "0xE90210", Offset = "0xE8F010", VA = "0x180E90210", Slot = "4")]
		public override void UpdateConstraint()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002443 RID: 9283 RVA: 0x00052E38 File Offset: 0x00051038
		[Token(Token = "0x6002443")]
		[Address(RVA = "0x3D8B20", Offset = "0x3D7920", VA = "0x1803D8B20")]
		public ConstraintPositionOffset()
		{
		}

		// Token: 0x06002444 RID: 9284 RVA: 0x00052E4C File Offset: 0x0005104C
		[Token(Token = "0x6002444")]
		[Address(RVA = "0x44F860", Offset = "0x44E660", VA = "0x18044F860")]
		public ConstraintPositionOffset(Transform transform)
		{
			/*
An exception occurred when decompiling this method (06002444)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.FinalIK.ConstraintPositionOffset::.ctor(UnityEngine.Transform)

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	call:void(object::.ctor, ldloc:ConstraintPositionOffset[exp:object](this)); 	stfld:Transform(Constraint::transform, ldloc:ConstraintPositionOffset[exp:Constraint](this), ldloc:Transform(transform)); }; 
   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: 0x1700020E RID: 526
		// (get) Token: 0x06002445 RID: 9285 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x1700020E")]
		private bool positionChanged
		{
			[Token(Token = "0x6002445")]
			[Address(RVA = "0xE90470", Offset = "0xE8F270", VA = "0x180E90470")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x04002E00 RID: 11776
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4002E00")]
		public Vector3 offset;

		// Token: 0x04002E01 RID: 11777
		[FieldOffset(Offset = "0x2C")]
		[Token(Token = "0x4002E01")]
		private Vector3 defaultLocalPosition;

		// Token: 0x04002E02 RID: 11778
		[FieldOffset(Offset = "0x38")]
		[Token(Token = "0x4002E02")]
		private Vector3 lastLocalPosition;

		// Token: 0x04002E03 RID: 11779
		[FieldOffset(Offset = "0x44")]
		[Token(Token = "0x4002E03")]
		private bool initiated;
	}
}
