//
// cocos2d::CCDictionary::removeObjectForKey from 0x18000ae10 to 0x18000b178 (872 bytes)
//
// 11 xrefs:
// > cocos2d::CCDictionary::removeObjectsForKeys @ 0x18000b378
// > cocos2d::CCAnimationCache::removeAnimationByName @ 0x18008e2d4
// > cocos2d::CCSpriteFrameCache::removeSpriteFrameByName @ 0x18009501d
// > cocos2d::CCSpriteFrameCache::removeSpriteFrameByName @ 0x180095095
// > cocos2d::CCSpriteFrameCache::removeSpriteFrameByName @ 0x18009510c
// > cocos2d::CCProfiler::releaseTimer @ 0x180097fac
// > cocos2d::CCTextureCache::removeTextureForKey @ 0x1800ad0af
// > ??> @ 0x18013aae8
// > ??> @ 0x18013ab4c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b7d74
//
// 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, char *Str)
{
__int64 v4; // rdi
int v5; // edi
int v6; // esi
unsigned int v7; // r14d
const char *v8; // rcx
unsigned __int8 *v9; // rbp
unsigned int v10; // r15d
__int64 v11; // r8
int v12; // r14d
unsigned int v13; // esi
int v14; // ecx
int v15; // edx
int v16; // eax
int v17; // edi
unsigned int v18; // r14d
unsigned int v19; // esi
int v20; // edi
unsigned int v21; // r14d
unsigned int v22; // esi
const char *v23; // rcx
unsigned int v24; // esi
int v25; // edi
unsigned int v26; // r14d
unsigned int v27; // esi
int v28; // edi
unsigned int v29; // r14d
unsigned int v30; // esi
int v31; // edi
unsigned __int64 v32; // rcx
__int64 v33; // r14
__int64 v34; // rdi
__int64 v35; // r14
unsigned __int64 v36; // rbp
const char *v37; // rcx
const char *v38; // rcx
char *v39; // rsi
size_t v40; // rax
__int64 v41; // rax
if ( *((_DWORD *)this + 16) )
{
v4 = 0;
if ( *((_QWORD *)this + 7) )
{
v5 = -1640531527;
v6 = -17973521;
v7 = -1640531527;
if ( *((_QWORD *)Str + 3) <= 0xFu )
{
v9 = (unsigned __int8 *)Str;
v8 = Str;
}
else
{
v8 = *(const char **)Str;
v9 = *(unsigned __int8 **)Str;
}
v10 = strlen(v8);
if ( v10 >= 0xC )
{
v11 = v10 / 0xC;
do
{
v10 -= 12;
v12 = v9[4] + ((v9[5] + ((v9[6] + (v9[7] << 8)) << 8)) << 8) + v7;
v13 = v9[8] + ((v9[9] + ((v9[10] + (v9[11] << 8)) << 8)) << 8) + v6;
v14 = *v9;
v15 = v9[2] + (v9[3] << 8);
v16 = v9[1];
v9 += 12;
v17 = (v13 >> 13) ^ (v14 + ((v16 + (v15 << 8)) << 8) - v13 - v12 + v5);
v18 = (v17 << 8) ^ (v12 - v17 - v13);
v19 = (v18 >> 13) ^ (v13 - v18 - v17);
v20 = (v19 >> 12) ^ (v17 - v19 - v18);
v21 = (v20 << 16) ^ (v18 - v20 - v19);
v22 = (v21 >> 5) ^ (v19 - v21 - v20);
v5 = (v22 >> 3) ^ (v20 - v22 - v21);
v7 = (v5 << 10) ^ (v21 - v22 - v5);
v6 = (v7 >> 15) ^ (v22 - v7 - v5);
--v11;
}
while ( v11 );
}
v23 = Str;
if ( *((_QWORD *)Str + 3) > 0xFu )
v23 = *(const char **)Str;
v24 = strlen(v23) + v6;
switch ( v10 )
{
case 1u:
goto LABEL_22;
case 2u:
goto LABEL_21;
case 3u:
goto LABEL_20;
case 4u:
goto LABEL_19;
case 5u:
goto LABEL_18;
case 6u:
goto LABEL_17;
case 7u:
goto LABEL_16;
case 8u:
goto LABEL_15;
case 9u:
goto LABEL_14;
case 0xAu:
goto LABEL_13;
case 0xBu:
v24 += v9[10] << 24;
LABEL_13:
v24 += v9[9] << 16;
LABEL_14:
v24 += v9[8] << 8;
LABEL_15:
v7 += v9[7] << 24;
LABEL_16:
v7 += v9[6] << 16;
LABEL_17:
v7 += v9[5] << 8;
LABEL_18:
v7 += v9[4];
LABEL_19:
v5 += v9[3] << 24;
LABEL_20:
v5 += v9[2] << 16;
LABEL_21:
v5 += v9[1] << 8;
LABEL_22:
v5 += *v9;
break;
default:
break;
}
v25 = (v24 >> 13) ^ (v5 - v7 - v24);
v26 = (v25 << 8) ^ (v7 - v25 - v24);
v27 = (v26 >> 13) ^ (v24 - v25 - v26);
v28 = (v27 >> 12) ^ (v25 - v27 - v26);
v29 = (v28 << 16) ^ (v26 - v28 - v27);
v30 = (v29 >> 5) ^ (v27 - v29 - v28);
v31 = (v30 >> 3) ^ (v28 - v30 - v29);
v32 = (v29 - v31 - v30) ^ (v31 << 10);
v33 = *(_QWORD *)(*((_QWORD *)this + 7) + 272LL);
v34 = *(_QWORD *)(*(_QWORD *)v33
+ 16
* ((unsigned int)(*(_DWORD *)(v33 + 8) - 1) & ((v32 >> 15) ^ (v30 - (unsigned int)v32 - v31))));
if ( v34 )
{
v35 = *(_QWORD *)(v33 + 32);
v4 = v34 - v35;
if ( v4 )
{
v36 = *((_QWORD *)Str + 3);
do
{
v37 = Str;
if ( v36 > 0xF )
v37 = *(const char **)Str;
if ( *(_DWORD *)(v4 + 320) == strlen(v37) )
{
v38 = Str;
if ( v36 <= 0xF )
{
v39 = Str;
}
else
{
v39 = *(char **)Str;
v38 = *(const char **)Str;
}
v40 = strlen(v38);
if ( !memcmp(*(const void **)(v4 + 312), v39, v40) )
break;
}
v41 = *(_QWORD *)(v4 + 304);
if ( !v41 )
goto LABEL_36;
v4 = v41 - v35;
}
while ( v41 != v35 );
}
}
else
{
LABEL_36:
v4 = 0;
}
}
cocos2d::CCDictionary::removeObjectForElememt(this, (struct cocos2d::CCDictElement *)v4);
}
}