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

// Token: 0x0200003D RID: 61
public static class LogEventHandler : Il2CppSystem.Object
{
	// Token: 0x06000649 RID: 1609 RVA: 0x0001A990 File Offset: 0x00018B90
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 471416, XrefRangeEnd = 471417, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe static void AddLogCallback(Application.LogCallback callback)
	{
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(callback);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(LogEventHandler.NativeMethodInfoPtr_AddLogCallback_Public_Static_Void_LogCallback_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600064A RID: 1610 RVA: 0x0001A9DC File Offset: 0x00018BDC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 471417, XrefRangeEnd = 471418, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe static void RemoveLogCallback(Application.LogCallback callback)
	{
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(callback);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(LogEventHandler.NativeMethodInfoPtr_RemoveLogCallback_Public_Static_Void_LogCallback_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600064B RID: 1611 RVA: 0x0001AA28 File Offset: 0x00018C28
	// Note: this type is marked as 'beforefieldinit'.
	static LogEventHandler()
	{
		Il2CppClassPointerStore<LogEventHandler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "LogEventHandler");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<LogEventHandler>.NativeClassPtr);
		LogEventHandler.NativeMethodInfoPtr_AddLogCallback_Public_Static_Void_LogCallback_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<LogEventHandler>.NativeClassPtr, 100663739);
		LogEventHandler.NativeMethodInfoPtr_RemoveLogCallback_Public_Static_Void_LogCallback_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<LogEventHandler>.NativeClassPtr, 100663740);
	}

	// Token: 0x0600064C RID: 1612 RVA: 0x0000A688 File Offset: 0x00008888
	public LogEventHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x040003DA RID: 986
	private static readonly IntPtr NativeMethodInfoPtr_AddLogCallback_Public_Static_Void_LogCallback_0;

	// Token: 0x040003DB RID: 987
	private static readonly IntPtr NativeMethodInfoPtr_RemoveLogCallback_Public_Static_Void_LogCallback_0;
}
