// // cocos2d::ccpNormalize from 0x1001ae950 to 0x1001ae97c (44 bytes) // // 14 xrefs: // > cocos2d::CCDrawNode::drawSegmentEx @ 0x100042568 // > cocos2d::CCDrawNode::drawPolygon @ 0x100042a1c // > cocos2d::CCDrawNode::drawPolygon @ 0x100042a44 // > cocos2d::CCParticleSystem::update @ 0x100195964 // > cocos2d::CCParticleSystem::update @ 0x100195aa8 // > GJBaseGameLayer::triggerMoveCommand @ 0x1001ee8c0 // > GJBaseGameLayer::processDynamicObjectActions @ 0x1001f74cc // > GJBaseGameLayer::processAdvancedFollowAction @ 0x1001f9d70 // > GJBaseGameLayer::processAdvancedFollowAction @ 0x1001f9fac // > cocos2d::ccVertexLineToPolygon @ 0x1003ff080 // > cocos2d::ccVertexLineToPolygon @ 0x1003ff09c // > cocos2d::ccVertexLineToPolygon @ 0x1003ff108 // > cocos2d::ccVertexLineToPolygon @ 0x1003ff144 // > cocos2d::ccVertexLineToPolygon @ 0x1003ff164 // // 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 cocos2d::ccpNormalize(const cocos2d::CCPoint *a1) { float32x2_t *v1; // x8 __n128 v2; // q0 __n128 v3; // q1 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v2.n128_f32[0] = sqrtf((float)(a1->y * a1->y) + (float)(a1->x * a1->x)); if ( v2.n128_f32[0] == 0.0 ) { v2.n128_u32[0] = 1.0; v3.n128_u32[0] = 0; sub_100022980(v2, v3, v1); } else { result.x = sub_100022A24((float32x2_t *)a1, v1, (int32x2_t)v2.n128_u64[0]).f32[0]; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source