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

namespace RootMotion.FinalIK
{
	// Token: 0x02000438 RID: 1080
	[Serializable]
	public class IKSolverCCD : IKSolverHeuristic
	{
		// Token: 0x06008116 RID: 33046 RVA: 0x0020EC10 File Offset: 0x0020CE10
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 598106, XrefRangeEnd = 598107, 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: 0x06008117 RID: 33047 RVA: 0x0020EC54 File Offset: 0x0020CE54
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 598107, XrefRangeEnd = 598113, 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: 0x06008118 RID: 33048 RVA: 0x0020ECA4 File Offset: 0x0020CEA4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 598113, XrefRangeEnd = 598130, 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: 0x06008119 RID: 33049 RVA: 0x0020ECF4 File Offset: 0x0020CEF4
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 598147, RefRangeEnd = 598148, XrefRangeStart = 598130, XrefRangeEnd = 598147, 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: 0x0600811A RID: 33050 RVA: 0x0020ED48 File Offset: 0x0020CF48
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 598153, RefRangeEnd = 598154, XrefRangeStart = 598148, XrefRangeEnd = 598153, 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: 0x0600811B RID: 33051 RVA: 0x0020ED94 File Offset: 0x0020CF94
		// 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, 100673044);
			IKSolverCCD.NativeMethodInfoPtr_OnInitiate_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr, 100673045);
			IKSolverCCD.NativeMethodInfoPtr_OnUpdate_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr, 100673046);
			IKSolverCCD.NativeMethodInfoPtr_Solve_Private_Void_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr, 100673047);
			IKSolverCCD.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<IKSolverCCD>.NativeClassPtr, 100673048);
		}

		// Token: 0x0600811C RID: 33052 RVA: 0x0020E7D8 File Offset: 0x0020C9D8
		public IKSolverCCD(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002BFC RID: 11260
		// (get) Token: 0x0600811D RID: 33053 RVA: 0x0020EE3C File Offset: 0x0020D03C
		// (set) Token: 0x0600811E RID: 33054 RVA: 0x0020EE70 File Offset: 0x0020D070
		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: 0x04005619 RID: 22041
		private static readonly IntPtr NativeFieldInfoPtr_OnPreIteration;

		// Token: 0x0400561A RID: 22042
		private static readonly IntPtr NativeMethodInfoPtr_FadeOutBoneWeights_Public_Void_0;

		// Token: 0x0400561B RID: 22043
		private static readonly IntPtr NativeMethodInfoPtr_OnInitiate_Protected_Virtual_Void_0;

		// Token: 0x0400561C RID: 22044
		private static readonly IntPtr NativeMethodInfoPtr_OnUpdate_Protected_Virtual_Void_0;

		// Token: 0x0400561D RID: 22045
		private static readonly IntPtr NativeMethodInfoPtr_Solve_Private_Void_Vector3_0;

		// Token: 0x0400561E RID: 22046
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
