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

namespace RootMotion.FinalIK
{
	// Token: 0x020004EE RID: 1262
	public class ShoulderRotator : MonoBehaviour
	{
		// Token: 0x06009213 RID: 37395 RVA: 0x00257880 File Offset: 0x00255A80
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 636962, XrefRangeEnd = 636977, 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: 0x06009214 RID: 37396 RVA: 0x002578C4 File Offset: 0x00255AC4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 636977, XrefRangeEnd = 636984, 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: 0x06009215 RID: 37397 RVA: 0x00257908 File Offset: 0x00255B08
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 637007, RefRangeEnd = 637009, XrefRangeStart = 636984, XrefRangeEnd = 637007, 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: 0x06009216 RID: 37398 RVA: 0x00257984 File Offset: 0x00255B84
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 637009, XrefRangeEnd = 637012, 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: 0x06009217 RID: 37399 RVA: 0x002579EC File Offset: 0x00255BEC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 637012, XrefRangeEnd = 637025, 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: 0x06009218 RID: 37400 RVA: 0x00257A30 File Offset: 0x00255C30
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 637025, XrefRangeEnd = 637026, 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: 0x06009219 RID: 37401 RVA: 0x00257A7C File Offset: 0x00255C7C
		// 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, 100674523);
			ShoulderRotator.NativeMethodInfoPtr_RotateShoulders_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, 100674524);
			ShoulderRotator.NativeMethodInfoPtr_RotateShoulder_Private_Void_FullBodyBipedChain_Single_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, 100674525);
			ShoulderRotator.NativeMethodInfoPtr_GetParentBoneMap_Private_BoneMap_FullBodyBipedChain_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, 100674526);
			ShoulderRotator.NativeMethodInfoPtr_OnDestroy_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, 100674527);
			ShoulderRotator.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShoulderRotator>.NativeClassPtr, 100674528);
		}

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

		// Token: 0x17003182 RID: 12674
		// (get) Token: 0x0600921B RID: 37403 RVA: 0x00257B74 File Offset: 0x00255D74
		// (set) Token: 0x0600921C RID: 37404 RVA: 0x00257B9C File Offset: 0x00255D9C
		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: 0x17003183 RID: 12675
		// (get) Token: 0x0600921D RID: 37405 RVA: 0x00257BC0 File Offset: 0x00255DC0
		// (set) Token: 0x0600921E RID: 37406 RVA: 0x00257BE8 File Offset: 0x00255DE8
		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: 0x17003184 RID: 12676
		// (get) Token: 0x0600921F RID: 37407 RVA: 0x00257C0C File Offset: 0x00255E0C
		// (set) Token: 0x06009220 RID: 37408 RVA: 0x00257C40 File Offset: 0x00255E40
		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: 0x17003185 RID: 12677
		// (get) Token: 0x06009221 RID: 37409 RVA: 0x00257C68 File Offset: 0x00255E68
		// (set) Token: 0x06009222 RID: 37410 RVA: 0x00257C90 File Offset: 0x00255E90
		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: 0x04006178 RID: 24952
		private static readonly IntPtr NativeFieldInfoPtr_weight;

		// Token: 0x04006179 RID: 24953
		private static readonly IntPtr NativeFieldInfoPtr_offset;

		// Token: 0x0400617A RID: 24954
		private static readonly IntPtr NativeFieldInfoPtr_ik;

		// Token: 0x0400617B RID: 24955
		private static readonly IntPtr NativeFieldInfoPtr_skip;

		// Token: 0x0400617C RID: 24956
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x0400617D RID: 24957
		private static readonly IntPtr NativeMethodInfoPtr_RotateShoulders_Private_Void_0;

		// Token: 0x0400617E RID: 24958
		private static readonly IntPtr NativeMethodInfoPtr_RotateShoulder_Private_Void_FullBodyBipedChain_Single_Single_0;

		// Token: 0x0400617F RID: 24959
		private static readonly IntPtr NativeMethodInfoPtr_GetParentBoneMap_Private_BoneMap_FullBodyBipedChain_0;

		// Token: 0x04006180 RID: 24960
		private static readonly IntPtr NativeMethodInfoPtr_OnDestroy_Private_Void_0;

		// Token: 0x04006181 RID: 24961
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
