using System;
using System.Text;
using AOT;
using Cpp2IlInjected;
using Steamworks;
using UnityEngine;

// Token: 0x02000373 RID: 883
[Token(Token = "0x2000373")]
[DisallowMultipleComponent]
public class SteamManager : MonoBehaviour
{
	// Token: 0x170001E7 RID: 487
	// (get) Token: 0x060022E3 RID: 8931 RVA: 0x000542FC File Offset: 0x000524FC
	[Token(Token = "0x170001E7")]
	protected static SteamManager Instance
	{
		[Token(Token = "0x60022E3")]
		[Address(RVA = "0x986830", Offset = "0x985830", VA = "0x180986830")]
		get
		{
			SteamManager steamManager = SteamManager.s_instance;
			int num = 0;
			if (!(steamManager == num))
			{
				return SteamManager.s_instance;
			}
			return new GameObject("SteamManager").AddComponent<SteamManager>();
		}
	}

	// Token: 0x170001E8 RID: 488
	// (get) Token: 0x060022E4 RID: 8932 RVA: 0x00054338 File Offset: 0x00052538
	[Token(Token = "0x170001E8")]
	public static bool Initialized
	{
		[Token(Token = "0x60022E4")]
		[Address(RVA = "0x9866B0", Offset = "0x9856B0", VA = "0x1809866B0")]
		get
		{
			SteamManager steamManager = SteamManager.s_instance;
			int num = 0;
			if (!(steamManager == num))
			{
			}
			return new GameObject("SteamManager").AddComponent<SteamManager>().m_bInitialized;
		}
	}

	// Token: 0x060022E5 RID: 8933 RVA: 0x00054374 File Offset: 0x00052574
	[Token(Token = "0x60022E5")]
	[Address(RVA = "0x986640", Offset = "0x985640", VA = "0x180986640")]
	[MonoPInvokeCallback(typeof(SteamAPIWarningMessageHook_t))]
	protected static void SteamAPIDebugTextHook(int nSeverity, StringBuilder pchDebugText)
	{
		Debug.LogWarning(pchDebugText);
	}

	// Token: 0x060022E6 RID: 8934 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60022E6")]
	[Address(RVA = "0x986370", Offset = "0x985370", VA = "0x180986370")]
	[RuntimeInitializeOnLoadMethod]
	private static void InitOnPlayMode()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060022E7 RID: 8935 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60022E7")]
	[Address(RVA = "0x985F80", Offset = "0x984F80", VA = "0x180985F80", Slot = "4")]
	protected virtual void Awake()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060022E8 RID: 8936 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60022E8")]
	[Address(RVA = "0x9864F0", Offset = "0x9854F0", VA = "0x1809864F0", Slot = "5")]
	protected virtual void OnEnable()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060022E9 RID: 8937 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60022E9")]
	[Address(RVA = "0x9863F0", Offset = "0x9853F0", VA = "0x1809863F0", Slot = "6")]
	protected virtual void OnDestroy()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060022EA RID: 8938 RVA: 0x00054388 File Offset: 0x00052588
	[Token(Token = "0x60022EA")]
	[Address(RVA = "0x9866A0", Offset = "0x9856A0", VA = "0x1809866A0", Slot = "7")]
	protected virtual void Update()
	{
		if (this.m_bInitialized)
		{
			SteamAPI.RunCallbacks();
			return;
		}
	}

	// Token: 0x060022EB RID: 8939 RVA: 0x000543A8 File Offset: 0x000525A8
	[Token(Token = "0x60022EB")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public SteamManager()
	{
	}

	// Token: 0x060022EC RID: 8940 RVA: 0x000020D3 File Offset: 0x000002D3
	// Note: this type is marked as 'beforefieldinit'.
	[Token(Token = "0x60022EC")]
	[Address(RVA = "0x29E8B0", Offset = "0x29D8B0", VA = "0x18029E8B0")]
	static SteamManager()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x04002C61 RID: 11361
	[Token(Token = "0x4002C61")]
	protected static bool s_EverInitialized;

	// Token: 0x04002C62 RID: 11362
	[Token(Token = "0x4002C62")]
	protected static SteamManager s_instance;

	// Token: 0x04002C63 RID: 11363
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002C63")]
	protected bool m_bInitialized;

	// Token: 0x04002C64 RID: 11364
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002C64")]
	protected SteamAPIWarningMessageHook_t m_SteamAPIWarningMessageHook;
}
