// // cocos2d::CCFollow::initWithTarget from 0xd25d7c to 0xd25f10 (404 bytes) // // 2 xrefs: // > cocos2d::CCFollow::create @ 0xd25f80 // > @ 0x81718 // // 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:07:14 +0000 // __int64 __fastcall cocos2d::CCFollow::initWithTarget( cocos2d::CCFollow *this, cocos2d::CCNode *a2, const cocos2d::CCRect *a3) { int v5; // w0 cocos2d::CCDirector *v6; // x0 cocos2d::CCDirector *v7; // x0 float v8; // s5 float v9; // s0 float v10; // s4 float v11; // s2 bool v12; // cc float v13; // s1 float v14; // s3 float v15; // s2 float v16; // s0 __int64 v19; // [xsp+58h] [xbp+58h] BYREF _BYTE v20[8]; // [xsp+60h] [xbp+60h] BYREF cocos2d::CCObject::retain(a2); *((_QWORD *)this + 10) = a2; v5 = cocos2d::CCRect::equals(a3, (const cocos2d::CCRect *)&unk_155FC80); *((_BYTE *)this + 89) = 0; v6 = (cocos2d::CCDirector *)(v5 ^ 1u); *((_BYTE *)this + 88) = (_BYTE)v6; v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(&v19, v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, *(float *)&v19, *((float *)&v19 + 1)); cocos2d::CCPoint::operator=((char *)this + 100, v20); cocos2d::CCPoint::operator*((char *)this + 100, 0.5); cocos2d::CCPoint::operator=((char *)this + 92, v20); if ( *((_BYTE *)this + 88) ) { v8 = *((float *)this + 26); v9 = -(float)((float)(*(float *)a3 + *((float *)a3 + 2)) - *((float *)this + 25)); *((float *)this + 27) = v9; v10 = *(float *)a3; v11 = -*(float *)a3; *((float *)this + 28) = v11; v12 = v9 <= v11; v13 = -*((float *)a3 + 1); *((float *)this + 29) = v13; v14 = (float)(*((float *)a3 + 1) + *((float *)a3 + 3)) - v8; v15 = -v14; *((float *)this + 30) = -v14; if ( !v12 ) { v16 = (float)(v9 - v10) * 0.5; *((float *)this + 27) = v16; *((float *)this + 28) = v16; } if ( v13 < v15 ) { v15 = (float)(v13 - v14) * 0.5; v13 = v15; *((float *)this + 30) = v15; *((float *)this + 29) = v15; } if ( v15 == v13 && *((float *)this + 27) == *((float *)this + 28) ) *((_BYTE *)this + 89) = 1; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source