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

// Token: 0x020002B9 RID: 697
[Token(Token = "0x20002B9")]
[Serializable]
public class UIDistortionEffect
{
	// Token: 0x06001A3A RID: 6714 RVA: 0x0003EC20 File Offset: 0x0003CE20
	[Token(Token = "0x6001A3A")]
	[Address(RVA = "0x760920", Offset = "0x75F720", VA = "0x180760920")]
	public void Init()
	{
		/*
An exception occurred when decompiling this method (06001A3A)

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: 0x06001A3B RID: 6715 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A3B")]
	[Address(RVA = "0x7606F0", Offset = "0x75F4F0", VA = "0x1807606F0")]
	public void AppearGlassEffect()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A3C RID: 6716 RVA: 0x0003EC40 File Offset: 0x0003CE40
	[Token(Token = "0x6001A3C")]
	[Address(RVA = "0x760800", Offset = "0x75F600", VA = "0x180760800")]
	public void HideGlassEffect()
	{
		/*
An exception occurred when decompiling this method (06001A3C)

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: 0x06001A3D RID: 6717 RVA: 0x0003ECAC File Offset: 0x0003CEAC
	[Token(Token = "0x6001A3D")]
	[Address(RVA = "0x7607E0", Offset = "0x75F5E0", VA = "0x1807607E0")]
	public void Dispose()
	{
		Tweener tweener = this.materialProcessor;
		if (tweener != 0)
		{
			int num = 0;
			tweener.Kill(num != 0);
			return;
		}
	}

	// Token: 0x06001A3E RID: 6718 RVA: 0x0003ECD0 File Offset: 0x0003CED0
	[Token(Token = "0x6001A3E")]
	[Address(RVA = "0x7609B0", Offset = "0x75F7B0", VA = "0x1807609B0")]
	public UIDistortionEffect()
	{
		int num = Shader.PropertyToID("_Intensity");
		this.intensity = num;
		base..ctor();
	}

	// Token: 0x040023F8 RID: 9208
	[FieldOffset(Offset = "0x10")]
	[Token(Token = "0x40023F8")]
	[SerializeField]
	private Material distortionMaterial;

	// Token: 0x040023F9 RID: 9209
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40023F9")]
	private UniversalAdditionalCameraData urpCameraData;

	// Token: 0x040023FA RID: 9210
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x40023FA")]
	private int intensity;

	// Token: 0x040023FB RID: 9211
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x40023FB")]
	private Tweener materialProcessor;
}
