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

namespace RootMotion.FinalIK
{
	// Token: 0x02000453 RID: 1107
	public class TwistRelaxer : MonoBehaviour
	{
		// Token: 0x060084C4 RID: 33988 RVA: 0x00220090 File Offset: 0x0021E290
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 601676, RefRangeEnd = 601677, XrefRangeStart = 601650, XrefRangeEnd = 601676, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Relax()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TwistRelaxer.NativeMethodInfoPtr_Relax_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060084C5 RID: 33989 RVA: 0x002200D4 File Offset: 0x0021E2D4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 601677, XrefRangeEnd = 601701, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TwistRelaxer.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060084C6 RID: 33990 RVA: 0x00220118 File Offset: 0x0021E318
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 601701, XrefRangeEnd = 601702, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void LateUpdate()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TwistRelaxer.NativeMethodInfoPtr_LateUpdate_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060084C7 RID: 33991 RVA: 0x0022015C File Offset: 0x0021E35C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 601702, XrefRangeEnd = 601705, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe TwistRelaxer()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TwistRelaxer.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060084C8 RID: 33992 RVA: 0x002201A8 File Offset: 0x0021E3A8
		// Note: this type is marked as 'beforefieldinit'.
		static TwistRelaxer()
		{
			Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.FinalIK", "TwistRelaxer");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr);
			TwistRelaxer.NativeFieldInfoPtr_weight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr, "weight");
			TwistRelaxer.NativeFieldInfoPtr_parentChildCrossfade = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr, "parentChildCrossfade");
			TwistRelaxer.NativeFieldInfoPtr_twistAxis = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr, "twistAxis");
			TwistRelaxer.NativeFieldInfoPtr_axis = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr, "axis");
			TwistRelaxer.NativeFieldInfoPtr_axisRelativeToParentDefault = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr, "axisRelativeToParentDefault");
			TwistRelaxer.NativeFieldInfoPtr_axisRelativeToChildDefault = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr, "axisRelativeToChildDefault");
			TwistRelaxer.NativeFieldInfoPtr_parent = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr, "parent");
			TwistRelaxer.NativeFieldInfoPtr_child = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr, "child");
			TwistRelaxer.NativeMethodInfoPtr_Relax_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr, 100673394);
			TwistRelaxer.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr, 100673395);
			TwistRelaxer.NativeMethodInfoPtr_LateUpdate_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr, 100673396);
			TwistRelaxer.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TwistRelaxer>.NativeClassPtr, 100673397);
		}

		// Token: 0x060084C9 RID: 33993 RVA: 0x0000351C File Offset: 0x0000171C
		public TwistRelaxer(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002D4F RID: 11599
		// (get) Token: 0x060084CA RID: 33994 RVA: 0x002202C8 File Offset: 0x0021E4C8
		// (set) Token: 0x060084CB RID: 33995 RVA: 0x002202F0 File Offset: 0x0021E4F0
		public unsafe float weight
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_weight);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_weight)) = value;
			}
		}

		// Token: 0x17002D50 RID: 11600
		// (get) Token: 0x060084CC RID: 33996 RVA: 0x00220314 File Offset: 0x0021E514
		// (set) Token: 0x060084CD RID: 33997 RVA: 0x0022033C File Offset: 0x0021E53C
		public unsafe float parentChildCrossfade
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_parentChildCrossfade);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_parentChildCrossfade)) = value;
			}
		}

		// Token: 0x17002D51 RID: 11601
		// (get) Token: 0x060084CE RID: 33998 RVA: 0x00220360 File Offset: 0x0021E560
		// (set) Token: 0x060084CF RID: 33999 RVA: 0x00220388 File Offset: 0x0021E588
		public unsafe Vector3 twistAxis
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_twistAxis);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_twistAxis)) = value;
			}
		}

		// Token: 0x17002D52 RID: 11602
		// (get) Token: 0x060084D0 RID: 34000 RVA: 0x002203AC File Offset: 0x0021E5AC
		// (set) Token: 0x060084D1 RID: 34001 RVA: 0x002203D4 File Offset: 0x0021E5D4
		public unsafe Vector3 axis
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_axis);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_axis)) = value;
			}
		}

		// Token: 0x17002D53 RID: 11603
		// (get) Token: 0x060084D2 RID: 34002 RVA: 0x002203F8 File Offset: 0x0021E5F8
		// (set) Token: 0x060084D3 RID: 34003 RVA: 0x00220420 File Offset: 0x0021E620
		public unsafe Vector3 axisRelativeToParentDefault
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_axisRelativeToParentDefault);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_axisRelativeToParentDefault)) = value;
			}
		}

		// Token: 0x17002D54 RID: 11604
		// (get) Token: 0x060084D4 RID: 34004 RVA: 0x00220444 File Offset: 0x0021E644
		// (set) Token: 0x060084D5 RID: 34005 RVA: 0x0022046C File Offset: 0x0021E66C
		public unsafe Vector3 axisRelativeToChildDefault
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_axisRelativeToChildDefault);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_axisRelativeToChildDefault)) = value;
			}
		}

		// Token: 0x17002D55 RID: 11605
		// (get) Token: 0x060084D6 RID: 34006 RVA: 0x00220490 File Offset: 0x0021E690
		// (set) Token: 0x060084D7 RID: 34007 RVA: 0x002204C4 File Offset: 0x0021E6C4
		public unsafe Transform parent
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_parent);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Transform(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_parent), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002D56 RID: 11606
		// (get) Token: 0x060084D8 RID: 34008 RVA: 0x002204EC File Offset: 0x0021E6EC
		// (set) Token: 0x060084D9 RID: 34009 RVA: 0x00220520 File Offset: 0x0021E720
		public unsafe Transform child
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_child);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Transform(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwistRelaxer.NativeFieldInfoPtr_child), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x040058B6 RID: 22710
		private static readonly IntPtr NativeFieldInfoPtr_weight;

		// Token: 0x040058B7 RID: 22711
		private static readonly IntPtr NativeFieldInfoPtr_parentChildCrossfade;

		// Token: 0x040058B8 RID: 22712
		private static readonly IntPtr NativeFieldInfoPtr_twistAxis;

		// Token: 0x040058B9 RID: 22713
		private static readonly IntPtr NativeFieldInfoPtr_axis;

		// Token: 0x040058BA RID: 22714
		private static readonly IntPtr NativeFieldInfoPtr_axisRelativeToParentDefault;

		// Token: 0x040058BB RID: 22715
		private static readonly IntPtr NativeFieldInfoPtr_axisRelativeToChildDefault;

		// Token: 0x040058BC RID: 22716
		private static readonly IntPtr NativeFieldInfoPtr_parent;

		// Token: 0x040058BD RID: 22717
		private static readonly IntPtr NativeFieldInfoPtr_child;

		// Token: 0x040058BE RID: 22718
		private static readonly IntPtr NativeMethodInfoPtr_Relax_Public_Void_0;

		// Token: 0x040058BF RID: 22719
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x040058C0 RID: 22720
		private static readonly IntPtr NativeMethodInfoPtr_LateUpdate_Private_Void_0;

		// Token: 0x040058C1 RID: 22721
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
