using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppSystem;
using UnityEngine;

namespace MTAssets.UltimateLODSystem.MeshSimplifier.Internal
{
	// Token: 0x02000686 RID: 1670
	public class BlendShapeFrameContainer : Il2CppSystem.Object
	{
		// Token: 0x0600A9F3 RID: 43507 RVA: 0x002BB038 File Offset: 0x002B9238
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 658636, XrefRangeEnd = 658654, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe BlendShapeFrameContainer(BlendShapeFrame frame)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.il2cpp_object_unbox(IL2CPP.Il2CppObjectBaseToPtrNotNull(frame));
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BlendShapeFrameContainer.NativeMethodInfoPtr__ctor_Public_Void_BlendShapeFrame_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x0600A9F4 RID: 43508 RVA: 0x002BB0A0 File Offset: 0x002B92A0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 658654, XrefRangeEnd = 658656, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void MoveVertexElement(int dst, int src)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref dst;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref src;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BlendShapeFrameContainer.NativeMethodInfoPtr_MoveVertexElement_Public_Void_Int32_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A9F5 RID: 43509 RVA: 0x002BB108 File Offset: 0x002B9308
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 658656, XrefRangeEnd = 658660, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void InterpolateVertexAttributes(int dst, int i0, int i1, int i2, ref Vector3 barycentricCoord)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)5) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref dst;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref i0;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref i1;
			ptr[checked(unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref i2;
			ptr[checked(unchecked((UIntPtr)4) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = &barycentricCoord;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BlendShapeFrameContainer.NativeMethodInfoPtr_InterpolateVertexAttributes_Public_Void_Int32_Int32_Int32_Int32_byref_Vector3_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A9F6 RID: 43510 RVA: 0x002BB1AC File Offset: 0x002B93AC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 658660, XrefRangeEnd = 658667, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Resize(int length, bool trimExess = false)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref length;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref trimExess;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BlendShapeFrameContainer.NativeMethodInfoPtr_Resize_Public_Void_Int32_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A9F7 RID: 43511 RVA: 0x002BB214 File Offset: 0x002B9414
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 658667, XrefRangeEnd = 658677, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe BlendShapeFrame ToBlendShapeFrame()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BlendShapeFrameContainer.NativeMethodInfoPtr_ToBlendShapeFrame_Public_BlendShapeFrame_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return new BlendShapeFrame(intPtr);
		}

		// Token: 0x0600A9F8 RID: 43512 RVA: 0x002BB260 File Offset: 0x002B9460
		// Note: this type is marked as 'beforefieldinit'.
		static BlendShapeFrameContainer()
		{
			Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "MTAssets.UltimateLODSystem.MeshSimplifier.Internal", "BlendShapeFrameContainer");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr);
			BlendShapeFrameContainer.NativeFieldInfoPtr_frameWeight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, "frameWeight");
			BlendShapeFrameContainer.NativeFieldInfoPtr_deltaVertices = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, "deltaVertices");
			BlendShapeFrameContainer.NativeFieldInfoPtr_deltaNormals = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, "deltaNormals");
			BlendShapeFrameContainer.NativeFieldInfoPtr_deltaTangents = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, "deltaTangents");
			BlendShapeFrameContainer.NativeMethodInfoPtr__ctor_Public_Void_BlendShapeFrame_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, 100676547);
			BlendShapeFrameContainer.NativeMethodInfoPtr_MoveVertexElement_Public_Void_Int32_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, 100676548);
			BlendShapeFrameContainer.NativeMethodInfoPtr_InterpolateVertexAttributes_Public_Void_Int32_Int32_Int32_Int32_byref_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, 100676549);
			BlendShapeFrameContainer.NativeMethodInfoPtr_Resize_Public_Void_Int32_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, 100676550);
			BlendShapeFrameContainer.NativeMethodInfoPtr_ToBlendShapeFrame_Public_BlendShapeFrame_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, 100676551);
		}

		// Token: 0x0600A9F9 RID: 43513 RVA: 0x0000A74C File Offset: 0x0000894C
		public BlendShapeFrameContainer(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003958 RID: 14680
		// (get) Token: 0x0600A9FA RID: 43514 RVA: 0x002BB344 File Offset: 0x002B9544
		// (set) Token: 0x0600A9FB RID: 43515 RVA: 0x002BB36C File Offset: 0x002B956C
		public unsafe float frameWeight
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrameContainer.NativeFieldInfoPtr_frameWeight);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrameContainer.NativeFieldInfoPtr_frameWeight)) = value;
			}
		}

		// Token: 0x17003959 RID: 14681
		// (get) Token: 0x0600A9FC RID: 43516 RVA: 0x002BB390 File Offset: 0x002B9590
		// (set) Token: 0x0600A9FD RID: 43517 RVA: 0x002BB3C4 File Offset: 0x002B95C4
		public unsafe ResizableArray<Vector3> deltaVertices
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrameContainer.NativeFieldInfoPtr_deltaVertices);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new ResizableArray<Vector3>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrameContainer.NativeFieldInfoPtr_deltaVertices), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x1700395A RID: 14682
		// (get) Token: 0x0600A9FE RID: 43518 RVA: 0x002BB3EC File Offset: 0x002B95EC
		// (set) Token: 0x0600A9FF RID: 43519 RVA: 0x002BB420 File Offset: 0x002B9620
		public unsafe ResizableArray<Vector3> deltaNormals
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrameContainer.NativeFieldInfoPtr_deltaNormals);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new ResizableArray<Vector3>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrameContainer.NativeFieldInfoPtr_deltaNormals), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x1700395B RID: 14683
		// (get) Token: 0x0600AA00 RID: 43520 RVA: 0x002BB448 File Offset: 0x002B9648
		// (set) Token: 0x0600AA01 RID: 43521 RVA: 0x002BB47C File Offset: 0x002B967C
		public unsafe ResizableArray<Vector3> deltaTangents
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrameContainer.NativeFieldInfoPtr_deltaTangents);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new ResizableArray<Vector3>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrameContainer.NativeFieldInfoPtr_deltaTangents), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x0400722F RID: 29231
		private static readonly IntPtr NativeFieldInfoPtr_frameWeight;

		// Token: 0x04007230 RID: 29232
		private static readonly IntPtr NativeFieldInfoPtr_deltaVertices;

		// Token: 0x04007231 RID: 29233
		private static readonly IntPtr NativeFieldInfoPtr_deltaNormals;

		// Token: 0x04007232 RID: 29234
		private static readonly IntPtr NativeFieldInfoPtr_deltaTangents;

		// Token: 0x04007233 RID: 29235
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_BlendShapeFrame_0;

		// Token: 0x04007234 RID: 29236
		private static readonly IntPtr NativeMethodInfoPtr_MoveVertexElement_Public_Void_Int32_Int32_0;

		// Token: 0x04007235 RID: 29237
		private static readonly IntPtr NativeMethodInfoPtr_InterpolateVertexAttributes_Public_Void_Int32_Int32_Int32_Int32_byref_Vector3_0;

		// Token: 0x04007236 RID: 29238
		private static readonly IntPtr NativeMethodInfoPtr_Resize_Public_Void_Int32_Boolean_0;

		// Token: 0x04007237 RID: 29239
		private static readonly IntPtr NativeMethodInfoPtr_ToBlendShapeFrame_Public_BlendShapeFrame_0;
	}
}
