//
// cocos2d::CCDictionary::removeObjectsForKeys from 0xd437d0 to 0xd4391c (332 bytes)
//
// 4 xrefs:
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary @ 0xd8bb14
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromTexture @ 0xd8becc
// > cocos2d::CCTextureCache::removeTexture @ 0xda5608
// > ??> @ 0xbd280
//
// 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 13:07:32 +0000
//
__int64 __fastcall cocos2d::CCDictionary::removeObjectsForKeys(cocos2d::CCDictionary *this, cocos2d::CCArray *a2)
{
unsigned int *v3; // x1
cocos2d::CCString **v4; // x21
__int64 v5; // x0
char *v6; // x23
cocos2d::CCString *v7; // x0
const char *CString; // x0
const char *v9; // x24
size_t v10; // x0
size_t v11; // x20
char *v12; // x3
unsigned __int64 v14; // x0
__int64 v15; // x22
char *v16; // x0
__int64 v17; // [xsp+50h] [xbp+50h] BYREF
size_t v18; // [xsp+58h] [xbp+58h]
void *v19; // [xsp+60h] [xbp+60h]
if ( a2 )
{
v3 = *((unsigned int **)a2 + 7);
if ( *v3 )
{
v4 = *((cocos2d::CCString ***)v3 + 2);
v5 = 8LL * *v3 - 8;
v6 = (char *)v4 + v5;
if ( v4 <= (cocos2d::CCString **)((char *)v4 + v5) )
{
v7 = *v4;
if ( *v4 )
{
while ( 1 )
{
CString = (const char *)cocos2d::CCString::getCString(v7);
v17 = 0;
v9 = CString;
v18 = 0;
v19 = nullptr;
v10 = strlen(CString);
v11 = v10;
if ( v10 > 0x16 )
break;
LOBYTE(v17) = 2 * v10;
v12 = (char *)&v17 + 1;
if ( v10 )
goto LABEL_12;
BYTE1(v17) = 0;
cocos2d::CCDictionary::removeObjectForKey((__int64)this, (__int64)&v17);
if ( (v17 & 1) == 0 )
goto LABEL_8;
LABEL_13:
operator delete(v19);
LABEL_8:
if ( v6 >= (char *)++v4 )
{
v7 = *v4;
if ( *v4 )
continue;
}
return _stack_chk_guard;
}
v14 = (v10 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v15 = v14 | 1;
v16 = (char *)operator new(v14);
v17 = v15;
v12 = v16;
v19 = v16;
v18 = v11;
LABEL_12:
*((_BYTE *)memcpy(v12, v9, v11) + v11) = 0;
cocos2d::CCDictionary::removeObjectForKey((__int64)this, (__int64)&v17);
if ( (v17 & 1) == 0 )
goto LABEL_8;
goto LABEL_13;
}
}
}
}
return _stack_chk_guard;
}