//
// CCAnimateFrameCache::addDict from 0x1001b0390 to 0x1001b055c (460 bytes)
//
// 1 xrefs:
// > CCAnimateFrameCache::addSpriteFramesWithFile @ 0x1001b0624
//
// 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 *__fastcall CCAnimateFrameCache::addDict(
CCAnimateFrameCache *a1,
cocos2d::CCDictionary *a2,
const char *a3)
{
cocos2d::CCDictionary *m_animateDescriptions; // x21
cocos2d::CCDictionary *v6; // x21
cocos2d::CCArray *v7; // x22
__int64 v8; // x23
cocos2d::CCString *v9; // x0
char *CString; // x27
__int64 v11; // x0
cocos2d::CCDictionary *v12; // x25
__int64 v13; // x26
cocos2d::CCDictionary *m_animateFrames; // x28
unsigned int v15; // w28
cocos2d::CCString *v16; // x0
char *v17; // x0
cocos2d::CCDictionary *v18; // x27
SpriteDescription *Description; // x0
void *__p[2]; // [xsp+8h] [xbp-68h] BYREF
char v22; // [xsp+1Fh] [xbp-51h]
m_animateDescriptions = a1->m_animateDescriptions;
sub_100009900(__p, (char *)a3);
cocos2d::CCDictionary::setObject_1(m_animateDescriptions, a2, __p);
if ( v22 < 0 )
operator delete(__p[0]);
sub_100009900(__p, "animationContainer");
v6 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey_1(a2, __p);
if ( v22 < 0 )
operator delete(__p[0]);
v7 = cocos2d::CCDictionary::allKeys(v6);
if ( (unsigned int)sub_10024A36C(v7) )
{
v8 = 0;
do
{
v9 = (cocos2d::CCString *)sub_10024A388(v7, v8);
CString = (char *)cocos2d::CCString::getCString(v9);
sub_100009900(__p, CString);
v11 = cocos2d::CCDictionary::objectForKey_1(v6, __p);
v12 = (cocos2d::CCDictionary *)v11;
if ( v22 < 0 )
operator delete(__p[0]);
v13 = sub_10024A15C(v11);
m_animateFrames = a1->m_animateFrames;
sub_100009900(__p, CString);
cocos2d::CCDictionary::setObject_1(m_animateFrames, v13, __p);
if ( v22 < 0 )
operator delete(__p[0]);
if ( cocos2d::CCDictionary::count(v12) )
{
v15 = 0;
do
{
v16 = (cocos2d::CCString *)sub_100268F4C("sprite_%i", v15);
v17 = (char *)cocos2d::CCString::getCString(v16);
sub_100009900(__p, v17);
v18 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey_1(v12, __p);
if ( v22 < 0 )
operator delete(__p[0]);
Description = SpriteDescription::createDescription(v18);
sub_10024A2D0(v13, Description);
++v15;
}
while ( v15 < cocos2d::CCDictionary::count(v12) );
}
v8 = (unsigned int)(v8 + 1);
}
while ( (unsigned int)v8 < (unsigned int)sub_10024A36C(v7) );
}
return a2;
}