// // cocos2d::ccpNormalize from 0xd8fa7c to 0xd8fafc (128 bytes) // // 21 xrefs: // > HardStreak::updateStroke @ 0x959118 // > HardStreak::updateStroke @ 0x9592ac // > HardStreak::updateStroke @ 0x959784 // > GJBaseGameLayer::triggerMoveCommand @ 0x9be3dc // > GJBaseGameLayer::processDynamicObjectActions @ 0x9d86d4 // > GJBaseGameLayer::processAdvancedFollowAction @ 0x9eafcc // > GJBaseGameLayer::processAdvancedFollowAction @ 0x9eb110 // > TouchControlEditLayer::beginDeadzoneDrag @ 0xd04e5c // > cocos2d::CCLens3D::update @ 0xd2d85c // > sub_D4BE18 @ 0xd4bea0 // > cocos2d::CCDrawNode::drawPolygon @ 0xd4d330 // > cocos2d::CCDrawNode::drawPolygon @ 0xd4d358 // > cocos2d::CCParticleSystem::update @ 0xd6fbf8 // > cocos2d::CCParticleSystem::update @ 0xd70378 // > cocos2d::ccpAngle @ 0xd8ffe8 // > cocos2d::ccpAngle @ 0xd8fff8 // > cocos2d::ccVertexLineToPolygon @ 0xd91650 // > cocos2d::ccVertexLineToPolygon @ 0xd91740 // > cocos2d::ccVertexLineToPolygon @ 0xd9175c // > cocos2d::ccVertexLineToPolygon @ 0xd917a8 // > @ 0x819a0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:08:18 +0000 // float *__usercall cocos2d::ccpNormalize@(float *__return_ptr a1@, cocos2d *this@) { float v4; // s0 v4 = sqrtf((float)(*((float *)this + 1) * *((float *)this + 1)) + (float)(*(float *)this * *(float *)this)); if ( v4 == 0.0 ) cocos2d::CCPoint::CCPoint(a1, 1.0, 0.0); else cocos2d::CCPoint::operator/((float *)this, a1, v4); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source