//
// normalize from 0x2f0aec to 0x2f0b50 (100 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCPoint *__fastcall normalize(cocos2d::CCPoint *a1, cocos2d::CCPoint *a2)
{
float v4; // s14
v4 = sqrtf((float)(a2->y * a2->y) + (float)(a2->x * a2->x));
if ( v4 < 0.00000011921 )
v4 = 0.001;
a2->x = a2->x * (float)(1.0 / v4);
a2->y = a2->y * (float)(1.0 / v4);
cocos2d::CCPoint::CCPoint(a1, a2);
return a1;
}