//
// cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames from 0x7f4230 to 0x7f428a (90 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:07 +0000
//
void __fastcall cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames(cocos2d::CCSpriteFrameCache *this)
{
int v2; // r3
int v3; // r4
int v4; // r5
int v5; // r7
int v6; // r3
int v7; // r5
v2 = *((_DWORD *)this + 13);
if ( v2 )
{
v3 = *(_DWORD *)(v2 + 52);
v4 = v3 ? *(_DWORD *)(v3 + 272) : 0;
v5 = 0;
while ( v3 )
{
if ( cocos2d::CCObject::retainCount(*(cocos2d::CCObject **)(v3 + 260)) == 1 )
{
cocos2d::CCDictionary::removeObjectForElememt(
*((cocos2d::CCDictionary **)this + 13),
(cocos2d::CCDictElement *)v3);
v5 = 1;
}
if ( v4 )
v6 = *(_DWORD *)(v4 + 272);
else
v6 = 0;
v3 = v4;
v4 = v6;
}
if ( v5 )
{
v7 = *((_DWORD *)this + 15);
std::__tree::destroy(v7, *(_DWORD **)(v7 + 4));
*(_DWORD *)(v7 + 8) = 0;
*(_DWORD *)v7 = v7 + 4;
*(_DWORD *)(v7 + 4) = 0;
}
}
}