//
// cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary from 0x5e9600 to 0x5e96be (190 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0x5e9c0a
//
// 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 cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary(
cocos2d::CCSpriteFrameCache *a1,
cocos2d::CCDictionary *a2)
{
int v4; // r5
cocos2d::CCArray *v5; // r0
cocos2d::CCArray *v6; // r9
int v7; // r5
int v8; // r6
cocos2d::CCSpriteFrameCache_vtbl *v9; // r11
int v10; // r11
cocos2d::CCObject *v11; // r0
cocos2d::CCObject *v12; // r2
int v13; // r3
const char *v14; // [sp+8h] [bp-Ch] BYREF
sub_776584((int)&v14, "frames");
v4 = cocos2d::CCDictionary::objectForKey((int)a2, &v14);
v5 = (cocos2d::CCArray *)sub_774008(&v14);
v6 = cocos2d::CCArray::create(v5);
if ( v4 )
{
v7 = *(_DWORD *)(v4 + 52);
if ( v7 )
v8 = *(_DWORD *)(v7 + 272);
else
v8 = 0;
while ( v7 )
{
v9 = a1[1].__vftable;
sub_776584((int)&v14, (char *)v7);
v10 = cocos2d::CCDictionary::objectForKey((int)v9, &v14);
sub_774008(&v14);
if ( v10 )
{
sub_776584((int)&v14, (char *)v7);
v11 = cocos2d::CCString::create();
cocos2d::CCArray::addObject(v6, (cocos2d::_ccArray *)v11, v12);
sub_774008(&v14);
}
if ( v8 )
v13 = *(_DWORD *)(v8 + 272);
else
v13 = 0;
v7 = v8;
v8 = v13;
}
}
cocos2d::CCDictionary::removeObjectsForKeys((cocos2d::CCDictionary *)a1[1].__vftable, v6);
}