//
// cocos2d::CCDictionary::removeObjectForKey from 0xad11bc to 0xad1358 (412 bytes)
//
// 21 xrefs:
// > GameLevelManager::resetStoredUserInfo @ 0x6f6f10
// > GameLevelManager::onUnblockUserCompleted @ 0x6faa34
// > GJBaseGameLayer::removeGroupParent @ 0x8600dc
// > GJBaseGameLayer::removeFromGroupParents @ 0x86034c
// > GJBaseGameLayer::removeFromGroupParents @ 0x860390
// > GJBaseGameLayer::addToGroupParents @ 0x860438
// > GJBaseGameLayer::ungroupStickyObjects @ 0x8607b8
// > GJEffectManager::removeColorAction @ 0x8a42a0
// > GJEffectManager::removeColorAction @ 0x8a42c0
// > GJEffectManager::colorActionChanged @ 0x8a4318
// > ChallengesPage::exitNodeAtSlot @ 0x906e48
// > SetupTriggerPopup::toggleCustomEaseRateVisibility @ 0x9ea9ec
// > GJActionManager::stopInternalAction @ 0xa26494
// > GJActionManager::updateInternalActions @ 0xa2657c
// > cocos2d::extension::CCControlButton::setTitleLabelForState @ 0xa9ac90
// > cocos2d::extension::CCControlButton::setBackgroundSpriteForState @ 0xa9afe4
// > cocos2d::extension::CCControlButton::setTitleForState @ 0xa9b378
// > cocos2d::extension::CCControlButton::setTitleColorForState @ 0xa9b3f8
// > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0xb0a178
// > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0xb3e9f8
// > ??> @ 0xbc6a0
//
// 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::removeObjectForKey(cocos2d::CCDictionary *a1, intptr_t a2)
{
cocos2d::CCDictElement *m_pElements; // x7
int v4; // w2
int v5; // w19
unsigned int v6; // w1
unsigned int v7; // w0
UT_hash_table *tbl; // x21
int v9; // w19
unsigned int v10; // w1
unsigned int v11; // w0
int v12; // w19
UT_hash_handle *hh_head; // x19
cocos2d::CCDictElement *hh_next; // x19
intptr_t v15; // [xsp+38h] [xbp+38h] BYREF
v15 = a2;
if ( a1->m_eDictType )
{
m_pElements = a1->m_pElements;
if ( m_pElements )
{
v4 = BYTE4(v15) - 1640531527 + (HIBYTE(v15) << 24) + (BYTE6(v15) << 16) + (BYTE5(v15) << 8);
v5 = ((unsigned __int8)v15 - 1622558014 + (BYTE3(v15) << 24) + (BYTE2(v15) << 16) + (BYTE1(v15) << 8) - v4)
^ 0x7F76D;
v6 = (v4 + 17973513 - v5) ^ (v5 << 8);
v7 = (-17973513 - v5 - v6) ^ (v6 >> 13);
tbl = m_pElements->hh.tbl;
v9 = (v5 - v6 - v7) ^ (v7 >> 12);
v10 = (v6 - v7 - v9) ^ (v9 << 16);
v11 = (v7 - v9 - v10) ^ (v10 >> 5);
v12 = (v9 - v10 - v11) ^ (v11 >> 3);
hh_head = tbl->buckets[((v11 - v12 - ((v10 - v11 - v12) ^ (v12 << 10)))
^ (((v10 - v11 - v12) ^ (v12 << 10)) >> 15))
& (tbl->num_buckets - 1)].hh_head;
if ( hh_head )
hh_next = (cocos2d::CCDictElement *)((char *)hh_head - tbl->hho);
else
hh_next = nullptr;
for ( ; hh_next; hh_next = (cocos2d::CCDictElement *)((char *)hh_next - tbl->hho) )
{
if ( hh_next->hh.keylen == 8 && !memcmp(hh_next->hh.key, &v15, 8u) )
break;
hh_next = (cocos2d::CCDictElement *)hh_next->hh.hh_next;
if ( !hh_next )
break;
}
}
else
{
hh_next = nullptr;
}
cocos2d::CCDictionary::removeObjectForElememt(a1, hh_next);
}
}