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

namespace RootMotion.Demos
{
	// Token: 0x02000423 RID: 1059
	public class FBIKHandsOnProp : MonoBehaviour
	{
		// Token: 0x0600800E RID: 32782 RVA: 0x0020B9A4 File Offset: 0x00209BA4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624379, XrefRangeEnd = 624390, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Awake()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FBIKHandsOnProp.NativeMethodInfoPtr_Awake_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600800F RID: 32783 RVA: 0x0020B9E8 File Offset: 0x00209BE8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624390, XrefRangeEnd = 624397, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnPreRead()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FBIKHandsOnProp.NativeMethodInfoPtr_OnPreRead_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008010 RID: 32784 RVA: 0x0020BA2C File Offset: 0x00209C2C
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 624416, RefRangeEnd = 624417, XrefRangeStart = 624397, XrefRangeEnd = 624416, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void HandsOnProp(IKEffector mainHand, IKEffector otherHand)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(mainHand);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(otherHand);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FBIKHandsOnProp.NativeMethodInfoPtr_HandsOnProp_Private_Void_IKEffector_IKEffector_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008011 RID: 32785 RVA: 0x0020BAA0 File Offset: 0x00209CA0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624417, XrefRangeEnd = 624430, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDestroy()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FBIKHandsOnProp.NativeMethodInfoPtr_OnDestroy_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008012 RID: 32786 RVA: 0x0020BAE4 File Offset: 0x00209CE4
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe FBIKHandsOnProp()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FBIKHandsOnProp.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008013 RID: 32787 RVA: 0x0020BB30 File Offset: 0x00209D30
		// Note: this type is marked as 'beforefieldinit'.
		static FBIKHandsOnProp()
		{
			Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "FBIKHandsOnProp");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr);
			FBIKHandsOnProp.NativeFieldInfoPtr_ik = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr, "ik");
			FBIKHandsOnProp.NativeFieldInfoPtr_leftHanded = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr, "leftHanded");
			FBIKHandsOnProp.NativeMethodInfoPtr_Awake_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr, 100673042);
			FBIKHandsOnProp.NativeMethodInfoPtr_OnPreRead_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr, 100673043);
			FBIKHandsOnProp.NativeMethodInfoPtr_HandsOnProp_Private_Void_IKEffector_IKEffector_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr, 100673044);
			FBIKHandsOnProp.NativeMethodInfoPtr_OnDestroy_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr, 100673045);
			FBIKHandsOnProp.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr, 100673046);
		}

		// Token: 0x06008014 RID: 32788 RVA: 0x0000351C File Offset: 0x0000171C
		public FBIKHandsOnProp(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002B83 RID: 11139
		// (get) Token: 0x06008015 RID: 32789 RVA: 0x0020BBEC File Offset: 0x00209DEC
		// (set) Token: 0x06008016 RID: 32790 RVA: 0x0020BC20 File Offset: 0x00209E20
		public unsafe FullBodyBipedIK ik
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FBIKHandsOnProp.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(FBIKHandsOnProp.NativeFieldInfoPtr_ik), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002B84 RID: 11140
		// (get) Token: 0x06008017 RID: 32791 RVA: 0x0020BC48 File Offset: 0x00209E48
		// (set) Token: 0x06008018 RID: 32792 RVA: 0x0020BC70 File Offset: 0x00209E70
		public unsafe bool leftHanded
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FBIKHandsOnProp.NativeFieldInfoPtr_leftHanded);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FBIKHandsOnProp.NativeFieldInfoPtr_leftHanded)) = value;
			}
		}

		// Token: 0x040055F4 RID: 22004
		private static readonly IntPtr NativeFieldInfoPtr_ik;

		// Token: 0x040055F5 RID: 22005
		private static readonly IntPtr NativeFieldInfoPtr_leftHanded;

		// Token: 0x040055F6 RID: 22006
		private static readonly IntPtr NativeMethodInfoPtr_Awake_Private_Void_0;

		// Token: 0x040055F7 RID: 22007
		private static readonly IntPtr NativeMethodInfoPtr_OnPreRead_Private_Void_0;

		// Token: 0x040055F8 RID: 22008
		private static readonly IntPtr NativeMethodInfoPtr_HandsOnProp_Private_Void_IKEffector_IKEffector_0;

		// Token: 0x040055F9 RID: 22009
		private static readonly IntPtr NativeMethodInfoPtr_OnDestroy_Private_Void_0;

		// Token: 0x040055FA RID: 22010
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
