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

namespace MTAssets.UltimateLODSystem.MeshSimplifier.Internal
{
	// Token: 0x02000688 RID: 1672
	public class BorderVertexComparer : Object
	{
		// Token: 0x0600AA05 RID: 43525 RVA: 0x002BB57C File Offset: 0x002B977C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 658677, XrefRangeEnd = 658678, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe virtual int Compare(BorderVertex x, BorderVertex y)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref x;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref y;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BorderVertexComparer.NativeMethodInfoPtr_Compare_Public_Virtual_Final_New_Int32_BorderVertex_BorderVertex_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x0600AA06 RID: 43526 RVA: 0x002BB5F4 File Offset: 0x002B97F4
		[CallerCount(1664)]
		[CachedScanResults(RefRangeStart = 7711, RefRangeEnd = 9375, XrefRangeStart = 7711, XrefRangeEnd = 9375, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe BorderVertexComparer()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<BorderVertexComparer>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BorderVertexComparer.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600AA07 RID: 43527 RVA: 0x002BB640 File Offset: 0x002B9840
		// Note: this type is marked as 'beforefieldinit'.
		static BorderVertexComparer()
		{
			Il2CppClassPointerStore<BorderVertexComparer>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "MTAssets.UltimateLODSystem.MeshSimplifier.Internal", "BorderVertexComparer");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<BorderVertexComparer>.NativeClassPtr);
			BorderVertexComparer.NativeFieldInfoPtr_instance = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BorderVertexComparer>.NativeClassPtr, "instance");
			BorderVertexComparer.NativeMethodInfoPtr_Compare_Public_Virtual_Final_New_Int32_BorderVertex_BorderVertex_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BorderVertexComparer>.NativeClassPtr, 100676553);
			BorderVertexComparer.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BorderVertexComparer>.NativeClassPtr, 100676554);
		}

		// Token: 0x0600AA08 RID: 43528 RVA: 0x0000A74C File Offset: 0x0000894C
		public BorderVertexComparer(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700395C RID: 14684
		// (get) Token: 0x0600AA09 RID: 43529 RVA: 0x002BB6AC File Offset: 0x002B98AC
		// (set) Token: 0x0600AA0A RID: 43530 RVA: 0x002BB6D7 File Offset: 0x002B98D7
		public unsafe static BorderVertexComparer instance
		{
			get
			{
				IntPtr intPtr;
				IL2CPP.il2cpp_field_static_get_value(BorderVertexComparer.NativeFieldInfoPtr_instance, (void*)(&intPtr));
				IntPtr intPtr2 = intPtr;
				return (intPtr2 != 0) ? new BorderVertexComparer(intPtr2) : null;
			}
			set
			{
				IL2CPP.il2cpp_field_static_set_value(BorderVertexComparer.NativeFieldInfoPtr_instance, IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x0400723D RID: 29245
		private static readonly IntPtr NativeFieldInfoPtr_instance;

		// Token: 0x0400723E RID: 29246
		private static readonly IntPtr NativeMethodInfoPtr_Compare_Public_Virtual_Final_New_Int32_BorderVertex_BorderVertex_0;

		// Token: 0x0400723F RID: 29247
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
