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

namespace MTAssets.UltimateLODSystem.MeshSimplifier.Internal
{
	// Token: 0x0200062E RID: 1582
	public class BlendShapeFrameContainer : Il2CppSystem.Object
	{
		// Token: 0x0600A1A0 RID: 41376 RVA: 0x002982FC File Offset: 0x002964FC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 626335, XrefRangeEnd = 626353, 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: 0x0600A1A1 RID: 41377 RVA: 0x00298364 File Offset: 0x00296564
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 626353, XrefRangeEnd = 626355, 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: 0x0600A1A2 RID: 41378 RVA: 0x002983CC File Offset: 0x002965CC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 626355, XrefRangeEnd = 626359, 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: 0x0600A1A3 RID: 41379 RVA: 0x00298470 File Offset: 0x00296670
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 626359, XrefRangeEnd = 626366, 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: 0x0600A1A4 RID: 41380 RVA: 0x002984D8 File Offset: 0x002966D8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 626366, XrefRangeEnd = 626376, 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: 0x0600A1A5 RID: 41381 RVA: 0x00298524 File Offset: 0x00296724
		// 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, 100675834);
			BlendShapeFrameContainer.NativeMethodInfoPtr_MoveVertexElement_Public_Void_Int32_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, 100675835);
			BlendShapeFrameContainer.NativeMethodInfoPtr_InterpolateVertexAttributes_Public_Void_Int32_Int32_Int32_Int32_byref_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, 100675836);
			BlendShapeFrameContainer.NativeMethodInfoPtr_Resize_Public_Void_Int32_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, 100675837);
			BlendShapeFrameContainer.NativeMethodInfoPtr_ToBlendShapeFrame_Public_BlendShapeFrame_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BlendShapeFrameContainer>.NativeClassPtr, 100675838);
		}

		// Token: 0x0600A1A6 RID: 41382 RVA: 0x0000A688 File Offset: 0x00008888
		public BlendShapeFrameContainer(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170036BD RID: 14013
		// (get) Token: 0x0600A1A7 RID: 41383 RVA: 0x00298608 File Offset: 0x00296808
		// (set) Token: 0x0600A1A8 RID: 41384 RVA: 0x00298630 File Offset: 0x00296830
		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: 0x170036BE RID: 14014
		// (get) Token: 0x0600A1A9 RID: 41385 RVA: 0x00298654 File Offset: 0x00296854
		// (set) Token: 0x0600A1AA RID: 41386 RVA: 0x00298688 File Offset: 0x00296888
		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: 0x170036BF RID: 14015
		// (get) Token: 0x0600A1AB RID: 41387 RVA: 0x002986B0 File Offset: 0x002968B0
		// (set) Token: 0x0600A1AC RID: 41388 RVA: 0x002986E4 File Offset: 0x002968E4
		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: 0x170036C0 RID: 14016
		// (get) Token: 0x0600A1AD RID: 41389 RVA: 0x0029870C File Offset: 0x0029690C
		// (set) Token: 0x0600A1AE RID: 41390 RVA: 0x00298740 File Offset: 0x00296940
		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: 0x04006C86 RID: 27782
		private static readonly IntPtr NativeFieldInfoPtr_frameWeight;

		// Token: 0x04006C87 RID: 27783
		private static readonly IntPtr NativeFieldInfoPtr_deltaVertices;

		// Token: 0x04006C88 RID: 27784
		private static readonly IntPtr NativeFieldInfoPtr_deltaNormals;

		// Token: 0x04006C89 RID: 27785
		private static readonly IntPtr NativeFieldInfoPtr_deltaTangents;

		// Token: 0x04006C8A RID: 27786
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_BlendShapeFrame_0;

		// Token: 0x04006C8B RID: 27787
		private static readonly IntPtr NativeMethodInfoPtr_MoveVertexElement_Public_Void_Int32_Int32_0;

		// Token: 0x04006C8C RID: 27788
		private static readonly IntPtr NativeMethodInfoPtr_InterpolateVertexAttributes_Public_Void_Int32_Int32_Int32_Int32_byref_Vector3_0;

		// Token: 0x04006C8D RID: 27789
		private static readonly IntPtr NativeMethodInfoPtr_Resize_Public_Void_Int32_Boolean_0;

		// Token: 0x04006C8E RID: 27790
		private static readonly IntPtr NativeMethodInfoPtr_ToBlendShapeFrame_Public_BlendShapeFrame_0;
	}
}
