using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.EventSystems;

namespace Obi.CrossPlatformInput
{
	// Token: 0x02000553 RID: 1363
	[Token(Token = "0x2000553")]
	[ExecuteInEditMode]
	public class MobileControlRig : MonoBehaviour
	{
		// Token: 0x06002F5D RID: 12125 RVA: 0x00067A00 File Offset: 0x00065C00
		[Token(Token = "0x6002F5D")]
		[Address(RVA = "0xC2F440", Offset = "0xC2E440", VA = "0x180C2F440")]
		private void OnEnable()
		{
			int num = 0;
			this.EnableControlRig(num != 0);
		}

		// Token: 0x06002F5E RID: 12126 RVA: 0x00067A18 File Offset: 0x00065C18
		[Token(Token = "0x6002F5E")]
		[Address(RVA = "0xC2F630", Offset = "0xC2E630", VA = "0x180C2F630")]
		private void Start()
		{
			EventSystem eventSystem = UnityEngine.Object.FindObjectOfType<EventSystem>();
			int num = 0;
			if (eventSystem == num)
			{
				GameObject gameObject = new GameObject("EventSystem");
				EventSystem eventSystem2 = gameObject.AddComponent<EventSystem>();
				StandaloneInputModule standaloneInputModule = gameObject.AddComponent<StandaloneInputModule>();
				return;
			}
		}

		// Token: 0x06002F5F RID: 12127 RVA: 0x00067A58 File Offset: 0x00065C58
		[Token(Token = "0x6002F5F")]
		[Address(RVA = "0xC2F440", Offset = "0xC2E440", VA = "0x180C2F440")]
		private void CheckEnableControlRig()
		{
			int num = 0;
			this.EnableControlRig(num != 0);
		}

		// Token: 0x06002F60 RID: 12128 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002F60")]
		[Address(RVA = "0xC2F450", Offset = "0xC2E450", VA = "0x180C2F450")]
		private void EnableControlRig(bool enabled)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002F61 RID: 12129 RVA: 0x00067A70 File Offset: 0x00065C70
		[Token(Token = "0x6002F61")]
		[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
		public MobileControlRig()
		{
		}
	}
}
