// // cocos2d::CCAnimation::initWithSpriteFrames from 0x7efdcc to 0x7efe60 (148 bytes) // // 2 xrefs: // > cocos2d::CCAnimation::init @ 0x7efe64 // > cocos2d::CCAnimation::createWithSpriteFrames @ 0x7eff26 // // 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:01:03 +0000 // int __fastcall cocos2d::CCAnimation::initWithSpriteFrames(cocos2d::CCAnimation *this, cocos2d::CCArray *a2, float a3) { cocos2d::CCArray *v5; // r0 cocos2d::CCArray *v6; // r5 _DWORD *v7; // r0 _DWORD *v8; // r2 cocos2d::CCObject **v9; // r6 cocos2d::CCObject **v10; // r5 cocos2d::CCObject *v11; // r8 cocos2d::CCObject *v12; // t1 cocos2d::CCAnimationFrame *v13; // r7 *((_DWORD *)this + 18) = 1; *((float *)this + 14) = a3; v5 = cocos2d::CCArray::create(this); v6 = v5; if ( *((cocos2d::CCArray **)this + 16) != v5 ) { if ( v5 ) cocos2d::CCObject::retain((int)v5); v7 = *((_DWORD **)this + 16); if ( v7 ) cocos2d::CCObject::release(v7); *((_DWORD *)this + 16) = v6; } if ( a2 ) { v8 = *((_DWORD **)a2 + 13); if ( *v8 ) { v9 = (cocos2d::CCObject **)v8[3]; v10 = &v9[*v8] + 0x3FFFFFFF; while ( v9 <= v10 ) { v12 = *v9++; v11 = v12; if ( !v12 ) break; v13 = (cocos2d::CCAnimationFrame *)operator new(0x40u); cocos2d::CCAnimationFrame::CCAnimationFrame(v13); cocos2d::CCAnimationFrame::initWithSpriteFrame(v13, v11, 1065353216, nullptr); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 16), v13); cocos2d::CCObject::release(v13); *((float *)this + 13) = *((float *)this + 13) + 1.0; } } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source