//
// getDistanceSquared from 0x589584 to 0x5895a8 (36 bytes)
//
// 2 xrefs:
// > getDistance @ 0x5895f8
// > ??> @ 0x4b948
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float __fastcall getDistanceSquared(float *a1, float *a2)
{
float v2; // s1
v2 = a2[1] - a1[1];
return (float)(v2 * v2) + (float)((float)(*a2 - *a1) * (float)(*a2 - *a1));
}