// [TypeInfo RVA: 0x0]
public class namegen : MonoBehaviour
{
	private int randomNum; // 0x20
	public NameScript nameScript; // 0x28
	public float checkFrequency; // 0x30
	private float timer; // 0x34

	// RVA: 0x323FA04 VA: 0x781892AA04
	private void Start();
	/*
	 *   undefined *puVar1;
	 *   undefined *puVar2;
	 *   undefined *puVar3;
	 *   bool bVar4;
	 *   int iVar5;
	 *   void *pvVar6;
	 *   ulong uVar7;
	 *   undefined8 *puVar8;
	 *   long lVar9;
	 *   void *error;
	 *   undefined8 uVar10;
	 *   void *pvVar11;
	 *   float fVar12;
	 *
	 *   if ((bRam000000000754a9db & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c3418);
	 *     bRam000000000754a9db = 1;
	 *   }
	 *   fVar12 = this.checkFrequency;
	 *   if (this.checkFrequency <= _UNK_0134ee00) {
	 *     fVar12 = _UNK_0134ee00;
	 *   }
	 *   this.checkFrequency = fVar12;
	 *   if (this.nameScript == null) {
	 *     pvVar6 = null;
	 *   }
	 *   else {
	 *     pvVar6 = *(void **)((long)this.nameScript + 0x28);
	 *   }
	 *   bVar4 = System.String.IsNullOrEmpty(pvVar6);
	 *   if (!bVar4) {
	 *     if (this.nameScript == null) {
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     UnityEngine.PlayerPrefs.SetString(*(void **)PTR_DAT_070c3418,*(void **)((long)this.nameScript + 0x28));
	 *   }
	 *   iVar5 = Random.Range(0,9999);
	 *   this.timer = 0.0;
	 *   this.randomNum = iVar5;
	 *   if ((bRam000000000754a9dc & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c3418);
	 *     bRam000000000754a9dc = 1;
	 *   }
	 *   if (this.nameScript == null) {
	 *     pvVar6 = null;
	 *   }
	 *   else {
	 *     pvVar6 = *(void **)((long)this.nameScript + 0x28);
	 *   }
	 *   bVar4 = System.String.IsNullOrEmpty(pvVar6);
	 *   puVar3 = PTR_DAT_070c3698;
	 *   puVar2 = PTR_DAT_070c3418;
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *   if (!bVar4) {
	 *     if (this.nameScript == null) {
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     pvVar6 = null;
	 *     bVar4 = UnityEngine.PlayerPrefs.TrySetSetString(*(void **)PTR_DAT_070c3418,*(void **)((long)this.nameScript + 0x28));
	 *     if (bVar4) {
	 *       return;
	 *     }
	 *     func_0x031fdca0(PTR_DAT_0714f1f8);
	 *     pvVar11 = (void *)func_0x031fdf24();
	 *     error = (void *)func_0x031fdca0(PTR_DAT_0714f200);
	 *     UnityEngine.PlayerPrefsException..ctor(pvVar11,error);
	 *     uVar10 = func_0x031fdca0(PTR_DAT_0714f218);
	 *     IL2CPP.ThrowManagedException();
	 *   }
	 *   if ((bRam000000000754a9dd & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     func_0x031fdc8c(typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0);
	 *     func_0x031fdc8c(typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800);
	 *     func_0x031fdc8c(PTR_DAT_070c3418);
	 *     func_0x031fdc8c(PTR_DAT_070c3698);
	 *     bRam000000000754a9dd = 1;
	 *   }
	 *   iVar5 = Random.Range(0,9999);
	 *   this.randomNum = iVar5;
	 *   pvVar6 = System.Int32.ToString(&this.randomNum);
	 *   pvVar6 = System.String.Concat(*(void **)puVar3,pvVar6);
	 *   UnityEngine.PlayerPrefs.SetString(*(void **)puVar2,pvVar6);
	 *   pvVar11 = this.nameScript;
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   uVar7 = UnityEngine.Object.op_Inequality(pvVar11,null);
	 *   if ((uVar7 & 1) != 0) {
	 *     if (this.nameScript == null) goto LAB_0333fd18;
	 *     puVar8 = (undefined8 *)((long)this.nameScript + 0x28);
	 *     *puVar8 = pvVar6;
	 *     func_0x031fdc38(puVar8,pvVar6);
	 *   }
	 *   puVar1 = typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0;
	 *   if (*(int *)(*(long *)typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   PhotonVRManager.SetUsername(pvVar6);
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   lVar9 = Photon.Pun.PhotonNetwork.get_LocalPlayer();
	 *   if (lVar9 != 0) {
	 *     if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     pvVar11 = (void *)Photon.Pun.PhotonNetwork.get_LocalPlayer();
	 *     if (pvVar11 == null) {
	 * LAB_0333fd18:
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     Photon.Realtime.Player.set_NickName(pvVar11,pvVar6);
	 *   }
	 *   return;
	 */
	// RVA: 0x323FB3C VA: 0x781892AB3C
	private void Update();
	/*
	 *   undefined *puVar1;
	 *   undefined *puVar2;
	 *   undefined *puVar3;
	 *   bool bVar4;
	 *   int iVar5;
	 *   void *pvVar6;
	 *   ulong uVar7;
	 *   undefined8 *puVar8;
	 *   long lVar9;
	 *   void *error;
	 *   undefined8 uVar10;
	 *   void *pvVar11;
	 *   float fVar12;
	 *   float fVar13;
	 *
	 *   fVar13 = this.timer;
	 *   fVar12 = UnityEngine.Time.get_deltaTime();
	 *   fVar13 = fVar13 + fVar12;
	 *   this.timer = fVar13;
	 *   if (fVar13 < 1.0 / this.checkFrequency) {
	 *     return;
	 *   }
	 *   this.timer = 0.0;
	 *   if ((bRam000000000754a9dc & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c3418);
	 *     bRam000000000754a9dc = 1;
	 *   }
	 *   if (this.nameScript == null) {
	 *     pvVar6 = null;
	 *   }
	 *   else {
	 *     pvVar6 = *(void **)((long)this.nameScript + 0x28);
	 *   }
	 *   bVar4 = System.String.IsNullOrEmpty(pvVar6);
	 *   puVar3 = PTR_DAT_070c3698;
	 *   puVar2 = PTR_DAT_070c3418;
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *   if (!bVar4) {
	 *     if (this.nameScript == null) {
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     pvVar6 = null;
	 *     bVar4 = UnityEngine.PlayerPrefs.TrySetSetString(*(void **)PTR_DAT_070c3418,*(void **)((long)this.nameScript + 0x28));
	 *     if (bVar4) {
	 *       return;
	 *     }
	 *     func_0x031fdca0(PTR_DAT_0714f1f8);
	 *     pvVar11 = (void *)func_0x031fdf24();
	 *     error = (void *)func_0x031fdca0(PTR_DAT_0714f200);
	 *     UnityEngine.PlayerPrefsException..ctor(pvVar11,error);
	 *     uVar10 = func_0x031fdca0(PTR_DAT_0714f218);
	 *     IL2CPP.ThrowManagedException();
	 *   }
	 *   if ((bRam000000000754a9dd & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     func_0x031fdc8c(typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0);
	 *     func_0x031fdc8c(typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800);
	 *     func_0x031fdc8c(PTR_DAT_070c3418);
	 *     func_0x031fdc8c(PTR_DAT_070c3698);
	 *     bRam000000000754a9dd = 1;
	 *   }
	 *   iVar5 = Random.Range(0,9999);
	 *   this.randomNum = iVar5;
	 *   pvVar6 = System.Int32.ToString(&this.randomNum);
	 *   pvVar6 = System.String.Concat(*(void **)puVar3,pvVar6);
	 *   UnityEngine.PlayerPrefs.SetString(*(void **)puVar2,pvVar6);
	 *   pvVar11 = this.nameScript;
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   uVar7 = UnityEngine.Object.op_Inequality(pvVar11,null);
	 *   if ((uVar7 & 1) != 0) {
	 *     if (this.nameScript == null) goto LAB_0333fd18;
	 *     puVar8 = (undefined8 *)((long)this.nameScript + 0x28);
	 *     *puVar8 = pvVar6;
	 *     func_0x031fdc38(puVar8,pvVar6);
	 *   }
	 *   puVar1 = typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0;
	 *   if (*(int *)(*(long *)typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   PhotonVRManager.SetUsername(pvVar6);
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   lVar9 = Photon.Pun.PhotonNetwork.get_LocalPlayer();
	 *   if (lVar9 != 0) {
	 *     if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     pvVar11 = (void *)Photon.Pun.PhotonNetwork.get_LocalPlayer();
	 *     if (pvVar11 == null) {
	 * LAB_0333fd18:
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     Photon.Realtime.Player.set_NickName(pvVar11,pvVar6);
	 *   }
	 *   return;
	 */
	// RVA: 0x323FAB4 VA: 0x781892AAB4
	private void CheckAndGenerateUsername();
	/*
	 *   undefined *puVar1;
	 *   undefined *puVar2;
	 *   undefined *puVar3;
	 *   bool bVar4;
	 *   int iVar5;
	 *   void *pvVar6;
	 *   ulong uVar7;
	 *   undefined8 *puVar8;
	 *   long lVar9;
	 *   void *error;
	 *   undefined8 uVar10;
	 *   void *pvVar11;
	 *
	 *   if ((bRam000000000754a9dc & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c3418);
	 *     bRam000000000754a9dc = 1;
	 *   }
	 *   if (this.nameScript == null) {
	 *     pvVar6 = null;
	 *   }
	 *   else {
	 *     pvVar6 = *(void **)((long)this.nameScript + 0x28);
	 *   }
	 *   bVar4 = System.String.IsNullOrEmpty(pvVar6);
	 *   puVar3 = PTR_DAT_070c3698;
	 *   puVar2 = PTR_DAT_070c3418;
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *   if (!bVar4) {
	 *     if (this.nameScript == null) {
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     pvVar6 = null;
	 *     bVar4 = UnityEngine.PlayerPrefs.TrySetSetString(*(void **)PTR_DAT_070c3418,*(void **)((long)this.nameScript + 0x28));
	 *     if (bVar4) {
	 *       return;
	 *     }
	 *     func_0x031fdca0(PTR_DAT_0714f1f8);
	 *     pvVar11 = (void *)func_0x031fdf24();
	 *     error = (void *)func_0x031fdca0(PTR_DAT_0714f200);
	 *     UnityEngine.PlayerPrefsException..ctor(pvVar11,error);
	 *     uVar10 = func_0x031fdca0(PTR_DAT_0714f218);
	 *     IL2CPP.ThrowManagedException();
	 *   }
	 *   if ((bRam000000000754a9dd & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     func_0x031fdc8c(typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0);
	 *     func_0x031fdc8c(typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800);
	 *     func_0x031fdc8c(PTR_DAT_070c3418);
	 *     func_0x031fdc8c(PTR_DAT_070c3698);
	 *     bRam000000000754a9dd = 1;
	 *   }
	 *   iVar5 = Random.Range(0,9999);
	 *   this.randomNum = iVar5;
	 *   pvVar6 = System.Int32.ToString(&this.randomNum);
	 *   pvVar6 = System.String.Concat(*(void **)puVar3,pvVar6);
	 *   UnityEngine.PlayerPrefs.SetString(*(void **)puVar2,pvVar6);
	 *   pvVar11 = this.nameScript;
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   uVar7 = UnityEngine.Object.op_Inequality(pvVar11,null);
	 *   if ((uVar7 & 1) != 0) {
	 *     if (this.nameScript == null) goto LAB_0333fd18;
	 *     puVar8 = (undefined8 *)((long)this.nameScript + 0x28);
	 *     *puVar8 = pvVar6;
	 *     func_0x031fdc38(puVar8,pvVar6);
	 *   }
	 *   puVar1 = typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0;
	 *   if (*(int *)(*(long *)typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   PhotonVRManager.SetUsername(pvVar6);
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   lVar9 = Photon.Pun.PhotonNetwork.get_LocalPlayer();
	 *   if (lVar9 != 0) {
	 *     if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     pvVar11 = (void *)Photon.Pun.PhotonNetwork.get_LocalPlayer();
	 *     if (pvVar11 == null) {
	 * LAB_0333fd18:
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     Photon.Realtime.Player.set_NickName(pvVar11,pvVar6);
	 *   }
	 *   return;
	 */
	// RVA: 0x323FB90 VA: 0x781892AB90
	public string GenerateUsername();
	/*
	 *   undefined *puVar1;
	 *   undefined *puVar2;
	 *   undefined *puVar3;
	 *   int iVar4;
	 *   void *pvVar5;
	 *   ulong uVar6;
	 *   undefined8 *puVar7;
	 *   long lVar8;
	 *   void *pvVar9;
	 *
	 *   puVar3 = PTR_DAT_070c3698;
	 *   puVar2 = PTR_DAT_070c3418;
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *   if ((bRam000000000754a9dd & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     func_0x031fdc8c(typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0);
	 *     func_0x031fdc8c(typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800);
	 *     func_0x031fdc8c(PTR_DAT_070c3418);
	 *     func_0x031fdc8c(PTR_DAT_070c3698);
	 *     bRam000000000754a9dd = 1;
	 *   }
	 *   iVar4 = Random.Range(0,9999);
	 *   this.randomNum = iVar4;
	 *   pvVar5 = System.Int32.ToString(&this.randomNum);
	 *   pvVar5 = System.String.Concat(*(void **)puVar3,pvVar5);
	 *   UnityEngine.PlayerPrefs.SetString(*(void **)puVar2,pvVar5);
	 *   pvVar9 = this.nameScript;
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   uVar6 = UnityEngine.Object.op_Inequality(pvVar9,null);
	 *   if ((uVar6 & 1) != 0) {
	 *     if (this.nameScript == null) goto LAB_0333fd18;
	 *     puVar7 = (undefined8 *)((long)this.nameScript + 0x28);
	 *     *puVar7 = pvVar5;
	 *     func_0x031fdc38(puVar7,pvVar5);
	 *   }
	 *   puVar1 = typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0;
	 *   if (*(int *)(*(long *)typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   PhotonVRManager.SetUsername(pvVar5);
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   lVar8 = Photon.Pun.PhotonNetwork.get_LocalPlayer();
	 *   if (lVar8 != 0) {
	 *     if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     pvVar9 = (void *)Photon.Pun.PhotonNetwork.get_LocalPlayer();
	 *     if (pvVar9 == null) {
	 * LAB_0333fd18:
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     Photon.Realtime.Player.set_NickName(pvVar9,pvVar5);
	 *   }
	 *   return pvVar5;
	 */
	// RVA: 0x3239B60 VA: 0x7818924B60
	public string EnsureUsernameOrGenerate();
	/*
	 *   undefined *puVar1;
	 *   undefined *puVar2;
	 *   undefined *puVar3;
	 *   bool bVar4;
	 *   int iVar5;
	 *   void *pvVar6;
	 *   ulong uVar7;
	 *   undefined8 *puVar8;
	 *   long lVar9;
	 *   void *pvVar10;
	 *
	 *   if ((bRam000000000754a9de & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c3418);
	 *     bRam000000000754a9de = 1;
	 *   }
	 *   if (this.nameScript == null) {
	 *     pvVar6 = null;
	 *   }
	 *   else {
	 *     pvVar6 = *(void **)((long)this.nameScript + 0x28);
	 *   }
	 *   bVar4 = System.String.IsNullOrEmpty(pvVar6);
	 *   puVar3 = PTR_DAT_070c3698;
	 *   puVar2 = PTR_DAT_070c3418;
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *   if (!bVar4) {
	 *     if (this.nameScript != null) {
	 *       UnityEngine.PlayerPrefs.SetString(*(void **)PTR_DAT_070c3418,*(void **)((long)this.nameScript + 0x28));
	 *       if (this.nameScript != null) {
	 *         return *(void **)((long)this.nameScript + 0x28);
	 *       }
	 *     }
	 *     IL2CPP.ThrowNullReferenceException();
	 *   }
	 *   if ((bRam000000000754a9dd & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     func_0x031fdc8c(typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0);
	 *     func_0x031fdc8c(typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800);
	 *     func_0x031fdc8c(PTR_DAT_070c3418);
	 *     func_0x031fdc8c(PTR_DAT_070c3698);
	 *     bRam000000000754a9dd = 1;
	 *   }
	 *   iVar5 = Random.Range(0,9999);
	 *   this.randomNum = iVar5;
	 *   pvVar6 = System.Int32.ToString(&this.randomNum);
	 *   pvVar6 = System.String.Concat(*(void **)puVar3,pvVar6);
	 *   UnityEngine.PlayerPrefs.SetString(*(void **)puVar2,pvVar6);
	 *   pvVar10 = this.nameScript;
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   uVar7 = UnityEngine.Object.op_Inequality(pvVar10,null);
	 *   if ((uVar7 & 1) != 0) {
	 *     if (this.nameScript == null) goto LAB_0333fd18;
	 *     puVar8 = (undefined8 *)((long)this.nameScript + 0x28);
	 *     *puVar8 = pvVar6;
	 *     func_0x031fdc38(puVar8,pvVar6);
	 *   }
	 *   puVar1 = typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0;
	 *   if (*(int *)(*(long *)typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   PhotonVRManager.SetUsername(pvVar6);
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   lVar9 = Photon.Pun.PhotonNetwork.get_LocalPlayer();
	 *   if (lVar9 != 0) {
	 *     if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     pvVar10 = (void *)Photon.Pun.PhotonNetwork.get_LocalPlayer();
	 *     if (pvVar10 == null) {
	 * LAB_0333fd18:
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     Photon.Realtime.Player.set_NickName(pvVar10,pvVar6);
	 *   }
	 *   return pvVar6;
	 */
	// RVA: 0x323FD1C VA: 0x781892AD1C
	public void .ctor();
	/*
	 *   undefined *puVar1;
	 *
	 *   this.checkFrequency = 1.0;
	 *   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;
	 */
}
