namespace ExitGames.Demos.DemoPunVoice
{

	// [TypeInfo RVA: 0x0]
	public class ChangeColor : MonoBehaviour
	{
		private Photon.Pun.PhotonView photonView; // 0x20

		// RVA: 0x327E0A8 VA: 0x78189690A8
		private void Start();
		/*
		 *   undefined *puVar1;
		 *   undefined *puVar2;
		 *   void *pvVar3;
		 *   long *parameters;
		 *   long lVar4;
		 *   long lVar5;
		 *   undefined8 uVar6;
		 *   void **ppvVar7;
		 *   UnityEngine_Color UVar8;
		 *   float fStack_4c;
		 *   float fStack_48;
		 *   float fStack_44;
		 *
		 *   puVar1 = PTR_DAT_070c1b80;
		 *   if ((bRam000000000754ac7f & 1) == 0) {
		 *     func_0x031fdc8c(PTR_DAT_070c1b80);
		 *     func_0x031fdc8c(PTR_DAT_070c0a10);
		 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Vector3_6FC0A08);
		 *     func_0x031fdc8c(PTR_DAT_070c5830);
		 *     bRam000000000754ac7f = 1;
		 *   }
		 *   pvVar3 = (void *)func_0x0373df50(this,*(undefined8 *)puVar1);
		 *   ppvVar7 = &this.photonView;
		 *   *ppvVar7 = pvVar3;
		 *   func_0x031fdc38(ppvVar7,pvVar3);
		 *   puVar2 = PTR_DAT_070c0a10;
		 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Vector3_6FC0A08;
		 *   if (*ppvVar7 != null) {
		 *     if (*(char *)((long)*ppvVar7 + 0x68) == '\0') {
		 *       return;
		 *     }
		 *     UVar8 = Random.ColorHSV();
		 *     pvVar3 = *ppvVar7;
		 *     parameters = (long *)func_0x031fdd78(*(undefined8 *)puVar2,1);
		 *     fStack_4c = UVar8.r;
		 *     fStack_48 = UVar8.g;
		 *     fStack_44 = UVar8.b;
		 *     lVar4 = func_0x031fde10(*(undefined8 *)puVar1,&fStack_4c);
		 *     if (parameters != null) {
		 *       if ((lVar4 != 0) &&
		 *          (lVar5 = func_0x031fde0c(lVar4,*(undefined8 *)(*parameters + 0x40)), lVar5 == 0)) {
		 *         uVar6 = func_0x031fdf58();
		 *         IL2CPP.ThrowManagedException();
		 *       }
		 *       if ((int)parameters[3] == 0) {
		 *         IL2CPP.ThrowIndexOutOfRangeException();
		 *       }
		 *       parameters[4] = lVar4;
		 *       func_0x031fdc38(parameters + 4,lVar4);
		 *       if (pvVar3 != null) {
		 *         Photon.Pun.PhotonView.RPC(pvVar3,*(void **)PTR_DAT_070c5830,3,parameters);
		 *         return;
		 *       }
		 *     }
		 *   }
		 *   IL2CPP.ThrowNullReferenceException();
		 */
		// RVA: 0x327E20C VA: 0x781896920C
		private void ChangeColour(UnityEngine.Vector3 randomColor);
		/*
		 *   undefined *puVar1;
		 *   int iVar2;
		 *   void *pvVar3;
		 *   long lVar4;
		 *
		 *   puVar1 = PTR_DAT_070c26a8;
		 *   if ((bRam000000000754ac80 & 1) == 0) {
		 *     func_0x031fdc8c(PTR_DAT_070c26a8);
		 *     func_0x031fdc8c(PTR_DAT_070c0e70);
		 *     bRam000000000754ac80 = 1;
		 *   }
		 *   pvVar3 = (void *)func_0x0373df50(this,*(undefined8 *)puVar1);
		 *   if ((pvVar3 == null) ||
		 *      (pvVar3 = UnityEngine.Renderer.get_material(pvVar3),
		 *      pvVar3 == null)) {
		 *     IL2CPP.ThrowNullReferenceException();
		 *   }
		 *   iVar2 = UnityEngine.Shader.PropertyToID(*(void **)PTR_DAT_070c0e70);
		 *   if ((bRam000000000755e8a5 & 1) == 0) {
		 *     func_0x031fdc8c(PTR_DAT_0714e7b8);
		 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Material_6FC15F8);
		 *     bRam000000000755e8a5 = 1;
		 *   }
		 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Material_6FC15F8;
		 *   if (pvVar3 != null) {
		 *     lVar4 = *(long *)((long)pvVar3 + 0x10);
		 *     if (lVar4 == 0) {
		 *       UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(pvVar3);
		 *     }
		 *     if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
		 *       func_0x031fde08();
		 *     }
		 *     if (pcRam000000000755e998 == null) {
		 *       pcRam000000000755e998 = (code *)func_0x031fdc50(&UNK_0137765d);
		 *     }
		 *     (*pcRam000000000755e998)(lVar4,iVar2,&stack0xffffffffffffffc0);
		 *     return;
		 *   }
		 *   IL2CPP.ThrowNullReferenceException();
		 */
		// RVA: 0x327E2B4 VA: 0x78189692B4
		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;
		 */
	}
}
