//
// cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile from 0x5e9bd4 to 0x5e9c6c (152 bytes)
//
// 11 xrefs:
// > GauntletSelectLayer::onExit @ 0x4d9ed2
// > GJShopLayer::onExit @ 0x4e2fea
// > SecretLayer3::onExit @ 0x4eb296
// > SecretLayer2::onExit @ 0x4ebfbe
// > SecretLayer4::onExit @ 0x4f21c2
// > WorldSelectLayer::onExit @ 0x4fcb72
// > LevelAreaLayer::onExit @ 0x56daba
// > LevelAreaInnerLayer::onExit @ 0x56daee
// > SecretRewardsLayer::onExit @ 0x58a2ea
// > GJPathsLayer::onExit @ 0x58bbde
// > SecretLayer5::onExit @ 0x59c40e
//
// 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::removeSpriteFramesFromFile(cocos2d::CCSpriteFrameCache *a1, const char *a2)
{
cocos2d::CCFileUtils *v4; // r0
cocos2d::CCDictionary *v5; // r7
int m_nLuaID; // r10
int v7; // r9
int v8; // r5
char *v9; // r8
cocos2d::CCDictionary *v11; // [sp+4h] [bp-Ch] BYREF
_BYTE v12[4]; // [sp+8h] [bp-8h] BYREF
v11 = (cocos2d::CCDictionary *)a2;
v4 = cocos2d::CCFileUtils::sharedFileUtils();
((void (__fastcall *)(cocos2d::CCDictionary **, cocos2d::CCFileUtils *, const char *, _DWORD, cocos2d::CCSpriteFrameCache *))v4->createCCArrayWithContentsOfFile)(
&v11,
v4,
a2,
0,
a1);
v5 = cocos2d::CCDictionary::createWithContentsOfFileThreadSafe((const char *)v11);
cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary(a1, v5);
m_nLuaID = a1[1].m_nLuaID;
sub_776584((int)v12, (char *)a2);
v7 = std::_Rb_tree,std::less,std::allocator>::find(
m_nLuaID,
(int)v12);
sub_774008(v12);
v8 = a1[1].m_nLuaID;
if ( v7 != v8 + 4 )
{
v9 = (char *)sub_7621E4(v7, v8 + 4);
sub_774008(v9 + 16);
operator delete(v9);
--*(_DWORD *)(v8 + 20);
}
cocos2d::CCObject::release(v5);
sub_774008(&v11);
}