using System;
using System.Collections.Generic;
using Cpp2IlInjected;

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000577 RID: 1399
	[Token(Token = "0x2000577")]
	public sealed class MaterialFactory : IDisposable
	{
		// Token: 0x06002E1F RID: 11807 RVA: 0x0006288C File Offset: 0x00060A8C
		[Token(Token = "0x6002E1F")]
		[Address(RVA = "0x4018E0", Offset = "0x4006E0", VA = "0x1804018E0")]
		public MaterialFactory()
		{
			/*
An exception occurred when decompiling this method (06002E1F)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UnityEngine.PostProcessing.MaterialFactory::.ctor()

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	call:void(object::.ctor, ldloc:MaterialFactory[exp:object](this)); 	stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class [UnityEngine.CoreModule]UnityEngine.Material>(var_0_0B, newobj:Dictionary`2[exp:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class [UnityEngine.CoreModule]UnityEngine.Material>](Dictionary`2::.ctor)); 	stfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class [UnityEngine.CoreModule]UnityEngine.Material>(MaterialFactory::m_Materials, ldloc:MaterialFactory(this), ldloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class [UnityEngine.CoreModule]UnityEngine.Material>(var_0_0B)); }; 
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
   --- End of inner exception stack trace ---
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
   at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
		}

		// Token: 0x06002E20 RID: 11808 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E20")]
		[Address(RVA = "0x4016E0", Offset = "0x4004E0", VA = "0x1804016E0")]
		public Material Get(string shaderName)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E21 RID: 11809 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E21")]
		[Address(RVA = "0x4015E0", Offset = "0x4003E0", VA = "0x1804015E0", Slot = "4")]
		public void Dispose()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x04003703 RID: 14083
		[FieldOffset(Offset = "0x10")]
		[Token(Token = "0x4003703")]
		private Dictionary<string, Material> m_Materials;
	}
}
