using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Il2CppSystem;
using UnityEngine;

namespace RootMotion.FinalIK
{
	// Token: 0x020004E8 RID: 1256
	public class OffsetPose : MonoBehaviour
	{
		// Token: 0x060091AC RID: 37292 RVA: 0x002560C0 File Offset: 0x002542C0
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 636767, RefRangeEnd = 636768, XrefRangeStart = 636764, XrefRangeEnd = 636767, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Apply(IKSolverFullBodyBiped solver, float weight)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(solver);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref weight;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(OffsetPose.NativeMethodInfoPtr_Apply_Public_Void_IKSolverFullBodyBiped_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060091AD RID: 37293 RVA: 0x0025612C File Offset: 0x0025432C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 636768, XrefRangeEnd = 636770, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Apply(IKSolverFullBodyBiped solver, float weight, Quaternion rotation)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(solver);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref weight;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref rotation;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(OffsetPose.NativeMethodInfoPtr_Apply_Public_Void_IKSolverFullBodyBiped_Single_Quaternion_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060091AE RID: 37294 RVA: 0x002561AC File Offset: 0x002543AC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 636770, XrefRangeEnd = 636775, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe OffsetPose()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<OffsetPose>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(OffsetPose.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060091AF RID: 37295 RVA: 0x002561F8 File Offset: 0x002543F8
		// Note: this type is marked as 'beforefieldinit'.
		static OffsetPose()
		{
			Il2CppClassPointerStore<OffsetPose>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.FinalIK", "OffsetPose");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<OffsetPose>.NativeClassPtr);
			OffsetPose.NativeFieldInfoPtr_effectorLinks = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OffsetPose>.NativeClassPtr, "effectorLinks");
			OffsetPose.NativeMethodInfoPtr_Apply_Public_Void_IKSolverFullBodyBiped_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OffsetPose>.NativeClassPtr, 100674502);
			OffsetPose.NativeMethodInfoPtr_Apply_Public_Void_IKSolverFullBodyBiped_Single_Quaternion_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OffsetPose>.NativeClassPtr, 100674503);
			OffsetPose.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OffsetPose>.NativeClassPtr, 100674504);
		}

