//
// cocos2d::CCDictionary::removeObjectForKey from 0x5c0bfc to 0x5c0cbe (194 bytes)
//
// 20 xrefs:
// > GameLevelManager::resetStoredUserInfo @ 0x3c1558
// > GameLevelManager::onUnblockUserCompleted @ 0x3c2a64
// > GJBaseGameLayer::removeGroupParent @ 0x472dde
// > GJBaseGameLayer::removeFromGroupParents @ 0x472f2a
// > GJBaseGameLayer::removeFromGroupParents @ 0x472f4a
// > GJBaseGameLayer::addToGroupParents @ 0x472fae
// > GJBaseGameLayer::ungroupStickyObjects @ 0x473140
// > GJEffectManager::removeColorAction @ 0x499e30
// > GJEffectManager::removeColorAction @ 0x499e48
// > GJEffectManager::colorActionChanged @ 0x499e7e
// > ChallengesPage::exitNodeAtSlot @ 0x4cbdf8
// > SetupTriggerPopup::toggleCustomEaseRateVisibility @ 0x545de8
// > GJActionManager::stopInternalAction @ 0x565f22
// > GJActionManager::updateInternalActions @ 0x565f88
// > cocos2d::extension::CCControlButton::setTitleLabelForState @ 0x5a14ce
// > cocos2d::extension::CCControlButton::setBackgroundSpriteForState @ 0x5a182a
// > cocos2d::extension::CCControlButton::setTitleForState @ 0x5a19e2
// > cocos2d::extension::CCControlButton::setTitleColorForState @ 0x5a1e58
// > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x5e0a96
// > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x5fa6f8
//
// 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::CCDictionary::CCDictType m_eDictType; // r3
cocos2d::CCDictElement *m_pElements; // r1
UT_hash_table *tbl; // r6
int v6; // r0
unsigned int v7; // r2
unsigned int v8; // r3
int v9; // r0
unsigned int v10; // r2
unsigned int v11; // r3
int v12; // r0
cocos2d::CCDictElement *hh_head; // r5
intptr_t v14; // [sp+4h] [bp-8h] BYREF
m_eDictType = a1->m_eDictType;
v14 = a2;
if ( m_eDictType )
{
m_pElements = a1->m_pElements;
if ( m_pElements )
{
tbl = m_pElements->hh.tbl;
v6 = ((unsigned __int8)v14 + 17973517 + (HIBYTE(v14) << 24) + (BYTE2(v14) << 16) + (BYTE1(v14) << 8)) ^ 0x7F76D;
v7 = (-1622558010 - v6) ^ (v6 << 8);
v8 = (-17973517 - v6 - v7) ^ (v7 >> 13);
v9 = (v6 - v7 - v8) ^ (v8 >> 12);
v10 = (v7 - v8 - v9) ^ (v9 << 16);
v11 = (v8 - v9 - v10) ^ (v10 >> 5);
v12 = (v9 - v10 - v11) ^ (v11 >> 3);
hh_head = (cocos2d::CCDictElement *)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_head = (cocos2d::CCDictElement *)((char *)hh_head - tbl->hho);
while ( hh_head && (hh_head->hh.keylen != 4 || memcmp(hh_head->hh.key, &v14, 4u)) )
{
hh_head = (cocos2d::CCDictElement *)hh_head->hh.hh_next;
if ( !hh_head )
break;
hh_head = (cocos2d::CCDictElement *)((char *)hh_head - tbl->hho);
}
}
else
{
hh_head = nullptr;
}
cocos2d::CCDictionary::removeObjectForElememt(a1, hh_head);
}
}