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

// Token: 0x0200031B RID: 795
[Token(Token = "0x200031B")]
[DisallowMultipleComponent]
public class SteamManager : MonoBehaviour
{
	// Token: 0x170001C2 RID: 450
	// (get) Token: 0x0600201A RID: 8218 RVA: 0x0004D05C File Offset: 0x0004B25C
	[Token(Token = "0x170001C2")]
	protected static SteamManager Instance
	{
		[Token(Token = "0x600201A")]
		[Address(RVA = "0xAB5E00", Offset = "0xAB4C00", VA = "0x180AB5E00")]
		get
		{
			SteamManager steamManager = SteamManager.s_instance;
			int num = 0;
			if (!(steamManager == num))
			{
				return SteamManager.s_instance;
			}
			return new GameObject("SteamManager").AddComponent<SteamManager>();
		}
	}

	// Token: 0x170001C3 RID: 451
	// (get) Token: 0x0600201B RID: 8219 RVA: 0x0004D098 File Offset: 0x0004B298
	[Token(Token = "0x170001C3")]
	public static bool Initialized
	{
		[Token(Token = "0x600201B")]
		[Address(RVA = "0xAB5C80", Offset = "0xAB4A80", VA = "0x180AB5C80")]
		get
		{
			SteamManager steamManager = SteamManager.s_instance;
			int num = 0;
			if (!(steamManager == num))
			{
			}
			return new GameObject("SteamManager").AddComponent<SteamManager>().m_bInitialized;
		}
	}

	// Token: 0x0600201C RID: 8220 RVA: 0x0004D0D4 File Offset: 0x0004B2D4
	[Token(Token = "0x600201C")]
	[Address(RVA = "0xAB5C10", Offset = "0xAB4A10", VA = "0x180AB5C10")]
	[MonoPInvokeCallback(typeof(SteamAPIWarningMessageHook_t))]
	protected static void SteamAPIDebugTextHook(int nSeverity, StringBuilder pchDebugText)
	{
		Debug.LogWarning(pchDebugText);
	}

	// Token: 0x0600201D RID: 8221 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600201D")]
	[Address(RVA = "0xAB5940", Offset = "0xAB4740", VA = "0x180AB5940")]
	[RuntimeInitializeOnLoadMethod]
	private static void InitOnPlayMode()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600201E RID: 8222 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600201E")]
	[Address(RVA = "0xAB5550", Offset = "0xAB4350", VA = "0x180AB5550", Slot = "4")]
	protected virtual void Awake()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600201F RID: 8223 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600201F")]
	[Address(RVA = "0xAB5AC0", Offset = "0xAB48C0", VA = "0x180AB5AC0", Slot = "5")]
	protected virtual void OnEnable()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002020 RID: 8224 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6002020")]
	[Address(RVA = "0xAB59C0", Offset = "0xAB47C0", VA = "0x180AB59C0", Slot = "6")]
	protected virtual void OnDestroy()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002021 RID: 8225 RVA: 0x0004D0E8 File Offset: 0x0004B2E8
	[Token(Token = "0x6002021")]
	[Address(RVA = "0xAB5C70", Offset = "0xAB4A70", VA = "0x180AB5C70", Slot = "7")]
	protected virtual void Update()
	{
		if (this.m_bInitialized)
		{
			SteamAPI.RunCallbacks();
			return;
		}
	}

	// Token: 0x06002022 RID: 8226 RVA: 0x0004D108 File Offset: 0x0004B308
	[Token(Token = "0x6002022")]
	[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
	public SteamManager()
	{
	}

	// Token: 0x06002023 RID: 8227 RVA: 0x000020D3 File Offset: 0x000002D3
	// Note: this type is marked as 'beforefieldinit'.
	[Token(Token = "0x6002023")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00")]
	static SteamManager()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x04002977 RID: 10615
	[Token(Token = "0x4002977")]
	protected static bool s_EverInitialized;

	// Token: 0x04002978 RID: 10616
	[Token(Token = "0x4002978")]
	protected static SteamManager s_instance;

	// Token: 0x04002979 RID: 10617
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002979")]
	protected bool m_bInitialized;

	// Token: 0x0400297A RID: 10618
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x400297A")]
	protected SteamAPIWarningMessageHook_t m_SteamAPIWarningMessageHook;
}
