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

// Token: 0x0200003E RID: 62
public static class LogEventHandler : Il2CppSystem.Object
{
	// Token: 0x0600064C RID: 1612 RVA: 0x0001AA54 File Offset: 0x00018C54
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 491258, XrefRangeEnd = 491259, 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: 0x0600064D RID: 1613 RVA: 0x0001AAA0 File Offset: 0x00018CA0
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 491259, XrefRangeEnd = 491260, 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: 0x0600064E RID: 1614 RVA: 0x0001AAEC File Offset: 0x00018CEC
	// 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, 100663740);
		LogEventHandler.NativeMethodInfoPtr_RemoveLogCallback_Public_Static_Void_LogCallback_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<LogEventHandler>.NativeClassPtr, 100663741);
	}

	// Token: 0x0600064F RID: 1615 RVA: 0x0000A74C File Offset: 0x0000894C
	public LogEventHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x040003E0 RID: 992
	private static readonly IntPtr NativeMethodInfoPtr_AddLogCallback_Public_Static_Void_LogCallback_0;

	// Token: 0x040003E1 RID: 993
	private static readonly IntPtr NativeMethodInfoPtr_RemoveLogCallback_Public_Static_Void_LogCallback_0;
}
