using System;
using Cpp2IlInjected;
using Obi;
using UnityEngine;

// Token: 0x02000355 RID: 853
[Token(Token = "0x2000355")]
[RequireComponent(typeof(ObiSolver))]
public class ColliderHighlighter : MonoBehaviour
{
	// Token: 0x060020FD RID: 8445 RVA: 0x0004E718 File Offset: 0x0004C918
	[Token(Token = "0x60020FD")]
	[Address(RVA = "0xE88E80", Offset = "0xE87C80", VA = "0x180E88E80")]
	private void Awake()
	{
		/*
An exception occurred when decompiling this method (060020FD)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void ColliderHighlighter::Awake()

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	stloc:ObiSolver(var_0_06, call:ObiSolver(Component::GetComponent, ldloc:ColliderHighlighter[exp:Component](this))); 	stfld:ObiSolver(ColliderHighlighter::solver, ldloc:ColliderHighlighter(this), ldloc:ObiSolver(var_0_06)); }; 
   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: 0x060020FE RID: 8446 RVA: 0x0004E734 File Offset: 0x0004C934
	[Token(Token = "0x60020FE")]
	[Address(RVA = "0xE88F70", Offset = "0xE87D70", VA = "0x180E88F70")]
	private void OnEnable()
	{
		ObiSolver obiSolver = this.solver;
		EventHandler<ObiSolver.ObiCollisionEventArgs> eventHandler = new EventHandler(this.Solver_OnCollision);
		obiSolver.OnCollision += eventHandler;
	}

	// Token: 0x060020FF RID: 8447 RVA: 0x0004E764 File Offset: 0x0004C964
	[Token(Token = "0x60020FF")]
	[Address(RVA = "0xE88ED0", Offset = "0xE87CD0", VA = "0x180E88ED0")]
	private void OnDisable()
	{
		ObiSolver obiSolver = this.solver;
		EventHandler<ObiSolver.ObiCollisionEventArgs> eventHandler = new EventHandler(this.Solver_OnCollision);
		obiSolver.OnCollision -= eventHandler;
	}

	// Token: 0x06002100 RID: 8448 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6002100")]
	[Address(RVA = "0xE89010", Offset = "0xE87E10", VA = "0x180E89010")]
	private void Solver_OnCollision(object sender, ObiSolver.ObiCollisionEventArgs e)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002101 RID: 8449 RVA: 0x0004E794 File Offset: 0x0004C994
	[Token(Token = "0x6002101")]
	[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
	public ColliderHighlighter()
	{
	}

	// Token: 0x04002A6C RID: 10860
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002A6C")]
	private ObiSolver solver;
}
