// Token: 0x06001D69 RID: 7529 RVA: 0x0005E534 File Offset: 0x0005C734
        public static Struct56?smethod_1(Class142 toontownWindow, ManualResetEventSlim waitHandle, Class149 coordinatePoll)
        {
            Class269.Class272 @class = new Class269.Class272();
            @class.nullable_0 = null;
            @class.bool_0     = false;
            EventHandler <EventArgs22> eventHandler = null;
            EventHandler eventHandler2 = null;

            Class269.Class273 class2 = new Class269.Class273();
            class2.class272_0             = @class;
            class2.manualResetEventSlim_0 = new ManualResetEventSlim(false);
            try
            {
                try
                {
                    Class129 logMonitor = toontownWindow.LogMonitor;
                    if (eventHandler == null)
                    {
                        eventHandler = new EventHandler <EventArgs22>(class2.method_0);
                    }
                    logMonitor.CoordinatesChanged += eventHandler;
                    Class141 toonTownProcess = toontownWindow.ToonTownProcess;
                    if (eventHandler2 == null)
                    {
                        eventHandler2 = new EventHandler(class2.method_1);
                    }
                    toonTownProcess.ProcessExited += eventHandler2;
                    if (!toontownWindow.ToonTownProcess.ProcessOpen)
                    {
                        return(null);
                    }
                    coordinatePoll.method_4();
                    WaitHandle.WaitAny(new WaitHandle[]
                    {
                        waitHandle.WaitHandle,
                        class2.manualResetEventSlim_0.WaitHandle
                    });
                    coordinatePoll.method_5();
                }
                finally
                {
                    @class.bool_0 = true;
                }
            }
            finally
            {
                if (class2.manualResetEventSlim_0 != null)
                {
                    ((IDisposable)class2.manualResetEventSlim_0).Dispose();
                }
            }
            return(@class.nullable_0);
        }