//
// cocos2d::CCAnimationCache::addAnimationsWithFile from 0x10046de10 to 0x10046de6a (90 bytes)
//
// 0 xrefs:
//
// 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 __fastcall cocos2d::CCAnimationCache::addAnimationsWithFile(cocos2d::CCAnimationCache *a1, const char *a2)
{
cocos2d::CCFileUtils *v2; // rax
char *v3; // rdi
cocos2d::CCDictionary *v4; // rax
char v5; // [rsp+0h] [rbp-20h] BYREF
char v6; // [rsp+1h] [rbp-1Fh] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v2 = cocos2d::CCFileUtils::sharedFileUtils();
((void (__fastcall *)(char *, cocos2d::CCFileUtils *, const char *, _QWORD))v2->createCCArrayWithContentsOfFile)(
&v5,
v2,
a2,
0);
if ( (v5 & 1) != 0 )
v3 = (char *)__p;
else
v3 = &v6;
v4 = cocos2d::CCDictionary::createWithContentsOfFile(v3);
cocos2d::CCAnimationCache::addAnimationsWithDictionary((cocos2d::CCAnimationCache *)v3, v4, a2);
if ( (v5 & 1) != 0 )
operator delete(__p);
}