// // cocos2d::CCAnimationCache::addAnimationsWithDictionary from 0xd859b4 to 0xd85c0c (600 bytes) // // 2 xrefs: // > cocos2d::CCAnimationCache::addAnimationsWithFile @ 0xd85c74 // > @ 0x66988 // // 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::addAnimationsWithDictionary( cocos2d::CCAnimationCache *this, cocos2d::CCDictionary *a2, const char *a3) { cocos2d::CCDictionary *v6; // x26 __int64 v7; // x20 cocos2d::CCString *v8; // x0 int v9; // w25 __int64 v10; // x19 unsigned int *v11; // x1 cocos2d::CCString **v12; // x19 cocos2d::CCFileUtils *v13; // x0 char *i; // x24 cocos2d::CCString *v16; // x23 __int64 v17; // x20 cocos2d::CCString *v18; // x0 __int64 (__fastcall *v19)(__int64, char *, const char *); // x23 char *CString; // x0 cocos2d::CCSpriteFrameCache *v21; // x0 cocos2d::CCSpriteFrameCache *v22; // x20 char *v23; // x0 char *v24; // [xsp+68h] [xbp+68h] __int64 v25; // [xsp+70h] [xbp+70h] BYREF __int64 v26; // [xsp+78h] [xbp+78h] void *v27; // [xsp+80h] [xbp+80h] v25 = 0; v26 = 0; v27 = nullptr; std::string::__init(&v25, "animations", 0xAu); v6 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey((__int64)a2, (__int64)&v25); if ( (v25 & 1) != 0 ) operator delete(v27); if ( v6 ) { v25 = 0; v26 = 0; v27 = nullptr; std::string::__init(&v25, "properties", 0xAu); v7 = cocos2d::CCDictionary::objectForKey((__int64)a2, (__int64)&v25); if ( (v25 & 1) != 0 ) { operator delete(v27); if ( !v7 ) goto LABEL_22; } else if ( !v7 ) { goto LABEL_22; } v25 = 0; v26 = 0; v27 = nullptr; std::string::__init(&v25, "format", 6u); v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v7, (__int64)&v25); v9 = cocos2d::CCString::intValue(v8); if ( (v25 & 1) != 0 ) operator delete(v27); v25 = 0; v26 = 0; v27 = nullptr; std::string::__init(&v25, "spritesheets", 0xCu); v10 = cocos2d::CCDictionary::objectForKey(v7, (__int64)&v25); if ( (v25 & 1) != 0 ) { operator delete(v27); if ( !v10 ) goto LABEL_12; } else if ( !v10 ) { goto LABEL_12; } v11 = *(unsigned int **)(v10 + 56); if ( *v11 ) { v12 = *((cocos2d::CCString ***)v11 + 2); v13 = (cocos2d::CCFileUtils *)(8LL * *v11 - 8); for ( i = (char *)v13 + (_QWORD)v12; i >= (char *)v12; ++v12 ) { v16 = *v12; if ( !*v12 ) break; if ( a3 ) { v17 = cocos2d::CCFileUtils::sharedFileUtils(v13); v18 = v16; v19 = *(__int64 (__fastcall **)(__int64, char *, const char *))(*(_QWORD *)v17 + 80LL); CString = cocos2d::CCString::getCString(v18); v24 = (char *)v19(v17, CString, a3); v21 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)v24); v13 = (cocos2d::CCFileUtils *)cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v21, v24); } else { v22 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v13); v23 = cocos2d::CCString::getCString(v16); v13 = (cocos2d::CCFileUtils *)cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v22, v23); } } } LABEL_12: if ( v9 != 1 ) { if ( v9 == 2 ) cocos2d::CCAnimationCache::parseVersion2(this, v6); return _stack_chk_guard; } LABEL_22: cocos2d::CCAnimationCache::parseVersion1(this, v6); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source