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

namespace RootMotion
{
	// Token: 0x0200040B RID: 1035
	public static class Warning : Il2CppSystem.Object
	{
		// Token: 0x06007E48 RID: 32328 RVA: 0x002052F8 File Offset: 0x002034F8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 623586, XrefRangeEnd = 623591, 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: 0x06007E49 RID: 32329 RVA: 0x00205370 File Offset: 0x00203570
		[CallerCount(25)]
		[CachedScanResults(RefRangeStart = 623599, RefRangeEnd = 623624, XrefRangeStart = 623591, XrefRangeEnd = 623599, 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: 0x06007E4A RID: 32330 RVA: 0x002053E8 File Offset: 0x002035E8
		// 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, 100672954);
			Warning.NativeMethodInfoPtr_Log_Public_Static_Void_String_Transform_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Warning>.NativeClassPtr, 100672955);
		}

		// Token: 0x06007E4B RID: 32331 RVA: 0x0000A74C File Offset: 0x0000894C
		public Warning(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002ADE RID: 10974
		// (get) Token: 0x06007E4C RID: 32332 RVA: 0x00205454 File Offset: 0x00203654
		// (set) Token: 0x06007E4D RID: 32333 RVA: 0x00205472 File Offset: 0x00203672
		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: 0x040054FB RID: 21755
		private static readonly IntPtr NativeFieldInfoPtr_logged;

		// Token: 0x040054FC RID: 21756
		private static readonly IntPtr NativeMethodInfoPtr_Log_Public_Static_Void_String_Logger_Boolean_0;

		// Token: 0x040054FD RID: 21757
		private static readonly IntPtr NativeMethodInfoPtr_Log_Public_Static_Void_String_Transform_Boolean_0;

		// Token: 0x0200040C RID: 1036
		public sealed class Logger : MulticastDelegate
		{
			// Token: 0x06007E4E RID: 32334 RVA: 0x00205484 File Offset: 0x00203684
			[CallerCount(2079)]
			[CachedScanResults(RefRangeStart = 12621, RefRangeEnd = 14700, XrefRangeStart = 12621, XrefRangeEnd = 14700, 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: 0x06007E4F RID: 32335 RVA: 0x002054FC File Offset: 0x002036FC
			[CallerCount(19)]
			[CachedScanResults(RefRangeStart = 81070, RefRangeEnd = 81089, XrefRangeStart = 81070, XrefRangeEnd = 81089, 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: 0x06007E50 RID: 32336 RVA: 0x00205558 File Offset: 0x00203758
			[CallerCount(3)]
			[CachedScanResults(RefRangeStart = 20727, RefRangeEnd = 20730, XrefRangeStart = 20727, XrefRangeEnd = 20730, 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: 0x06007E51 RID: 32337 RVA: 0x002055F8 File Offset: 0x002037F8
			[CallerCount(3)]
			[CachedScanResults(RefRangeStart = 14711, RefRangeEnd = 14714, XrefRangeStart = 14711, XrefRangeEnd = 14714, 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: 0x06007E52 RID: 32338 RVA: 0x00205654 File Offset: 0x00203854
			// 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, 100672956);
				Warning.Logger.NativeMethodInfoPtr_Invoke_Public_Virtual_New_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Warning.Logger>.NativeClassPtr, 100672957);
				Warning.Logger.NativeMethodInfoPtr_BeginInvoke_Public_Virtual_New_IAsyncResult_String_AsyncCallback_Object_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Warning.Logger>.NativeClassPtr, 100672958);
				Warning.Logger.NativeMethodInfoPtr_EndInvoke_Public_Virtual_New_Void_IAsyncResult_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Warning.Logger>.NativeClassPtr, 100672959);
			}

			// Token: 0x06007E53 RID: 32339 RVA: 0x00019081 File Offset: 0x00017281
			public Logger(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x06007E54 RID: 32340 RVA: 0x002056C5 File Offset: 0x002038C5
			public static implicit operator Warning.Logger(Action<string> A_0)
			{
				return DelegateSupport.ConvertDelegate<Warning.Logger>(A_0);
			}

			// Token: 0x06007E55 RID: 32341 RVA: 0x002056CD File Offset: 0x002038CD
			public static Warning.Logger operator +(Warning.Logger A_0, Warning.Logger A_1)
			{
				return Delegate.Combine(A_0, A_1).Cast<Warning.Logger>();
			}

			// Token: 0x06007E56 RID: 32342 RVA: 0x002056DB File Offset: 0x002038DB
			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: 0x040054FE RID: 21758
			private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_Object_IntPtr_0;

			// Token: 0x040054FF RID: 21759
			private static readonly IntPtr NativeMethodInfoPtr_Invoke_Public_Virtual_New_Void_String_0;

			// Token: 0x04005500 RID: 21760
			private static readonly IntPtr NativeMethodInfoPtr_BeginInvoke_Public_Virtual_New_IAsyncResult_String_AsyncCallback_Object_0;

			// Token: 0x04005501 RID: 21761
			private static readonly IntPtr NativeMethodInfoPtr_EndInvoke_Public_Virtual_New_Void_IAsyncResult_0;
		}
	}
}
