// // CCAnimateFrameCache::addDict from 0x68eac4 to 0x68ed6c (680 bytes) // // 2 xrefs: // > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x68f344 // > @ 0xbf470 // // 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 12:50:34 +0000 // cocos2d::CCDictionary *__fastcall CCAnimateFrameCache::addDict( CCAnimateFrameCache *this, cocos2d::CCDictionary *a2, char *a3) { size_t v6; // x0 __int64 v7; // x21 cocos2d::CCDictionary *v8; // x26 unsigned int v9; // w24 cocos2d::CCArray *v10; // x25 cocos2d::CCString *v11; // x0 const char *CString; // x0 char *v13; // x20 size_t v14; // x0 cocos2d::CCDictionary *v15; // x21 cocos2d::CCArray *v16; // x0 __int64 v17; // x0 cocos2d::CCObject *v18; // x22 __int64 v19; // x28 size_t v20; // x0 unsigned int i; // w20 cocos2d::CCObject *Description; // x0 cocos2d::CCString *v23; // x0 const char *v24; // x0 size_t v25; // x0 cocos2d::CCDictionary *v26; // x1 SpriteDescription *v27; // x28 char *v30; // [xsp+68h] [xbp+68h] __int64 v31; // [xsp+70h] [xbp+70h] BYREF __int64 v32; // [xsp+78h] [xbp+78h] void *v33; // [xsp+80h] [xbp+80h] v31 = 0; v32 = 0; v33 = nullptr; v6 = strlen(a3); v7 = *((_QWORD *)this + 9); std::string::__init(&v31, a3, v6); cocos2d::CCDictionary::setObject(v7, a2); if ( (v31 & 1) != 0 ) operator delete(v33); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "animationContainer", 0x12u); v8 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(a2, &v31); if ( (v31 & 1) != 0 ) operator delete(v33); v9 = 0; v10 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v8); if ( (unsigned int)cocos2d::CCArray::count(v10) ) { do { v11 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v10, v9); CString = (const char *)cocos2d::CCString::getCString(v11); v31 = 0; v32 = 0; v13 = (char *)CString; v33 = nullptr; v14 = strlen(CString); std::string::__init(&v31, v13, v14); v15 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v8, &v31); v16 = (cocos2d::CCArray *)(unsigned __int8)v31; if ( (v31 & 1) != 0 ) operator delete(v33); v17 = cocos2d::CCArray::create(v16); v31 = 0; v18 = (cocos2d::CCObject *)v17; v32 = 0; v33 = nullptr; v19 = *((_QWORD *)this + 7); v20 = strlen(v13); std::string::__init(&v31, v13, v20); cocos2d::CCDictionary::setObject(v19, v18); if ( (v31 & 1) != 0 ) operator delete(v33); for ( i = 0; i < (unsigned int)cocos2d::CCDictionary::count(v15); ++i ) { v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"sprite_%i", (const char *)i); v24 = (const char *)cocos2d::CCString::getCString(v23); v31 = 0; v32 = 0; v33 = nullptr; v30 = (char *)v24; v25 = strlen(v24); std::string::__init(&v31, v30, v25); v27 = (SpriteDescription *)cocos2d::CCDictionary::objectForKey(v15, &v31); if ( (v31 & 1) != 0 ) operator delete(v33); Description = (cocos2d::CCObject *)SpriteDescription::createDescription(v27, v26); cocos2d::CCArray::addObject(v18, Description); } ++v9; } while ( v9 < (unsigned int)cocos2d::CCArray::count(v10) ); } return a2; }