// // cocos2d::CCTextureCache::removeUnusedTextures from 0x1006c1d30 to 0x1006c1e3b (267 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 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 12:35:32 +0000 // void __fastcall cocos2d::CCTextureCache::removeUnusedTextures(__int64 a1) { __int64 v1; // rax __int64 v2; // r15 _QWORD *v3; // rdi _QWORD *v4; // rax __int64 v5; // rcx _QWORD *v6; // rbx _QWORD *v7; // rcx __int64 v8; // r12 _QWORD *v9; // rax _QWORD *v10; // r15 _QWORD *v11; // [rsp+8h] [rbp-38h] BYREF void *__p; // [rsp+10h] [rbp-30h] __int64 v13; // [rsp+18h] [rbp-28h] if ( (unsigned int)cocos2d::CCDictionary::count(*(_QWORD *)(a1 + 56)) ) { v11 = &v11; __p = &v11; v13 = 0; v1 = *(_QWORD *)(a1 + 56); if ( v1 ) { v2 = *(_QWORD *)(v1 + 56); if ( v2 ) { do { v8 = *(_QWORD *)(v2 + 288); if ( (unsigned int)sub_100480140(*(_QWORD *)(v2 + 264)) == 1 ) { v9 = operator new(0x18u); v9[2] = v2; v9[1] = &v11; v7 = v11; *v9 = v11; v7[1] = v9; v11 = v9; ++v13; } v2 = v8; } while ( v8 ); v10 = __p; if ( __p != &v11 ) { do { cocos2d::CCDictionary::removeObjectForElememt(*(_QWORD *)(a1 + 56), v10[2]); v10 = (_QWORD *)v10[1]; } while ( v10 != &v11 ); } } if ( v13 ) { v3 = __p; v4 = (_QWORD *)v11[1]; v5 = *(_QWORD *)__p; *(_QWORD *)(v5 + 8) = v4; *v4 = v5; v13 = 0; if ( v3 != &v11 ) { do { v6 = (_QWORD *)v3[1]; operator delete(v3); v3 = v6; } while ( v6 != &v11 ); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source