// [TypeInfo RVA: 0x0]
public class Jumpscare : MonoBehaviour
{
	private UnityEngine.Collider m_Collider; // 0x20
	public UnityEngine.Transform gorillaPlayer; // 0x28
	public UnityEngine.Transform respawnPoint; // 0x30
	public System.Collections.Generic.List<UnityEngine.GameObject> mapsToDisable; // 0x38
	public float delayBeforeReEnabling; // 0x40
	public float timeBeforeTeleport; // 0x44
	public UnityEngine.GameObject jumpscareObject; // 0x48
	public float jumpscareDuration; // 0x50
	public bool isJumpscaring; // 0x54
	public UnityEngine.AudioSource Hitsound; // 0x58

	// RVA: 0x323C43C VA: 0x781892743C
	private void Start();
	/*
	 *   undefined *puVar1;
	 *   void *pvVar2;
	 *   void **ppvVar3;
	 *
	 *   puVar1 = PTR_DAT_070c07e0;
	 *   if ((bRam000000000754a9b9 & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c07e0);
	 *     bRam000000000754a9b9 = 1;
	 *   }
	 *   pvVar2 = (void *)func_0x0373df50(this,*(undefined8 *)puVar1);
	 *   ppvVar3 = &this.m_Collider;
	 *   *ppvVar3 = pvVar2;
	 *   if (iRam00000000077785f0 != 0) {
	 *     func_0x032ed0c0(1L << ((ulong)ppvVar3 >> 0xc & 0x3f),
	 *                     ((ulong)ppvVar3 >> 0x12 & 0x7fff) * 8 + 0x75ac5c8);
	 *   }
	 *   return;
	 */
	// RVA: 0x323C494 VA: 0x7818927494
	private void OnTriggerEnter(UnityEngine.Collider other);
	/*
	 *   bool bVar1;
	 *   ushort uVar2;
	 *   void *pvVar3;
	 *   undefined8 uVar4;
	 *   void *extraout_x1;
	 *   void *extraout_x1_00;
	 *   long lVar5;
	 *   float fVar6;
	 *   UnityEngine_Vector3 value;
	 *   undefined8 uStack_60;
	 *   undefined8 uStack_58;
	 *   ulong uStack_50;
	 *   ulong uStack_48;
	 *   undefined8 uStack_40;
	 *   undefined8 uStack_38;
	 *
	 *   if ((bRam000000000754a9ba & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c0a78);
	 *     func_0x031fdc8c(PTR_DAT_070c07b8);
	 *     func_0x031fdc8c(PTR_DAT_070c3598);
	 *     bRam000000000754a9ba = 1;
	 *   }
	 *   if ((other != null) &&
	 *      (pvVar3 = UnityEngine.Component.get_gameObject(other),
	 *      pvVar3 != null)) {
	 *     bVar1 = UnityEngine.GameObject.CompareTag(pvVar3,*(void **)PTR_DAT_070c07b8);
	 *     pvVar3 = extraout_x1;
	 *     if (!bVar1) {
	 *       pvVar3 = UnityEngine.Component.get_gameObject(other);
	 *       if (pvVar3 == null) goto LAB_0333c5f4;
	 *       bVar1 = UnityEngine.GameObject.CompareTag(pvVar3,*(void **)PTR_DAT_070c0a78);
	 *       pvVar3 = extraout_x1_00;
	 *       if (!bVar1) {
	 *         return;
	 *       }
	 *     }
	 *     pvVar3 = Jumpscare.TeleportPlayer(this);
	 *     UnityEngine.MonoBehaviour.StartCoroutine(this,pvVar3);
	 *     if (this.isJumpscaring == false) {
	 *       return;
	 *     }
	 *     pvVar3 = this.m_Collider;
	 *     if (pvVar3 != null) {
	 *       bVar1 = UnityEngine.Collider.get_enabled(pvVar3);
	 *       UnityEngine.Collider.set_enabled(pvVar3,(bool)((bVar1 ^ 0xffU) & 1));
	 *       this.isJumpscaring = false;
	 *       if (this.Hitsound != null) {
	 *         UnityEngine.AudioSource.Play(this.Hitsound);
	 *         if (this.jumpscareObject != null) {
	 *           UnityEngine.GameObject.SetActive(this.jumpscareObject,true);
	 *           if (this.respawnPoint != null) {
	 *             pvVar3 = this.gorillaPlayer;
	 *             value = UnityEngine.Transform.get_position(this.respawnPoint);
	 *             if (pvVar3 != null) {
	 *               UnityEngine.Transform.set_position(pvVar3,value);
	 *               fVar6 = this.jumpscareDuration;
	 *               pvVar3 = *(void **)PTR_DAT_070c3598;
	 *               if ((bRam000000000755f8f2 & 1) == 0) {
	 *                 func_0x031fdc8c(PTR_DAT_0714f590,pvVar3,0);
	 *                 func_0x031fdc8c(PTR_DAT_0714d7c0);
	 *                 func_0x031fdc8c(PTR_DAT_070dc338);
	 *                 func_0x031fdc8c(PTR_DAT_0711a028);
	 *                 bRam000000000755f8f2 = 1;
	 *               }
	 *               uStack_50 = 0;
	 *               uStack_48 = 0;
	 *               uStack_60 = 0;
	 *               uStack_58 = 0;
	 *               if (this == null) {
	 *                 UnityEngine.Bindings.ThrowHelper.ThrowArgumentNullException(null,*(void **)PTR_DAT_0711a028);
	 *                 IL2CPP.ThrowNullReferenceException();
	 *               }
	 *               lVar5 = *(long *)&this.field_0x10;
	 *               if (lVar5 == 0) {
	 *                 UnityEngine.Bindings.ThrowHelper.ThrowArgumentNullException(this,*(void **)PTR_DAT_0711a028);
	 *               }
	 *               if (pvVar3 == null) {
	 *                 uStack_60 = 0;
	 *                 uStack_58 = 0;
	 *               }
	 *               else if (*(int *)((long)pvVar3 + 0x10) == 0) {
	 *                 pvVar3 = System.UIntPtr.op_Explicit(1);
	 *                 uVar4 = System.UIntPtr.op_Explicit(pvVar3);
	 *                 uStack_40 = 0;
	 *                 uStack_38 = 0;
	 *                 UnityEngine.Bindings.ManagedSpanWrapper..ctor(&uStack_40,uVar4,0);
	 *                 uStack_58 = uStack_38;
	 *                 uStack_60 = uStack_40;
	 *               }
	 *               else {
	 *                 if (cRam0000000007550941 == '\0') {
	 *                   func_0x031fdc8c(PTR_DAT_070cc218);
	 *                   cRam0000000007550941 = '\x01';
	 *                 }
	 *                 uVar2 = System.String.GetRawStringData(pvVar3);
	 *                 uStack_50 = (ulong)uVar2;
	 *                 uStack_48 = (ulong)*(uint *)((long)pvVar3 + 0x10);
	 *                 uVar4 = func_0x04604eb0(&uStack_50,*(undefined8 *)PTR_DAT_0714d7c0);
	 *                 UnityEngine.Bindings.ManagedSpanWrapper..ctor(&uStack_60,uVar4,uStack_48 & 0xffffffff);
	 *               }
	 *               if (pcRam000000000755f940 == null) {
	 *                 pcRam000000000755f940 = (code *)func_0x031fdc50(&UNK_01360479);
	 *               }
	 *               (*pcRam000000000755f940)(fVar6,0,lVar5,&uStack_60);
	 *               return;
	 *             }
	 *           }
	 *         }
	 *       }
	 *     }
	 *   }
	 * LAB_0333c5f4:
	 *   IL2CPP.ThrowNullReferenceException();
	 */
	// RVA: 0x323C5F8 VA: 0x78189275F8
	private System.Collections.IEnumerator TeleportPlayer();
	/*
	 *   undefined *puVar1;
	 *   void *this_00;
	 *   void *extraout_x1;
	 *
	 *   puVar1 = PTR_DAT_070c35a0;
	 *   if ((bRam000000000754a9bb & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c35a0);
	 *     bRam000000000754a9bb = 1;
	 *     methodInfo = extraout_x1;
	 *   }
	 *   this_00 = (void *)func_0x031fdf24(*(undefined8 *)puVar1,methodInfo);
	 *   System.Object..ctor(this_00);
	 *   *(undefined4 *)((long)this_00 + 0x10) = 0;
	 *   *(undefined8 *)((long)this_00 + 0x20) = this;
	 *   func_0x031fdc38((undefined8 *)((long)this_00 + 0x20),this);
	 *   return this_00;
	 */
	// RVA: 0x323C68C VA: 0x781892768C
	private void DisableJumpscare();
	/*
	 *   byte bVar1;
	 *   bool bVar2;
	 *   void *this_00;
	 *   long lVar3;
	 *
	 *   if (this.jumpscareObject != null) {
	 *     UnityEngine.GameObject.SetActive(this.jumpscareObject,false);
	 *     this_00 = this.m_Collider;
	 *     this.isJumpscaring = true;
	 *     if (this_00 != null) {
	 *       bVar2 = UnityEngine.Collider.get_enabled(this_00);
	 *       bVar1 = (bVar2 ^ 0xffU) & 1;
	 *       if ((bRam00000000075619c1 & 1) == 0) {
	 *         func_0x031fdc8c(PTR_DAT_071514d8,bVar1,0);
	 *         bRam00000000075619c1 = 1;
	 *       }
	 *       if (this_00 != null) {
	 *         lVar3 = *(long *)((long)this_00 + 0x10);
	 *         if (lVar3 == 0) {
	 *           UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(this_00);
	 *         }
	 *         if (pcRam00000000075619d8 == null) {
	 *           pcRam00000000075619d8 = (code *)func_0x031fdc50(&UNK_0135303a);
	 *         }
	 *         (*pcRam00000000075619d8)(lVar3,bVar1);
	 *         return;
	 *       }
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *   }
	 *   IL2CPP.ThrowNullReferenceException();
	 */
	// RVA: 0x323C6E8 VA: 0x78189276E8
	public void .ctor();
	/*
	 *   undefined *puVar1;
	 *
	 *   this.isJumpscaring = 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;
	 */
}
