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

namespace RootMotion.FinalIK
{
	// Token: 0x02000496 RID: 1174
	public class ShoulderRotator : MonoBehaviour
	{
		// Token: 0x060089C0 RID: 35264 RVA: 0x00234B44 File Offset: 0x00232D44
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 604652, XrefRangeEnd = 604667, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShoulderRotator.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060089C1 RID: 35265 RVA: 0x00234B88 File Offset: 0x00232D88
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 604667, XrefRangeEnd = 604674, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void RotateShoulders()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShoulderRotator.NativeMethodInfoPtr_RotateShoulders_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060089C2 RID: 35266 RVA: 0x00234BCC File Offset: 0x00232DCC
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 604697, RefRangeEnd = 604699, XrefRangeStart = 604674, XrefRangeEnd = 604697, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void RotateShoulder(FullBodyBipedChain chain, float weight, float offset)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref chain;
			}
			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 offset;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShoulderRotator.NativeMethodInfoPtr_RotateShoulder_Private_Void_FullBodyBipedChain_Single_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060089C3 RID: 35267 RVA: 0x00234C48 File Offset: 0x00232E48
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 604699, XrefRangeEnd = 604702, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe IKMapping.BoneMap GetParentBoneMap(FullBodyBipedChain chain)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref chain;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShoulderRotator.NativeMethodInfoPtr_GetParentBoneMap_Private_BoneMap_FullBodyBipedChain_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				IntPtr intPtr3 = intPtr;
				return (intPtr3 != 0) ? new IKMapping.BoneMap(intPtr3) : null;
			}
		}

		// Token: 0x060089C4 RID: 35268 RVA: 0x00234CB0 File Offset: 0x00232EB0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 604702, XrefRangeEnd = 604715, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDestroy()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShoulderRotator.NativeMethodInfoPtr_OnDestroy_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060089C5 RID: 35269 RVA: 0x00234CF4 File Offset: 0x00232EF4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 604715, XrefRangeEnd = 604716, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ShoulderRotator()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShoulderRotator.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060089C6 RID: 35270 RVA: 0x00234D40 File Offset: 0x00232F40
		// Note: this type is marked as 'beforefieldinit'.
		static ShoulderRotator()
		{
			Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.FinalIK", "ShoulderRotator");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr);
			ShoulderRotator.NativeFieldInfoPtr_weight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, "weight");
			ShoulderRotator.NativeFieldInfoPtr_offset = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, "offset");
			ShoulderRotator.NativeFieldInfoPtr_ik = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, "ik");
			ShoulderRotator.NativeFieldInfoPtr_skip = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, "skip");
			ShoulderRotator.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, 100673810);
			ShoulderRotator.NativeMethodInfoPtr_RotateShoulders_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, 100673811);
			ShoulderRotator.NativeMethodInfoPtr_RotateShoulder_Private_Void_FullBodyBipedChain_Single_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, 100673812);
			ShoulderRotator.NativeMethodInfoPtr_GetParentBoneMap_Private_BoneMap_FullBodyBipedChain_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, 100673813);
			ShoulderRotator.NativeMethodInfoPtr_OnDestroy_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, 100673814);
			ShoulderRotator.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, 100673815);
		}

		// Token: 0x060089C7 RID: 35271 RVA: 0x0000351C File Offset: 0x0000171C
		public ShoulderRotator(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002EE7 RID: 12007
		// (get) Token: 0x060089C8 RID: 35272 RVA: 0x00234E38 File Offset: 0x00233038
		// (set) Token: 0x060089C9 RID: 35273 RVA: 0x00234E60 File Offset: 0x00233060
		public unsafe float weight
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShoulderRotator.NativeFieldInfoPtr_weight);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShoulderRotator.NativeFieldInfoPtr_weight)) = value;
			}
		}

		// Token: 0x17002EE8 RID: 12008
		// (get) Token: 0x060089CA RID: 35274 RVA: 0x00234E84 File Offset: 0x00233084
		// (set) Token: 0x060089CB RID: 35275 RVA: 0x00234EAC File Offset: 0x002330AC
		public unsafe float offset
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShoulderRotator.NativeFieldInfoPtr_offset);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShoulderRotator.NativeFieldInfoPtr_offset)) = value;
			}
		}

		// Token: 0x17002EE9 RID: 12009
		// (get) Token: 0x060089CC RID: 35276 RVA: 0x00234ED0 File Offset: 0x002330D0
		// (set) Token: 0x060089CD RID: 35277 RVA: 0x00234F04 File Offset: 0x00233104
		public unsafe FullBodyBipedIK ik
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShoulderRotator.NativeFieldInfoPtr_ik);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new FullBodyBipedIK(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShoulderRotator.NativeFieldInfoPtr_ik), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002EEA RID: 12010
		// (get) Token: 0x060089CE RID: 35278 RVA: 0x00234F2C File Offset: 0x0023312C
		// (set) Token: 0x060089CF RID: 35279 RVA: 0x00234F54 File Offset: 0x00233154
		public unsafe bool skip
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShoulderRotator.NativeFieldInfoPtr_skip);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShoulderRotator.NativeFieldInfoPtr_skip)) = value;
			}
		}

		// Token: 0x04005BCF RID: 23503
		private static readonly IntPtr NativeFieldInfoPtr_weight;

		// Token: 0x04005BD0 RID: 23504
		private static readonly IntPtr NativeFieldInfoPtr_offset;

		// Token: 0x04005BD1 RID: 23505
		private static readonly IntPtr NativeFieldInfoPtr_ik;

		// Token: 0x04005BD2 RID: 23506
		private static readonly IntPtr NativeFieldInfoPtr_skip;

		// Token: 0x04005BD3 RID: 23507
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x04005BD4 RID: 23508
		private static readonly IntPtr NativeMethodInfoPtr_RotateShoulders_Private_Void_0;

		// Token: 0x04005BD5 RID: 23509
		private static readonly IntPtr NativeMethodInfoPtr_RotateShoulder_Private_Void_FullBodyBipedChain_Single_Single_0;

		// Token: 0x04005BD6 RID: 23510
		private static readonly IntPtr NativeMethodInfoPtr_GetParentBoneMap_Private_BoneMap_FullBodyBipedChain_0;

		// Token: 0x04005BD7 RID: 23511
		private static readonly IntPtr NativeMethodInfoPtr_OnDestroy_Private_Void_0;

		// Token: 0x04005BD8 RID: 23512
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
