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

namespace Obi.CrossPlatformInput
{
	// Token: 0x02000566 RID: 1382
	public class MobileControlRig : MonoBehaviour
	{
		// Token: 0x06009AEF RID: 39663 RVA: 0x0027E91C File Offset: 0x0027CB1C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646331, XrefRangeEnd = 646332, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnEnable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MobileControlRig.NativeMethodInfoPtr_OnEnable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009AF0 RID: 39664 RVA: 0x0027E960 File Offset: 0x0027CB60
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646332, XrefRangeEnd = 646351, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MobileControlRig.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009AF1 RID: 39665 RVA: 0x0027E9A4 File Offset: 0x0027CBA4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void CheckEnableControlRig()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MobileControlRig.NativeMethodInfoPtr_CheckEnableControlRig_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009AF2 RID: 39666 RVA: 0x0027E9E8 File Offset: 0x0027CBE8
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 646371, RefRangeEnd = 646373, XrefRangeStart = 646351, XrefRangeEnd = 646371, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void EnableControlRig(bool enabled)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref enabled;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MobileControlRig.NativeMethodInfoPtr_EnableControlRig_Private_Void_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009AF3 RID: 39667 RVA: 0x0027EA3C File Offset: 0x0027CC3C
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe MobileControlRig()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<MobileControlRig>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MobileControlRig.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009AF4 RID: 39668 RVA: 0x0027EA88 File Offset: 0x0027CC88
		// Note: this type is marked as 'beforefieldinit'.
		static MobileControlRig()
		{
			Il2CppClassPointerStore<MobileControlRig>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi.CrossPlatformInput", "MobileControlRig");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<MobileControlRig>.NativeClassPtr);
			MobileControlRig.NativeMethodInfoPtr_OnEnable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileControlRig>.NativeClassPtr, 100675421);
			MobileControlRig.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileControlRig>.NativeClassPtr, 100675422);
			MobileControlRig.NativeMethodInfoPtr_CheckEnableControlRig_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileControlRig>.NativeClassPtr, 100675423);
			MobileControlRig.NativeMethodInfoPtr_EnableControlRig_Private_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileControlRig>.NativeClassPtr, 100675424);
			MobileControlRig.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileControlRig>.NativeClassPtr, 100675425);
		}

		// Token: 0x06009AF5 RID: 39669 RVA: 0x0000351C File Offset: 0x0000171C
		public MobileControlRig(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x0400676D RID: 26477
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

		// Token: 0x0400676E RID: 26478
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x0400676F RID: 26479
		private static readonly IntPtr NativeMethodInfoPtr_CheckEnableControlRig_Private_Void_0;

		// Token: 0x04006770 RID: 26480
		private static readonly IntPtr NativeMethodInfoPtr_EnableControlRig_Private_Void_Boolean_0;

		// Token: 0x04006771 RID: 26481
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
