// // cocos2d::CCDictionary::removeObjectForElememt from 0xad0c44 to 0xad0da8 (356 bytes) // // 7 xrefs: // > cocos2d::CCDictionary::removeObjectForKey @ 0xad0fc8 // > cocos2d::CCDictionary::removeObjectForKey @ 0xad0ff8 // > cocos2d::CCDictionary::removeObjectForKey @ 0xad130c // > cocos2d::CCDictionary::removeObjectForKey @ 0xad133c // > cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames @ 0xb1b1cc // > cocos2d::CCTextureCache::removeUnusedTextures @ 0xb3426c // > @ 0xad928 // // 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 cocos2d::CCDictionary::removeObjectForElememt(cocos2d::CCDictionary *a1, cocos2d::CCDictElement *a2) { char *prev; // x1 cocos2d::CCDictElement *m_pElements; // x3 UT_hash_handle *p_hh; // x2 UT_hash_table *tbl; // x5 std::ptrdiff_t hho; // x0 void *next; // x4 UT_hash_handle *v10; // x0 cocos2d::CCDictElement *v11; // x4 UT_hash_table *v12; // x3 UT_hash_bucket *buckets; // x4 __int64 v14; // x0 UT_hash_handle *hh_head; // x6 UT_hash_handle *hh_next; // x1 UT_hash_handle *hh_prev; // x0 cocos2d::CCDictElement *v18; // x0 UT_hash_table *v19; // x3 UT_hash_handle *v20; // x5 if ( a2 ) { prev = (char *)a2->hh.prev; if ( prev ) { m_pElements = a1->m_pElements; p_hh = &a2->hh; tbl = m_pElements->hh.tbl; hho = tbl->hho; next = a2->hh.next; if ( (cocos2d::CCDictElement *)((char *)tbl->tail - hho) == a2 ) { v10 = (UT_hash_handle *)&prev[hho]; tbl->tail = v10; } else { v10 = (UT_hash_handle *)&prev[hho]; } v10->next = next; v11 = (cocos2d::CCDictElement *)a2->hh.next; if ( !v11 ) goto LABEL_7; } else { v11 = (cocos2d::CCDictElement *)a2->hh.next; v18 = a1->m_pElements; if ( !v11 ) { free(v18->hh.tbl->buckets); free(a1->m_pElements->hh.tbl); a1->m_pElements = nullptr; LABEL_14: cocos2d::CCObject::release(a2->m_pObject); cocos2d::CCDictElement::~CCDictElement(a2); operator delete(a2); return; } v19 = v18->hh.tbl; p_hh = &a2->hh; v20 = (UT_hash_handle *)v19->hho; if ( a2 == (cocos2d::CCDictElement *)((char *)v19->tail - (char *)v20) ) v19->tail = v20; a1->m_pElements = v11; m_pElements = v11; } *(_QWORD *)&v11->m_szKey[m_pElements->hh.tbl->hho + 8] = prev; LABEL_7: v12 = m_pElements->hh.tbl; buckets = v12->buckets; v14 = (v12->num_buckets - 1) & p_hh->hashv; hh_head = v12->buckets[v14].hh_head; --v12->buckets[v14].count; hh_next = p_hh->hh_next; if ( hh_head == p_hh ) buckets[v14].hh_head = hh_next; hh_prev = p_hh->hh_prev; if ( hh_prev ) { hh_prev->hh_next = hh_next; hh_next = p_hh->hh_next; } if ( hh_next ) hh_next->hh_prev = hh_prev; --v12->num_items; goto LABEL_14; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source