//
// CCContentManager::addDict from 0x1004935c0 to 0x100493678 (184 bytes)
//
// 5 xrefs:
// > cocos2d::CCParticleSystem::initWithFile @ 0x1002266a4
// > LoadingLayer::loadAssets @ 0x10026f334
// > LoadingLayer::loadAssets @ 0x10026f348
// > LoadingLayer::loadAssets @ 0x10026f35c
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x100463640
//
// 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:05:54 +0000
//
__int64 __fastcall CCContentManager::addDict(__int64 a1, char *a2, char a3)
{
__int64 v6; // x20
__int64 v7; // x0
__int64 v8; // x20
__int64 v9; // x0
__int64 v10; // x21
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v13; // [xsp+1Fh] [xbp-21h]
v6 = *(_QWORD *)(a1 + 56);
sub_100009900(__p, a2);
v7 = cocos2d::CCDictionary::objectForKey(v6, __p);
v8 = v7;
if ( v13 < 0 )
{
operator delete(__p[0]);
if ( v8 )
return v8;
}
else if ( v7 )
{
return v8;
}
if ( (a3 & 1) != 0 )
v9 = cocos2d::CCDictionary::createWithContentsOfFileThreadSafe(a2);
else
v9 = cocos2d::CCDictionary::createWithContentsOfFile(a2);
v8 = v9;
v10 = *(_QWORD *)(a1 + 56);
sub_100009900(__p, a2);
cocos2d::CCDictionary::setObject(v10, v8, __p);
if ( v13 < 0 )
operator delete(__p[0]);
return v8;
}