using System;
using Cpp2IlInjected;
using UnityEngine;

namespace Obi
{
	// Token: 0x02000526 RID: 1318
	[Token(Token = "0x2000526")]
	public class ObiTriangleSkinMap : ScriptableObject
	{
		// Token: 0x17000325 RID: 805
		// (get) Token: 0x06002E2F RID: 11823 RVA: 0x00064F20 File Offset: 0x00063120
		// (set) Token: 0x06002E2E RID: 11822 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000325")]
		public ObiMeshTopology SourceTopology
		{
			[Token(Token = "0x6002E2F")]
			[Address(RVA = "0x33F2E0", Offset = "0x33E2E0", VA = "0x18033F2E0")]
			get
			{
				return this.sourceTopology;
			}
			[Token(Token = "0x6002E2E")]
			[Address(RVA = "0xE66540", Offset = "0xE65540", VA = "0x180E66540")]
			set
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x17000326 RID: 806
		// (get) Token: 0x06002E31 RID: 11825 RVA: 0x00064F34 File Offset: 0x00063134
		// (set) Token: 0x06002E30 RID: 11824 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000326")]
		public Mesh TargetMesh
		{
			[Token(Token = "0x6002E31")]
			[Address(RVA = "0x33F340", Offset = "0x33E340", VA = "0x18033F340")]
			get
			{
				return this.targetMesh;
			}
			[Token(Token = "0x6002E30")]
			[Address(RVA = "0xE666C0", Offset = "0xE656C0", VA = "0x180E666C0")]
			set
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x17000327 RID: 807
		// (get) Token: 0x06002E32 RID: 11826 RVA: 0x00064F48 File Offset: 0x00063148
		[Token(Token = "0x17000327")]
		public IntPtr TriangleSkinMap
		{
			[Token(Token = "0x6002E32")]
			[Address(RVA = "0x2990A0", Offset = "0x2980A0", VA = "0x1802990A0")]
			get
			{
				return this.triangleSkinMap;
			}
		}

		// Token: 0x06002E33 RID: 11827 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E33")]
		[Address(RVA = "0xE66120", Offset = "0xE65120", VA = "0x180E66120")]
		private void ValidateMasterFlags(bool resetValues)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E34 RID: 11828 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E34")]
		[Address(RVA = "0xE66280", Offset = "0xE65280", VA = "0x180E66280")]
		private void ValidateSlaveFlags(bool resetValues)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E35 RID: 11829 RVA: 0x00064F5C File Offset: 0x0006315C
		[Token(Token = "0x6002E35")]
		[Address(RVA = "0xE65FC0", Offset = "0xE64FC0", VA = "0x180E65FC0")]
		public void OnEnable()
		{
			/*
An exception occurred when decompiling this method (06002E35)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.ObiTriangleSkinMap::OnEnable()

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	IL_85:; 	stfld:bool(ObiTriangleSkinMap::bound, ldloc:ObiTriangleSkinMap(this), ldc.i4:bool(0)); 	stloc:int32[](var_11_92, newarr:int32[]([mscorlib]System.Int32, ldc.i4:int32(0))); 	stfld:int32[](ObiTriangleSkinMap::skinnedVertices, ldloc:ObiTriangleSkinMap(this), ldloc:int32[](var_11_92)); 	stloc:int32[](var_12_A2, newarr:int32[]([mscorlib]System.Int32, ldc.i4:int32(0))); 	stfld:int32[](ObiTriangleSkinMap::skinnedTriangles, ldloc:ObiTriangleSkinMap(this), ldloc:int32[](var_12_A2)); 	stloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_13_B2, newarr:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[]([UnityEngine.CoreModule]UnityEngine.Vector3, ldc.i4:int32(0))); 	stfld:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](ObiTriangleSkinMap::baryPositions, ldloc:ObiTriangleSkinMap(this), ldloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_13_B2)); 	stloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_14_C2, newarr:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[]([UnityEngine.CoreModule]UnityEngine.Vector3, ldc.i4:int32(0))); 	stfld:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](ObiTriangleSkinMap::baryNormals, ldloc:ObiTriangleSkinMap(this), ldloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_14_C2)); 	stloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_15_D2, newarr:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[]([UnityEngine.CoreModule]UnityEngine.Vector3, ldc.i4:int32(0))); 	stfld:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](ObiTriangleSkinMap::baryTangents, ldloc:ObiTriangleSkinMap(this), ldloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_15_D2)); }; 
   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: 0x06002E36 RID: 11830 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E36")]
		[Address(RVA = "0xE657C0", Offset = "0xE647C0", VA = "0x180E657C0")]
		public void Bind(Transform sourceTransform, Transform targetTransform)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E37 RID: 11831 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E37")]
		[Address(RVA = "0xE663C0", Offset = "0xE653C0", VA = "0x180E663C0")]
		public ObiTriangleSkinMap()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x040036C3 RID: 14019
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x40036C3")]
		[HideInInspector]
		public bool bound;

		// Token: 0x040036C4 RID: 14020
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x40036C4")]
		private IntPtr triangleSkinMap;

		// Token: 0x040036C5 RID: 14021
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x40036C5")]
		[HideInInspector]
		public uint[] masterFlags;

		// Token: 0x040036C6 RID: 14022
		[FieldOffset(Offset = "0x30")]
		[Token(Token = "0x40036C6")]
		[HideInInspector]
		public uint[] slaveFlags;

		// Token: 0x040036C7 RID: 14023
		[FieldOffset(Offset = "0x38")]
		[Token(Token = "0x40036C7")]
		[HideInInspector]
		public int[] skinnedVertices;

		// Token: 0x040036C8 RID: 14024
		[FieldOffset(Offset = "0x40")]
		[Token(Token = "0x40036C8")]
		[HideInInspector]
		public int[] skinnedTriangles;

		// Token: 0x040036C9 RID: 14025
		[FieldOffset(Offset = "0x48")]
		[Token(Token = "0x40036C9")]
		[HideInInspector]
		public Vector3[] baryPositions;

		// Token: 0x040036CA RID: 14026
		[FieldOffset(Offset = "0x50")]
		[Token(Token = "0x40036CA")]
		[HideInInspector]
		public Vector3[] baryNormals;

		// Token: 0x040036CB RID: 14027
		[FieldOffset(Offset = "0x58")]
		[Token(Token = "0x40036CB")]
		[HideInInspector]
		public Vector3[] baryTangents;

		// Token: 0x040036CC RID: 14028
		[FieldOffset(Offset = "0x60")]
		[Token(Token = "0x40036CC")]
		[HideInInspector]
		[SerializeField]
		private ObiMeshTopology sourceTopology;

		// Token: 0x040036CD RID: 14029
		[FieldOffset(Offset = "0x68")]
		[Token(Token = "0x40036CD")]
		[SerializeField]
		[HideInInspector]
		private Mesh targetMesh;

		// Token: 0x040036CE RID: 14030
		[FieldOffset(Offset = "0x70")]
		[Token(Token = "0x40036CE")]
		[HideInInspector]
		public ObiTriangleSkinMap.SkinTransform sourceSkinTransform;

		// Token: 0x040036CF RID: 14031
		[FieldOffset(Offset = "0x98")]
		[Token(Token = "0x40036CF")]
		[HideInInspector]
		public ObiTriangleSkinMap.SkinTransform targetSkinTransform;

		// Token: 0x02000527 RID: 1319
		[Token(Token = "0x2000527")]
		[Serializable]
		public struct SkinTransform
		{
			// Token: 0x06002E38 RID: 11832 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x6002E38")]
			[Address(RVA = "0x69D3D0", Offset = "0x69C3D0", VA = "0x18069D3D0")]
			public SkinTransform(Vector3 position, Quaternion rotation, Vector3 scale)
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}

			// Token: 0x06002E39 RID: 11833 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x6002E39")]
			[Address(RVA = "0x69D400", Offset = "0x69C400", VA = "0x18069D400")]
			public SkinTransform(Transform transform)
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}

			// Token: 0x06002E3A RID: 11834 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x6002E3A")]
			[Address(RVA = "0x69D340", Offset = "0x69C340", VA = "0x18069D340")]
			public void Apply(Transform transform)
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}

			// Token: 0x040036D0 RID: 14032
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x40036D0")]
			public Vector3 position;

			// Token: 0x040036D1 RID: 14033
			[FieldOffset(Offset = "0xC")]
			[Token(Token = "0x40036D1")]
			public Quaternion rotation;

			// Token: 0x040036D2 RID: 14034
			[FieldOffset(Offset = "0x1C")]
			[Token(Token = "0x40036D2")]
			public Vector3 scale;
		}
	}
}
