// // cocos2d::CCDictionary::removeObjectForElememt from 0x1002fa2d0 to 0x1002fa3fb (299 bytes) // // 5 xrefs: // > cocos2d::CCDictionary::removeObjectForKey @ 0x1002fa288 // > cocos2d::CCDictionary::removeObjectForKey_1 @ 0x1002fa52b // > cocos2d::CCDictionary::removeObjectForKey_1 @ 0x1002fa533 // > cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames @ 0x1003086b7 // > cocos2d::CCTextureCache::removeUnusedTextures @ 0x1006c1e28 // // 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:28:30 +0000 // void __fastcall cocos2d::CCDictionary::removeObjectForElememt(__int64 a1, __int64 a2) { __int64 v3; // rcx __int64 v4; // rax _QWORD *v5; // rdi __int64 v6; // rdx __int64 v7; // rsi __int64 v8; // r8 _QWORD *v9; // rsi __int64 *v10; // rax __int64 v11; // rsi __int64 v12; // rcx __int64 v13; // rcx __int64 v14; // rdx if ( a2 ) { v3 = *(_QWORD *)(a2 + 280); if ( v3 || *(_QWORD *)(a2 + 288) ) { v4 = *(_QWORD *)(a1 + 56); v5 = (_QWORD *)(a1 + 56); v6 = *(_QWORD *)(v4 + 272); v7 = *(_QWORD *)(v6 + 32); if ( *(_QWORD *)(v6 + 24) - v7 == a2 ) *(_QWORD *)(v6 + 24) = v7 + v3; v8 = *(_QWORD *)(a2 + 288); v9 = (_QWORD *)(v7 + v3 + 16); if ( !v3 ) { v9 = v5; v4 = *(_QWORD *)(a2 + 288); } *v9 = v8; v10 = *(__int64 **)(v4 + 272); if ( v8 ) *(_QWORD *)(v10[4] + v8 + 8) = v3; v11 = *v10; v12 = 16LL * (*(_DWORD *)(a2 + 324) & (unsigned int)(*((_DWORD *)v10 + 2) - 1)); --*(_DWORD *)(v11 + v12 + 8); if ( *(_QWORD *)(v11 + v12) == a2 + 272 ) *(_QWORD *)(v12 + v11) = *(_QWORD *)(a2 + 304); v13 = *(_QWORD *)(a2 + 296); v14 = *(_QWORD *)(a2 + 304); if ( v13 ) *(_QWORD *)(v13 + 32) = v14; if ( v14 ) *(_QWORD *)(v14 + 24) = v13; --*((_DWORD *)v10 + 4); } else { free(**(void ***)(*(_QWORD *)(a1 + 56) + 272LL)); free(*(void **)(*(_QWORD *)(a1 + 56) + 272LL)); *(_QWORD *)(a1 + 56) = 0; } cocos2d::CCObject::release(*(_QWORD *)(a2 + 264)); operator delete((void *)a2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source