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

// Token: 0x02000133 RID: 307
public sealed class AssetLoader : Il2CppSystem.Object
{
	// Token: 0x17001753 RID: 5971
	// (get) Token: 0x06003F84 RID: 16260 RVA: 0x000FBEE4 File Offset: 0x000FA0E4
	public unsafe bool IsHandling
	{
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 6864, RefRangeEnd = 6865, XrefRangeStart = 6864, XrefRangeEnd = 6865, 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: 0x17001754 RID: 5972
	// (get) Token: 0x06003F85 RID: 16261 RVA: 0x000FBF34 File Offset: 0x000FA134
	// (set) Token: 0x06003F86 RID: 16262 RVA: 0x000FBF8C File Offset: 0x000FA18C
	public unsafe Action<AssetRequestBase, Il2CppReferenceArray<UnityEngine.Object>> OnFinished
	{
		[CallerCount(10)]
		[CachedScanResults(RefRangeStart = 7527, RefRangeEnd = 7537, XrefRangeStart = 7527, XrefRangeEnd = 7537, 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: 0x06003F87 RID: 16263 RVA: 0x000FBFE8 File Offset: 0x000FA1E8
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 553430, RefRangeEnd = 553432, XrefRangeStart = 553429, XrefRangeEnd = 553430, 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: 0x06003F88 RID: 16264 RVA: 0x000FC044 File Offset: 0x000FA244
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 553453, RefRangeEnd = 553454, XrefRangeStart = 553432, XrefRangeEnd = 553453, 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: 0x06003F89 RID: 16265 RVA: 0x000FC0A0 File Offset: 0x000FA2A0
	[CallerCount(1664)]
	[CachedScanResults(RefRangeStart = 7711, RefRangeEnd = 9375, XrefRangeStart = 7711, XrefRangeEnd = 9375, 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: 0x06003F8A RID: 16266 RVA: 0x000FC0EC File Offset: 0x000FA2EC
	// 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, 100667286);
		AssetLoader.NativeMethodInfoPtr_get_OnFinished_Public_get_Action_2_AssetRequestBase_Il2CppReferenceArray_1_Object_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, 100667287);
		AssetLoader.NativeMethodInfoPtr_set_OnFinished_Public_set_Void_Action_2_AssetRequestBase_Il2CppReferenceArray_1_Object_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, 100667288);
		AssetLoader.NativeMethodInfoPtr_Load_Public_Void_AssetRequestBase_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, 100667289);
		AssetLoader.NativeMethodInfoPtr_LoadFromResources_Private_Void_AssetRequestBase_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, 100667290);
		AssetLoader.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AssetLoader>.NativeClassPtr, 100667291);
	}

	// Token: 0x06003F8B RID: 16267 RVA: 0x0000A74C File Offset: 0x0000894C
	public AssetLoader(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001751 RID: 5969
	// (get) Token: 0x06003F8C RID: 16268 RVA: 0x000FC1BC File Offset: 0x000FA3BC
	// (set) Token: 0x06003F8D RID: 16269 RVA: 0x000FC1E4 File Offset: 0x000FA3E4
	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: 0x17001752 RID: 5970
	// (get) Token: 0x06003F8E RID: 16270 RVA: 0x000FC208 File Offset: 0x000FA408
	// (set) Token: 0x06003F8F RID: 16271 RVA: 0x000FC23C File Offset: 0x000FA43C
	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: 0x0400299B RID: 10651
	private static readonly IntPtr NativeFieldInfoPtr_isHandling;

	// Token: 0x0400299C RID: 10652
	private static readonly IntPtr NativeFieldInfoPtr__OnFinished_k__BackingField;

	// Token: 0x0400299D RID: 10653
	private static readonly IntPtr NativeMethodInfoPtr_get_IsHandling_Public_get_Boolean_0;

	// Token: 0x0400299E RID: 10654
	private static readonly IntPtr NativeMethodInfoPtr_get_OnFinished_Public_get_Action_2_AssetRequestBase_Il2CppReferenceArray_1_Object_0;

	// Token: 0x0400299F RID: 10655
	private static readonly IntPtr NativeMethodInfoPtr_set_OnFinished_Public_set_Void_Action_2_AssetRequestBase_Il2CppReferenceArray_1_Object_0;

	// Token: 0x040029A0 RID: 10656
	private static readonly IntPtr NativeMethodInfoPtr_Load_Public_Void_AssetRequestBase_0;

	// Token: 0x040029A1 RID: 10657
	private static readonly IntPtr NativeMethodInfoPtr_LoadFromResources_Private_Void_AssetRequestBase_0;

	// Token: 0x040029A2 RID: 10658
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
