namespace ExitGames.Demos.DemoPunVoice
{

	// [TypeInfo RVA: 0x0]
	public class PointersController : MonoBehaviour
	{
		private UnityEngine.GameObject pointerDown; // 0x20
		private UnityEngine.GameObject pointerUp; // 0x28
		private Photon.Voice.PUN.PhotonVoiceView photonVoiceView; // 0x30

		// RVA: 0x327E374 VA: 0x7818969374
		private void Awake();
		/*
		 *   undefined *puVar1;
		 *   bool bVar2;
		 *   void *pvVar3;
		 *   PointersController *this_00;
		 *   ulong uVar4;
		 *   void *in_x3;
		 *   long lVar5;
		 *
		 *   puVar1 = PTR_DAT_070c1c00;
		 *   if ((bRam000000000754ac82 & 1) == 0) {
		 *     func_0x031fdc8c(PTR_DAT_070c1c00);
		 *     bRam000000000754ac82 = 1;
		 *   }
		 *   pvVar3 = (void *)func_0x0373df50(this,*(undefined8 *)puVar1);
		 *   this.photonVoiceView = pvVar3;
		 *   this_00 = (PointersController *)func_0x031fdc38(&this.photonVoiceView,pvVar3);
		 *   PointersController.SetActiveSafe(this_00,this.pointerUp,false);
		 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
		 *   pvVar3 = this.pointerDown;
		 *   if ((bRam000000000754ac83 & 1) == 0) {
		 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
		 *     bRam000000000754ac83 = 1;
		 *   }
		 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
		 *     func_0x031fde08();
		 *   }
		 *   uVar4 = UnityEngine.Object.op_Inequality(pvVar3,null);
		 *   if ((uVar4 & 1) != 0) {
		 *     if (pvVar3 == null) {
		 *       IL2CPP.ThrowNullReferenceException();
		 *     }
		 *     bVar2 = UnityEngine.GameObject.get_activeSelf(pvVar3);
		 *     if (bVar2) {
		 *       if ((bRam000000000755f7e0 & 1) == 0) {
		 *         func_0x031fdc8c(PTR_DAT_0714f3e0,0,0);
		 *         bRam000000000755f7e0 = 1;
		 *       }
		 *       if (pvVar3 != null) {
		 *         lVar5 = *(long *)((long)pvVar3 + 0x10);
		 *         if (lVar5 == 0) {
		 *           UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(pvVar3);
		 *         }
		 *         if (pcRam000000000755f860 == null) {
		 *           pcRam000000000755f860 = (code *)func_0x031fdc50(&UNK_0138da18);
		 *         }
		 *         (*pcRam000000000755f860)(lVar5,0);
		 *         return;
		 *       }
		 *       IL2CPP.ThrowNullReferenceException();
		 *     }
		 *   }
		 *   return;
		 */
		// RVA: 0x327E490 VA: 0x7818969490
		private void Update();
		/*
		 *   undefined *puVar1;
		 *   bool bVar2;
		 *   bool bVar3;
		 *   ulong uVar4;
		 *   void *in_x3;
		 *   void *pvVar5;
		 *   long lVar6;
		 *
		 *   if (this.photonVoiceView != null) {
		 *     pvVar5 = this.pointerDown;
		 *     bVar3 = Photon.Voice.PUN.PhotonVoiceView.get_IsSpeaking(this.photonVoiceView);
		 *     PointersController.SetActiveSafe((PointersController *)(ulong)bVar3,pvVar5,bVar3);
		 *     if (this.photonVoiceView != null) {
		 *       pvVar5 = this.pointerUp;
		 *       bVar3 = Photon.Voice.PUN.PhotonVoiceView.get_IsRecording(this.photonVoiceView);
		 *       puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
		 *       if ((bRam000000000754ac83 & 1) == 0) {
		 *         func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
		 *         bRam000000000754ac83 = 1;
		 *       }
		 *       if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
		 *         func_0x031fde08();
		 *       }
		 *       uVar4 = UnityEngine.Object.op_Inequality(pvVar5,null);
		 *       if ((uVar4 & 1) != 0) {
		 *         if (pvVar5 == null) {
		 *           IL2CPP.ThrowNullReferenceException();
		 *         }
		 *         bVar2 = UnityEngine.GameObject.get_activeSelf(pvVar5);
		 *         if (bVar2 != bVar3) {
		 *           if ((bRam000000000755f7e0 & 1) == 0) {
		 *             func_0x031fdc8c(PTR_DAT_0714f3e0,bVar3,0);
		 *             bRam000000000755f7e0 = 1;
		 *           }
		 *           if (pvVar5 != null) {
		 *             lVar6 = *(long *)((long)pvVar5 + 0x10);
		 *             if (lVar6 == 0) {
		 *               UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(pvVar5);
		 *             }
		 *             if (pcRam000000000755f860 == null) {
		 *               pcRam000000000755f860 = (code *)func_0x031fdc50(&UNK_0138da18);
		 *             }
		 *             (*pcRam000000000755f860)(lVar6,bVar3);
		 *             return;
		 *           }
		 *           IL2CPP.ThrowNullReferenceException();
		 *         }
		 *       }
		 *       return;
		 *     }
		 *   }
		 *   IL2CPP.ThrowNullReferenceException();
		 */
		// RVA: 0x327E3E4 VA: 0x78189693E4
		private void SetActiveSafe(UnityEngine.GameObject go, bool active);
		/*
		 *   undefined *puVar1;
		 *   bool bVar2;
		 *   ulong uVar3;
		 *   long lVar4;
		 *
		 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
		 *   if ((bRam000000000754ac83 & 1) == 0) {
		 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
		 *     bRam000000000754ac83 = 1;
		 *   }
		 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
		 *     func_0x031fde08();
		 *   }
		 *   uVar3 = UnityEngine.Object.op_Inequality(go,null);
		 *   if ((uVar3 & 1) != 0) {
		 *     if (go == null) {
		 *       IL2CPP.ThrowNullReferenceException();
		 *     }
		 *     bVar2 = UnityEngine.GameObject.get_activeSelf(go);
		 *     if (bVar2 != active) {
		 *       if ((bRam000000000755f7e0 & 1) == 0) {
		 *         func_0x031fdc8c(PTR_DAT_0714f3e0,active,0);
		 *         bRam000000000755f7e0 = 1;
		 *       }
		 *       if (go != null) {
		 *         lVar4 = *(long *)((long)go + 0x10);
		 *         if (lVar4 == 0) {
		 *           UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(go);
		 *         }
		 *         if (pcRam000000000755f860 == null) {
		 *           pcRam000000000755f860 = (code *)func_0x031fdc50(&UNK_0138da18);
		 *         }
		 *         (*pcRam000000000755f860)(lVar4,active);
		 *         return;
		 *       }
		 *       IL2CPP.ThrowNullReferenceException();
		 *     }
		 *   }
		 *   return;
		 */
		// RVA: 0x327E4E8 VA: 0x78189694E8
		public void .ctor();
		/*
		 *   undefined *puVar1;
		 *
		 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
		 *   if ((bRam000000000755f76f & 1) == 0) {
		 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8,0);
		 *     bRam000000000755f76f = 1;
		 *   }
		 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
		 *     func_0x031fde08();
		 *   }
		 *   return;
		 */
	}
}
