using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using UnityEngine;

namespace Obi
{
	// Token: 0x02000554 RID: 1364
	public class ObiProfiler : MonoBehaviour
	{
		// Token: 0x060099F3 RID: 39411 RVA: 0x0027A5D0 File Offset: 0x002787D0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645640, XrefRangeEnd = 645642, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnEnable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiProfiler.NativeMethodInfoPtr_OnEnable_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099F4 RID: 39412 RVA: 0x0027A614 File Offset: 0x00278814
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645642, XrefRangeEnd = 645643, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDisable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiProfiler.NativeMethodInfoPtr_OnDisable_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099F5 RID: 39413 RVA: 0x0027A658 File Offset: 0x00278858
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645643, XrefRangeEnd = 645719, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnGUI()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiProfiler.NativeMethodInfoPtr_OnGUI_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099F6 RID: 39414 RVA: 0x0027A69C File Offset: 0x0027889C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645719, XrefRangeEnd = 645721, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiProfiler()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiProfiler.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099F7 RID: 39415 RVA: 0x0027A6E8 File Offset: 0x002788E8
		// Note: this type is marked as 'beforefieldinit'.
		static ObiProfiler()
		{
			Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiProfiler");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr);
			ObiProfiler.NativeFieldInfoPtr_skin = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, "skin");
			ObiProfiler.NativeFieldInfoPtr_showPercentages = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, "showPercentages");
			ObiProfiler.NativeFieldInfoPtr_maxVisibleThreads = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, "maxVisibleThreads");
			ObiProfiler.NativeFieldInfoPtr_info = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, "info");
			ObiProfiler.NativeFieldInfoPtr_frameDuration = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, "frameDuration");
			ObiProfiler.NativeFieldInfoPtr_zoom = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, "zoom");
			ObiProfiler.NativeFieldInfoPtr_scrollPosition = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, "scrollPosition");
			ObiProfiler.NativeFieldInfoPtr_numThreads = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, "numThreads");
			ObiProfiler.NativeMethodInfoPtr_OnEnable_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, 100675320);
			ObiProfiler.NativeMethodInfoPtr_OnDisable_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, 100675321);
			ObiProfiler.NativeMethodInfoPtr_OnGUI_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, 100675322);
			ObiProfiler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, 100675323);
		}

		// Token: 0x060099F8 RID: 39416 RVA: 0x0000351C File Offset: 0x0000171C
		public ObiProfiler(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170033F9 RID: 13305
		// (get) Token: 0x060099F9 RID: 39417 RVA: 0x0027A808 File Offset: 0x00278A08
		// (set) Token: 0x060099FA RID: 39418 RVA: 0x0027A83C File Offset: 0x00278A3C
		public unsafe GUISkin skin
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiProfiler.NativeFieldInfoPtr_skin);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new GUISkin(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiProfiler.NativeFieldInfoPtr_skin), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170033FA RID: 13306
		// (get) Token: 0x060099FB RID: 39419 RVA: 0x0027A864 File Offset: 0x00278A64
		// (set) Token: 0x060099FC RID: 39420 RVA: 0x0027A88C File Offset: 0x00278A8C
		public unsafe bool showPercentages
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiProfiler.NativeFieldInfoPtr_showPercentages);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiProfiler.NativeFieldInfoPtr_showPercentages)) = value;
			}
		}

		// Token: 0x170033FB RID: 13307
		// (get) Token: 0x060099FD RID: 39421 RVA: 0x0027A8B0 File Offset: 0x00278AB0
		// (set) Token: 0x060099FE RID: 39422 RVA: 0x0027A8D8 File Offset: 0x00278AD8
		public unsafe int maxVisibleThreads
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiProfiler.NativeFieldInfoPtr_maxVisibleThreads);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiProfiler.NativeFieldInfoPtr_maxVisibleThreads)) = value;
			}
		}

		// Token: 0x170033FC RID: 13308
		// (get) Token: 0x060099FF RID: 39423 RVA: 0x0027A8FC File Offset: 0x00278AFC
		// (set) Token: 0x06009A00 RID: 39424 RVA: 0x0027A927 File Offset: 0x00278B27
		public unsafe static Il2CppReferenceArray<Oni.ProfileInfo> info
		{
			get
			{
				IntPtr intPtr;
				IL2CPP.il2cpp_field_static_get_value(ObiProfiler.NativeFieldInfoPtr_info, (void*)(&intPtr));
				IntPtr intPtr2 = intPtr;
				return (intPtr2 != 0) ? new Il2CppReferenceArray<Oni.ProfileInfo>(intPtr2) : null;
			}
			set
			{
				IL2CPP.il2cpp_field_static_set_value(ObiProfiler.NativeFieldInfoPtr_info, IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170033FD RID: 13309
		// (get) Token: 0x06009A01 RID: 39425 RVA: 0x0027A93C File Offset: 0x00278B3C
		// (set) Token: 0x06009A02 RID: 39426 RVA: 0x0027A95A File Offset: 0x00278B5A
		public unsafe static double frameDuration
		{
			get
			{
				double num;
				IL2CPP.il2cpp_field_static_get_value(ObiProfiler.NativeFieldInfoPtr_frameDuration, (void*)(&num));
				return num;
			}
			set
			{
				IL2CPP.il2cpp_field_static_set_value(ObiProfiler.NativeFieldInfoPtr_frameDuration, (void*)(&value));
			}
		}

		// Token: 0x170033FE RID: 13310
		// (get) Token: 0x06009A03 RID: 39427 RVA: 0x0027A96C File Offset: 0x00278B6C
		// (set) Token: 0x06009A04 RID: 39428 RVA: 0x0027A994 File Offset: 0x00278B94
		public unsafe float zoom
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiProfiler.NativeFieldInfoPtr_zoom);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiProfiler.NativeFieldInfoPtr_zoom)) = value;
			}
		}

		// Token: 0x170033FF RID: 13311
		// (get) Token: 0x06009A05 RID: 39429 RVA: 0x0027A9B8 File Offset: 0x00278BB8
		// (set) Token: 0x06009A06 RID: 39430 RVA: 0x0027A9E0 File Offset: 0x00278BE0
		public unsafe Vector2 scrollPosition
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiProfiler.NativeFieldInfoPtr_scrollPosition);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiProfiler.NativeFieldInfoPtr_scrollPosition)) = value;
			}
		}

		// Token: 0x17003400 RID: 13312
		// (get) Token: 0x06009A07 RID: 39431 RVA: 0x0027AA04 File Offset: 0x00278C04
		// (set) Token: 0x06009A08 RID: 39432 RVA: 0x0027AA2C File Offset: 0x00278C2C
		public unsafe int numThreads
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiProfiler.NativeFieldInfoPtr_numThreads);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiProfiler.NativeFieldInfoPtr_numThreads)) = value;
			}
		}

		// Token: 0x040066C0 RID: 26304
		private static readonly IntPtr NativeFieldInfoPtr_skin;

		// Token: 0x040066C1 RID: 26305
		private static readonly IntPtr NativeFieldInfoPtr_showPercentages;

		// Token: 0x040066C2 RID: 26306
		private static readonly IntPtr NativeFieldInfoPtr_maxVisibleThreads;

		// Token: 0x040066C3 RID: 26307
		private static readonly IntPtr NativeFieldInfoPtr_info;

		// Token: 0x040066C4 RID: 26308
		private static readonly IntPtr NativeFieldInfoPtr_frameDuration;

		// Token: 0x040066C5 RID: 26309
		private static readonly IntPtr NativeFieldInfoPtr_zoom;

		// Token: 0x040066C6 RID: 26310
		private static readonly IntPtr NativeFieldInfoPtr_scrollPosition;

		// Token: 0x040066C7 RID: 26311
		private static readonly IntPtr NativeFieldInfoPtr_numThreads;

		// Token: 0x040066C8 RID: 26312
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Public_Void_0;

		// Token: 0x040066C9 RID: 26313
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Public_Void_0;

		// Token: 0x040066CA RID: 26314
		private static readonly IntPtr NativeMethodInfoPtr_OnGUI_Public_Void_0;

		// Token: 0x040066CB RID: 26315
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
