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

namespace Obi
{
	// Token: 0x020004FC RID: 1276
	public class ObiProfiler : MonoBehaviour
	{
		// Token: 0x060091A0 RID: 37280 RVA: 0x00257894 File Offset: 0x00255A94
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613330, XrefRangeEnd = 613332, 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: 0x060091A1 RID: 37281 RVA: 0x002578D8 File Offset: 0x00255AD8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613332, XrefRangeEnd = 613333, 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: 0x060091A2 RID: 37282 RVA: 0x0025791C File Offset: 0x00255B1C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613333, XrefRangeEnd = 613409, 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: 0x060091A3 RID: 37283 RVA: 0x00257960 File Offset: 0x00255B60
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613409, XrefRangeEnd = 613411, 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: 0x060091A4 RID: 37284 RVA: 0x002579AC File Offset: 0x00255BAC
		// 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, 100674607);
			ObiProfiler.NativeMethodInfoPtr_OnDisable_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, 100674608);
			ObiProfiler.NativeMethodInfoPtr_OnGUI_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, 100674609);
			ObiProfiler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiProfiler>.NativeClassPtr, 100674610);
		}

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

		// Token: 0x1700315E RID: 12638
		// (get) Token: 0x060091A6 RID: 37286 RVA: 0x00257ACC File Offset: 0x00255CCC
		// (set) Token: 0x060091A7 RID: 37287 RVA: 0x00257B00 File Offset: 0x00255D00
		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: 0x1700315F RID: 12639
		// (get) Token: 0x060091A8 RID: 37288 RVA: 0x00257B28 File Offset: 0x00255D28
		// (set) Token: 0x060091A9 RID: 37289 RVA: 0x00257B50 File Offset: 0x00255D50
		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: 0x17003160 RID: 12640
		// (get) Token: 0x060091AA RID: 37290 RVA: 0x00257B74 File Offset: 0x00255D74
		// (set) Token: 0x060091AB RID: 37291 RVA: 0x00257B9C File Offset: 0x00255D9C
		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: 0x17003161 RID: 12641
		// (get) Token: 0x060091AC RID: 37292 RVA: 0x00257BC0 File Offset: 0x00255DC0
		// (set) Token: 0x060091AD RID: 37293 RVA: 0x00257BEB File Offset: 0x00255DEB
		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: 0x17003162 RID: 12642
		// (get) Token: 0x060091AE RID: 37294 RVA: 0x00257C00 File Offset: 0x00255E00
		// (set) Token: 0x060091AF RID: 37295 RVA: 0x00257C1E File Offset: 0x00255E1E
		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: 0x17003163 RID: 12643
		// (get) Token: 0x060091B0 RID: 37296 RVA: 0x00257C30 File Offset: 0x00255E30
		// (set) Token: 0x060091B1 RID: 37297 RVA: 0x00257C58 File Offset: 0x00255E58
		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: 0x17003164 RID: 12644
		// (get) Token: 0x060091B2 RID: 37298 RVA: 0x00257C7C File Offset: 0x00255E7C
		// (set) Token: 0x060091B3 RID: 37299 RVA: 0x00257CA4 File Offset: 0x00255EA4
		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: 0x17003165 RID: 12645
		// (get) Token: 0x060091B4 RID: 37300 RVA: 0x00257CC8 File Offset: 0x00255EC8
		// (set) Token: 0x060091B5 RID: 37301 RVA: 0x00257CF0 File Offset: 0x00255EF0
		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: 0x04006117 RID: 24855
		private static readonly IntPtr NativeFieldInfoPtr_skin;

		// Token: 0x04006118 RID: 24856
		private static readonly IntPtr NativeFieldInfoPtr_showPercentages;

		// Token: 0x04006119 RID: 24857
		private static readonly IntPtr NativeFieldInfoPtr_maxVisibleThreads;

		// Token: 0x0400611A RID: 24858
		private static readonly IntPtr NativeFieldInfoPtr_info;

		// Token: 0x0400611B RID: 24859
		private static readonly IntPtr NativeFieldInfoPtr_frameDuration;

		// Token: 0x0400611C RID: 24860
		private static readonly IntPtr NativeFieldInfoPtr_zoom;

		// Token: 0x0400611D RID: 24861
		private static readonly IntPtr NativeFieldInfoPtr_scrollPosition;

		// Token: 0x0400611E RID: 24862
		private static readonly IntPtr NativeFieldInfoPtr_numThreads;

		// Token: 0x0400611F RID: 24863
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Public_Void_0;

		// Token: 0x04006120 RID: 24864
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Public_Void_0;

		// Token: 0x04006121 RID: 24865
		private static readonly IntPtr NativeMethodInfoPtr_OnGUI_Public_Void_0;

		// Token: 0x04006122 RID: 24866
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
