//
// cocos2d::CCDictionary::removeObjectsForKeys from 0x18000b2b0 to 0x18000b384 (212 bytes)
//
// 5 xrefs:
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary @ 0x180092074
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromTexture @ 0x1800926ab
// > cocos2d::CCTextureCache::removeTexture @ 0x1800a984d
// > ??> @ 0x1801438a8
// > ??> @ 0x1801addd4
//
// 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
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::CCDictionary::removeObjectsForKeys(cocos2d::CCDictionary *this, struct cocos2d::CCArray *a2)
{
cocos2d::ccArray *data; // rbx
__int64 num; // rax
cocos2d::CCString **arr; // rbx
cocos2d::CCString **i; // rdi
char *CString; // rax
void *v8; // rcx
unsigned __int8 Buf2[24]; // [rsp+20h] [rbp-38h] BYREF
unsigned __int64 v10; // [rsp+38h] [rbp-20h]
if ( a2 )
{
data = a2->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (cocos2d::CCString **)data->arr;
for ( i = &arr[num - 1]; arr <= i; ++arr )
{
if ( !*arr )
break;
CString = (char *)cocos2d::CCString::getCString(*arr);
sub_180005910(Buf2, CString);
cocos2d::CCDictionary::removeObjectForKey(this, Buf2);
if ( v10 > 0xF )
{
v8 = *(void **)Buf2;
if ( v10 + 1 >= 0x1000 )
{
v8 = *(void **)(*(_QWORD *)Buf2 - 8LL);
if ( (unsigned __int64)(*(_QWORD *)Buf2 - (_QWORD)v8 - 8LL) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free_0(v8);
}
}
}
}
}