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

namespace Obi
{
	// Token: 0x0200052C RID: 1324
	public class EditorCoroutine : Object
	{
		// Token: 0x060096F1 RID: 38641 RVA: 0x0026DA5C File Offset: 0x0026BC5C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 642938, XrefRangeEnd = 642950, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static EditorCoroutine StartCoroutine(IEnumerator _routine)
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(_routine);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_StartCoroutine_Public_Static_EditorCoroutine_IEnumerator_0, 0, (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				IntPtr intPtr3 = intPtr;
				return (intPtr3 != 0) ? new EditorCoroutine(intPtr3) : null;
			}
		}

		// Token: 0x17003300 RID: 13056
		// (get) Token: 0x060096F2 RID: 38642 RVA: 0x0026DABC File Offset: 0x0026BCBC
		public unsafe Object Result
		{
			[CallerCount(10)]
			[CachedScanResults(RefRangeStart = 7527, RefRangeEnd = 7537, XrefRangeStart = 7527, XrefRangeEnd = 7537, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_get_Result_Public_get_Object_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				IntPtr intPtr3 = intPtr;
				return (intPtr3 != 0) ? new Object(intPtr3) : null;
			}
		}

		// Token: 0x17003301 RID: 13057
		// (get) Token: 0x060096F3 RID: 38643 RVA: 0x0026DB14 File Offset: 0x0026BD14
		public unsafe bool IsDone
		{
			[CallerCount(0)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_get_IsDone_Public_get_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x060096F4 RID: 38644 RVA: 0x0026DB64 File Offset: 0x0026BD64
		[CallerCount(125)]
		[CachedScanResults(RefRangeStart = 16970, RefRangeEnd = 17095, XrefRangeStart = 16970, XrefRangeEnd = 17095, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe EditorCoroutine(IEnumerator _routine)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(_routine);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr__ctor_Private_Void_IEnumerator_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x060096F5 RID: 38645 RVA: 0x0026DBC8 File Offset: 0x0026BDC8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 642950, XrefRangeEnd = 642957, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060096F6 RID: 38646 RVA: 0x0026DC0C File Offset: 0x0026BE0C
		[CallerCount(0)]
		public unsafe void Stop()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_Stop_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060096F7 RID: 38647 RVA: 0x0026DC50 File Offset: 0x0026BE50
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 642957, XrefRangeEnd = 642963, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060096F8 RID: 38648 RVA: 0x0026DC94 File Offset: 0x0026BE94
		[CallerCount(5874)]
		[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5898, XrefRangeStart = 24, XrefRangeEnd = 5898, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static void ShowCoroutineProgressBar(string title, EditorCoroutine coroutine)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(title);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(coroutine);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_ShowCoroutineProgressBar_Public_Static_Void_String_EditorCoroutine_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060096F9 RID: 38649 RVA: 0x0026DCF8 File Offset: 0x0026BEF8
		// Note: this type is marked as 'beforefieldinit'.
		static EditorCoroutine()
		{
			Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "EditorCoroutine");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr);
			EditorCoroutine.NativeFieldInfoPtr_routine = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, "routine");
			EditorCoroutine.NativeFieldInfoPtr_result = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, "result");
			EditorCoroutine.NativeFieldInfoPtr_isDone = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, "isDone");
			EditorCoroutine.NativeMethodInfoPtr_StartCoroutine_Public_Static_EditorCoroutine_IEnumerator_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100675045);
			EditorCoroutine.NativeMethodInfoPtr_get_Result_Public_get_Object_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100675046);
			EditorCoroutine.NativeMethodInfoPtr_get_IsDone_Public_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100675047);
			EditorCoroutine.NativeMethodInfoPtr__ctor_Private_Void_IEnumerator_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100675048);
			EditorCoroutine.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100675049);
			EditorCoroutine.NativeMethodInfoPtr_Stop_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100675050);
			EditorCoroutine.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100675051);
			EditorCoroutine.NativeMethodInfoPtr_ShowCoroutineProgressBar_Public_Static_Void_String_EditorCoroutine_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100675052);
		}

		// Token: 0x060096FA RID: 38650 RVA: 0x0000A74C File Offset: 0x0000894C
		public EditorCoroutine(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170032FD RID: 13053
		// (get) Token: 0x060096FB RID: 38651 RVA: 0x0026DE04 File Offset: 0x0026C004
		// (set) Token: 0x060096FC RID: 38652 RVA: 0x0026DE38 File Offset: 0x0026C038
		public unsafe IEnumerator routine
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EditorCoroutine.NativeFieldInfoPtr_routine);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new IEnumerator(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(EditorCoroutine.NativeFieldInfoPtr_routine), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170032FE RID: 13054
		// (get) Token: 0x060096FD RID: 38653 RVA: 0x0026DE60 File Offset: 0x0026C060
		// (set) Token: 0x060096FE RID: 38654 RVA: 0x0026DE94 File Offset: 0x0026C094
		public unsafe Object result
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EditorCoroutine.NativeFieldInfoPtr_result);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Object(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(EditorCoroutine.NativeFieldInfoPtr_result), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170032FF RID: 13055
		// (get) Token: 0x060096FF RID: 38655 RVA: 0x0026DEBC File Offset: 0x0026C0BC
		// (set) Token: 0x06009700 RID: 38656 RVA: 0x0026DEE4 File Offset: 0x0026C0E4
		public unsafe bool isDone
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EditorCoroutine.NativeFieldInfoPtr_isDone);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EditorCoroutine.NativeFieldInfoPtr_isDone)) = value;
			}
		}

		// Token: 0x040064B6 RID: 25782
		private static readonly IntPtr NativeFieldInfoPtr_routine;

		// Token: 0x040064B7 RID: 25783
		private static readonly IntPtr NativeFieldInfoPtr_result;

		// Token: 0x040064B8 RID: 25784
		private static readonly IntPtr NativeFieldInfoPtr_isDone;

		// Token: 0x040064B9 RID: 25785
		private static readonly IntPtr NativeMethodInfoPtr_StartCoroutine_Public_Static_EditorCoroutine_IEnumerator_0;

		// Token: 0x040064BA RID: 25786
		private static readonly IntPtr NativeMethodInfoPtr_get_Result_Public_get_Object_0;

		// Token: 0x040064BB RID: 25787
		private static readonly IntPtr NativeMethodInfoPtr_get_IsDone_Public_get_Boolean_0;

		// Token: 0x040064BC RID: 25788
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Private_Void_IEnumerator_0;

		// Token: 0x040064BD RID: 25789
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x040064BE RID: 25790
		private static readonly IntPtr NativeMethodInfoPtr_Stop_Public_Void_0;

		// Token: 0x040064BF RID: 25791
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x040064C0 RID: 25792
		private static readonly IntPtr NativeMethodInfoPtr_ShowCoroutineProgressBar_Public_Static_Void_String_EditorCoroutine_0;
	}
}
