//
// cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary from 0x1003bcc20 to 0x1003bcd20 (256 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0x1003bcb6c
//
// 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
//
void __fastcall cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary(
cocos2d::CCSpriteFrameCache *a1,
cocos2d::CCDictionary *a2)
{
__int64 v4; // x21
cocos2d::CCArray *v5; // x20
__int64 v6; // x21
__int64 v7; // x23
cocos2d::CCSpriteFrameCache_vtbl *v8; // x22
__int64 v9; // x0
__int64 v10; // x22
void *__p[2]; // [xsp+8h] [xbp-48h] BYREF
char v12; // [xsp+1Fh] [xbp-31h]
sub_100009900(__p, "frames");
v4 = cocos2d::CCDictionary::objectForKey_1(a2, __p);
if ( v12 < 0 )
operator delete(__p[0]);
v5 = (cocos2d::CCArray *)sub_10024A15C();
if ( v4 )
{
v6 = *(_QWORD *)(v4 + 56);
if ( v6 )
{
do
{
v7 = *(_QWORD *)(v6 + 288);
v8 = a1[1].__vftable;
sub_100009900(__p, (char *)v6);
v9 = cocos2d::CCDictionary::objectForKey_1(v8, __p);
v10 = v9;
if ( v12 < 0 )
{
operator delete(__p[0]);
if ( v10 )
{
LABEL_9:
sub_100009900(__p, (char *)v6);
sub_100268E48((__int128 *)__p);
sub_10024A2D0((__int64)v5);
if ( v12 < 0 )
operator delete(__p[0]);
}
}
else if ( v9 )
{
goto LABEL_9;
}
v6 = v7;
}
while ( v7 );
}
}
cocos2d::CCDictionary::removeObjectsForKeys((cocos2d::CCDictionary *)a1[1].__vftable, v5);
}