//
// cocos2d::CCPoint::getDistanceSq from 0x1800d1840 to 0x1800d186b (43 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ba410
//
// 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 cocos2d::CCPoint::getDistanceSq(cocos2d::CCPoint *this, struct cocos2d::CCPoint *a2)
{
float *v2; // rax
float v4; // [rsp+40h] [rbp+18h] BYREF
v2 = cocos2d::CCSize::operator-((float *)this, &v4, (float *)a2);
return (float)(*v2 * *v2) + (float)(v2[1] * v2[1]);
}