// [TypeInfo RVA: 0x0]
public class DistanceBasedVolume : MonoBehaviour
{
	public UnityEngine.AudioSource audioSource; // 0x20
	public UnityEngine.Transform target; // 0x28
	public float minDistance; // 0x30
	public float maxDistance; // 0x34

	// RVA: 0x322E9EC VA: 0x78189199EC
	private void Update();
	/*
	 *   undefined *puVar1;
	 *   long lVar2;
	 *   ulong uVar3;
	 *   void *extraout_x1;
	 *   void *pvVar4;
	 *   float fVar5;
	 *   float fVar6;
	 *   float fVar7;
	 *   float fVar8;
	 *   UnityEngine_Vector3 UVar9;
	 *   UnityEngine_Vector3 UVar10;
	 *
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *   if ((bRam000000000754a928 & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     bRam000000000754a928 = 1;
	 *     methodInfo = extraout_x1;
	 *   }
	 *   lVar2 = *(long *)puVar1;
	 *   pvVar4 = this.audioSource;
	 *   if (*(int *)(lVar2 + 0xe4) == 0) {
	 *     func_0x031fde08(lVar2,methodInfo);
	 *   }
	 *   uVar3 = UnityEngine.Object.op_Implicit(pvVar4);
	 *   if ((uVar3 & 1) != 0) {
	 *     pvVar4 = this.target;
	 *     if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     uVar3 = UnityEngine.Object.op_Implicit(pvVar4);
	 *     if ((uVar3 & 1) != 0) {
	 *       if ((this.audioSource != null) &&
	 *          (pvVar4 = UnityEngine.Component.get_transform(this.audioSource), pvVar4 != null)) {
	 *         UVar9 = UnityEngine.Transform.get_position(pvVar4);
	 *         if (this.target != null) {
	 *           UVar10 = UnityEngine.Transform.get_position(this.target)
	 *           ;
	 *           if (cRam000000000754a7c9 == '\0') {
	 *             func_0x031fdc8c(typeinfo_ptr_mscorlib_Math_6FC0738);
	 *             cRam000000000754a7c9 = '\x01';
	 *           }
	 *           if (*(int *)(*(long *)typeinfo_ptr_mscorlib_Math_6FC0738 + 0xe4) == 0) {
	 *             func_0x031fde08();
	 *           }
	 *           fVar5 = this.minDistance;
	 *           if (fVar5 == this.maxDistance) {
	 *             fVar5 = 0.0;
	 *           }
	 *           else {
	 *             fVar6 = UVar9.x - UVar10.x;
	 *             fVar7 = UVar9.y - UVar10.y;
	 *             fVar8 = UVar9.z - UVar10.z;
	 *             fVar7 = (SQRT(fVar8 * fVar8 + fVar6 * fVar6 + fVar7 * fVar7) - fVar5) /
	 *                     (this.maxDistance - fVar5);
	 *             fVar6 = 1.0;
	 *             if (fVar7 <= 1.0) {
	 *               fVar6 = fVar7;
	 *             }
	 *             fVar5 = 0.0;
	 *             if (0.0 <= fVar7) {
	 *               fVar5 = fVar6;
	 *             }
	 *           }
	 *           pvVar4 = this.audioSource;
	 *           if (pvVar4 != null) {
	 *             if ((bRam000000000755d748 & 1) == 0) {
	 *               func_0x031fdc8c(PTR_DAT_0714e1b0,0);
	 *               bRam000000000755d748 = 1;
	 *             }
	 *             if (pvVar4 != null) {
	 *               lVar2 = *(long *)((long)pvVar4 + 0x10);
	 *               if (lVar2 == 0) {
	 *                 UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(pvVar4);
	 *               }
	 *               if (pcRam000000000755d7a0 == null) {
	 *                 pcRam000000000755d7a0 = (code *)func_0x031fdc50(&UNK_0136db23);
	 *               }
	 *               (*pcRam000000000755d7a0)(fVar5,lVar2);
	 *               return;
	 *             }
	 *             IL2CPP.ThrowNullReferenceException();
	 *           }
	 *         }
	 *       }
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *   }
	 *   return;
	 */
	// RVA: 0x322EB8C VA: 0x7818919B8C
	public void .ctor();
	/*
	 *   undefined4 uVar1;
	 *   undefined *puVar2;
	 *
	 *   uVar1 = _UNK_0134e1bc;
	 *   this.minDistance = (float)_UNK_0134e1b8;
	 *   puVar2 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *   this.maxDistance = (float)uVar1;
	 *   if ((bRam000000000755f76f & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8,0);
	 *     bRam000000000755f76f = 1;
	 *   }
	 *   if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   return;
	 */
}
