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

namespace UnityEngine.PostProcessing
{
	// Token: 0x020005CF RID: 1487
	[Token(Token = "0x20005CF")]
	public sealed class MaterialFactory : IDisposable
	{
		// Token: 0x060030E8 RID: 12520 RVA: 0x00069B5C File Offset: 0x00067D5C
		[Token(Token = "0x60030E8")]
		[Address(RVA = "0x424850", Offset = "0x423850", VA = "0x180424850")]
		public MaterialFactory()
		{
			/*
An exception occurred when decompiling this method (060030E8)

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: 0x060030E9 RID: 12521 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60030E9")]
		[Address(RVA = "0x424650", Offset = "0x423650", VA = "0x180424650")]
		public Material Get(string shaderName)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060030EA RID: 12522 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60030EA")]
		[Address(RVA = "0x424550", Offset = "0x423550", VA = "0x180424550", Slot = "4")]
		public void Dispose()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

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