// [TypeInfo RVA: 0x0]
public class ChatController : MonoBehaviour
{
	public TMPro.TMP_InputField ChatInputField; // 0x20
	public TMPro.TMP_Text ChatDisplayOutput; // 0x28
	public UnityEngine.UI.Scrollbar ChatScrollbar; // 0x30

	// RVA: 0x325EF4C VA: 0x7818949F4C
	private void OnEnable();
	/*
	 *   uint uVar1;
	 *   undefined *puVar2;
	 *   undefined8 uVar3;
	 *   long lVar4;
	 *   void *extraout_x1;
	 *   long lVar5;
	 *   undefined8 *puVar6;
	 *   long lVar7;
	 *   long lVar8;
	 *
	 *   if ((bRam000000000754ab84 & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c4d20);
	 *     func_0x031fdc8c(PTR_DAT_070c4d28);
	 *     func_0x031fdc8c(PTR_DAT_070c4d30);
	 *     bRam000000000754ab84 = 1;
	 *     methodInfo = extraout_x1;
	 *   }
	 *   puVar2 = PTR_DAT_070c4d20;
	 *   if (this.ChatInputField != null) {
	 *     lVar8 = *(long *)((long)this.ChatInputField + 0x1a8);
	 *     uVar3 = func_0x031fdf24(*(undefined8 *)PTR_DAT_070c4d28,methodInfo);
	 *     func_0x048ad3a0(uVar3,this,*(undefined8 *)puVar2,0);
	 *     if (lVar8 != 0) {
	 *       uVar3 = func_0x048e8340(uVar3,*(undefined8 *)
	 *                                      (*(long *)(*(long *)(*(long *)PTR_DAT_070c4d30 + 0x20) + 0xc0)
	 *                                      + 0x10));
	 *       if (lVar8 == 0) {
	 *         IL2CPP.ThrowNullReferenceException();
	 *       }
	 *       lVar8 = *(long *)(lVar8 + 0x10);
	 *       if (lVar8 != 0) {
	 *         if ((bRam0000000007560144 & 1) == 0) {
	 *           func_0x031fdc8c(PTR_DAT_0714f990);
	 *           bRam0000000007560144 = 1;
	 *         }
	 *         lVar4 = *(long *)(lVar8 + 0x18);
	 *         if (lVar4 != 0) {
	 *           lVar5 = *(long *)(lVar4 + 0x10);
	 *           lVar7 = *(long *)PTR_DAT_0714f990;
	 *           *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;
	 *           if (lVar5 != 0) {
	 *             uVar1 = *(uint *)(lVar4 + 0x18);
	 *             if (uVar1 < *(uint *)(lVar5 + 0x18)) {
	 *               *(uint *)(lVar4 + 0x18) = uVar1 + 1;
	 *               puVar6 = (undefined8 *)(lVar5 + (long)(int)uVar1 * 8 + 0x20);
	 *               *puVar6 = uVar3;
	 *               func_0x031fdc38(puVar6,uVar3);
	 *             }
	 *             else {
	 *               func_0x03f2d704(lVar4,uVar3,
	 *                               *(undefined8 *)(*(long *)(*(long *)(lVar7 + 0x20) + 0xc0) + 0x70));
	 *             }
	 *             *(undefined1 *)(lVar8 + 0x28) = 1;
	 *             return;
	 *           }
	 *         }
	 *         IL2CPP.ThrowNullReferenceException();
	 *       }
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *   }
	 *   IL2CPP.ThrowNullReferenceException();
	 */
	// RVA: 0x325EFF0 VA: 0x7818949FF0
	private void OnDisable();
	/*
	 *   int iVar1;
	 *   uint uVar2;
	 *   undefined *puVar3;
	 *   undefined *puVar4;
	 *   undefined *puVar5;
	 *   undefined *puVar6;
	 *   undefined *puVar7;
	 *   void *pvVar8;
	 *   long *plVar9;
	 *   long *plVar10;
	 *   ulong uVar11;
	 *   undefined8 uVar12;
	 *   void *extraout_x1;
	 *   undefined8 uVar13;
	 *   long lVar14;
	 *   long lVar15;
	 *   int iVar16;
	 *   long lVar17;
	 *
	 *   if ((bRam000000000754ab85 & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c4d20);
	 *     func_0x031fdc8c(PTR_DAT_070c4d28);
	 *     func_0x031fdc8c(PTR_DAT_070c4d38);
	 *     bRam000000000754ab85 = 1;
	 *     methodInfo = extraout_x1;
	 *   }
	 *   puVar3 = PTR_DAT_070c4d20;
	 *   if (this.ChatInputField != null) {
	 *     lVar15 = *(long *)((long)this.ChatInputField + 0x1a8);
	 *     pvVar8 = (void *)func_0x031fdf24(*(undefined8 *)PTR_DAT_070c4d28,methodInfo);
	 *     func_0x048ad3a0(pvVar8,this,*(undefined8 *)puVar3,0);
	 *     if (lVar15 != 0) {
	 *       uVar13 = *(undefined8 *)PTR_DAT_070c4d38;
	 *       if (pvVar8 != null) {
	 *         uVar13 = *(undefined8 *)((long)pvVar8 + 0x20);
	 *         pvVar8 = System.Delegate.get_Method(pvVar8);
	 *         puVar4 = PTR_DAT_0714f9a0;
	 *         puVar3 = PTR_DAT_0714f998;
	 *         if (lVar15 != 0) {
	 *           lVar15 = *(long *)(lVar15 + 0x10);
	 *           if (lVar15 == 0) {
	 *             IL2CPP.ThrowNullReferenceException();
	 *           }
	 *           if ((bRam0000000007560145 & 1) == 0) {
	 *             func_0x031fdc8c(PTR_DAT_0714f9a8);
	 *             func_0x031fdc8c(PTR_DAT_0714f990);
	 *             func_0x031fdc8c(PTR_DAT_0714f9b0);
	 *             func_0x031fdc8c(PTR_DAT_0714f9a0);
	 *             func_0x031fdc8c(PTR_DAT_0714f9b8);
	 *             func_0x031fdc8c(PTR_DAT_070cae58);
	 *             func_0x031fdc8c(PTR_DAT_070cae60);
	 *             func_0x031fdc8c(PTR_DAT_0714f998);
	 *             func_0x031fdc8c(PTR_DAT_0714f9c0);
	 *             bRam0000000007560145 = 1;
	 *           }
	 *           plVar9 = (long *)func_0x031fdf24(*(undefined8 *)puVar3);
	 *           func_0x03f2ce9c(plVar9,*(undefined8 *)puVar4);
	 *           puVar7 = PTR_DAT_0714f9c0;
	 *           puVar6 = PTR_DAT_0714f9b0;
	 *           puVar5 = PTR_DAT_0714f9a8;
	 *           puVar4 = PTR_DAT_0714f990;
	 *           puVar3 = PTR_DAT_070cae60;
	 *           lVar17 = *(long *)(lVar15 + 0x18);
	 *           if (lVar17 != 0) {
	 *             iVar16 = 0;
	 *             while (iVar16 < *(int *)(lVar17 + 0x18)) {
	 *               plVar10 = (long *)func_0x03f2d434(lVar17,iVar16,*(undefined8 *)puVar3);
	 *               if (plVar10 == null) goto LAB_06997098;
	 *               uVar11 = (**(code **)(*plVar10 + 0x188))
	 *                                  (plVar10,uVar13,pvVar8,*(undefined8 *)(*plVar10 + 400));
	 *               if ((uVar11 & 1) != 0) {
	 *                 if ((*(long *)(lVar15 + 0x18) == 0) ||
	 *                    (uVar12 = func_0x03f2d434(*(long *)(lVar15 + 0x18),iVar16,*(undefined8 *)puVar3),
	 *                    plVar9 == null)) goto LAB_06997098;
	 *                 lVar17 = plVar9[2];
	 *                 lVar14 = *(long *)puVar4;
	 *                 *(int *)((long)plVar9 + 0x1c) = *(int *)((long)plVar9 + 0x1c) + 1;
	 *                 if (lVar17 == 0) goto LAB_06997098;
	 *                 uVar2 = *(uint *)(plVar9 + 3);
	 *                 if (uVar2 < *(uint *)(lVar17 + 0x18)) {
	 *                   *(uint *)(plVar9 + 3) = uVar2 + 1;
	 *                   *(undefined8 *)(lVar17 + (long)(int)uVar2 * 8 + 0x20) = uVar12;
	 *                   func_0x031fdc38();
	 *                 }
	 *                 else {
	 *                   func_0x03f2d704(plVar9,uVar12,
	 *                                   *(undefined8 *)(*(long *)(*(long *)(lVar14 + 0x20) + 0xc0) + 0x70)
	 *                                  );
	 *                 }
	 *               }
	 *               lVar17 = *(long *)(lVar15 + 0x18);
	 *               iVar16 = iVar16 + 1;
	 *               if (lVar17 == 0) goto LAB_06997098;
	 *             }
	 *             uVar13 = func_0x031fdf24(*(undefined8 *)puVar7);
	 *             if (plVar9 != null) {
	 *               func_0x043e7f38(uVar13,plVar9,*(undefined8 *)(*plVar9 + 0x210),0);
	 *               func_0x03f2ecfc(lVar17,uVar13,*(undefined8 *)puVar6);
	 *               if ((*(long *)(lVar15 + 0x10) != 0) && (*(long *)(lVar15 + 0x18) != 0)) {
	 *                 iVar16 = *(int *)(*(long *)(lVar15 + 0x10) + 0x18);
	 *                 iVar1 = *(int *)(*(long *)(lVar15 + 0x18) + 0x18);
	 *                 lVar17 = func_0x031fdf24(*(undefined8 *)PTR_DAT_0714f998);
	 *                 func_0x03f2cf14(lVar17,iVar1 + iVar16,*(undefined8 *)PTR_DAT_0714f9b8);
	 *                 if (lVar17 != 0) {
	 *                   func_0x03f2d914(lVar17,*(undefined8 *)(lVar15 + 0x10),*(undefined8 *)puVar5);
	 *                   func_0x03f2d914(lVar17,*(undefined8 *)(lVar15 + 0x18),*(undefined8 *)puVar5);
	 *                   *(long *)(lVar15 + 0x20) = lVar17;
	 *                   func_0x031fdc38((long *)(lVar15 + 0x20),lVar17);
	 *                   *(undefined1 *)(lVar15 + 0x28) = 0;
	 *                   return;
	 *                 }
	 *               }
	 *             }
	 *           }
	 * LAB_06997098:
	 *           IL2CPP.ThrowNullReferenceException();
	 *         }
	 *       }
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *   }
	 *   IL2CPP.ThrowNullReferenceException();
	 */
	// RVA: 0x325F094 VA: 0x781894A094
	private void AddToChatOutput(string newText);
	/*
	 *   undefined *puVar1;
	 *   undefined *puVar2;
	 *   undefined *puVar3;
	 *   bool bVar4;
	 *   void *pvVar5;
	 *   void *pvVar6;
	 *   ulong uVar7;
	 *   long *plVar8;
	 *   int iStack_4c;
	 *   undefined8 uStack_48;
	 *
	 *   if ((bRam000000000754ab86 & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_mscorlib_DateTime_6FC2128);
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     func_0x031fdc8c(PTR_DAT_070c0a80);
	 *     func_0x031fdc8c(PTR_DAT_070c4470);
	 *     func_0x031fdc8c(PTR_DAT_070c4d40);
	 *     func_0x031fdc8c(PTR_DAT_070c4d48);
	 *     func_0x031fdc8c(PTR_DAT_070c4d50);
	 *     func_0x031fdc8c(PTR_DAT_070c4d58);
	 *     bRam000000000754ab86 = 1;
	 *   }
	 *   puVar3 = typeinfo_ptr_mscorlib_DateTime_6FC2128;
	 *   puVar1 = PTR_DAT_070c0a80;
	 *   puVar2 = PTR_DAT_070c0840;
	 *   uStack_48 = 0;
	 *   iStack_4c = 0;
	 *   if (this.ChatInputField != null) {
	 *     TMPro.TMP_InputField.set_text(this.ChatInputField,(void *)**(undefined8 **)(*(long *)(PTR_DAT_070c0840 + 0x90) + 0xb8));
	 *     if (*(int *)(*(long *)puVar3 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     uStack_48 = System.DateTime.get_Now();
	 *     pvVar5 = (void *)func_0x031fdd78(*(undefined8 *)puVar1,8);
	 *     puVar1 = PTR_DAT_070c4d48;
	 *     if (pvVar5 != null) {
	 *       if (*(int *)((long)pvVar5 + 0x18) != 0) {
	 *         *(undefined8 *)((long)pvVar5 + 0x20) = *(undefined8 *)PTR_DAT_070c4d58;
	 *         func_0x031fdc38((undefined8 *)((long)pvVar5 + 0x20));
	 *         iStack_4c = System.DateTime.get_Hour(&uStack_48);
	 *         pvVar6 = System.Int32.ToString(&iStack_4c,*(void **)puVar1);
	 *         if ((*(uint *)((long)pvVar5 + 0x18) & 0xfffffffe) != 0) {
	 *           *(undefined8 *)((long)pvVar5 + 0x28) = pvVar6;
	 *           func_0x031fdc38((undefined8 *)((long)pvVar5 + 0x28),pvVar6);
	 *           puVar3 = PTR_DAT_070c4d50;
	 *           if (2 < *(uint *)((long)pvVar5 + 0x18)) {
	 *             *(undefined8 *)((long)pvVar5 + 0x30) = *(undefined8 *)PTR_DAT_070c4d50;
	 *             func_0x031fdc38((undefined8 *)((long)pvVar5 + 0x30));
	 *             iStack_4c = System.DateTime.get_Minute(&uStack_48);
	 *             pvVar6 = System.Int32.ToString(&iStack_4c,*(void **)puVar1);
	 *             if ((*(uint *)((long)pvVar5 + 0x18) & 0xfffffffc) != 0) {
	 *               *(undefined8 *)((long)pvVar5 + 0x38) = pvVar6;
	 *               func_0x031fdc38((undefined8 *)((long)pvVar5 + 0x38),pvVar6);
	 *               if (4 < *(uint *)((long)pvVar5 + 0x18)) {
	 *                 *(undefined8 *)((long)pvVar5 + 0x40) = *(undefined8 *)puVar3;
	 *                 func_0x031fdc38((undefined8 *)((long)pvVar5 + 0x40));
	 *                 iStack_4c = System.DateTime.get_Second(&uStack_48);
	 *                 pvVar6 = System.Int32.ToString(&iStack_4c,*(void **)puVar1);
	 *                 if (5 < *(uint *)((long)pvVar5 + 0x18)) {
	 *                   *(undefined8 *)((long)pvVar5 + 0x48) = pvVar6;
	 *                   func_0x031fdc38((undefined8 *)((long)pvVar5 + 0x48),pvVar6);
	 *                   if (6 < *(uint *)((long)pvVar5 + 0x18)) {
	 *                     *(undefined8 *)((long)pvVar5 + 0x50) = *(undefined8 *)PTR_DAT_070c4d40;
	 *                     func_0x031fdc38((undefined8 *)((long)pvVar5 + 0x50));
	 *                     puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *                     if ((*(uint *)((long)pvVar5 + 0x18) & 0xfffffff8) != 0) {
	 *                       *(undefined8 *)((long)pvVar5 + 0x58) = newText;
	 *                       func_0x031fdc38((undefined8 *)((long)pvVar5 + 0x58),newText);
	 *                       pvVar5 = System.String.Concat(pvVar5);
	 *                       pvVar6 = this.ChatDisplayOutput;
	 *                       if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *                         func_0x031fde08(*(long *)puVar1);
	 *                       }
	 *                       uVar7 = UnityEngine.Object.op_Inequality(pvVar6,null);
	 *                       if ((uVar7 & 1) != 0) {
	 *                         plVar8 = this.ChatDisplayOutput;
	 *                         if (plVar8 == null) goto LAB_0335f418;
	 *                         pvVar6 = (void *)(**(code **)(*plVar8 + 0x548))
	 *                                                    (plVar8,*(undefined8 *)(*plVar8 + 0x550));
	 *                         bVar4 = System.String.op_Equality(pvVar6,(void *)**(undefined8 **)
	 *                                                             (*(long *)(puVar2 + 0x90) + 0xb8));
	 *                         plVar8 = this.ChatDisplayOutput;
	 *                         if (bVar4) {
	 *                           if (plVar8 == null) goto LAB_0335f418;
	 *                         }
	 *                         else {
	 *                           if (plVar8 == null) goto LAB_0335f418;
	 *                           pvVar6 = (void *)(**(code **)(*plVar8 + 0x548))
	 *                                                      (plVar8,*(undefined8 *)(*plVar8 + 0x550));
	 *                           pvVar5 = System.String.Concat(pvVar6,*(void **)PTR_DAT_070c4470,pvVar5);
	 *                         }
	 *                         (**(code **)(*plVar8 + 0x558))
	 *                                   (plVar8,pvVar5,*(undefined8 *)(*plVar8 + 0x560));
	 *                       }
	 *                       if (this.ChatInputField != null) {
	 *                         TMPro.TMP_InputField.ActivateInputField(this.ChatInputField);
	 *                         if (this.ChatScrollbar != null) {
	 *                           UnityEngine.UI.Scrollbar.set_value(this.ChatScrollbar,0.0);
	 *                           return;
	 *                         }
	 *                       }
	 *                       goto LAB_0335f418;
	 *                     }
	 *                   }
	 *                 }
	 *               }
	 *             }
	 *           }
	 *         }
	 *       }
	 *       IL2CPP.ThrowIndexOutOfRangeException();
	 *     }
	 *   }
	 * LAB_0335f418:
	 *   IL2CPP.ThrowNullReferenceException();
	 */
	// RVA: 0x325F41C VA: 0x781894A41C
	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;
	 */
}
