//
// cocos2d::CCDictionary::removeObjectForKey_1 from 0x1004a65c0 to 0x1004a66f4 (308 bytes)
//
// 22 xrefs:
// > sub_100010008 @ 0x100010030
// > sub_100010008 @ 0x10001004c
// > sub_100010074 @ 0x100010090
// > ChallengesPage::exitNodeAtSlot @ 0x10003642c
// > sub_10009A758 @ 0x10009a834
// > sub_1000BED90 @ 0x1000bed98
// > sub_1001B17C0 @ 0x1001b17dc
// > sub_1001B3158 @ 0x1001b3240
// > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1001cd6b4
// > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1001cd6c0
// > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1001cd6d4
// > sub_1001CD6DC @ 0x1001cd790
// > sub_1001D8378 @ 0x1001d84f4
// > GJBaseGameLayer::removeGroupParent @ 0x10028e230
// > sub_10028E54C @ 0x10028e5d8
// > sub_10028E6D8 @ 0x10028e7d4
// > sub_10028E6D8 @ 0x10028e838
// > GJBaseGameLayer::addToGroupParents @ 0x10028e980
// > GJBaseGameLayer::ungroupStickyObjects @ 0x10028ef34
// > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x100382278
// > GJActionManager::stopInternalAction @ 0x10039ae60
// > sub_10039AE7C @ 0x10039af20
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:06:04 +0000
//
void __fastcall cocos2d::CCDictionary::removeObjectForKey_1(__int64 a1, __int64 a2)
{
__int64 v2; // x8
int v3; // w10
unsigned int v4; // w9
unsigned int v5; // w11
int v6; // w10
unsigned int v7; // w9
unsigned int v8; // w11
int v9; // w10
__int64 v10; // x8
__int64 v11; // x9
__int64 v12; // x8
__int64 v13; // x1
if ( *(_DWORD *)(a1 + 64) )
{
v2 = *(_QWORD *)(a1 + 56);
if ( !v2 )
goto LABEL_8;
v3 = ((a2 & 0xFF000000) - (HIDWORD(a2) - 1640531527) + (a2 & 0xFFFF00) + (unsigned __int8)a2 - 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);
v10 = *(_QWORD *)(v2 + 272);
v11 = *(_QWORD *)(*(_QWORD *)v10
+ 16LL
* (((v8 - v9 - ((v7 - v8 - v9) ^ (v9 << 10)))
^ (((v7 - v8 - v9) ^ (v9 << 10)) >> 15))
& (*(_DWORD *)(v10 + 8) - 1)));
if ( v11 )
{
v12 = -*(_QWORD *)(v10 + 32);
while ( 1 )
{
v13 = v11 + v12;
if ( *(_DWORD *)(v11 + v12 + 320) == 8 && **(_QWORD **)(v13 + 312) == a2 )
break;
v11 = *(_QWORD *)(v13 + 304);
if ( !v11 )
goto LABEL_8;
}
}
else
{
LABEL_8:
v13 = 0;
}
cocos2d::CCDictionary::removeObjectForElememt(a1, v13);
}
}