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

namespace RootMotion.FinalIK
{
	// Token: 0x02000490 RID: 1168
	[Serializable]
	public class IKSolverCCD : IKSolverHeuristic
	{
		// Token: 0x06008969 RID: 35177 RVA: 0x0023194C File Offset: 0x0022FB4C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 630408, XrefRangeEnd = 630409, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void FadeOutBoneWeights()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IKSolverCCD.NativeMethodInfoPtr_FadeOutBoneWeights_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600896A RID: 35178 RVA: 0x00231990 File Offset: 0x0022FB90
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 630409, XrefRangeEnd = 630415, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void OnInitiate()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), IKSolverCCD.NativeMethodInfoPtr_OnInitiate_Protected_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600896B RID: 35179 RVA: 0x002319E0 File Offset: 0x0022FBE0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 630415, XrefRangeEnd = 630432, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void OnUpdate()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), IKSolverCCD.NativeMethodInfoPtr_OnUpdate_Protected_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600896C RID: 35180 RVA: 0x00231A30 File Offset: 0x0022FC30
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 630449, RefRangeEnd = 630450, XrefRangeStart = 630432, XrefRangeEnd = 630449, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Solve(Vector3 targetPosition)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref targetPosition;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IKSolverCCD.NativeMethodInfoPtr_Solve_Private_Void_Vector3_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x0600896D RID: 35181 RVA: 0x00231A84 File Offset: 0x0022FC84
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 630451, RefRangeEnd = 630452, XrefRangeStart = 630450, XrefRangeEnd = 630451, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe IKSolverCCD()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IKSolverCCD.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600896E RID: 35182 RVA: 0x00231AD0 File Offset: 0x0022FCD0
		// Note: this type is marked as 'beforefieldinit'.
		static IKSolverCCD()
		{
			Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.FinalIK", "IKSolverCCD");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr);
			IKSolverCCD.NativeFieldInfoPtr_OnPreIteration = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr, "OnPreIteration");
			IKSolverCCD.NativeMethodInfoPtr_FadeOutBoneWeights_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr, 100673757);
			IKSolverCCD.NativeMethodInfoPtr_OnInitiate_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr, 100673758);
			IKSolverCCD.NativeMethodInfoPtr_OnUpdate_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr, 100673759);
			IKSolverCCD.NativeMethodInfoPtr_Solve_Private_Void_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr, 100673760);
			IKSolverCCD.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr, 100673761);
		}

		// Token: 0x0600896F RID: 35183 RVA: 0x00231514 File Offset: 0x0022F714
		public IKSolverCCD(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002E97 RID: 11927
		// (get) Token: 0x06008970 RID: 35184 RVA: 0x00231B78 File Offset: 0x0022FD78
		// (set) Token: 0x06008971 RID: 35185 RVA: 0x00231BAC File Offset: 0x0022FDAC
		public unsafe IKSolver.IterationDelegate OnPreIteration
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(IKSolverCCD.NativeFieldInfoPtr_OnPreIteration);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new IKSolver.IterationDelegate(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(IKSolverCCD.NativeFieldInfoPtr_OnPreIteration), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04005BC2 RID: 23490
		private static readonly IntPtr NativeFieldInfoPtr_OnPreIteration;

		// Token: 0x04005BC3 RID: 23491
		private static readonly IntPtr NativeMethodInfoPtr_FadeOutBoneWeights_Public_Void_0;

		// Token: 0x04005BC4 RID: 23492
		private static readonly IntPtr NativeMethodInfoPtr_OnInitiate_Protected_Virtual_Void_0;

		// Token: 0x04005BC5 RID: 23493
		private static readonly IntPtr NativeMethodInfoPtr_OnUpdate_Protected_Virtual_Void_0;

		// Token: 0x04005BC6 RID: 23494
		private static readonly IntPtr NativeMethodInfoPtr_Solve_Private_Void_Vector3_0;

		// Token: 0x04005BC7 RID: 23495
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
