//
// cocos2d::CCPoint::normalize from 0x7c5d3a to 0x7c5d82 (72 bytes)
//
// 2 xrefs:
// > cocos2d::CCPoint::getAngle @ 0x7c5e8a
// > cocos2d::CCPoint::getAngle @ 0x7c5e92
//
// 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 12:00:25 +0000
//
cocos2d::CCPoint *__fastcall cocos2d::CCPoint::normalize(cocos2d::CCPoint *this, float *a2)
{
float v4; // s15
v4 = sqrtf((float)(a2[1] * a2[1]) + (float)(*a2 * *a2));
if ( v4 == 0.0 )
cocos2d::CCPoint::CCPoint((float *)this, 1.0, 0.0);
else
cocos2d::CCPoint::operator/((float *)this, a2, v4);
return this;
}