public static void smethod_2()
 {
     Class65.Class67 stateMachine = new Class65.Class67();
     stateMachine.asyncVoidMethodBuilder_0 = AsyncVoidMethodBuilder.Create();
     stateMachine.int_0 = -1;
     stateMachine.asyncVoidMethodBuilder_0.Start <Class65.Class67>(ref stateMachine);
 }
            unsafe void IAsyncStateMachine.MoveNext()
            {
                // ISSUE: untyped stack allocation
                void *voidPtr = (void *)__untypedstackalloc(5);
                int   num     = this.int_0;

                try
                {
                    TaskAwaiter awaiter1;
                    switch (num)
                    {
                    case 0:
                    case 1:
                    case 2:
                    case 3:
                        try
                        {
                            TaskAwaiter awaiter2;
                            TaskAwaiter awaiter3;
                            TaskAwaiter awaiter4;
                            TaskAwaiter awaiter5;
                            switch (num)
                            {
                            case 0:
                                awaiter2           = this.taskAwaiter_0;
                                this.taskAwaiter_0 = new TaskAwaiter();
                                num        = -1;
                                this.int_0 = -1;
                                break;

                            case 1:
                                awaiter3           = this.taskAwaiter_0;
                                this.taskAwaiter_0 = new TaskAwaiter();
                                num        = -1;
                                this.int_0 = -1;
                                goto label_12;

                            case 2:
                                awaiter4           = this.taskAwaiter_0;
                                this.taskAwaiter_0 = new TaskAwaiter();
                                num        = -1;
                                this.int_0 = -1;
                                goto label_23;

                            case 3:
                                awaiter5           = this.taskAwaiter_0;
                                this.taskAwaiter_0 = new TaskAwaiter();
                                num        = -1;
                                this.int_0 = -1;
                                goto label_26;

                            default:
                                awaiter2 = Task.Delay(2500).GetAwaiter();
                                if (!awaiter2.IsCompleted)
                                {
                                    num                = 0;
                                    this.int_0         = 0;
                                    this.taskAwaiter_0 = awaiter2;
                                    Class65.Class67 stateMachine = this;
                                    this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Class65.Class67>(ref awaiter2, ref stateMachine);
                                    return;
                                }
                                break;
                            }
                            awaiter2.GetResult();
                            awaiter2 = new TaskAwaiter();
                            Class65.smethod_1();
                            awaiter3 = Task.Delay(1000).GetAwaiter();
                            if (!awaiter3.IsCompleted)
                            {
                                num                = 1;
                                this.int_0         = 1;
                                this.taskAwaiter_0 = awaiter3;
                                Class65.Class67 stateMachine = this;
                                this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Class65.Class67>(ref awaiter3, ref stateMachine);
                                return;
                            }
label_12:
                            awaiter3.GetResult();
                            awaiter3             = new TaskAwaiter();
                            this.sqlDataReader_0 = new SqlCommand("SELECT COUNT(name) FROM master..sysdatabases where name = 'My_EventBot'", Class65.sqlConnection_0).ExecuteReader();
                            try
                            {
                                this.sqlDataReader_0.Read();
                                this.bool_0 = Convert.ToBoolean(this.sqlDataReader_0[0]);
                                this.sqlDataReader_0.Close();
                            }
                            finally
                            {
                                if (num < 0 && this.sqlDataReader_0 != null)
                                {
                                    this.sqlDataReader_0.Dispose();
                                }
                            }
                            this.sqlDataReader_0            = (SqlDataReader)null;
                            *(sbyte *)((IntPtr)voidPtr + 4) = (sbyte)!this.bool_0;
                            if (*(sbyte *)((IntPtr)voidPtr + 4) != (sbyte)0)
                            {
                                Class73.smethod_180("My_EventBot");
                            }
                            else
                            {
                                new SqlCommand("USE [My_EventBot]", Class65.sqlConnection_0).ExecuteNonQuery();
                            }
                            Class65.smethod_3();
                            Class65.smethod_4();
                            awaiter4 = Task.Delay(2500).GetAwaiter();
                            if (!awaiter4.IsCompleted)
                            {
                                num                = 2;
                                this.int_0         = 2;
                                this.taskAwaiter_0 = awaiter4;
                                Class65.Class67 stateMachine = this;
                                this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Class65.Class67>(ref awaiter4, ref stateMachine);
                                return;
                            }
label_23:
                            awaiter4.GetResult();
                            awaiter4 = new TaskAwaiter();
                            Form1.smethod_0("Kontroller tamamlandı.");
                            new Task(new Action(Form1.form1_0.method_1)).Start();
                            Form1.form1_0.button_2.Enabled = true;
                            awaiter5 = Task.Delay(1000).GetAwaiter();
                            if (!awaiter5.IsCompleted)
                            {
                                num                = 3;
                                this.int_0         = 3;
                                this.taskAwaiter_0 = awaiter5;
                                Class65.Class67 stateMachine = this;
                                this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Class65.Class67>(ref awaiter5, ref stateMachine);
                                return;
                            }
label_26:
                            awaiter5.GetResult();
                            awaiter5 = new TaskAwaiter();
                            Form1.form1_0.timer_9.Start();
                            Form1.form1_0.timer_10.Start();
                            try
                            {
                                Class73.smethod_145();
                                Form1.form1_0.method_95();
                            }
                            catch (Exception ex)
                            {
                                this.exception_0 = ex;
                                Form1.smethod_0("Etkinlik takvimi yüklenemedi.. Hata Açıklaması => " + this.exception_0.Message);
                            }
                        }
                        catch (Exception ex)
                        {
                            this.object_0 = (object)ex;
                            this.int_1    = 1;
                        }
                        *(int *)voidPtr = this.int_1;
                        if (*(int *)voidPtr == 1)
                        {
                            this.exception_1 = (Exception)this.object_0;
                            Form1.smethod_1("Kontroller sırasında bir hata oluştu ! Bir kaç saniye içinde kontrol yeniden başlayacak...", Color.Red);
                            Form1.smethod_1("Hata almaya devam ederseniz My_EventBot veritabanını sildikten sonra programı yeniden başlatın...", Color.Red);
                            Form1.smethod_0(this.exception_1.Message ?? "");
                            awaiter1 = Task.Delay(4000).GetAwaiter();
                            if (!awaiter1.IsCompleted)
                            {
                                this.int_0         = 4;
                                this.taskAwaiter_0 = awaiter1;
                                Class65.Class67 stateMachine = this;
                                this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Class65.Class67>(ref awaiter1, ref stateMachine);
                                return;
                            }
                            break;
                        }
                        this.object_0 = (object)null;
                        try
                        {
                            Form1.string_0 = Form1.form1_0.textEdit_11.Text;
                            Form1.string_1 = Form1.form1_0.textEdit_10.Text;
                            Form1.string_2 = Form1.form1_0.textEdit_9.Text;
                            goto label_37;
                        }
                        catch (Exception ex)
                        {
                            this.exception_2 = ex;
                            Form1.smethod_0("DATABASE isimleri ayarlanamadı.Lütfen SQL SERVER bölümünden gerekli alanları hatasız doldurup ayarları kaydettikten sonra programı yeniden başlatın.");
                            Form1.smethod_0("Hata Kodu ==> " + this.exception_2.Message);
                            goto label_37;
                        }

                    case 4:
                        awaiter1           = this.taskAwaiter_0;
                        this.taskAwaiter_0 = new TaskAwaiter();
                        num        = -1;
                        this.int_0 = -1;
                        break;

                    default:
label_4:
                        Form1.smethod_0("Veritabanı kontrolleri yapılıyor...");
                        this.int_1 = 0;
                        goto case 0;
                    }
                    awaiter1.GetResult();
                    awaiter1 = new TaskAwaiter();
                    goto label_4;
                }
                catch (Exception ex)
                {
                    this.int_0 = -2;
                    this.asyncVoidMethodBuilder_0.SetException(ex);
                    return;
                }
label_37:
                this.int_0 = -2;
                this.asyncVoidMethodBuilder_0.SetResult();
            }