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

namespace RootMotion
{
	// Token: 0x020003B3 RID: 947
	public static class Warning : Il2CppSystem.Object
	{
		// Token: 0x060075F5 RID: 30197 RVA: 0x001E25BC File Offset: 0x001E07BC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 591283, XrefRangeEnd = 591288, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static void Log(string message, Warning.Logger logger, bool logInEditMode = false)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(message);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(logger);
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref logInEditMode;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Warning.NativeMethodInfoPtr_Log_Public_Static_Void_String_Logger_Boolean_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060075F6 RID: 30198 RVA: 0x001E2634 File Offset: 0x001E0834
		[CallerCount(23)]
		[CachedScanResults(RefRangeStart = 591296, RefRangeEnd = 591319, XrefRangeStart = 591288, XrefRangeEnd = 591296, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static void Log(string message, Transform context, bool logInEditMode = false)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(message);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(context);
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref logInEditMode;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Warning.NativeMethodInfoPtr_Log_Public_Static_Void_String_Transform_Boolean_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060075F7 RID: 30199 RVA: 0x001E26AC File Offset: 0x001E08AC
		// Note: this type is marked as 'beforefieldinit'.
		static Warning()
		{
			Il2CppClassPointerStore<Warning>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion", "Warning");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<Warning>.NativeClassPtr);
			Warning.NativeFieldInfoPtr_logged = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Warning>.NativeClassPtr, "logged");
			Warning.NativeMethodInfoPtr_Log_Public_Static_Void_String_Logger_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Warning>.NativeClassPtr, 100672241);
			Warning.NativeMethodInfoPtr_Log_Public_Static_Void_String_Transform_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Warning>.NativeClassPtr, 100672242);
		}

		// Token: 0x060075F8 RID: 30200 RVA: 0x0000A688 File Offset: 0x00008888
		public Warning(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002843 RID: 10307
		// (get) Token: 0x060075F9 RID: 30201 RVA: 0x001E2718 File Offset: 0x001E0918
		// (set) Token: 0x060075FA RID: 30202 RVA: 0x001E2736 File Offset: 0x001E0936
		public unsafe static bool logged
		{
			get
			{
				bool flag;
				IL2CPP.il2cpp_field_static_get_value(Warning.NativeFieldInfoPtr_logged, (void*)(&flag));
				return flag;
			}
			set
			{
				IL2CPP.il2cpp_field_static_set_value(Warning.NativeFieldInfoPtr_logged, (void*)(&value));
			}
		}

		// Token: 0x04004F52 RID: 20306
		private static readonly IntPtr NativeFieldInfoPtr_logged;

		// Token: 0x04004F53 RID: 20307
		private static readonly IntPtr NativeMethodInfoPtr_Log_Public_Static_Void_String_Logger_Boolean_0;

		// Token: 0x04004F54 RID: 20308
		private static readonly IntPtr NativeMethodInfoPtr_Log_Public_Static_Void_String_Transform_Boolean_0;

		// Token: 0x020003B4 RID: 948
		public sealed class Logger : MulticastDelegate
		{
			// Token: 0x060075FB RID: 30203 RVA: 0x001E2748 File Offset: 0x001E0948
			[CallerCount(1930)]
			[CachedScanResults(RefRangeStart = 12873, RefRangeEnd = 14803, XrefRangeStart = 12873, XrefRangeEnd = 14803, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			public unsafe Logger(Il2CppSystem.Object @object, IntPtr method)
				: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<Warning.Logger>.NativeClassPtr))
			{
				IntPtr* ptr;
				checked
				{
					ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
					*ptr = IL2CPP.Il2CppObjectBaseToPtr(@object);
				}
				ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref method;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Warning.Logger.NativeMethodInfoPtr__ctor_Public_Void_Object_IntPtr_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}

			// Token: 0x060075FC RID: 30204 RVA: 0x001E27C0 File Offset: 0x001E09C0
			[CallerCount(19)]
			[CachedScanResults(RefRangeStart = 81060, RefRangeEnd = 81079, XrefRangeStart = 81060, XrefRangeEnd = 81079, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			public unsafe void Invoke(string message)
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				checked
				{
					IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
					*ptr = IL2CPP.ManagedStringToIl2Cpp(message);
					IntPtr intPtr2;
					IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Warning.Logger.NativeMethodInfoPtr_Invoke_Public_Virtual_New_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
					Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				}
			}

			// Token: 0x060075FD RID: 30205 RVA: 0x001E281C File Offset: 0x001E0A1C
			[CallerCount(3)]
			[CachedScanResults(RefRangeStart = 20815, RefRangeEnd = 20818, XrefRangeStart = 20815, XrefRangeEnd = 20818, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			public unsafe IAsyncResult BeginInvoke(string message, AsyncCallback callback, Il2CppSystem.Object @object)
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr;
				checked
				{
					ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
					*ptr = IL2CPP.ManagedStringToIl2Cpp(message);
				}
				ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(callback);
				ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(@object);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Warning.Logger.NativeMethodInfoPtr_BeginInvoke_Public_Virtual_New_IAsyncResult_String_AsyncCallback_Object_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				IntPtr intPtr3 = intPtr;
				return (intPtr3 != 0) ? new IAsyncResult(intPtr3) : null;
			}

			// Token: 0x060075FE RID: 30206 RVA: 0x001E28BC File Offset: 0x001E0ABC
			[CallerCount(3)]
			[CachedScanResults(RefRangeStart = 14814, RefRangeEnd = 14817, XrefRangeStart = 14814, XrefRangeEnd = 14817, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			public unsafe void EndInvoke(IAsyncResult result)
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				checked
				{
					IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
					*ptr = IL2CPP.Il2CppObjectBaseToPtr(result);
					IntPtr intPtr2;
					IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Warning.Logger.NativeMethodInfoPtr_EndInvoke_Public_Virtual_New_Void_IAsyncResult_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
					Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				}
			}

			// Token: 0x060075FF RID: 30207 RVA: 0x001E2918 File Offset: 0x001E0B18
			// Note: this type is marked as 'beforefieldinit'.
			static Logger()
			{
				Il2CppClassPointerStore<Warning.Logger>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<Warning>.NativeClassPtr, "Logger");
				Warning.Logger.NativeMethodInfoPtr__ctor_Public_Void_Object_IntPtr_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Warning.Logger>.NativeClassPtr, 100672243);
				Warning.Logger.NativeMethodInfoPtr_Invoke_Public_Virtual_New_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Warning.Logger>.NativeClassPtr, 100672244);
				Warning.Logger.NativeMethodInfoPtr_BeginInvoke_Public_Virtual_New_IAsyncResult_String_AsyncCallback_Object_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Warning.Logger>.NativeClassPtr, 100672245);
				Warning.Logger.NativeMethodInfoPtr_EndInvoke_Public_Virtual_New_Void_IAsyncResult_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Warning.Logger>.NativeClassPtr, 100672246);
			}

