//
// cocos2d::CCAnimationCache::addAnimationsWithFile from 0xd85c0c to 0xd85cb0 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x66940
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:08:12 +0000
//
__int64 __fastcall cocos2d::CCAnimationCache::addAnimationsWithFile(cocos2d::CCAnimationCache *this, const char *a2)
{
__int64 v4; // x0
cocos2d::CCDictionary *v5; // x0
cocos2d::CCObject *v6; // x0
cocos2d::CCDictionary *v8[2]; // [xsp+30h] [xbp+30h] BYREF
cocos2d::CCDictionary *v9; // [xsp+40h] [xbp+40h]
v4 = cocos2d::CCFileUtils::sharedFileUtils(_stack_chk_guard);
(*(void (__fastcall **)(cocos2d::CCDictionary **__return_ptr, __int64, const char *, _QWORD))(*(_QWORD *)v4 + 48LL))(
v8,
v4,
a2,
0);
v5 = (cocos2d::CCDictionary *)((char *)v8 + 1);
if ( ((__int64)v8[0] & 1) != 0 )
v5 = v9;
v6 = cocos2d::CCDictionary::createWithContentsOfFile(v5, (const char *)LOBYTE(v8[0]));
cocos2d::CCAnimationCache::addAnimationsWithDictionary(this, v6, a2);
if ( ((__int64)v8[0] & 1) != 0 )
operator delete(v9);
return _stack_chk_guard;
}