//
// cocos2d::CCDictionary::removeObjectForKey from 0x10030f9e0 to 0x10030fb1a (314 bytes)
//
// 23 xrefs:
// > GJBaseGameLayer::removeGroupParent @ 0x10013d41e
// > GJBaseGameLayer::removeFromGroupParents @ 0x10013d846
// > GJBaseGameLayer::removeFromGroupParents @ 0x10013d885
// > GJBaseGameLayer::addToGroupParents @ 0x10013d95d
// > GJBaseGameLayer::ungroupStickyObjects @ 0x10013e040
// > SetupTriggerPopup::toggleCustomEaseRateVisibility @ 0x10023fdee
// > GJEffectManager::removeColorAction @ 0x1002df5db
// > GJEffectManager::removeColorAction @ 0x1002df5fd
// > GJEffectManager::colorActionChanged @ 0x1002df65f
// > GJEffectManager::loadFromState @ 0x1002eef03
// > cocos2d::extension::CCControlButton::setTitleForState @ 0x100354261
// > cocos2d::extension::CCControlButton::setTitleColorForState @ 0x100354334
// > cocos2d::extension::CCControlButton::setTitleLabelForState @ 0x10035445d
// > cocos2d::extension::CCControlButton::setBackgroundSpriteForState @ 0x100354892
// > ChallengesPage::exitNodeAtSlot @ 0x10039e302
// > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1004cbc92
// > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x10051045d
// > GameLevelManager::onUnblockUserCompleted @ 0x100523d84
// > GameLevelManager::resetStoredUserInfo @ 0x10054d53f
// > GJActionManager::stopInternalAction @ 0x1006097a8
// > GJActionManager::stopAllInternalActions @ 0x10060983b
// > GJActionManager::updateInternalActions @ 0x1006098ef
// > GJActionManager::updateInternalActions @ 0x100609950
//
// 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::removeObjectForKey(cocos2d::CCDictionary *a1, intptr_t a2)
{
cocos2d::CCDictElement *m_pElements; // rax
int v3; // r8d
unsigned int v4; // edx
unsigned int v5; // ecx
int v6; // esi
unsigned int v7; // r8d
unsigned int v8; // edx
int v9; // ecx
UT_hash_table *tbl; // rax
UT_hash_handle *hh_head; // rcx
std::ptrdiff_t hho; // rdx
__int64 v13; // rsi
if ( a1->m_eDictType )
{
m_pElements = a1->m_pElements;
if ( !m_pElements )
goto LABEL_9;
v3 = ((unsigned __int8)a2 + (a2 & 0xFFFF00) + (a2 & 0xFF000000) - (HIDWORD(a2) - 1640531527) - 1622558014) ^ 0x7F76D;
v4 = (HIDWORD(a2) - 1640531527 - v3 + 17973513) ^ (v3 << 8);
v5 = (-17973513 - v3 - v4) ^ (v4 >> 13);
v6 = (v3 - v4 - v5) ^ (v5 >> 12);
v7 = (v4 - v5 - v6) ^ (v6 << 16);
v8 = (v5 - v6 - v7) ^ (v7 >> 5);
v9 = (v6 - v7 - v8) ^ (v8 >> 3);
tbl = m_pElements->hh.tbl;
hh_head = tbl->buckets[((v8 - (((v7 - v8 - v9) ^ (v9 << 10)) + v9))
^ (((v7 - v8 - v9) ^ (v9 << 10)) >> 15))
& (tbl->num_buckets - 1)].hh_head;
if ( hh_head )
{
hho = tbl->hho;
while ( 1 )
{
v13 = (__int64)hh_head - hho;
if ( *(_DWORD *)((char *)&hh_head[5].key - hho) == 8 && **(_QWORD **)(v13 + 312) == a2 )
break;
hh_head = *(UT_hash_handle **)(v13 + 304);
if ( !hh_head )
goto LABEL_9;
}
}
else
{
LABEL_9:
v13 = 0;
}
cocos2d::CCDictionary::removeObjectForElememt(a1, (cocos2d::CCDictElement *)v13);
}
}