// [TypeInfo RVA: 0x0]
private sealed class <MasterLoop>d__20 : Object
{
	private int <>1__state; // 0x10
	private object <>2__current; // 0x18
	public SimpleEventManager <>4__this; // 0x20

	// RVA: 0x320E894 VA: 0x78188F9894
	public void .ctor(int <>1__state);
	/*
	 *   System.Object..ctor(this);
	 *   this.n_1_state = n_1_state;
	 *   return;
	 */
	// RVA: 0x32108A8 VA: 0x78188FB8A8
	private void System.IDisposable.Dispose();
	/*
	 *   return;
	 */
	// RVA: 0x32108AC VA: 0x78188FB8AC
	private bool MoveNext();
	/*
	 *   uint uVar1;
	 *   undefined *puVar2;
	 *   bool bVar3;
	 *   SimpleEventManager *this_00;
	 *   void *pvVar4;
	 *   void *extraout_x1;
	 *   void *methodInfo_00;
	 *   void *methodInfo_01;
	 *   void *extraout_x1_00;
	 *   void *extraout_x1_01;
	 *   void *methodInfo_02;
	 *   int iVar5;
	 *   long lVar6;
	 *   SimpleEventManager *this_01;
	 *   long lVar7;
	 *   double dVar8;
	 *   double time;
	 *
	 *   if ((bRam000000000754a81c & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c12e8);
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8);
	 *     func_0x031fdc8c(typeinfo_ptr_mscorlib_Math_6FC0738);
	 *     func_0x031fdc8c(typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0);
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_WaitForSeconds_6FC0B10);
	 *     func_0x031fdc8c(PTR_DAT_070c1b70);
	 *     func_0x031fdc8c(PTR_DAT_070c1a90);
	 *     bRam000000000754a81c = 1;
	 *     methodInfo = extraout_x1;
	 *   }
	 *   puVar2 = typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0;
	 *   uVar1 = this.n_1_state;
	 *   if (3 < uVar1) goto LAB_03310ab8;
	 *   this_01 = this.n_4_this;
	 *   this.n_1_state = -1;
	 *   if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *     func_0x031fde08(*(long *)puVar2,methodInfo);
	 *   }
	 *   bVar3 = Photon.Pun.PhotonNetwork.get_IsConnected();
	 *   if (bVar3) {
	 *     if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     bVar3 = Photon.Pun.PhotonNetwork.get_InRoom();
	 *     if (!bVar3) goto LAB_03310a80;
	 *     if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     bVar3 = Photon.Pun.PhotonNetwork.get_IsMasterClient();
	 *     if (!bVar3) goto LAB_03310a80;
	 *     if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     dVar8 = Photon.Pun.PhotonNetwork.get_Time();
	 *     if (this_01 == null) {
	 * LAB_03310bf0:
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     time = SimpleEventManager.ReadRoomNextTrigger(this_00);
	 *     if (time <= 0.0) {
	 *       time = dVar8 + (double)this_01->cooldown;
	 *       SimpleEventManager.SetRoomNextTrigger(this_01,time);
	 *       this_01->clientNextTriggerTimestamp = time;
	 *     }
	 *     if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     dVar8 = Photon.Pun.PhotonNetwork.get_Time();
	 *     if (time - dVar8 <= _UNK_0134e0a0) {
	 *       pvVar4 = MonoBehaviourPun.get_photonView(this_01);
	 *       lVar7 = *(long *)PTR_DAT_070c12e8;
	 *       lVar6 = *(long *)(lVar7 + 0x38);
	 *       if (lVar6 == 0) {
	 *         func_0x03237280(lVar7);
	 *         lVar6 = *(long *)(lVar7 + 0x38);
	 *       }
	 *       lVar6 = *(long *)(lVar6 + 0x10);
	 *       if ((*(ushort *)(lVar6 + 0x135) & 1) == 0) {
	 *         lVar6 = func_0x03237224();
	 *       }
	 *       if (*(int *)(lVar6 + 0xe4) == 0) {
	 *         func_0x031fde08();
	 *       }
	 *       lVar6 = *(long *)(*(long *)(lVar7 + 0x38) + 0x10);
	 *       if ((*(ushort *)(lVar6 + 0x135) & 1) == 0) {
	 *         lVar6 = func_0x03237224();
	 *       }
	 *       if (pvVar4 == null) goto LAB_03310bf0;
	 *       Photon.Pun.PhotonView.RPC(pvVar4,*(void **)PTR_DAT_070c1a90,0,(void *)**(undefined8 **)(lVar6 + 0xb8));
	 *       pvVar4 = extraout_x1_00;
	 *       if (this_01->verboseLogging != false) {
	 *         if (*(int *)(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8 + 0xe4) == 0) {
	 *           func_0x031fde08();
	 *         }
	 *         UnityEngine.Debug.Log(*(void **)PTR_DAT_070c1b70);
	 *         pvVar4 = extraout_x1_01;
	 *       }
	 *       SimpleEventManager.TriggerRandomEvent_AsMaster(this_01);
	 *       if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *         func_0x031fde08();
	 *       }
	 *       dVar8 = Photon.Pun.PhotonNetwork.get_Time();
	 *       dVar8 = dVar8 + (double)this_01->cooldown;
	 *       SimpleEventManager.SetRoomNextTrigger(this_01,dVar8);
	 *       this_01->clientNextTriggerTimestamp = dVar8;
	 *       this.n_2_current = null;
	 *       func_0x031fdc38(&this.n_2_current,0);
	 *       iVar5 = 3;
	 *     }
	 *     else {
	 *       if (*(int *)(*(long *)typeinfo_ptr_mscorlib_Math_6FC0738 + 0xe4) == 0) {
	 *         func_0x031fde08();
	 *       }
	 *       dVar8 = System.Math.Max(_UNK_0134cb88,time - dVar8);
	 *       pvVar4 = (void *)func_0x031fdf24(*(undefined8 *)
	 *                                         typeinfo_ptr_UnityEngine_CoreModule_WaitForSeconds_6FC0B10);
	 *       UnityEngine.WaitForSeconds..ctor(pvVar4,(float)dVar8);
	 *       this.n_2_current = pvVar4;
	 *       func_0x031fdc38(&this.n_2_current,pvVar4);
	 *       iVar5 = 2;
	 *     }
	 *   }
	 *   else {
	 * LAB_03310a80:
	 *     pvVar4 = (void *)func_0x031fdf24(*(undefined8 *)
	 *                                       typeinfo_ptr_UnityEngine_CoreModule_WaitForSeconds_6FC0B10);
	 *     UnityEngine.WaitForSeconds..ctor(pvVar4,1.0);
	 *     this.n_2_current = pvVar4;
	 *     func_0x031fdc38(&this.n_2_current,pvVar4);
	 *     iVar5 = 1;
	 *   }
	 *   this.n_1_state = iVar5;
	 * LAB_03310ab8:
	 *   return uVar1 < 4;
	 */
	// RVA: 0x3210BF4 VA: 0x78188FBBF4
	private object System.Collections.Generic.IEnumerator<System.Object>.get_Current();
	/*
	 *   return this.n_2_current;
	 */
	// RVA: 0x3210BFC VA: 0x78188FBBFC
	private void System.Collections.IEnumerator.Reset();
	/*
	 *   void *this_00;
	 *   undefined8 uVar1;
	 *
	 *   func_0x031fdca0(PTR_DAT_070c0ad0);
	 *   this_00 = (void *)func_0x031fdf24();
	 *   System.NotSupportedException..ctor(this_00);
	 *   uVar1 = func_0x031fdca0(PTR_DAT_070c1b78);
	 *   IL2CPP.ThrowManagedException();
	 */
	// RVA: 0x3210C34 VA: 0x78188FBC34
	private object System.Collections.IEnumerator.get_Current();
	/*
	 *   return this.n_2_current;
	 */
}
