// // cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary from 0xd8b9c8 to 0xd8bb94 (460 bytes) // // 2 xrefs: // > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0xd8c324 // > @ 0xc75b8 // // 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:16 +0000 // __int64 __fastcall cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary( cocos2d::CCSpriteFrameCache *this, cocos2d::CCDictionary *a2) { __int64 v4; // x20 cocos2d::CCArray *v5; // x0 cocos2d::CCArray *v6; // x25 __int64 v7; // x21 __int64 i; // x22 size_t v9; // x0 size_t v10; // x20 __int64 v11; // x27 char *v12; // x3 __int64 v13; // x20 size_t v14; // x0 cocos2d::CCObject *v15; // x0 unsigned __int64 v17; // x0 cocos2d::CCArray *v18; // x23 char *v19; // x0 cocos2d::CCArray *v20; // [xsp+60h] [xbp+60h] BYREF size_t v21; // [xsp+68h] [xbp+68h] void *v22; // [xsp+70h] [xbp+70h] v20 = nullptr; v21 = 0; v22 = nullptr; std::string::__init((__int64 *)&v20, "frames", 6u); v4 = cocos2d::CCDictionary::objectForKey((__int64)a2, (__int64)&v20); v5 = (cocos2d::CCArray *)(unsigned __int8)v20; if ( ((unsigned __int8)v20 & 1) != 0 ) operator delete(v22); v6 = cocos2d::CCArray::create(v5); if ( v4 ) { v7 = *(_QWORD *)(v4 + 56); if ( v7 ) { for ( i = *(_QWORD *)(v7 + 288); ; i = *(_QWORD *)(i + 288) ) { v20 = nullptr; v21 = 0; v22 = nullptr; v9 = strlen((const char *)v7); v10 = v9; v11 = *((_QWORD *)this + 7); if ( v9 > 0x16 ) { v17 = (v9 + 16) & 0xFFFFFFFFFFFFFFF0LL; v18 = (cocos2d::CCArray *)(v17 | 1); v19 = (char *)operator new(v17); v20 = v18; v12 = v19; v22 = v19; v21 = v10; } else { LOBYTE(v20) = 2 * v9; v12 = (char *)&v20 + 1; if ( !v9 ) goto LABEL_8; } v12 = (char *)memcpy(v12, (const void *)v7, v10); LABEL_8: v12[v10] = 0; v13 = cocos2d::CCDictionary::objectForKey(v11, (__int64)&v20); if ( ((unsigned __int8)v20 & 1) != 0 ) operator delete(v22); if ( v13 && (v20 = nullptr, v21 = 0, v22 = nullptr, v14 = strlen((const char *)v7), std::string::__init((__int64 *)&v20, (void *)v7, v14), v15 = cocos2d::CCString::create(&v20), cocos2d::CCArray::addObject(v6, v15), ((unsigned __int8)v20 & 1) != 0) ) { operator delete(v22); if ( !i ) break; } else if ( !i ) { break; } v7 = i; } } } cocos2d::CCDictionary::removeObjectsForKeys(*((cocos2d::CCDictionary **)this + 7), v6); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source