// [TypeInfo RVA: 0x712C978]
public class photonusername : MonoBehaviour
{
	public int maxlength; // 0x20
	public bool stripinstead; // 0x24
	public bool forcelowercase; // 0x25
	private static readonly System.Text.RegularExpressions.Regex richtag; // 0x0
	private static readonly System.Text.RegularExpressions.Regex anyangle; // 0x8
	private static readonly System.Text.RegularExpressions.Regex zerowidth; // 0x10
	private static readonly System.Text.RegularExpressions.Regex control; // 0x18
	private static readonly System.Text.RegularExpressions.Regex bad; // 0x20

	// RVA: 0x321E164 VA: 0x7818909164
	public bool set(string input);
	/*
	 *   undefined *puVar1;
	 *   undefined *puVar2;
	 *   undefined *puVar3;
	 *   bool bVar4;
	 *   bool bVar5;
	 *   void *pvVar6;
	 *   long lVar7;
	 *   void *pvVar8;
	 *
	 *   if ((bRam000000000754a8a7 & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8);
	 *     func_0x031fdc8c(typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0);
	 *     func_0x031fdc8c(PTR_DAT_070c2380);
	 *     func_0x031fdc8c(PTR_DAT_070c2388);
	 *     func_0x031fdc8c(PTR_DAT_070c2390);
	 *     func_0x031fdc8c(PTR_DAT_070c2398);
	 *     func_0x031fdc8c(PTR_DAT_070c23a0);
	 *     func_0x031fdc8c(PTR_DAT_070c0df0);
	 *     func_0x031fdc8c(PTR_DAT_070c23a8);
	 *     func_0x031fdc8c(PTR_DAT_070c23b0);
	 *     func_0x031fdc8c(typeinfo_ptr_Assembly_CSharp_photonusername_6FC23B8);
	 *     bRam000000000754a8a7 = 1;
	 *   }
	 *   bVar4 = System.String.IsNullOrEmpty(input);
	 *   if (bVar4) {
	 *     return false;
	 *   }
	 *   if ((input != null) &&
	 *      (pvVar6 = System.String.Normalize(input,5), pvVar6 != null)) {
	 *     pvVar6 = System.String.Trim(pvVar6);
	 *     puVar2 = PTR_DAT_070c2398;
	 *     puVar1 = PTR_DAT_070c2388;
	 *     for (; pvVar6 != null;
	 *         pvVar6 = System.String.Replace(pvVar6,*(void **)puVar2,*(void **)puVar1)) {
	 *       bVar4 = System.String.Contains(pvVar6,*(void **)puVar2);
	 *       puVar3 = typeinfo_ptr_Assembly_CSharp_photonusername_6FC23B8;
	 *       if (!bVar4) {
	 *         lVar7 = *(long *)typeinfo_ptr_Assembly_CSharp_photonusername_6FC23B8;
	 *         if (*(int *)(lVar7 + 0xe4) == 0) {
	 *           func_0x031fde08();
	 *           lVar7 = *(long *)puVar3;
	 *         }
	 *         if ((void *)**(undefined8 **)(lVar7 + 0xb8) == null) break;
	 *         bVar4 = System.Text.RegularExpressions.Regex.IsMatch((void *)**(undefined8 **)(lVar7 + 0xb8),pvVar6);
	 *         if (bVar4) {
	 *           bVar4 = true;
	 *         }
	 *         else {
	 *           lVar7 = *(long *)puVar3;
	 *           if (*(int *)(lVar7 + 0xe4) == 0) {
	 *             func_0x031fde08();
	 *             lVar7 = *(long *)puVar3;
	 *           }
	 *           pvVar8 = *(void **)(*(long *)(lVar7 + 0xb8) + 8);
	 *           if (pvVar8 == null) break;
	 *           bVar4 = System.Text.RegularExpressions.Regex.IsMatch(pvVar8,pvVar6);
	 *         }
	 *         lVar7 = *(long *)puVar3;
	 *         if (*(int *)(lVar7 + 0xe4) == 0) {
	 *           func_0x031fde08();
	 *           lVar7 = *(long *)puVar3;
	 *         }
	 *         pvVar8 = *(void **)(*(long *)(lVar7 + 0xb8) + 0x10);
	 *         if (pvVar8 == null) break;
	 *         bVar5 = System.Text.RegularExpressions.Regex.IsMatch(pvVar8,pvVar6);
	 *         if (bVar5) {
	 *           bVar5 = true;
	 *         }
	 *         else {
	 *           lVar7 = *(long *)puVar3;
	 *           if (*(int *)(lVar7 + 0xe4) == 0) {
	 *             func_0x031fde08();
	 *             lVar7 = *(long *)puVar3;
	 *           }
	 *           pvVar8 = *(void **)(*(long *)(lVar7 + 0xb8) + 0x18);
	 *           if (pvVar8 == null) break;
	 *           bVar5 = System.Text.RegularExpressions.Regex.IsMatch(pvVar8,pvVar6);
	 *         }
	 *         if (bVar4 != false || bVar5 != false) {
	 *           pvVar8 = System.String.Concat(*(void **)PTR_DAT_070c23a0,input);
	 *           if (*(int *)(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8 + 0xe4) == 0) {
	 *             func_0x031fde08(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8);
	 *           }
	 *           UnityEngine.Debug.LogWarning(pvVar8);
	 *           if (this.stripinstead == false) {
	 *             return false;
	 *           }
	 *           lVar7 = *(long *)puVar3;
	 *           if (*(int *)(lVar7 + 0xe4) == 0) {
	 *             func_0x031fde08();
	 *             lVar7 = *(long *)puVar3;
	 *           }
	 *           puVar1 = PTR_DAT_070c0df0;
	 *           if ((void *)**(undefined8 **)(lVar7 + 0xb8) == null) break;
	 *           pvVar6 = System.Text.RegularExpressions.Regex.Replace((void *)**(undefined8 **)(lVar7 + 0xb8),pvVar6,*(void **)PTR_DAT_070c0df0);
	 *           pvVar8 = *(void **)(*(long *)(*(long *)puVar3 + 0xb8) + 8);
	 *           if (pvVar8 == null) break;
	 *           pvVar6 = System.Text.RegularExpressions.Regex.Replace(pvVar8,pvVar6,*(void **)puVar1);
	 *           pvVar8 = *(void **)(*(long *)(*(long *)puVar3 + 0xb8) + 0x10);
	 *           if (pvVar8 == null) break;
	 *           pvVar6 = System.Text.RegularExpressions.Regex.Replace(pvVar8,pvVar6,*(void **)puVar1);
	 *           pvVar8 = *(void **)(*(long *)(*(long *)puVar3 + 0xb8) + 0x18);
	 *           if (pvVar8 == null) break;
	 *           pvVar6 = System.Text.RegularExpressions.Regex.Replace(pvVar8,pvVar6,*(void **)puVar1);
	 *         }
	 *         lVar7 = *(long *)puVar3;
	 *         if (*(int *)(lVar7 + 0xe4) == 0) {
	 *           func_0x031fde08();
	 *           lVar7 = *(long *)puVar3;
	 *         }
	 *         pvVar8 = *(void **)(*(long *)(lVar7 + 0xb8) + 0x20);
	 *         if (pvVar8 == null) break;
	 *         pvVar6 = System.Text.RegularExpressions.Regex.Replace(pvVar8,pvVar6,*(void **)PTR_DAT_070c0df0);
	 *         if (this.forcelowercase != false) {
	 *           if (pvVar6 == null) break;
	 *           pvVar6 = System.String.ToLower(pvVar6);
	 *         }
	 *         if ((pvVar6 != null) &&
	 *            ((*(int *)((long)pvVar6 + 0x10) <= this.maxlength ||
	 *             (pvVar6 = System.String.Substring(pvVar6,0,this.maxlength),
	 *             pvVar6 != null)))) {
	 *           pvVar6 = System.String.Trim(pvVar6);
	 *           bVar4 = System.String.IsNullOrWhiteSpace(pvVar6);
	 *           if (bVar4) {
	 *             return false;
	 *           }
	 *           if (pvVar6 != null) {
	 *             bVar4 = System.String.Contains(pvVar6,*(void **)PTR_DAT_070c2390);
	 *             if (bVar4) {
	 *               return false;
	 *             }
	 *             bVar4 = System.String.Contains(pvVar6,*(void **)PTR_DAT_070c23b0);
	 *             if (bVar4) {
	 *               return false;
	 *             }
	 *             if (*(int *)(*(long *)typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0 + 0xe4)
	 *                 == 0) {
	 *               func_0x031fde08();
	 *             }
	 *             Photon.Pun.PhotonNetwork.set_NickName(pvVar6);
	 *             UnityEngine.PlayerPrefs.SetString(*(void **)PTR_DAT_070c23a8,pvVar6);
	 *             UnityEngine.PlayerPrefs.Save();
	 *             pvVar6 = System.String.Concat(*(void **)PTR_DAT_070c2380,pvVar6)
	 *             ;
	 *             if (*(int *)(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8 + 0xe4) == 0) {
	 *               func_0x031fde08(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8);
	 *             }
	 *             UnityEngine.Debug.Log(pvVar6);
	 *             return true;
	 *           }
	 *         }
	 *         break;
	 *       }
	 *     }
	 *   }
	 *   IL2CPP.ThrowNullReferenceException();
	 */
	// RVA: 0x321E5C8 VA: 0x78189095C8
	public void .ctor();
	/*
	 *   undefined *puVar1;
	 *
	 *   this.maxlength = 0x10;
	 *   this.stripinstead = true;
	 *   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;
	 */
	// RVA: 0x321E5E0 VA: 0x78189095E0
	private static void .cctor();
	/*
	 *   undefined *puVar1;
	 *   undefined *puVar2;
	 *   undefined *puVar3;
	 *   void *this;
	 *   ulong uVar4;
	 *
	 *   puVar3 = PTR_DAT_070c23c0;
	 *   puVar2 = typeinfo_ptr_Assembly_CSharp_photonusername_6FC23B8;
	 *   puVar1 = typeinfo_ptr_System_Regex_6FC17C0;
	 *   if ((bRam000000000754a8a8 & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_System_Regex_6FC17C0);
	 *     func_0x031fdc8c(PTR_DAT_070c23d0);
	 *     func_0x031fdc8c(PTR_DAT_070c23d8);
	 *     func_0x031fdc8c(PTR_DAT_070c23c8);
	 *     func_0x031fdc8c(PTR_DAT_070c23c0);
	 *     func_0x031fdc8c(PTR_DAT_070c23e0);
	 *     func_0x031fdc8c(typeinfo_ptr_Assembly_CSharp_photonusername_6FC23B8);
	 *     bRam000000000754a8a8 = 1;
	 *   }
	 *   this = (void *)func_0x031fdf24(*(undefined8 *)puVar1);
	 *   System.Text.RegularExpressions.Regex..ctor(this,*(void **)puVar3,8);
	 *   **(undefined8 **)(*(long *)puVar2 + 0xb8) = this;
	 *   uVar4 = *(ulong *)(*(long *)puVar2 + 0xb8);
	 *   if (iRam00000000077785f0 != 0) {
	 *     func_0x032ed0c0(1L << (uVar4 >> 0xc & 0x3f),(uVar4 >> 0x12 & 0x7fff) * 8 + 0x75ac5c8);
	 *   }
	 *   return;
	 */
}
