// // cocos2d::CCDictionary::removeObjectForElememt from 0x10030f8b0 to 0x10030f9db (299 bytes) // // 5 xrefs: // > cocos2d::CCDictionary::removeObjectForKey_1 @ 0x10030f868 // > cocos2d::CCDictionary::removeObjectForKey @ 0x10030fb0b // > cocos2d::CCDictionary::removeObjectForKey @ 0x10030fb13 // > cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames @ 0x10031d407 // > cocos2d::CCTextureCache::removeUnusedTextures @ 0x1005eed98 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::CCDictionary::removeObjectForElememt(cocos2d::CCDictionary *a1, cocos2d::CCDictElement *a2) { char *prev; // rcx _QWORD *m_szKey; // rax cocos2d::CCDictElement **p_m_pElements; // rdi __int64 v6; // rdx __int64 v7; // rsi cocos2d::CCDictElement *next; // r8 cocos2d::CCDictElement **v9; // rsi __int64 *v10; // rax __int64 v11; // rsi __int64 v12; // rcx UT_hash_handle *hh_prev; // rcx UT_hash_handle *hh_next; // rdx if ( a2 ) { prev = (char *)a2->hh.prev; if ( *(_OWORD *)&a2->hh.prev == 0 ) { free(a1->m_pElements->hh.tbl->buckets); free(a1->m_pElements->hh.tbl); a1->m_pElements = nullptr; } else { m_szKey = a1->m_pElements->m_szKey; p_m_pElements = &a1->m_pElements; v6 = m_szKey[34]; v7 = *(_QWORD *)(v6 + 32); if ( (cocos2d::CCDictElement *)(*(_QWORD *)(v6 + 24) - v7) == a2 ) *(_QWORD *)(v6 + 24) = &prev[v7]; next = (cocos2d::CCDictElement *)a2->hh.next; v9 = (cocos2d::CCDictElement **)&prev[v7 + 16]; if ( !prev ) { v9 = p_m_pElements; m_szKey = a2->hh.next; } *v9 = next; v10 = (__int64 *)m_szKey[34]; if ( next ) *(_QWORD *)&next->m_szKey[v10[4] + 8] = prev; v11 = *v10; v12 = 16LL * (a2->hh.hashv & (*((_DWORD *)v10 + 2) - 1)); --*(_DWORD *)(v11 + v12 + 8); if ( *(cocos2d::CCDictElement **)(v11 + v12) == (cocos2d::CCDictElement *)&a2->hh ) *(_QWORD *)(v12 + v11) = a2->hh.hh_next; hh_prev = a2->hh.hh_prev; hh_next = a2->hh.hh_next; if ( hh_prev ) hh_prev->hh_next = hh_next; if ( hh_next ) hh_next->hh_prev = hh_prev; --*((_DWORD *)v10 + 4); } cocos2d::CCObject::release(a2->m_pObject); operator delete(a2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source