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

namespace MTAssets.UltimateLODSystem.MeshSimplifier.Internal
{
	// Token: 0x0200062F RID: 1583
	[StructLayout(LayoutKind.Explicit)]
	public struct BorderVertex
	{
		// Token: 0x0600A1AF RID: 41391 RVA: 0x00298768 File Offset: 0x00296968
		[CallerCount(68)]
		[CachedScanResults(RefRangeStart = 32982, RefRangeEnd = 33050, XrefRangeStart = 32982, XrefRangeEnd = 33050, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe BorderVertex(int index, int hash)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref index;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref hash;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BorderVertex.NativeMethodInfoPtr__ctor_Public_Void_Int32_Int32_0, ref this, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A1B0 RID: 41392 RVA: 0x002987C0 File Offset: 0x002969C0
		// Note: this type is marked as 'beforefieldinit'.
		static BorderVertex()
		{
			Il2CppClassPointerStore<BorderVertex>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "MTAssets.UltimateLODSystem.MeshSimplifier.Internal", "BorderVertex");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<BorderVertex>.NativeClassPtr);
			BorderVertex.NativeFieldInfoPtr_index = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BorderVertex>.NativeClassPtr, "index");
			BorderVertex.NativeFieldInfoPtr_hash = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BorderVertex>.NativeClassPtr, "hash");
			BorderVertex.NativeMethodInfoPtr__ctor_Public_Void_Int32_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BorderVertex>.NativeClassPtr, 100675839);
		}

		// Token: 0x0600A1B1 RID: 41393 RVA: 0x0029882C File Offset: 0x00296A2C
		public Object BoxIl2CppObject()
		{
			return new Object(IL2CPP.il2cpp_value_box(Il2CppClassPointerStore<BorderVertex>.NativeClassPtr, ref this));
		}

		// Token: 0x04006C8F RID: 27791
		private static readonly IntPtr NativeFieldInfoPtr_index;

		// Token: 0x04006C90 RID: 27792
		private static readonly IntPtr NativeFieldInfoPtr_hash;

		// Token: 0x04006C91 RID: 27793
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_Int32_Int32_0;

		// Token: 0x04006C92 RID: 27794
		[FieldOffset(0)]
		public int index;

		// Token: 0x04006C93 RID: 27795
		[FieldOffset(4)]
		public int hash;
	}
}
