namespace Photon.Voice.Unity.Demos
{

	// [TypeInfo RVA: 0x0]
	public class SidebarToggle : MonoBehaviour
	{
		private UnityEngine.UI.Button sidebarButton; // 0x20
		private UnityEngine.RectTransform panelsHolder; // 0x28
		private float sidebarWidth; // 0x30
		private bool sidebarOpen; // 0x34

		// RVA: 0x328DBE0 VA: 0x7818978BE0
		private void Awake();
		/*
		 *   undefined *puVar1;
		 *   void *pvVar2;
		 *   void *methodInfo_00;
		 *   long lVar3;
		 *   void *this_00;
		 *   float fVar4;
		 *   UnityEngine_Vector3 UVar5;
		 *   UnityEngine_Vector3 UVar6;
		 *   UnityEngine_Vector2 value;
		 *   float fStack_2c;
		 *   float fStack_28;
		 *   float fStack_24;
		 *
		 *   if ((bRam000000000754ad19 & 1) == 0) {
		 *     func_0x031fdc8c(PTR_DAT_070c5e60);
		 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_UnityAction_6FC5940);
		 *     bRam000000000754ad19 = 1;
		 *   }
		 *   if ((this.sidebarButton != null) &&
		 *      (pvVar2 = *(void **)((long)this.sidebarButton + 0x100), pvVar2 != null)) {
		 *     UnityEngine.Events.UnityEventBase.RemoveAllListeners(pvVar2);
		 *     puVar1 = PTR_DAT_070c5e60;
		 *     if (this.sidebarButton != null) {
		 *       this_00 = *(void **)((long)this.sidebarButton + 0x100);
		 *       pvVar2 = (void *)func_0x031fdf24(*(undefined8 *)
		 *                                         typeinfo_ptr_UnityEngine_CoreModule_UnityAction_6FC5940);
		 *       UnityEngine.Events.UnityAction..ctor(pvVar2,this,*(void **)puVar1);
		 *       if (this_00 != null) {
		 *         UnityEngine.Events.UnityEvent.AddListener(this_00,pvVar2);
		 *         pvVar2 = this.panelsHolder;
		 *         if (this.sidebarOpen == false) {
		 *           fVar4 = 0.0;
		 *         }
		 *         else {
		 *           fVar4 = this.sidebarWidth;
		 *         }
		 *         if (pvVar2 == null) {
		 *           IL2CPP.ThrowNullReferenceException();
		 *         }
		 *         UVar5 = UnityEngine.RectTransform.get_anchoredPosition3D(pvVar2);
		 *         value.y = UVar5.y;
		 *         UVar5 = UnityEngine.RectTransform.get_anchoredPosition3D(pvVar2);
		 *         value.x = fVar4;
		 *         UnityEngine.RectTransform.set_anchoredPosition(pvVar2,value);
		 *         UVar6 = UnityEngine.Transform.get_localPosition(pvVar2);
		 *         fStack_28 = UVar6.y;
		 *         fStack_2c = UVar6.x;
		 *         fStack_24 = UVar5.z;
		 *         if ((bRam000000000755ff1b & 1) == 0) {
		 *           func_0x031fdc8c(PTR_DAT_0714f6d0);
		 *           bRam000000000755ff1b = 1;
		 *         }
		 *         if (pvVar2 != null) {
		 *           lVar3 = *(long *)((long)pvVar2 + 0x10);
		 *           if (lVar3 == 0) {
		 *             UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(pvVar2);
		 *           }
		 *           if (pcRam000000000755ff60 == null) {
		 *             pcRam000000000755ff60 = (code *)func_0x031fdc50(&UNK_01380df7);
		 *           }
		 *           (*pcRam000000000755ff60)(lVar3,&fStack_2c);
		 *           return;
		 *         }
		 *         IL2CPP.ThrowNullReferenceException();
		 *       }
		 *     }
		 *   }
		 *   IL2CPP.ThrowNullReferenceException();
		 */
		// RVA: 0x328DCBC VA: 0x7818978CBC
		private void ToggleSidebar();
		/*
		 *   bool bVar1;
		 *   void *methodInfo_00;
		 *   void *this_00;
		 *   long lVar2;
		 *   float fVar3;
		 *   UnityEngine_Vector3 UVar4;
		 *   UnityEngine_Vector3 UVar5;
		 *   UnityEngine_Vector2 value;
		 *   float fStack_2c;
		 *   float fStack_28;
		 *   float fStack_24;
		 *
		 *   fVar3 = 0.0;
		 *   bVar1 = this.sidebarOpen;
		 *   this_00 = this.panelsHolder;
		 *   this.sidebarOpen = (bool)(bVar1 ^ 1);
		 *   if (bVar1 == false) {
		 *     fVar3 = this.sidebarWidth;
		 *   }
		 *   if (this_00 == null) {
		 *     IL2CPP.ThrowNullReferenceException();
		 *   }
		 *   UVar4 = UnityEngine.RectTransform.get_anchoredPosition3D(this_00)
		 *   ;
		 *   value.y = UVar4.y;
		 *   UVar4 = UnityEngine.RectTransform.get_anchoredPosition3D(this_00)
		 *   ;
		 *   value.x = fVar3;
		 *   UnityEngine.RectTransform.set_anchoredPosition(this_00,value);
		 *   UVar5 = UnityEngine.Transform.get_localPosition(this_00);
		 *   fStack_28 = UVar5.y;
		 *   fStack_2c = UVar5.x;
		 *   fStack_24 = UVar4.z;
		 *   if ((bRam000000000755ff1b & 1) == 0) {
		 *     func_0x031fdc8c(PTR_DAT_0714f6d0);
		 *     bRam000000000755ff1b = 1;
		 *   }
		 *   if (this_00 != null) {
		 *     lVar2 = *(long *)((long)this_00 + 0x10);
		 *     if (lVar2 == 0) {
		 *       UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(this_00);
		 *     }
		 *     if (pcRam000000000755ff60 == null) {
		 *       pcRam000000000755ff60 = (code *)func_0x031fdc50(&UNK_01380df7);
		 *     }
		 *     (*pcRam000000000755ff60)(lVar2,&fStack_2c);
		 *     return;
		 *   }
		 *   IL2CPP.ThrowNullReferenceException();
		 */
		// RVA: 0x328DCA4 VA: 0x7818978CA4
		private void ToggleSidebar(bool open);
		/*
		 *   void *this_00;
		 *   void *methodInfo_00;
		 *   long lVar1;
		 *   float fVar2;
		 *   UnityEngine_Vector3 UVar3;
		 *   UnityEngine_Vector3 UVar4;
		 *   UnityEngine_Vector2 value;
		 *   float fStack_2c;
		 *   float fStack_28;
		 *   float fStack_24;
		 *
		 *   fVar2 = 0.0;
		 *   this_00 = this.panelsHolder;
		 *   if (open) {
		 *     fVar2 = this.sidebarWidth;
		 *   }
		 *   if (this_00 == null) {
		 *     IL2CPP.ThrowNullReferenceException();
		 *   }
		 *   UVar3 = UnityEngine.RectTransform.get_anchoredPosition3D(this_00)
		 *   ;
		 *   value.y = UVar3.y;
		 *   UVar3 = UnityEngine.RectTransform.get_anchoredPosition3D(this_00)
		 *   ;
		 *   value.x = fVar2;
		 *   UnityEngine.RectTransform.set_anchoredPosition(this_00,value);
		 *   UVar4 = UnityEngine.Transform.get_localPosition(this_00);
		 *   fStack_28 = UVar4.y;
		 *   fStack_2c = UVar4.x;
		 *   fStack_24 = UVar3.z;
		 *   if ((bRam000000000755ff1b & 1) == 0) {
		 *     func_0x031fdc8c(PTR_DAT_0714f6d0);
		 *     bRam000000000755ff1b = 1;
		 *   }
		 *   if (this_00 != null) {
		 *     lVar1 = *(long *)((long)this_00 + 0x10);
		 *     if (lVar1 == 0) {
		 *       UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(this_00);
		 *     }
		 *     if (pcRam000000000755ff60 == null) {
		 *       pcRam000000000755ff60 = (code *)func_0x031fdc50(&UNK_01380df7);
		 *     }
		 *     (*pcRam000000000755ff60)(lVar1,&fStack_2c);
		 *     return;
		 *   }
		 *   IL2CPP.ThrowNullReferenceException();
		 */
		// RVA: 0x328DD2C VA: 0x7818978D2C
		public void .ctor();
		/*
		 *   undefined *puVar1;
		 *
		 *   this.sidebarWidth = 300.0;
		 *   this.sidebarOpen = 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;
		 */
	}
}
