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

// Token: 0x020003AD RID: 941
[Token(Token = "0x20003AD")]
[RequireComponent(typeof(ObiSolver))]
public class ColliderHighlighter : MonoBehaviour
{
	// Token: 0x060023C6 RID: 9158 RVA: 0x000559B4 File Offset: 0x00053BB4
	[Token(Token = "0x60023C6")]
	[Address(RVA = "0xB99F10", Offset = "0xB98F10", VA = "0x180B99F10")]
	private void Awake()
	{
		/*
An exception occurred when decompiling this method (060023C6)

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: 0x060023C7 RID: 9159 RVA: 0x000559D0 File Offset: 0x00053BD0
	[Token(Token = "0x60023C7")]
	[Address(RVA = "0xB9A000", Offset = "0xB99000", VA = "0x180B9A000")]
	private void OnEnable()
	{
		ObiSolver obiSolver = this.solver;
		EventHandler<ObiSolver.ObiCollisionEventArgs> eventHandler = new EventHandler(this.Solver_OnCollision);
		obiSolver.OnCollision += eventHandler;
	}

	// Token: 0x060023C8 RID: 9160 RVA: 0x00055A00 File Offset: 0x00053C00
	[Token(Token = "0x60023C8")]
	[Address(RVA = "0xB99F60", Offset = "0xB98F60", VA = "0x180B99F60")]
	private void OnDisable()
	{
		ObiSolver obiSolver = this.solver;
		EventHandler<ObiSolver.ObiCollisionEventArgs> eventHandler = new EventHandler(this.Solver_OnCollision);
		obiSolver.OnCollision -= eventHandler;
	}

	// Token: 0x060023C9 RID: 9161 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60023C9")]
	[Address(RVA = "0xB9A0A0", Offset = "0xB990A0", VA = "0x180B9A0A0")]
	private void Solver_OnCollision(object sender, ObiSolver.ObiCollisionEventArgs e)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060023CA RID: 9162 RVA: 0x00055A30 File Offset: 0x00053C30
	[Token(Token = "0x60023CA")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public ColliderHighlighter()
	{
	}

	// Token: 0x04002D56 RID: 11606
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002D56")]
	private ObiSolver solver;
}
