// // cocos2d::CCSpriteFrameCache::removeSpriteFramesFromTexture from 0x7f4128 to 0x7f422c (260 bytes) // // 0 xrefs: // // 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:07 +0000 // cocos2d::CCString *__fastcall cocos2d::CCSpriteFrameCache::removeSpriteFramesFromTexture( cocos2d::CCString **this, cocos2d::CCTexture2D *a2) { cocos2d::CCArray *v4; // r0 int v5; // r2 int v6; // r3 cocos2d::CCArray *v7; // r9 int v9; // r4 int v10; // r7 size_t v11; // r0 char *v12; // r1 int v13; // r3 size_t v14; // r0 size_t v15; // r0 cocos2d::CCObject *v16; // r0 cocos2d::CCSpriteFrame *v17; // [sp+8h] [bp-2Ch] cocos2d::CCSpriteFrame *v18; // [sp+8h] [bp-2Ch] int v19; // [sp+Ch] [bp-28h] int v20[2]; // [sp+14h] [bp-20h] BYREF char *v21; // [sp+1Ch] [bp-18h] int v22; // [sp+20h] [bp-14h] BYREF int v23; // [sp+24h] [bp-10h] int v24; // [sp+28h] [bp-Ch] v4 = cocos2d::CCArray::create((cocos2d::CCArray *)this); v6 = (int)*(this + 13); v7 = v4; if ( v6 ) { v9 = *(_DWORD *)(v6 + 52); if ( v9 ) v10 = *(_DWORD *)(v9 + 272); else v10 = 0; while ( v9 ) { v20[0] = 0; v20[1] = 0; v21 = nullptr; v11 = strlen((const char *)v9); std::string::__init(v20, (const void *)v9, v11); v13 = (int)*(this + 13); if ( (v20[0] & 1) == 0 ) v12 = (char *)v20 + 1; v22 = 0; if ( (v20[0] & 1) != 0 ) v12 = v21; v19 = v13; v23 = 0; v24 = 0; v17 = (cocos2d::CCSpriteFrame *)v12; v14 = strlen(v12); std::string::__init(&v22, v17, v14); v18 = (cocos2d::CCSpriteFrame *)cocos2d::CCDictionary::objectForKey(v19, (int)&v22); std::string::~string((int)&v22); if ( v18 && a2 == (cocos2d::CCTexture2D *)cocos2d::CCSpriteFrame::getTexture(v18) ) { v22 = 0; v23 = 0; v24 = 0; v15 = strlen((const char *)v9); std::string::__init(&v22, (const void *)v9, v15); v16 = cocos2d::CCString::create((int)&v22); cocos2d::CCArray::addObject(v7, v16); std::string::~string((int)&v22); } std::string::~string((int)v20); if ( v10 ) v6 = *(_DWORD *)(v10 + 272); else v6 = 0; v9 = v10; v10 = v6; } } return cocos2d::CCDictionary::removeObjectsForKeys(*(this + 13), v7, v5, v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source