//
// CCAnimateFrameCache::addSpriteFramesWithFile from 0x100245674 to 0x10024572c (184 bytes)
//
// 2 xrefs:
// > sub_100086DC4 @ 0x100086e40
// > LoadingLayer::loadAssets @ 0x10026f320
//
// 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 11:01:26 +0000
//
__int64 __fastcall CCAnimateFrameCache::addSpriteFramesWithFile(__int64 a1, char *a2)
{
__int64 v4; // x21
__int64 v5; // x0
__int64 v6; // x21
__int64 v7; // x20
__int64 v8; // x21
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v11; // [xsp+1Fh] [xbp-21h]
v4 = *(_QWORD *)(a1 + 72);
sub_100009900(__p, a2);
v5 = cocos2d::CCDictionary::objectForKey(v4, __p);
v6 = v5;
if ( (v11 & 0x80000000) == 0 )
{
if ( v5 )
goto LABEL_3;
LABEL_6:
v8 = cocos2d::CCDictionary::createWithContentsOfFile(a2);
sub_10024547C(a1, v8, a2);
return v8;
}
operator delete(__p[0]);
if ( !v6 )
goto LABEL_6;
LABEL_3:
v7 = *(_QWORD *)(a1 + 72);
sub_100009900(__p, a2);
v8 = cocos2d::CCDictionary::objectForKey(v7, __p);
if ( v11 < 0 )
operator delete(__p[0]);
return v8;
}