namespace Photon.VR.Player
{

	// [TypeInfo RVA: 0x0]
	public class PhotonVRPlayerName : MonoBehaviour
	{
		public float Offset; // 0x20
		public UnityEngine.Transform Head; // 0x28

		// RVA: 0x328D624 VA: 0x7818978624
		private void Update();
		/*
		 *   undefined1 auVar1 [16];
		 *   undefined *puVar2;
		 *   void *pvVar3;
		 *   long lVar4;
		 *   void *this_00;
		 *   float fVar5;
		 *   float fVar6;
		 *   float fVar7;
		 *   UnityEngine_Vector3 UVar8;
		 *   UnityEngine_Vector3 UVar9;
		 *   UnityEngine_Vector3 forward;
		 *   UnityEngine_Vector4 UVar10;
		 *   UnityEngine_Vector4 UVar11;
		 *   UnityEngine_Vector4 a;
		 *
		 *   if ((bRam000000000754ad13 & 1) == 0) {
		 *     func_0x031fdc8c(typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800);
		 *     bRam000000000754ad13 = 1;
		 *   }
		 *   pvVar3 = UnityEngine.Component.get_transform(this);
		 *   if (this.Head != null) {
		 *     UVar8 = UnityEngine.Transform.get_position(this.Head);
		 *     puVar2 = typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800;
		 *     if (pvVar3 != null) {
		 *       UVar9.y = UVar8.y + this.Offset;
		 *       UVar9.z = UVar8.z + 0.0;
		 *       UVar9.x = UVar8.x + 0.0;
		 *       UnityEngine.Transform.set_position(pvVar3,UVar9);
		 *       if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
		 *         func_0x031fde08();
		 *       }
		 *       if (cRam000000000754a95e == '\0') {
		 *         func_0x031fdc8c(typeinfo_ptr_Assembly_CSharp_PhotonVRManager_6FC2800);
		 *         cRam000000000754a95e = '\x01';
		 *       }
		 *       lVar4 = *(long *)puVar2;
		 *       if (*(int *)(lVar4 + 0xe4) == 0) {
		 *         func_0x031fde08();
		 *         lVar4 = *(long *)puVar2;
		 *       }
		 *       if ((**(long **)(lVar4 + 0xb8) != 0) &&
		 *          (pvVar3 = *(void **)(**(long **)(lVar4 + 0xb8) + 0x40), pvVar3 != null)) {
		 *         UVar8 = UnityEngine.Transform.get_position(pvVar3);
		 *         pvVar3 = UnityEngine.Component.get_transform(this);
		 *         if (pvVar3 != null) {
		 *           UVar9 = UnityEngine.Transform.get_position(pvVar3);
		 *           fVar7 = UVar8.x - UVar9.x;
		 *           fVar5 = UVar8.y - UVar9.y;
		 *           fVar6 = UVar8.z - UVar9.z;
		 *           UVar8.y = fVar5;
		 *           UVar8.x = fVar7;
		 *           UVar8.z = fVar6;
		 *           UVar10 = UnityEngine.Quaternion.LookRotation(UVar8);
		 *           forward.y = fVar5;
		 *           forward.x = fVar7;
		 *           forward.z = fVar6;
		 *           UVar11 = UnityEngine.Quaternion.LookRotation(forward);
		 *           pvVar3 = UnityEngine.Component.get_transform(this);
		 *           this_00 = UnityEngine.Component.get_transform(this);
		 *           if (this_00 != null) {
		 *             a = UnityEngine.Transform.get_rotation(this_00);
		 *             fVar5 = UnityEngine.Time.get_deltaTime();
		 *             auVar1._4_8_ = (ulong)(uint)UVar11.w << 0x20;
		 *             auVar1._0_4_ = UVar10.y;
		 *             auVar1._12_4_ = 0;
		 *             UnityEngine.Quaternion.Slerp(a,(UnityEngine_Vector4)(auVar1 << 0x20),fVar5 * 10.0);
		 *             if (pvVar3 != null) {
		 *               if ((bRam000000000755ff1d & 1) == 0) {
		 *                 func_0x031fdc8c(PTR_DAT_0714f6d0,0);
		 *                 bRam000000000755ff1d = 1;
		 *               }
		 *               if (pvVar3 != null) {
		 *                 lVar4 = *(long *)((long)pvVar3 + 0x10);
		 *                 if (lVar4 == 0) {
		 *                   UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(pvVar3);
		 *                 }
		 *                 if (pcRam000000000755ff70 == null) {
		 *                   pcRam000000000755ff70 = (code *)func_0x031fdc50(&UNK_013598d0);
		 *                 }
		 *                 (*pcRam000000000755ff70)(lVar4,&stack0xffffffffffffffd0);
		 *                 return;
		 *               }
		 *               IL2CPP.ThrowNullReferenceException();
		 *             }
		 *           }
		 *         }
		 *       }
		 *     }
		 *   }
		 *   IL2CPP.ThrowNullReferenceException();
		 */
		// RVA: 0x328D810 VA: 0x7818978810
		public void .ctor();
		/*
		 *   undefined *puVar1;
		 *
		 *   this.Offset = 0.17;
		 *   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;
		 */
	}
}
