//
// cocos2d::CCDictionary::removeObjectsForKeys from 0x18000b310 to 0x18000b3f9 (233 bytes)
//
// 5 xrefs:
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary @ 0x180095545
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromTexture @ 0x180095ba5
// > cocos2d::CCTextureCache::removeTexture @ 0x1800ad04d
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b7df8
//
// 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
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::CCDictionary::removeObjectsForKeys(cocos2d::CCDictionary *this, struct cocos2d::CCArray *a2)
{
unsigned int *v3; // rbx
__int64 v4; // rax
cocos2d::CCString **v5; // rbx
cocos2d::CCString **i; // rdi
char *CString; // rax
void *v8; // rcx
char Str[24]; // [rsp+30h] [rbp-38h] BYREF
unsigned __int64 v10; // [rsp+48h] [rbp-20h]
if ( a2 )
{
v3 = *((unsigned int **)a2 + 7);
v4 = *v3;
if ( (_DWORD)v4 )
{
v5 = *((cocos2d::CCString ***)v3 + 2);
for ( i = &v5[v4 - 1]; v5 <= i; ++v5 )
{
if ( !*v5 )
break;
CString = (char *)cocos2d::CCString::getCString(*v5);
sub_180005A10(Str, CString);
cocos2d::CCDictionary::removeObjectForKey(this, Str);
if ( v10 > 0xF )
{
v8 = *(void **)Str;
if ( v10 + 1 >= 0x1000 )
{
v8 = *(void **)(*(_QWORD *)Str - 8LL);
if ( (unsigned __int64)(*(_QWORD *)Str - (_QWORD)v8 - 8LL) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v8);
}
}
}
}
}