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

namespace RootMotion.Demos
{
	// Token: 0x020003CB RID: 971
	public class FBIKHandsOnProp : MonoBehaviour
	{
		// Token: 0x060077BB RID: 30651 RVA: 0x001E8C68 File Offset: 0x001E6E68
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 592073, XrefRangeEnd = 592084, 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: 0x060077BC RID: 30652 RVA: 0x001E8CAC File Offset: 0x001E6EAC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 592084, XrefRangeEnd = 592091, 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: 0x060077BD RID: 30653 RVA: 0x001E8CF0 File Offset: 0x001E6EF0
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 592110, RefRangeEnd = 592111, XrefRangeStart = 592091, XrefRangeEnd = 592110, 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: 0x060077BE RID: 30654 RVA: 0x001E8D64 File Offset: 0x001E6F64
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 592111, XrefRangeEnd = 592124, 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: 0x060077BF RID: 30655 RVA: 0x001E8DA8 File Offset: 0x001E6FA8
		[CallerCount(63)]
		[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, 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: 0x060077C0 RID: 30656 RVA: 0x001E8DF4 File Offset: 0x001E6FF4
		// 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, 100672329);
			FBIKHandsOnProp.NativeMethodInfoPtr_OnPreRead_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr, 100672330);
			FBIKHandsOnProp.NativeMethodInfoPtr_HandsOnProp_Private_Void_IKEffector_IKEffector_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr, 100672331);
			FBIKHandsOnProp.NativeMethodInfoPtr_OnDestroy_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr, 100672332);
			FBIKHandsOnProp.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKHandsOnProp>.NativeClassPtr, 100672333);
		}

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

		// Token: 0x170028E8 RID: 10472
		// (get) Token: 0x060077C2 RID: 30658 RVA: 0x001E8EB0 File Offset: 0x001E70B0
		// (set) Token: 0x060077C3 RID: 30659 RVA: 0x001E8EE4 File Offset: 0x001E70E4
		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: 0x170028E9 RID: 10473
		// (get) Token: 0x060077C4 RID: 30660 RVA: 0x001E8F0C File Offset: 0x001E710C
		// (set) Token: 0x060077C5 RID: 30661 RVA: 0x001E8F34 File Offset: 0x001E7134
		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: 0x0400504B RID: 20555
		private static readonly IntPtr NativeFieldInfoPtr_ik;

		// Token: 0x0400504C RID: 20556
		private static readonly IntPtr NativeFieldInfoPtr_leftHanded;

		// Token: 0x0400504D RID: 20557
		private static readonly IntPtr NativeMethodInfoPtr_Awake_Private_Void_0;

		// Token: 0x0400504E RID: 20558
		private static readonly IntPtr NativeMethodInfoPtr_OnPreRead_Private_Void_0;

		// Token: 0x0400504F RID: 20559
		private static readonly IntPtr NativeMethodInfoPtr_HandsOnProp_Private_Void_IKEffector_IKEffector_0;

		// Token: 0x04005050 RID: 20560
		private static readonly IntPtr NativeMethodInfoPtr_OnDestroy_Private_Void_0;

		// Token: 0x04005051 RID: 20561
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