		// Token: 0x060091B0 RID: 37296 RVA: 0x0000351C File Offset: 0x0000171C
		public OffsetPose(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003159 RID: 12633
		// (get) Token: 0x060091B1 RID: 37297 RVA: 0x00256278 File Offset: 0x00254478
		// (set) Token: 0x060091B2 RID: 37298 RVA: 0x002562AC File Offset: 0x002544AC
		public unsafe Il2CppReferenceArray<OffsetPose.EffectorLink> effectorLinks
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetPose.NativeFieldInfoPtr_effectorLinks);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Il2CppReferenceArray<OffsetPose.EffectorLink>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetPose.NativeFieldInfoPtr_effectorLinks), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x0400613C RID: 24892
		private static readonly IntPtr NativeFieldInfoPtr_effectorLinks;

		// Token: 0x0400613D RID: 24893
		private static readonly IntPtr NativeMethodInfoPtr_Apply_Public_Void_IKSolverFullBodyBiped_Single_0;

		// Token: 0x0400613E RID: 24894
		private static readonly IntPtr NativeMethodInfoPtr_Apply_Public_Void_IKSolverFullBodyBiped_Single_Quaternion_0;

		// Token: 0x0400613F RID: 24895
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x020004E9 RID: 1257
		[Serializable]
		public class EffectorLink : Il2CppSystem.Object
		{
			// Token: 0x060091B3 RID: 37299 RVA: 0x002562D4 File Offset: 0x002544D4
			[CallerCount(2)]
			[CachedScanResults(RefRangeStart = 636762, RefRangeEnd = 636764, XrefRangeStart = 636749, XrefRangeEnd = 636762, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			public unsafe void Apply(IKSolverFullBodyBiped solver, float weight, Quaternion rotation)
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr;
				checked
				{
					ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
					*ptr = IL2CPP.Il2CppObjectBaseToPtr(solver);
				}
				ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref weight;
				ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref rotation;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(OffsetPose.EffectorLink.NativeMethodInfoPtr_Apply_Public_Void_IKSolverFullBodyBiped_Single_Quaternion_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}

			// Token: 0x060091B4 RID: 37300 RVA: 0x00256354 File Offset: 0x00254554
			[CallerCount(1664)]
			[CachedScanResults(RefRangeStart = 7711, RefRangeEnd = 9375, XrefRangeStart = 7711, XrefRangeEnd = 9375, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			public unsafe EffectorLink()
				: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<OffsetPose.EffectorLink>.NativeClassPtr))
			{
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(OffsetPose.EffectorLink.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}

			// Token: 0x060091B5 RID: 37301 RVA: 0x002563A0 File Offset: 0x002545A0
			// Note: this type is marked as 'beforefieldinit'.
			static EffectorLink()
			{
				Il2CppClassPointerStore<OffsetPose.EffectorLink>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<OffsetPose>.NativeClassPtr, "EffectorLink");
				IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<OffsetPose.EffectorLink>.NativeClassPtr);
				OffsetPose.EffectorLink.NativeFieldInfoPtr_effector = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OffsetPose.EffectorLink>.NativeClassPtr, "effector");
				OffsetPose.EffectorLink.NativeFieldInfoPtr_offset = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OffsetPose.EffectorLink>.NativeClassPtr, "offset");
				OffsetPose.EffectorLink.NativeFieldInfoPtr_pin = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OffsetPose.EffectorLink>.NativeClassPtr, "pin");
				OffsetPose.EffectorLink.NativeFieldInfoPtr_pinWeight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OffsetPose.EffectorLink>.NativeClassPtr, "pinWeight");
				OffsetPose.EffectorLink.NativeMethodInfoPtr_Apply_Public_Void_IKSolverFullBodyBiped_Single_Quaternion_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OffsetPose.EffectorLink>.NativeClassPtr, 100674505);
				OffsetPose.EffectorLink.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OffsetPose.EffectorLink>.NativeClassPtr, 100674506);
			}

			// Token: 0x060091B6 RID: 37302 RVA: 0x0000A74C File Offset: 0x0000894C
			public EffectorLink(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x1700315A RID: 12634
			// (get) Token: 0x060091B7 RID: 37303 RVA: 0x00256444 File Offset: 0x00254644
			// (set) Token: 0x060091B8 RID: 37304 RVA: 0x0025646C File Offset: 0x0025466C
			public unsafe FullBodyBipedEffector effector
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetPose.EffectorLink.NativeFieldInfoPtr_effector);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetPose.EffectorLink.NativeFieldInfoPtr_effector)) = value;
				}
			}

			// Token: 0x1700315B RID: 12635
			// (get) Token: 0x060091B9 RID: 37305 RVA: 0x00256490 File Offset: 0x00254690
			// (set) Token: 0x060091BA RID: 37306 RVA: 0x002564B8 File Offset: 0x002546B8
			public unsafe Vector3 offset
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetPose.EffectorLink.NativeFieldInfoPtr_offset);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetPose.EffectorLink.NativeFieldInfoPtr_offset)) = value;
				}
			}

			// Token: 0x1700315C RID: 12636
			// (get) Token: 0x060091BB RID: 37307 RVA: 0x002564DC File Offset: 0x002546DC
			// (set) Token: 0x060091BC RID: 37308 RVA: 0x00256504 File Offset: 0x00254704
			public unsafe Vector3 pin
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetPose.EffectorLink.NativeFieldInfoPtr_pin);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetPose.EffectorLink.NativeFieldInfoPtr_pin)) = value;
				}
			}

			// Token: 0x1700315D RID: 12637
			// (get) Token: 0x060091BD RID: 37309 RVA: 0x00256528 File Offset: 0x00254728
			// (set) Token: 0x060091BE RID: 37310 RVA: 0x00256550 File Offset: 0x00254750
			public unsafe Vector3 pinWeight
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetPose.EffectorLink.NativeFieldInfoPtr_pinWeight);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetPose.EffectorLink.NativeFieldInfoPtr_pinWeight)) = value;
				}
			}

			// Token: 0x04006140 RID: 24896
			private static readonly IntPtr NativeFieldInfoPtr_effector;

			// Token: 0x04006141 RID: 24897
			private static readonly IntPtr NativeFieldInfoPtr_offset;

			// Token: 0x04006142 RID: 24898
			private static readonly IntPtr NativeFieldInfoPtr_pin;

			// Token: 0x04006143 RID: 24899
			private static readonly IntPtr NativeFieldInfoPtr_pinWeight;

			// Token: 0x04006144 RID: 24900
			private static readonly IntPtr NativeMethodInfoPtr_Apply_Public_Void_IKSolverFullBodyBiped_Single_Quaternion_0;

			// Token: 0x04006145 RID: 24901
			private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
		}
	}
}
