// [TypeInfo RVA: 0x0]
public class FlashlightTogglePhoton : MonoBehaviourPun
{
	public UnityEngine.InputSystem.InputAction toggleFlashlightAction; // 0x28
	public UnityEngine.Light flashlight; // 0x30
	public UnityEngine.AudioSource toggleSound; // 0x38
	private bool flashlightOn; // 0x40

	// RVA: 0x321337C VA: 0x78188FE37C
	private void OnEnable();
	/*
	 *   undefined *puVar1;
	 *   undefined *puVar2;
	 *   int iVar3;
	 *   undefined8 uVar4;
	 *   long lVar5;
	 *   ulong uVar6;
	 *   long lVar7;
	 *   undefined8 uVar8;
	 *   void *pvVar9;
	 *   undefined8 uVar10;
	 *   undefined8 uVar11;
	 *   undefined8 uStack_50;
	 *   undefined8 uStack_48;
	 *   undefined8 uStack_40;
	 *
	 *   if ((bRam000000000754a830 & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c0cf0);
	 *     func_0x031fdc8c(PTR_DAT_070c1cc0);
	 *     bRam000000000754a830 = 1;
	 *   }
	 *   puVar2 = PTR_DAT_070c1cc0;
	 *   puVar1 = PTR_DAT_070c0cf0;
	 *   if (this.toggleFlashlightAction == null) {
	 *     return;
	 *   }
	 *   UnityEngine.InputSystem.InputAction.Enable(this.toggleFlashlightAction);
	 *   pvVar9 = this.toggleFlashlightAction;
	 *   uVar4 = func_0x031fdf24(*(undefined8 *)puVar1);
	 *   func_0x04d1b004(uVar4,this,*(undefined8 *)puVar2,0);
	 *   puVar1 = PTR_DAT_0712b8a0;
	 *   if (pvVar9 == null) {
	 *     IL2CPP.ThrowNullReferenceException();
	 *   }
	 *   if ((bRam000000000755945f & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_0712b8a0,uVar4,0);
	 *     bRam000000000755945f = 1;
	 *   }
	 *   lVar7 = *(long *)puVar1;
	 *   if (*(char *)((long)pvVar9 + 0x170) == '\0') {
	 *     lVar5 = *(long *)(lVar7 + 0x20);
	 *     uVar11 = *(undefined8 *)((long)pvVar9 + 0x180);
	 *     uVar10 = *(undefined8 *)((long)pvVar9 + 0x178);
	 *     uVar8 = *(undefined8 *)((long)pvVar9 + 0x188);
	 *     if ((*(byte *)(lVar5 + 0x135) & 1) == 0) {
	 *       lVar5 = func_0x03237224();
	 *     }
	 *     uStack_50 = uVar10;
	 *     uStack_48 = uVar11;
	 *     uStack_40 = uVar8;
	 *     uVar6 = func_0x038304cc(&uStack_50,uVar4,*(undefined8 *)(*(long *)(lVar5 + 0xc0) + 0x30));
	 *     if ((uVar6 & 1) != 0) {
	 *       return;
	 *     }
	 *     lVar7 = *(long *)(lVar7 + 0x20);
	 *     if ((*(ushort *)(lVar7 + 0x135) & 1) == 0) {
	 *       lVar7 = func_0x03237224();
	 *     }
	 *     lVar5 = *(long *)(lVar7 + 0xc0);
	 *     lVar7 = (long)pvVar9 + 0x178;
	 *     uVar8 = 4;
	 *   }
	 *   else {
	 *     lVar5 = *(long *)(lVar7 + 0x20);
	 *     uVar11 = *(undefined8 *)((long)pvVar9 + 0x198);
	 *     uVar10 = *(undefined8 *)((long)pvVar9 + 400);
	 *     uVar8 = *(undefined8 *)((long)pvVar9 + 0x1a0);
	 *     if ((*(byte *)(lVar5 + 0x135) & 1) == 0) {
	 *       lVar5 = func_0x03237224();
	 *     }
	 *     uStack_50 = uVar10;
	 *     uStack_48 = uVar11;
	 *     uStack_40 = uVar8;
	 *     uVar6 = func_0x038304cc(&uStack_50,uVar4,*(undefined8 *)(*(long *)(lVar5 + 0xc0) + 0x30));
	 *     if ((uVar6 & 1) != 0) {
	 *       return;
	 *     }
	 *     lVar5 = *(long *)(lVar7 + 0x20);
	 *     if ((*(ushort *)(lVar5 + 0x135) & 1) == 0) {
	 *       lVar5 = func_0x03237224();
	 *     }
	 *     iVar3 = func_0x03be9114((long)pvVar9 + 0x1a8,uVar4,
	 *                             *(undefined8 *)(*(long *)(lVar5 + 0xc0) + 0x38));
	 *     if (iVar3 != -1) {
	 *       lVar5 = *(long *)(lVar7 + 0x20);
	 *       if ((*(ushort *)(lVar5 + 0x135) & 1) == 0) {
	 *         lVar5 = func_0x03237224();
	 *       }
	 *       func_0x03be9c70((long)pvVar9 + 0x1a8,iVar3,*(undefined8 *)(*(long *)(lVar5 + 0xc0) + 0x40));
	 *     }
	 *     lVar7 = *(long *)(lVar7 + 0x20);
	 *     if ((*(ushort *)(lVar7 + 0x135) & 1) == 0) {
	 *       lVar7 = func_0x03237224();
	 *     }
	 *     lVar5 = *(long *)(lVar7 + 0xc0);
	 *     lVar7 = (long)pvVar9 + 400;
	 *     uVar8 = 10;
	 *   }
	 *   func_0x03be930c(lVar7,uVar4,uVar8,*(undefined8 *)(lVar5 + 0x48));
	 *   return;
	 */
	// RVA: 0x321342C VA: 0x78188FE42C
	private void OnDisable();
	/*
	 *   long lVar1;
	 *   undefined *puVar2;
	 *   void *pvVar3;
	 *   long lVar4;
	 *   void *this_00;
	 *   void *extraout_x1;
	 *   void *pvVar5;
	 *   char acStack_7c [68];
	 *   long lStack_38;
	 *
	 *   if ((bRam000000000754a831 & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c0cf0);
	 *     func_0x031fdc8c(PTR_DAT_070c1cc0);
	 *     bRam000000000754a831 = 1;
	 *     methodInfo = extraout_x1;
	 *   }
	 *   puVar2 = PTR_DAT_070c1cc0;
	 *   pvVar5 = this.toggleFlashlightAction;
	 *   if (pvVar5 == null) {
	 *     return;
	 *   }
	 *   pvVar3 = (void *)func_0x031fdf24(*(undefined8 *)PTR_DAT_070c0cf0,methodInfo);
	 *   func_0x04d1b004(pvVar3,this,*(undefined8 *)puVar2,0);
	 *   UnityEngine.InputSystem.InputAction.remove_performed(pvVar5,pvVar3);
	 *   puVar2 = typeinfo_ptr_Unity_InputSystem_InputAction_6FF85C8;
	 *   pvVar5 = this.toggleFlashlightAction;
	 *   if (pvVar5 == null) {
	 *     IL2CPP.ThrowNullReferenceException();
	 *   }
	 *   lVar1 = tpidr_el0;
	 *   lStack_38 = *(long *)(lVar1 + 0x28);
	 *   if ((bRam0000000007559464 & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_Unity_InputSystem_InputAction_6FF85C8,0);
	 *     bRam0000000007559464 = 1;
	 *   }
	 *   lVar4 = *(long *)puVar2;
	 *   if (*(int *)(lVar4 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *     lVar4 = *(long *)puVar2;
	 *   }
	 *   pvVar3 = *(void **)(*(long *)(lVar4 + 0xb8) + 8);
	 *   if (pvVar3 != null) {
	 *     ProfilerUnsafeUtility.BeginSample(pvVar3);
	 *   }
	 *   UnityEngine.InputSystem.InputAction.get_currentState(acStack_7c);
	 *   if (acStack_7c[0] != '\0') {
	 *     if (*(long *)((long)pvVar5 + 200) == 0) {
	 *       if (*(long *)(lVar1 + 0x28) == lStack_38) {
	 *         IL2CPP.ThrowNullReferenceException();
	 *       }
	 *       goto LAB_062c427c;
	 *     }
	 *     this_00 = *(void **)(*(long *)((long)pvVar5 + 200) + 0x60);
	 *     if (this_00 == null) {
	 *       if (*(long *)(lVar1 + 0x28) == lStack_38) {
	 *         IL2CPP.ThrowNullReferenceException();
	 *       }
	 *       goto LAB_062c427c;
	 *     }
	 *     UnityEngine.InputSystem.InputActionState.DisableSingleAction(this_00,pvVar5);
	 *   }
	 *   if (pvVar3 != null) {
	 *     ProfilerUnsafeUtility.EndSample(pvVar3);
	 *   }
	 *   if (*(long *)(lVar1 + 0x28) == lStack_38) {
	 *     return;
	 *   }
	 * LAB_062c427c:
	 *   noreturn_helper_6bb39f0();
	 */
	// RVA: 0x32134D0 VA: 0x78188FE4D0
	private void Start();
	/*
	 *   bool bVar1;
	 *   undefined *puVar2;
	 *   ulong uVar3;
	 *   void *extraout_x1;
	 *   void *pvVar4;
	 *   long lVar5;
	 *
	 *   puVar2 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *   if ((bRam000000000754a832 & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     bRam000000000754a832 = 1;
	 *     methodInfo = extraout_x1;
	 *   }
	 *   pvVar4 = this.flashlight;
	 *   if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *     func_0x031fde08(*(long *)puVar2,methodInfo);
	 *   }
	 *   uVar3 = UnityEngine.Object.op_Inequality(pvVar4,null);
	 *   if ((uVar3 & 1) == 0) {
	 *     return;
	 *   }
	 *   pvVar4 = this.flashlight;
	 *   if (pvVar4 == null) {
	 *     IL2CPP.ThrowNullReferenceException();
	 *   }
	 *   bVar1 = this.flashlightOn;
	 *   if ((bRam000000000755f745 & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_0714f3a0,bVar1,0);
	 *     bRam000000000755f745 = 1;
	 *   }
	 *   if (pvVar4 != null) {
	 *     lVar5 = *(long *)((long)pvVar4 + 0x10);
	 *     if (lVar5 == 0) {
	 *       UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(pvVar4);
	 *     }
	 *     if (pcRam000000000755f750 == null) {
	 *       pcRam000000000755f750 = (code *)func_0x031fdc50(&UNK_0137c3e0);
	 *     }
	 *     (*pcRam000000000755f750)(lVar5,bVar1 & 1);
	 *     return;
	 *   }
	 *   IL2CPP.ThrowNullReferenceException();
	 */
	// RVA: 0x3213558 VA: 0x78188FE558
	private void OnTogglePerformed(UnityEngine.InputSystem.InputAction.CallbackContext ctx);
	/*
	 *   byte bVar1;
	 *   undefined *puVar2;
	 *   void *pvVar3;
	 *   ulong uVar4;
	 *   long *parameters;
	 *   long lVar5;
	 *   long lVar6;
	 *   undefined8 uVar7;
	 *   undefined1 auStack_24 [4];
	 *
	 *   if ((bRam000000000754a833 & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c0a10);
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     func_0x031fdc8c(PTR_DAT_070c1cc8);
	 *     bRam000000000754a833 = 1;
	 *   }
	 *   pvVar3 = MonoBehaviourPun.get_photonView(param_1);
	 *   if (pvVar3 != null) {
	 *     if (*(char *)((long)pvVar3 + 0x68) == '\0') {
	 *       return;
	 *     }
	 *     bVar1 = *(byte *)((long)param_1 + 0x40);
	 *     *(byte *)((long)param_1 + 0x40) = bVar1 ^ 1;
	 *     puVar2 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *     if (*(void **)((long)param_1 + 0x30) != null) {
	 *       UnityEngine.InputSystem.OnScreen.OnScreenStick.Behaviour.set_enabled(*(void **)((long)param_1 + 0x30),bVar1 == 0);
	 *       uVar7 = *(undefined8 *)((long)param_1 + 0x38);
	 *       if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *         func_0x031fde08();
	 *       }
	 *       uVar4 = UnityEngine.Object.op_Inequality(uVar7,null);
	 *       if ((uVar4 & 1) != 0) {
	 *         if (*(void **)((long)param_1 + 0x38) == null) goto LAB_033136d0;
	 *         UnityEngine.AudioSource.Play(*(void **)((long)param_1 + 0x38));
	 *       }
	 *       puVar2 = PTR_DAT_070c0a10;
	 *       pvVar3 = MonoBehaviourPun.get_photonView(param_1);
	 *       parameters = (long *)func_0x031fdd78(*(undefined8 *)puVar2,1);
	 *       auStack_24[0] = *(undefined1 *)((long)param_1 + 0x40);
	 *       lVar5 = func_0x031fde10(*(undefined8 *)(PTR_DAT_070c0840 + 0x28),auStack_24);
	 *       if (parameters != null) {
	 *         if ((lVar5 != 0) &&
	 *            (lVar6 = func_0x031fde0c(lVar5,*(undefined8 *)(*parameters + 0x40)), lVar6 == 0)) {
	 *           uVar7 = func_0x031fdf58();
	 *           IL2CPP.ThrowManagedException();
	 *         }
	 *         if ((int)parameters[3] == 0) {
	 *           IL2CPP.ThrowIndexOutOfRangeException();
	 *         }
	 *         parameters[4] = lVar5;
	 *         func_0x031fdc38(parameters + 4,lVar5);
	 *         if (pvVar3 != null) {
	 *           Photon.Pun.PhotonView.RPC(pvVar3,*(void **)PTR_DAT_070c1cc8,4,parameters);
	 *           return;
	 *         }
	 *       }
	 *     }
	 *   }
	 * LAB_033136d0:
	 *   IL2CPP.ThrowNullReferenceException();
	 */
	// RVA: 0x32136E4 VA: 0x78188FE6E4
	private void RPC_ToggleFlashlight(bool newState);
	/*
	 *   undefined *puVar1;
	 *   long lVar2;
	 *   ulong uVar3;
	 *   void *pvVar4;
	 *
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *   if ((bRam000000000754a834 & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     bRam000000000754a834 = 1;
	 *   }
	 *   lVar2 = *(long *)puVar1;
	 *   pvVar4 = this.flashlight;
	 *   this.flashlightOn = newState;
	 *   if (*(int *)(lVar2 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   uVar3 = UnityEngine.Object.op_Inequality(pvVar4,null);
	 *   if ((uVar3 & 1) != 0) {
	 *     if (this.flashlight == null) goto LAB_033137b4;
	 *     UnityEngine.InputSystem.OnScreen.OnScreenStick.Behaviour.set_enabled(this.flashlight,this.flashlightOn);
	 *   }
	 *   pvVar4 = this.toggleSound;
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   uVar3 = UnityEngine.Object.op_Inequality(pvVar4,null);
	 *   if ((uVar3 & 1) == 0) {
	 *     return;
	 *   }
	 *   pvVar4 = this.toggleSound;
	 *   if (pvVar4 != null) {
	 *     if ((bRam000000000755d742 & 1) == 0) {
	 *       func_0x031fdc8c(PTR_DAT_0714e1b0);
	 *       func_0x031fdc8c(PTR_DAT_070c6e98);
	 *       bRam000000000755d742 = 1;
	 *     }
	 *     if (pvVar4 != null) {
	 *       lVar2 = *(long *)((long)pvVar4 + 0x10);
	 *       if (lVar2 == 0) {
	 *         UnityEngine.Bindings.ThrowHelper.ThrowArgumentNullException(pvVar4,*(void **)PTR_DAT_070c6e98);
	 *       }
	 *       if (pcRam000000000755d770 == null) {
	 *         pcRam000000000755d770 = (code *)func_0x031fdc50(&UNK_0138b07d);
	 *       }
	 *       (*pcRam000000000755d770)(lVar2,0);
	 *       return;
	 *     }
	 *     UnityEngine.Bindings.ThrowHelper.ThrowArgumentNullException(null,*(void **)PTR_DAT_070c6e98);
	 *     IL2CPP.ThrowNullReferenceException();
	 *   }
	 * LAB_033137b4:
	 *   IL2CPP.ThrowNullReferenceException();
	 */
	// RVA: 0x32137B8 VA: 0x78188FE7B8
	public void .ctor();
	/*
	 *   undefined *puVar1;
	 *
	 *   this.flashlightOn = 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;
	 */
}
