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

namespace RootMotion.FinalIK
{
	// Token: 0x02000471 RID: 1137
	public class RotationLimitHinge : RotationLimit
	{
		// Token: 0x0600876F RID: 34671 RVA: 0x0022B684 File Offset: 0x00229884
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 603709, XrefRangeEnd = 603712, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OpenUserManual()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RotationLimitHinge.NativeMethodInfoPtr_OpenUserManual_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008770 RID: 34672 RVA: 0x0022B6C8 File Offset: 0x002298C8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 603712, XrefRangeEnd = 603715, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OpenScriptReference()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RotationLimitHinge.NativeMethodInfoPtr_OpenScriptReference_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008771 RID: 34673 RVA: 0x0022B70C File Offset: 0x0022990C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 603715, XrefRangeEnd = 603718, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void SupportGroup()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RotationLimitHinge.NativeMethodInfoPtr_SupportGroup_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008772 RID: 34674 RVA: 0x0022B750 File Offset: 0x00229950
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 603718, XrefRangeEnd = 603721, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void ASThread()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RotationLimitHinge.NativeMethodInfoPtr_ASThread_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008773 RID: 34675 RVA: 0x0022B794 File Offset: 0x00229994
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 603721, XrefRangeEnd = 603722, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override Quaternion LimitRotation(Quaternion rotation)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref rotation;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), RotationLimitHinge.NativeMethodInfoPtr_LimitRotation_Protected_Virtual_Quaternion_Quaternion_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06008774 RID: 34676 RVA: 0x0022B804 File Offset: 0x00229A04
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 603740, RefRangeEnd = 603741, XrefRangeStart = 603722, XrefRangeEnd = 603740, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe Quaternion LimitHinge(Quaternion rotation)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref rotation;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RotationLimitHinge.NativeMethodInfoPtr_LimitHinge_Private_Quaternion_Quaternion_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06008775 RID: 34677 RVA: 0x0022B868 File Offset: 0x00229A68
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 603741, XrefRangeEnd = 603744, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe RotationLimitHinge()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RotationLimitHinge.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008776 RID: 34678 RVA: 0x0022B8B4 File Offset: 0x00229AB4
		// Note: this type is marked as 'beforefieldinit'.
		static RotationLimitHinge()
		{
			Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.FinalIK", "RotationLimitHinge");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr);
			RotationLimitHinge.NativeFieldInfoPtr_useLimits = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, "useLimits");
			RotationLimitHinge.NativeFieldInfoPtr_min = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, "min");
			RotationLimitHinge.NativeFieldInfoPtr_max = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, "max");
			RotationLimitHinge.NativeFieldInfoPtr_zeroAxisDisplayOffset = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, "zeroAxisDisplayOffset");
			RotationLimitHinge.NativeFieldInfoPtr_lastRotation = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, "lastRotation");
			RotationLimitHinge.NativeFieldInfoPtr_lastAngle = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, "lastAngle");
			RotationLimitHinge.NativeMethodInfoPtr_OpenUserManual_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, 100673633);
			RotationLimitHinge.NativeMethodInfoPtr_OpenScriptReference_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, 100673634);
			RotationLimitHinge.NativeMethodInfoPtr_SupportGroup_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, 100673635);
			RotationLimitHinge.NativeMethodInfoPtr_ASThread_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, 100673636);
			RotationLimitHinge.NativeMethodInfoPtr_LimitRotation_Protected_Virtual_Quaternion_Quaternion_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, 100673637);
			RotationLimitHinge.NativeMethodInfoPtr_LimitHinge_Private_Quaternion_Quaternion_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, 100673638);
			RotationLimitHinge.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RotationLimitHinge>.NativeClassPtr, 100673639);
		}

		// Token: 0x06008777 RID: 34679 RVA: 0x0022B5E0 File Offset: 0x002297E0
		public RotationLimitHinge(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002E21 RID: 11809
		// (get) Token: 0x06008778 RID: 34680 RVA: 0x0022B9E8 File Offset: 0x00229BE8
		// (set) Token: 0x06008779 RID: 34681 RVA: 0x0022BA10 File Offset: 0x00229C10
		public unsafe bool useLimits
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RotationLimitHinge.NativeFieldInfoPtr_useLimits);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RotationLimitHinge.NativeFieldInfoPtr_useLimits)) = value;
			}
		}

		// Token: 0x17002E22 RID: 11810
		// (get) Token: 0x0600877A RID: 34682 RVA: 0x0022BA34 File Offset: 0x00229C34
		// (set) Token: 0x0600877B RID: 34683 RVA: 0x0022BA5C File Offset: 0x00229C5C
		public unsafe float min
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RotationLimitHinge.NativeFieldInfoPtr_min);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RotationLimitHinge.NativeFieldInfoPtr_min)) = value;
			}
		}

		// Token: 0x17002E23 RID: 11811
		// (get) Token: 0x0600877C RID: 34684 RVA: 0x0022BA80 File Offset: 0x00229C80
		// (set) Token: 0x0600877D RID: 34685 RVA: 0x0022BAA8 File Offset: 0x00229CA8
		public unsafe float max
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RotationLimitHinge.NativeFieldInfoPtr_max);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RotationLimitHinge.NativeFieldInfoPtr_max)) = value;
			}
		}

		// Token: 0x17002E24 RID: 11812
		// (get) Token: 0x0600877E RID: 34686 RVA: 0x0022BACC File Offset: 0x00229CCC
		// (set) Token: 0x0600877F RID: 34687 RVA: 0x0022BAF4 File Offset: 0x00229CF4
		public unsafe float zeroAxisDisplayOffset
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RotationLimitHinge.NativeFieldInfoPtr_zeroAxisDisplayOffset);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RotationLimitHinge.NativeFieldInfoPtr_zeroAxisDisplayOffset)) = value;
			}
		}

		// Token: 0x17002E25 RID: 11813
		// (get) Token: 0x06008780 RID: 34688 RVA: 0x0022BB18 File Offset: 0x00229D18
		// (set) Token: 0x06008781 RID: 34689 RVA: 0x0022BB40 File Offset: 0x00229D40
		public unsafe Quaternion lastRotation
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RotationLimitHinge.NativeFieldInfoPtr_lastRotation);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RotationLimitHinge.NativeFieldInfoPtr_lastRotation)) = value;
			}
		}

		// Token: 0x17002E26 RID: 11814
		// (get) Token: 0x06008782 RID: 34690 RVA: 0x0022BB64 File Offset: 0x00229D64
		// (set) Token: 0x06008783 RID: 34691 RVA: 0x0022BB8C File Offset: 0x00229D8C
		public unsafe float lastAngle
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RotationLimitHinge.NativeFieldInfoPtr_lastAngle);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RotationLimitHinge.NativeFieldInfoPtr_lastAngle)) = value;
			}
		}

		// Token: 0x04005A6F RID: 23151
		private static readonly IntPtr NativeFieldInfoPtr_useLimits;

		// Token: 0x04005A70 RID: 23152
		private static readonly IntPtr NativeFieldInfoPtr_min;

		// Token: 0x04005A71 RID: 23153
		private static readonly IntPtr NativeFieldInfoPtr_max;

		// Token: 0x04005A72 RID: 23154
		private static readonly IntPtr NativeFieldInfoPtr_zeroAxisDisplayOffset;

		// Token: 0x04005A73 RID: 23155
		private static readonly IntPtr NativeFieldInfoPtr_lastRotation;

		// Token: 0x04005A74 RID: 23156
		private static readonly IntPtr NativeFieldInfoPtr_lastAngle;

		// Token: 0x04005A75 RID: 23157
		private static readonly IntPtr NativeMethodInfoPtr_OpenUserManual_Private_Void_0;

		// Token: 0x04005A76 RID: 23158
		private static readonly IntPtr NativeMethodInfoPtr_OpenScriptReference_Private_Void_0;

		// Token: 0x04005A77 RID: 23159
		private static readonly IntPtr NativeMethodInfoPtr_SupportGroup_Private_Void_0;

		// Token: 0x04005A78 RID: 23160
		private static readonly IntPtr NativeMethodInfoPtr_ASThread_Private_Void_0;

		// Token: 0x04005A79 RID: 23161
		private static readonly IntPtr NativeMethodInfoPtr_LimitRotation_Protected_Virtual_Quaternion_Quaternion_0;

		// Token: 0x04005A7A RID: 23162
		private static readonly IntPtr NativeMethodInfoPtr_LimitHinge_Private_Quaternion_Quaternion_0;

		// Token: 0x04005A7B RID: 23163
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
