//
// CCAnimateFrameCache::addDict from 0x2e4ec4 to 0x2e4ff8 (308 bytes)
//
// 1 xrefs:
// > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x2e51e6
//
// 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::addDict(CCAnimateFrameCache *a1, DS_Dictionary *a2, const char *a3)
{
cocos2d::CCDictionary *m_animateDescriptions; // r8
cocos2d::CCDictionary *v5; // r9
unsigned int v6; // r5
cocos2d::CCArray *v7; // r8
cocos2d::CCString *v8; // r0
char *CString; // r6
cocos2d::CCDictionary *v10; // r10
cocos2d::CCArray *v11; // r0
cocos2d::CCArray *v12; // r0
cocos2d::CCArray *v13; // r11
const char *v14; // r6
cocos2d::CCString *v15; // r0
char *v16; // r0
SpriteDescription *Description; // r0
cocos2d::CCDictionary *m_animateFrames; // [sp+Ch] [bp-20h]
DS_Dictionary *v21; // [sp+14h] [bp-18h]
std::string v22; // [sp+20h] [bp-Ch] BYREF
m_animateDescriptions = a1->m_animateDescriptions;
sub_776584((int)&v22, (char *)a3);
cocos2d::CCDictionary::setObject((int)m_animateDescriptions, (cocos2d::CCObject *)a2);
sub_774008(&v22);
sub_776584((int)&v22, "animationContainer");
v5 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey((cocos2d::CCDictionary *)a2, &v22);
sub_774008(&v22);
v6 = 0;
v7 = cocos2d::CCDictionary::allKeys(v5);
while ( v6 < cocos2d::CCArray::count(v7) )
{
v8 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v7, v6);
CString = (char *)cocos2d::CCString::getCString(v8);
sub_776584((int)&v22, CString);
v10 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v5, &v22);
v11 = (cocos2d::CCArray *)sub_774008(&v22);
v12 = (cocos2d::CCArray *)cocos2d::CCArray::create(v11);
m_animateFrames = a1->m_animateFrames;
v13 = v12;
sub_776584((int)&v22, CString);
cocos2d::CCDictionary::setObject((int)m_animateFrames, v13);
v14 = nullptr;
sub_774008(&v22);
while ( (unsigned int)v14 < cocos2d::CCDictionary::count(v10) )
{
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"sprite_%i", v14);
v16 = (char *)cocos2d::CCString::getCString(v15);
sub_776584((int)&v22, v16);
v21 = (DS_Dictionary *)cocos2d::CCDictionary::objectForKey(v10, &v22);
sub_774008(&v22);
++v14;
Description = SpriteDescription::createDescription(v21);
cocos2d::CCArray::addObject(v13, Description);
}
++v6;
}
return (cocos2d::CCDictionary *)a2;
}