//
// CCAnimateFrameCache::addSpriteFramesWithFile from 0x2e4be8 to 0x2e4c8a (162 bytes)
//
// 2 xrefs:
// > CCPartAnimSprite::initWithAnimDesc @ 0x2e781c
// > LoadingLayer::loadAssets @ 0x30b9be
//
// 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
//
cocos2d::CCDictionary *CCAnimateFrameCache::addSpriteFramesWithFile(CCAnimateFrameCache *a1, const char *a2)
{
cocos2d::CCDictionary *m_animateDescriptions; // r9
int v5; // r9
cocos2d::CCDictionary *v6; // r7
cocos2d::CCDictionary *v7; // r6
DS_Dictionary *v8; // r4
std::string v10; // [sp+8h] [bp-Ch] BYREF
m_animateDescriptions = a1->m_animateDescriptions;
sub_776584((int)&v10, (char *)a2);
v5 = cocos2d::CCDictionary::objectForKey(m_animateDescriptions, &v10);
sub_774008(&v10);
if ( v5 )
{
v6 = a1->m_animateDescriptions;
sub_776584((int)&v10, (char *)a2);
v7 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v6, &v10);
sub_774008(&v10);
}
else
{
v8 = (DS_Dictionary *)operator new(0xD8u);
DS_Dictionary::DS_Dictionary(v8);
DS_Dictionary::loadRootSubDictFromFile(v8, a2);
return (cocos2d::CCDictionary *)CCAnimateFrameCache::addDict(a1, v8, (char *)a2);
}
return v7;
}