//
// cocos2d::CCDictionary::removeObjectForKey from 0x18000b180 to 0x18000b307 (391 bytes)
//
// 10 xrefs:
// > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006d9f7
// > cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6bd5
// > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1800b74f2
// > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1800b7501
// > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1800b7510
// > ??> @ 0x18013ab68
// > ??> @ 0x18013ab7c
// > ??> @ 0x18013ab8c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b7dc8
//
// This function is hookable on this platform (idp: pc, 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:21:20 +0000
//
void __fastcall cocos2d::CCDictionary::removeObjectForKey(cocos2d::CCDictionary *this, __int64 a2)
{
__int64 v4; // rdx
__int64 v5; // rbx
int v6; // r9d
int v7; // edx
unsigned int v8; // r9d
unsigned int v9; // ecx
int v10; // edx
unsigned int v11; // r9d
unsigned int v12; // ecx
int v13; // edx
unsigned __int64 v14; // rax
__int64 v15; // r9
__int64 v16; // rdx
__int64 v17; // rcx
__int64 v18; // rax
if ( *((_DWORD *)this + 16) )
{
v4 = 0;
v5 = *((_QWORD *)this + 7);
if ( v5 )
{
v6 = ((BYTE5(a2) + ((BYTE6(a2) + (HIBYTE(a2) << 8)) << 8)) << 8) + BYTE4(a2) - 1640531527;
v7 = (((BYTE1(a2) + ((BYTE2(a2) + (BYTE3(a2) << 8)) << 8)) << 8) - v6 + (unsigned __int8)a2 - 1622558014)
^ 0x7F76D;
v8 = (v7 << 8) ^ (v6 - v7 + 17973513);
v9 = (v8 >> 13) ^ (-17973513 - v8 - v7);
v10 = (v9 >> 12) ^ (v7 - v9 - v8);
v11 = (v10 << 16) ^ (v8 - v9 - v10);
v12 = (v11 >> 5) ^ (v9 - v11 - v10);
v13 = (v12 >> 3) ^ (v10 - v12 - v11);
v14 = (v11 - v13 - v12) ^ (v13 << 10);
v15 = *(_QWORD *)(v5 + 272);
v16 = *(_QWORD *)(*(_QWORD *)v15
+ 16
* ((unsigned int)(*(_DWORD *)(v15 + 8) - 1) & ((v14 >> 15) ^ (v12 - (unsigned int)v14 - v13))));
if ( v16 )
{
v17 = *(_QWORD *)(v15 + 32);
v4 = v16 - v17;
if ( v4 )
{
while ( *(_DWORD *)(v4 + 320) != 8 || **(_QWORD **)(v4 + 312) != a2 )
{
v18 = *(_QWORD *)(v4 + 304);
if ( !v18 )
goto LABEL_10;
v4 = v18 - v17;
if ( v18 == v17 )
{
cocos2d::CCDictionary::removeObjectForElememt(this, nullptr);
return;
}
}
}
}
else
{
LABEL_10:
v4 = 0;
}
}
cocos2d::CCDictionary::removeObjectForElememt(this, (struct cocos2d::CCDictElement *)v4);
}
}