using System;
using Cpp2IlInjected;
using DG.Tweening;
using UnityEngine;
using UnityEngine.Rendering.Universal;

// Token: 0x02000306 RID: 774
[Token(Token = "0x2000306")]
[Serializable]
public class UIDistortionEffect
{
	// Token: 0x06001C7A RID: 7290 RVA: 0x00044700 File Offset: 0x00042900
	[Token(Token = "0x6001C7A")]
	[Address(RVA = "0x19DBB00", Offset = "0x19DAB00", VA = "0x1819DBB00")]
	public void Init()
	{
		/*
An exception occurred when decompiling this method (06001C7A)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UIDistortionEffect::Init()

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	stloc:UniversalAdditionalCameraData(var_1_0C, call:UniversalAdditionalCameraData(CameraExtensions::GetUniversalAdditionalCameraData, call:Camera(Game::GetStageCamera))); 	stfld:UniversalAdditionalCameraData(UIDistortionEffect::urpCameraData, ldloc:UIDistortionEffect(this), ldloc:UniversalAdditionalCameraData(var_1_0C)); }; 
   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: 0x06001C7B RID: 7291 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001C7B")]
	[Address(RVA = "0x19DB8D0", Offset = "0x19DA8D0", VA = "0x1819DB8D0")]
	public void AppearGlassEffect()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001C7C RID: 7292 RVA: 0x00044720 File Offset: 0x00042920
	[Token(Token = "0x6001C7C")]
	[Address(RVA = "0x19DB9E0", Offset = "0x19DA9E0", VA = "0x1819DB9E0")]
	public void HideGlassEffect()
	{
		/*
An exception occurred when decompiling this method (06001C7C)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UIDistortionEffect::HideGlassEffect()

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	IL_14:; 	stloc:int32(var_2_15, ldc.i4:int32(0)); 	stloc:int32(var_3_1C, ldfld:int32(UIDistortionEffect::intensity, ldloc:UIDistortionEffect(this))); 	stloc:class [DOTween]DG.Tweening.Core.TweenerCore`3<float32, float32, valuetype [DOTween]DG.Tweening.Plugins.Options.FloatOptions>(var_5_37, call:class [DOTween]DG.Tweening.Core.TweenerCore`3<float32, float32, valuetype [DOTween]DG.Tweening.Plugins.Options.FloatOptions>(TweenSettingsExtensions::SetEase, call:TweenerCore`3[exp:class [DOTween]DG.Tweening.Core.TweenerCore`3<float32, float32, valuetype [DOTween]DG.Tweening.Plugins.Options.FloatOptions>](ShortcutExtensions::DOFloat, ldfld:Material(UIDistortionEffect::distortionMaterial, ldloc:UIDistortionEffect(this)), ldloc:int32[exp:float32](var_2_15), ldloc:int32(var_3_1C), ldc.r4:float32(0.5)), conv.u4:uint32[exp:Ease](ldc.i4:int32[exp:uint32](21)))); 	stloc:TweenCallback(var_6_45, newobj:TweenCallback(TweenCallback::.ctor, ldloc:UIDistortionEffect[exp:object](this), ldftn:native int(UIDistortionEffect::<HideGlassEffect>b__6_0))); 	stloc:class [DOTween]DG.Tweening.Core.TweenerCore`3<float32, float32, valuetype [DOTween]DG.Tweening.Plugins.Options.FloatOptions>(var_7_55, call:class [DOTween]DG.Tweening.Core.TweenerCore`3<float32, float32, valuetype [DOTween]DG.Tweening.Plugins.Options.FloatOptions>(TweenExtensions::Play, call:class [DOTween]DG.Tweening.Core.TweenerCore`3<float32, float32, valuetype [DOTween]DG.Tweening.Plugins.Options.FloatOptions>(TweenSettingsExtensions::OnComplete, ldloc:class [DOTween]DG.Tweening.Core.TweenerCore`3<float32, float32, valuetype [DOTween]DG.Tweening.Plugins.Options.FloatOptions>(var_5_37), ldloc:TweenCallback(var_6_45)))); 	stfld:Tweener(UIDistortionEffect::materialProcessor, ldloc:UIDistortionEffect(this), ldloc:class [DOTween]DG.Tweening.Core.TweenerCore`3<float32, float32, valuetype [DOTween]DG.Tweening.Plugins.Options.FloatOptions>[exp:Tweener](var_7_55)); }; 
   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: 0x06001C7D RID: 7293 RVA: 0x0004478C File Offset: 0x0004298C
	[Token(Token = "0x6001C7D")]
	[Address(RVA = "0x19DB9C0", Offset = "0x19DA9C0", VA = "0x1819DB9C0")]
	public void Dispose()
	{
		Tweener tweener = this.materialProcessor;
		if (tweener != 0)
		{
			int num = 0;
			tweener.Kill(num != 0);
			return;
		}
	}

	// Token: 0x06001C7E RID: 7294 RVA: 0x000447B0 File Offset: 0x000429B0
	[Token(Token = "0x6001C7E")]
	[Address(RVA = "0x19DBB90", Offset = "0x19DAB90", VA = "0x1819DBB90")]
	public UIDistortionEffect()
	{
		int num = Shader.PropertyToID("_Intensity");
		this.intensity = num;
		base..ctor();
	}

	// Token: 0x04002670 RID: 9840
	[FieldOffset(Offset = "0x10")]
	[Token(Token = "0x4002670")]
	[SerializeField]
	private Material distortionMaterial;

	// Token: 0x04002671 RID: 9841
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002671")]
	private UniversalAdditionalCameraData urpCameraData;

	// Token: 0x04002672 RID: 9842
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002672")]
	private int intensity;

	// Token: 0x04002673 RID: 9843
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002673")]
	private Tweener materialProcessor;
}
