// // cocos2d::CCTextureCache::removeUnusedTextures from 0xda548c to 0xda55dc (336 bytes) // // 1 xrefs: // > @ 0xdb448 // // 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:32 +0000 // __int64 __fastcall cocos2d::CCTextureCache::removeUnusedTextures(cocos2d::CCTextureCache *this) { __int64 v2; // x0 __int64 v3; // x21 __int64 v4; // x19 _QWORD *v5; // x0 _QWORD *v6; // x1 _QWORD *v7; // x19 _QWORD *v9; // x0 _QWORD *v10; // x1 _QWORD *v11; // x19 _QWORD *v12; // [xsp+40h] [xbp+40h] BYREF void *v13; // [xsp+48h] [xbp+48h] __int64 v14; // [xsp+50h] [xbp+50h] if ( (unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 7)) ) { v2 = *((_QWORD *)this + 7); v14 = 0; v12 = &v12; v13 = &v12; if ( v2 ) { v3 = *(_QWORD *)(v2 + 56); if ( v3 ) { v4 = *(_QWORD *)(v3 + 288); if ( (unsigned int)cocos2d::CCObject::retainCount(*(cocos2d::CCObject **)(v3 + 264)) == 1 ) goto LABEL_7; while ( v4 ) { while ( 1 ) { v3 = v4; v4 = *(_QWORD *)(v4 + 288); if ( (unsigned int)cocos2d::CCObject::retainCount(*(cocos2d::CCObject **)(v3 + 264)) != 1 ) break; LABEL_7: v5 = (_QWORD *)operator new(0x18u); v5[2] = v3; v6 = v12; *v5 = v12; v5[1] = &v12; v6[1] = v5; v12 = v5; ++v14; if ( !v4 ) goto LABEL_8; } } LABEL_8: v7 = v13; if ( v13 != &v12 ) { do { cocos2d::CCDictionary::removeObjectForElememt( *((cocos2d::CCDictionary **)this + 7), (cocos2d::CCDictElement *)v7[2]); v7 = (_QWORD *)v7[1]; } while ( v7 != &v12 ); } } } if ( v14 ) { v9 = v13; v10 = v12; *(_QWORD *)(*(_QWORD *)v13 + 8LL) = v12[1]; *(_QWORD *)v10[1] = *v9; v14 = 0; if ( v9 != &v12 ) { do { v11 = (_QWORD *)v9[1]; operator delete(v9); v9 = v11; } while ( v11 != &v12 ); } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source