			// Token: 0x06007600 RID: 30208 RVA: 0x00018FBD File Offset: 0x000171BD
			public Logger(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x06007601 RID: 30209 RVA: 0x001E2989 File Offset: 0x001E0B89
			public static implicit operator Warning.Logger(Action<string> A_0)
			{
				return DelegateSupport.ConvertDelegate<Warning.Logger>(A_0);
			}

			// Token: 0x06007602 RID: 30210 RVA: 0x001E2991 File Offset: 0x001E0B91
			public static Warning.Logger operator +(Warning.Logger A_0, Warning.Logger A_1)
			{
				return Delegate.Combine(A_0, A_1).Cast<Warning.Logger>();
			}

			// Token: 0x06007603 RID: 30211 RVA: 0x001E299F File Offset: 0x001E0B9F
			public static Warning.Logger operator -(Warning.Logger A_0, Warning.Logger A_1)
			{
				Delegate delegate2;
				Delegate @delegate = (delegate2 = Delegate.Remove(A_0, A_1));
				if (@delegate != null)
				{
					delegate2 = @delegate.Cast<Warning.Logger>();
				}
				return delegate2;
			}

			// Token: 0x04004F55 RID: 20309
			private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_Object_IntPtr_0;

			// Token: 0x04004F56 RID: 20310
			private static readonly IntPtr NativeMethodInfoPtr_Invoke_Public_Virtual_New_Void_String_0;

			// Token: 0x04004F57 RID: 20311
			private static readonly IntPtr NativeMethodInfoPtr_BeginInvoke_Public_Virtual_New_IAsyncResult_String_AsyncCallback_Object_0;

			// Token: 0x04004F58 RID: 20312
			private static readonly IntPtr NativeMethodInfoPtr_EndInvoke_Public_Virtual_New_Void_IAsyncResult_0;
		}
	}
}
