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

namespace MTAssets.UltimateLODSystem.MeshSimplifier.Internal
{
	// Token: 0x02000687 RID: 1671
	[StructLayout(2)]
	public struct BorderVertex
	{
		// Token: 0x0600AA02 RID: 43522 RVA: 0x002BB4A4 File Offset: 0x002B96A4
		[CallerCount(68)]
		[CachedScanResults(RefRangeStart = 32895, RefRangeEnd = 32963, XrefRangeStart = 32895, XrefRangeEnd = 32963, 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: 0x0600AA03 RID: 43523 RVA: 0x002BB4FC File Offset: 0x002B96FC
		// 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, 100676552);
		}

		// Token: 0x0600AA04 RID: 43524 RVA: 0x002BB568 File Offset: 0x002B9768
		public Object BoxIl2CppObject()
		{
			return new Object(IL2CPP.il2cpp_value_box(Il2CppClassPointerStore<BorderVertex>.NativeClassPtr, ref this));
		}

		// Token: 0x04007238 RID: 29240
		private static readonly IntPtr NativeFieldInfoPtr_index;

		// Token: 0x04007239 RID: 29241
		private static readonly IntPtr NativeFieldInfoPtr_hash;

		// Token: 0x0400723A RID: 29242
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_Int32_Int32_0;

		// Token: 0x0400723B RID: 29243
		[FieldOffset(0)]
		public int index;

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