using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Il2CppSystem;
using UnityEngine;

// Token: 0x0200010D RID: 269
public sealed class AssetLoader : Il2CppSystem.Object
{
	// Token: 0x17001672 RID: 5746
	// (get) Token: 0x06003C59 RID: 15449 RVA: 0x000EE20C File Offset: 0x000EC40C
	public unsafe bool IsHandling
	{
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 6570, RefRangeEnd = 6571, XrefRangeStart = 6570, XrefRangeEnd = 6571, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AssetLoader.NativeMethodInfoPtr_get_IsHandling_Public_get_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}
	}

	// Token: 0x17001673 RID: 5747
	// (get) Token: 0x06003C5A RID: 15450 RVA: 0x000EE25C File Offset: 0x000EC45C
	// (set) Token: 0x06003C5B RID: 15451 RVA: 0x000EE2B4 File Offset: 0x000EC4B4
	public unsafe Action<AssetRequestBase, Il2CppReferenceArray<UnityEngine.Object>> OnFinished
	{
		[CallerCount(10)]
		[CachedScanResults(RefRangeStart = 7233, RefRangeEnd = 7243, XrefRangeStart = 7233, XrefRangeEnd = 7243, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AssetLoader.NativeMethodInfoPtr_get_OnFinished_Public_get_Action_2_AssetRequestBase_Il2CppReferenceArray_1_Object_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			IntPtr intPtr3 = intPtr;
			return (intPtr3 != 0) ? new Action<AssetRequestBase, Il2CppReferenceArray<UnityEngine.Object>>(intPtr3) : null;
		}
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		set
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(value);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AssetLoader.NativeMethodInfoPtr_set_OnFinished_Public_set_Void_Action_2_AssetRequestBase_Il2CppReferenceArray_1_Object_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}
	}

	// Token: 0x06003C5C RID: 15452 RVA: 0x000EE310 File Offset: 0x000EC510
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 528263, RefRangeEnd = 528264, XrefRangeStart = 528262, XrefRangeEnd = 528263, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Load(AssetRequestBase req)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(req);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AssetLoader.NativeMethodInfoPtr_Load_Public_Void_AssetRequestBase_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06003C5D RID: 15453 RVA: 0x000EE36C File Offset: 0x000EC56C
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 528285, RefRangeEnd = 528286, XrefRangeStart = 528264, XrefRangeEnd = 528285, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void LoadFromResources(AssetRequestBase req)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(req);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AssetLoader.NativeMethodInfoPtr_LoadFromResources_Private_Void_AssetRequestBase_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06003C5E RID: 15454 RVA: 0x000EE3C8 File Offset: 0x000EC5C8
	[CallerCount(1642)]
	[CachedScanResults(RefRangeStart = 7417, RefRangeEnd = 9059, XrefRangeStart = 7417, XrefRangeEnd = 9059, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe AssetLoader()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AssetLoader.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06003C5F RID: 15455 RVA: 0x000EE414 File Offset: 0x000EC614
	// Note: this type is marked as 'beforefieldinit'.
	static AssetLoader()
	{
		Il2CppClassPointerStore<AssetLoader>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "AssetLoader");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr);
		AssetLoader.NativeFieldInfoPtr_isHandling = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, "isHandling");
		AssetLoader.NativeFieldInfoPtr__OnFinished_k__BackingField = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, "<OnFinished>k__BackingField");
		AssetLoader.NativeMethodInfoPtr_get_IsHandling_Public_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, 100666987);
		AssetLoader.NativeMethodInfoPtr_get_OnFinished_Public_get_Action_2_AssetRequestBase_Il2CppReferenceArray_1_Object_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, 100666988);
		AssetLoader.NativeMethodInfoPtr_set_OnFinished_Public_set_Void_Action_2_AssetRequestBase_Il2CppReferenceArray_1_Object_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, 100666989);
		AssetLoader.NativeMethodInfoPtr_Load_Public_Void_AssetRequestBase_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, 100666990);
		AssetLoader.NativeMethodInfoPtr_LoadFromResources_Private_Void_AssetRequestBase_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, 100666991);
		AssetLoader.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, 100666992);
	}

	// Token: 0x06003C60 RID: 15456 RVA: 0x0000A688 File Offset: 0x00008888
	public AssetLoader(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001670 RID: 5744
	// (get) Token: 0x06003C61 RID: 15457 RVA: 0x000EE4E4 File Offset: 0x000EC6E4
	// (set) Token: 0x06003C62 RID: 15458 RVA: 0x000EE50C File Offset: 0x000EC70C
	public unsafe bool isHandling
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AssetLoader.NativeFieldInfoPtr_isHandling);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AssetLoader.NativeFieldInfoPtr_isHandling)) = value;
		}
	}

	// Token: 0x17001671 RID: 5745
	// (get) Token: 0x06003C63 RID: 15459 RVA: 0x000EE530 File Offset: 0x000EC730
	// (set) Token: 0x06003C64 RID: 15460 RVA: 0x000EE564 File Offset: 0x000EC764
	public unsafe Action<AssetRequestBase, Il2CppReferenceArray<UnityEngine.Object>> _OnFinished_k__BackingField
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AssetLoader.NativeFieldInfoPtr__OnFinished_k__BackingField);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Action<AssetRequestBase, Il2CppReferenceArray<UnityEngine.Object>>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(AssetLoader.NativeFieldInfoPtr__OnFinished_k__BackingField), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04002771 RID: 10097
	private static readonly IntPtr NativeFieldInfoPtr_isHandling;

	// Token: 0x04002772 RID: 10098
	private static readonly IntPtr NativeFieldInfoPtr__OnFinished_k__BackingField;

	// Token: 0x04002773 RID: 10099
	private static readonly IntPtr NativeMethodInfoPtr_get_IsHandling_Public_get_Boolean_0;

	// Token: 0x04002774 RID: 10100
	private static readonly IntPtr NativeMethodInfoPtr_get_OnFinished_Public_get_Action_2_AssetRequestBase_Il2CppReferenceArray_1_Object_0;

	// Token: 0x04002775 RID: 10101
	private static readonly IntPtr NativeMethodInfoPtr_set_OnFinished_Public_set_Void_Action_2_AssetRequestBase_Il2CppReferenceArray_1_Object_0;

	// Token: 0x04002776 RID: 10102
	private static readonly IntPtr NativeMethodInfoPtr_Load_Public_Void_AssetRequestBase_0;

	// Token: 0x04002777 RID: 10103
	private static readonly IntPtr NativeMethodInfoPtr_LoadFromResources_Private_Void_AssetRequestBase_0;

	// Token: 0x04002778 RID: 10104
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
