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

namespace RootMotion
{
	// Token: 0x020003AC RID: 940
	public class LargeHeader : PropertyAttribute
	{
		// Token: 0x06007596 RID: 30102 RVA: 0x001E0590 File Offset: 0x001DE790
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 590900, XrefRangeEnd = 590907, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe LargeHeader(string name)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(LargeHeader.NativeMethodInfoPtr__ctor_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06007597 RID: 30103 RVA: 0x001E05F4 File Offset: 0x001DE7F4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 590907, XrefRangeEnd = 590913, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe LargeHeader(string name, string color)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr))
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.ManagedStringToIl2Cpp(color);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(LargeHeader.NativeMethodInfoPtr__ctor_Public_Void_String_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007598 RID: 30104 RVA: 0x001E0670 File Offset: 0x001DE870
		// Note: this type is marked as 'beforefieldinit'.
		static LargeHeader()
		{
			Il2CppClassPointerStore<LargeHeader>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion", "LargeHeader");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr);
			LargeHeader.NativeFieldInfoPtr_name = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr, "name");
			LargeHeader.NativeFieldInfoPtr_color = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr, "color");
			LargeHeader.NativeMethodInfoPtr__ctor_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr, 100672185);
			LargeHeader.NativeMethodInfoPtr__ctor_Public_Void_String_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr, 100672186);
		}

		// Token: 0x06007599 RID: 30105 RVA: 0x001CF3DC File Offset: 0x001CD5DC
		public LargeHeader(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002836 RID: 10294
		// (get) Token: 0x0600759A RID: 30106 RVA: 0x001E06F0 File Offset: 0x001DE8F0
		// (set) Token: 0x0600759B RID: 30107 RVA: 0x001E0719 File Offset: 0x001DE919
		public unsafe string name
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(LargeHeader.NativeFieldInfoPtr_name);
				return IL2CPP.Il2CppStringToManaged(*intPtr);
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(LargeHeader.NativeFieldInfoPtr_name), IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

		// Token: 0x17002837 RID: 10295
		// (get) Token: 0x0600759C RID: 30108 RVA: 0x001E0740 File Offset: 0x001DE940
		// (set) Token: 0x0600759D RID: 30109 RVA: 0x001E0769 File Offset: 0x001DE969
		public unsafe string color
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(LargeHeader.NativeFieldInfoPtr_color);
				return IL2CPP.Il2CppStringToManaged(*intPtr);
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(LargeHeader.NativeFieldInfoPtr_color), IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

		// Token: 0x04004F11 RID: 20241
		private static readonly IntPtr NativeFieldInfoPtr_name;

		// Token: 0x04004F12 RID: 20242
		private static readonly IntPtr NativeFieldInfoPtr_color;

		// Token: 0x04004F13 RID: 20243
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_String_0;

		// Token: 0x04004F14 RID: 20244
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_String_String_0;
	}
}
