// // cocos2d::CCAnimationCache::parseVersion2 from 0x7f0384 to 0x7f05c0 (572 bytes) // // 1 xrefs: // > cocos2d::CCAnimationCache::addAnimationsWithDictionary @ 0x7f06a2 // // 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 // cocos2d::CCSpriteFrameCache *__fastcall cocos2d::CCAnimationCache::parseVersion2( cocos2d::CCAnimationCache *this, cocos2d::CCDictionary *a2) { cocos2d::CCSpriteFrameCache *result; // r0 int v4; // r6 int v5; // r7 int v6; // r9 int v7; // r2 int v8; // r3 int v9; // r2 int v10; // r3 cocos2d::CCString *v11; // r0 cocos2d::CCArray *v12; // r5 cocos2d::CCArray *v13; // r0 unsigned int v14; // r1 cocos2d::CCArray *v15; // r11 _DWORD *v16; // r3 int v17; // r2 int v18; // r3 cocos2d::CCString *v19; // r0 int v20; // r5 cocos2d::CCAnimation *v21; // r4 unsigned int v22; // r3 int *v23; // r8 int v24; // r10 int v25; // t1 cocos2d::CCAnimationCache *v26; // r0 cocos2d::CCAnimationCache *v27; // r0 int v28; // r3 int v29; // r3 int v30; // r2 int v31; // r3 cocos2d::CCString *v32; // r0 cocos2d::CCObject *v33; // r3 int v34; // r2 int v35; // r3 cocos2d::CCString *v36; // r0 cocos2d::CCObject *v37; // r5 cocos2d::CCAnimationFrame *v38; // r4 cocos2d::CCString *v39; // [sp+4h] [bp-48h] cocos2d::CCSpriteFrameCache *v40; // [sp+8h] [bp-44h] char v41; // [sp+Ch] [bp-40h] int *v42; // [sp+10h] [bp-3Ch] const char *CString; // [sp+14h] [bp-38h] char *v44; // [sp+14h] [bp-38h] cocos2d::CCObject *v45; // [sp+34h] [bp-18h] int v46; // [sp+38h] [bp-14h] BYREF int v47; // [sp+3Ch] [bp-10h] int v48; // [sp+40h] [bp-Ch] result = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(this); v40 = result; if ( a2 ) { v4 = *((_DWORD *)a2 + 13); if ( v4 ) v5 = *(_DWORD *)(v4 + 272); else v5 = 0; while ( v4 ) { v6 = *(_DWORD *)(v4 + 260); v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "loops", 5u); v39 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v6, (int)&v46, v7, v8); std::string::~string((int)&v46); v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "restoreOriginalFrame", 0x14u); v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v6, (int)&v46, v9, v10); v41 = cocos2d::CCString::boolValue(v11); std::string::~string((int)&v46); v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "frames", 6u); v12 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v6, (int)&v46); result = (cocos2d::CCSpriteFrameCache *)std::string::~string((int)&v46); if ( v12 ) { v13 = (cocos2d::CCArray *)cocos2d::CCArray::count(v12); v15 = cocos2d::CCArray::createWithCapacity(v13, v14); cocos2d::CCObject::retain((int)v15); v16 = *((_DWORD **)v12 + 13); if ( *v16 ) { v23 = (int *)v16[3]; v42 = &v23[*v16 - 1]; while ( v23 <= v42 ) { v25 = *v23++; v24 = v25; if ( !v25 ) break; v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "spriteframe", 0xBu); v32 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v24, (int)&v46, v30, v31); CString = cocos2d::CCString::getCString(v32); std::string::~string((int)&v46); v33 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v40, CString); if ( v33 ) { v45 = v33; v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "delayUnits", 0xAu); v36 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v24, (int)&v46, v34, v35); v44 = (char *)cocos2d::CCString::floatValue(v36); std::string::~string((int)&v46); v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "notification", 0xCu); v37 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v24, (int)&v46); std::string::~string((int)&v46); v38 = (cocos2d::CCAnimationFrame *)operator new(0x40u); cocos2d::CCAnimationFrame::CCAnimationFrame(v38); cocos2d::CCAnimationFrame::initWithSpriteFrame(v38, v45, (int)v44, v37); cocos2d::CCArray::addObject(v15, v38); cocos2d::CCObject::release(v38); } } } v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "delayPerUnit", 0xCu); v19 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v6, (int)&v46, v17, v18); v20 = cocos2d::CCString::floatValue(v19); std::string::~string((int)&v46); v21 = (cocos2d::CCAnimation *)operator new(0x4Cu); cocos2d::CCAnimation::CCAnimation(v21); if ( cocos2d::CCString::length(v39) ) v22 = cocos2d::CCString::intValue(v39); else v22 = 1; cocos2d::CCAnimation::initWithAnimationFrames(v21, v15, *(float *)&v20, v22); v26 = (cocos2d::CCAnimationCache *)cocos2d::CCObject::release(v15); *((_BYTE *)v21 + 68) = v41; v27 = (cocos2d::CCAnimationCache *)cocos2d::CCAnimationCache::sharedAnimationCache(v26); cocos2d::CCAnimationCache::addAnimation(v27, v21, (const char *)v4, v28); result = (cocos2d::CCSpriteFrameCache *)cocos2d::CCObject::release(v21); } if ( v5 ) v29 = *(_DWORD *)(v5 + 272); else v29 = 0; v4 = v5; v5 = v29; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source