// // normalize from 0x5894e4 to 0x58957c (152 bytes) // // 1 xrefs: // > @ 0xb5e78 // // 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 *__usercall normalize@(cocos2d::CCPoint *a1@, cocos2d::CCPoint *a2@) { float y; // s1 float x; // s2 float v4; // s3 float v5; // s3 y = a1->y; x = a1->x; v4 = sqrtf((float)(y * y) + (float)(x * x)); if ( v4 >= 0.00000011921 ) v5 = 1.0 / v4; else v5 = 1000.0; a1->x = x * v5; a1->y = y * v5; cocos2d::CCPoint::CCPoint(a2, a1); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source