//
// normalize from 0x3d4d50 to 0x3d4db4 (100 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:46:43 +0000
//
cocos2d::CCPoint *__fastcall normalize(cocos2d::CCPoint *a1, float *a2)
{
float v4; // s14
v4 = sqrtf((float)(a2[1] * a2[1]) + (float)(*a2 * *a2));
if ( v4 < 0.00000011921 )
v4 = 0.001;
*a2 = *a2 * (float)(1.0 / v4);
a2[1] = a2[1] * (float)(1.0 / v4);
cocos2d::CCPoint::CCPoint(a1, (const cocos2d::CCPoint *)a2);
return a1;
}