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

namespace RootMotion.Demos
{
	// Token: 0x020003E8 RID: 1000
	public class TwoHandedProp : MonoBehaviour
	{
		// Token: 0x060079A6 RID: 31142 RVA: 0x001EFEA4 File Offset: 0x001EE0A4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593108, XrefRangeEnd = 593134, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TwoHandedProp.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060079A7 RID: 31143 RVA: 0x001EFEE8 File Offset: 0x001EE0E8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593134, XrefRangeEnd = 593150, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void LateUpdate()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TwoHandedProp.NativeMethodInfoPtr_LateUpdate_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060079A8 RID: 31144 RVA: 0x001EFF2C File Offset: 0x001EE12C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593150, XrefRangeEnd = 593156, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void AfterFBBIK()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TwoHandedProp.NativeMethodInfoPtr_AfterFBBIK_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060079A9 RID: 31145 RVA: 0x001EFF70 File Offset: 0x001EE170
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593156, XrefRangeEnd = 593169, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDestroy()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TwoHandedProp.NativeMethodInfoPtr_OnDestroy_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060079AA RID: 31146 RVA: 0x001EFFB4 File Offset: 0x001EE1B4
		[CallerCount(63)]
		[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe TwoHandedProp()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<TwoHandedProp>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TwoHandedProp.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060079AB RID: 31147 RVA: 0x001F0000 File Offset: 0x001EE200
		// Note: this type is marked as 'beforefieldinit'.
		static TwoHandedProp()
		{
			Il2CppClassPointerStore<TwoHandedProp>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "TwoHandedProp");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<TwoHandedProp>.NativeClassPtr);
			TwoHandedProp.NativeFieldInfoPtr_leftHandTarget = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TwoHandedProp>.NativeClassPtr, "leftHandTarget");
			TwoHandedProp.NativeFieldInfoPtr_ik = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TwoHandedProp>.NativeClassPtr, "ik");
			TwoHandedProp.NativeFieldInfoPtr_targetPosRelativeToRight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TwoHandedProp>.NativeClassPtr, "targetPosRelativeToRight");
			TwoHandedProp.NativeFieldInfoPtr_targetRotRelativeToRight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TwoHandedProp>.NativeClassPtr, "targetRotRelativeToRight");
			TwoHandedProp.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TwoHandedProp>.NativeClassPtr, 100672446);
			TwoHandedProp.NativeMethodInfoPtr_LateUpdate_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TwoHandedProp>.NativeClassPtr, 100672447);
			TwoHandedProp.NativeMethodInfoPtr_AfterFBBIK_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TwoHandedProp>.NativeClassPtr, 100672448);
			TwoHandedProp.NativeMethodInfoPtr_OnDestroy_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TwoHandedProp>.NativeClassPtr, 100672449);
			TwoHandedProp.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TwoHandedProp>.NativeClassPtr, 100672450);
		}

		// Token: 0x060079AC RID: 31148 RVA: 0x0000351C File Offset: 0x0000171C
		public TwoHandedProp(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700298E RID: 10638
		// (get) Token: 0x060079AD RID: 31149 RVA: 0x001F00E4 File Offset: 0x001EE2E4
		// (set) Token: 0x060079AE RID: 31150 RVA: 0x001F0118 File Offset: 0x001EE318
		public unsafe Transform leftHandTarget
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwoHandedProp.NativeFieldInfoPtr_leftHandTarget);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Transform(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwoHandedProp.NativeFieldInfoPtr_leftHandTarget), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x1700298F RID: 10639
		// (get) Token: 0x060079AF RID: 31151 RVA: 0x001F0140 File Offset: 0x001EE340
		// (set) Token: 0x060079B0 RID: 31152 RVA: 0x001F0174 File Offset: 0x001EE374
		public unsafe FullBodyBipedIK ik
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwoHandedProp.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(TwoHandedProp.NativeFieldInfoPtr_ik), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002990 RID: 10640
		// (get) Token: 0x060079B1 RID: 31153 RVA: 0x001F019C File Offset: 0x001EE39C
		// (set) Token: 0x060079B2 RID: 31154 RVA: 0x001F01C4 File Offset: 0x001EE3C4
		public unsafe Vector3 targetPosRelativeToRight
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwoHandedProp.NativeFieldInfoPtr_targetPosRelativeToRight);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwoHandedProp.NativeFieldInfoPtr_targetPosRelativeToRight)) = value;
			}
		}

		// Token: 0x17002991 RID: 10641
		// (get) Token: 0x060079B3 RID: 31155 RVA: 0x001F01E8 File Offset: 0x001EE3E8
		// (set) Token: 0x060079B4 RID: 31156 RVA: 0x001F0210 File Offset: 0x001EE410
		public unsafe Quaternion targetRotRelativeToRight
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwoHandedProp.NativeFieldInfoPtr_targetRotRelativeToRight);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TwoHandedProp.NativeFieldInfoPtr_targetRotRelativeToRight)) = value;
			}
		}

		// Token: 0x0400515E RID: 20830
		private static readonly IntPtr NativeFieldInfoPtr_leftHandTarget;

		// Token: 0x0400515F RID: 20831
		private static readonly IntPtr NativeFieldInfoPtr_ik;

		// Token: 0x04005160 RID: 20832
		private static readonly IntPtr NativeFieldInfoPtr_targetPosRelativeToRight;

		// Token: 0x04005161 RID: 20833
		private static readonly IntPtr NativeFieldInfoPtr_targetRotRelativeToRight;

		// Token: 0x04005162 RID: 20834
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x04005163 RID: 20835
		private static readonly IntPtr NativeMethodInfoPtr_LateUpdate_Private_Void_0;

		// Token: 0x04005164 RID: 20836
		private static readonly IntPtr NativeMethodInfoPtr_AfterFBBIK_Private_Void_0;

		// Token: 0x04005165 RID: 20837
		private static readonly IntPtr NativeMethodInfoPtr_OnDestroy_Private_Void_0;

		// Token: 0x04005166 RID: 20838
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
