// // cocos2d::CCAnimationCache::parseVersion1 from 0xd853ac to 0xd855d8 (556 bytes) // // 2 xrefs: // > cocos2d::CCAnimationCache::addAnimationsWithDictionary @ 0xd85bc4 // > @ 0xfb1b8 // // 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:12 +0000 // __int64 __fastcall cocos2d::CCAnimationCache::parseVersion1(cocos2d::CCAnimationCache *this, cocos2d::CCDictionary *a2) { cocos2d::CCSpriteFrameCache *v2; // x25 __int64 v3; // x26 __int64 i; // x23 __int64 v5; // x20 cocos2d::CCArray *v6; // x24 cocos2d::CCString *v7; // x0 float v8; // s8 cocos2d::CCArray *v9; // x0 cocos2d::CCArray *v10; // x22 unsigned int *v11; // x1 cocos2d::CCString **v12; // x27 __int64 v13; // x0 char *v14; // x21 char *CString; // x0 __int64 v16; // x1 cocos2d::CCAnimationFrame *v17; // x20 cocos2d::CCAnimationCache *v18; // x0 cocos2d::CCObject *v21; // [xsp+78h] [xbp+78h] cocos2d::CCObject *v22; // [xsp+78h] [xbp+78h] __int64 v23; // [xsp+80h] [xbp+80h] BYREF __int64 v24; // [xsp+88h] [xbp+88h] void *v25; // [xsp+90h] [xbp+90h] v2 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(_stack_chk_guard); if ( a2 ) { v3 = *((_QWORD *)a2 + 7); if ( v3 ) { for ( i = *(_QWORD *)(v3 + 288); ; i = *(_QWORD *)(i + 288) ) { v5 = *(_QWORD *)(v3 + 264); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "frames", 6u); v6 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v5, (__int64)&v23); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "delay", 5u); v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v5, (__int64)&v23); v8 = cocos2d::CCString::floatValue(v7); if ( (v23 & 1) != 0 ) operator delete(v25); if ( !v6 ) goto LABEL_16; v9 = (cocos2d::CCArray *)cocos2d::CCArray::count(v6); v10 = cocos2d::CCArray::createWithCapacity(v9); cocos2d::CCObject::retain((__int64)v10); v11 = *((unsigned int **)v6 + 7); if ( *v11 ) { v12 = *((cocos2d::CCString ***)v11 + 2); v13 = 8LL * *v11 - 8; v14 = (char *)v12 + v13; if ( v12 <= (cocos2d::CCString **)((char *)v12 + v13) ) { do { if ( !*v12 ) break; CString = cocos2d::CCString::getCString(*v12); v16 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v2, CString); if ( v16 ) { v21 = (cocos2d::CCObject *)v16; v17 = (cocos2d::CCAnimationFrame *)operator new(0x50u); cocos2d::CCAnimationFrame::CCAnimationFrame(v17); cocos2d::CCAnimationFrame::initWithSpriteFrame((__int64)v17, v21, nullptr, 1.0); cocos2d::CCArray::addObject(v10, v17); cocos2d::CCObject::release(v17); } ++v12; } while ( v14 >= (char *)v12 ); } } if ( (unsigned int)cocos2d::CCArray::count(v10) ) { cocos2d::CCArray::count(v10); cocos2d::CCArray::count(v6); v22 = cocos2d::CCAnimation::create(v10, (cocos2d::CCArray *)((char *)&dword_0 + 1), v8); v18 = (cocos2d::CCAnimationCache *)cocos2d::CCAnimationCache::sharedAnimationCache(v22); cocos2d::CCAnimationCache::addAnimation(v18, v22, (const char *)v3); cocos2d::CCObject::release(v10); if ( !i ) return _stack_chk_guard; } else { LABEL_16: if ( !i ) return _stack_chk_guard; } v3 = i; } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source