//
// SpriteAnimationManager::initWithOwner from 0x1003229b8 to 0x100322b74 (444 bytes)
//
// 1 xrefs:
// > SpriteAnimationManager::createWithOwner @ 0x10032295c
//
// 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
//
__int64 __fastcall SpriteAnimationManager::initWithOwner(__int64 a1, __int64 a2, __int64 a3)
{
cocos2d::CCDictionary *v5; // x0
cocos2d::CCDictionary *v6; // x0
cocos2d::CCDictionary *v7; // x0
cocos2d::CCDictionary *v8; // x0
__int64 v9; // x21
cocos2d::CCObject *v10; // x22
cocos2d::CCDictionary *v11; // x0
__int64 v12; // x21
cocos2d::CCObject *v13; // x22
void *__dst[2]; // [xsp+10h] [xbp-70h] BYREF
__int64 v16; // [xsp+20h] [xbp-60h]
void *__p[2]; // [xsp+30h] [xbp-50h] BYREF
__int64 v18; // [xsp+40h] [xbp-40h]
void *v19[2]; // [xsp+48h] [xbp-38h] BYREF
char v20; // [xsp+5Fh] [xbp-21h]
*(_QWORD *)(a1 + 320) = a2;
v5 = cocos2d::CCDictionary::create();
*(_QWORD *)(a1 + 392) = v5;
cocos2d::CCObject::retain(v5);
v6 = cocos2d::CCDictionary::create();
*(_QWORD *)(a1 + 344) = v6;
cocos2d::CCObject::retain(v6);
v7 = cocos2d::CCDictionary::create();
*(_QWORD *)(a1 + 384) = v7;
cocos2d::CCObject::retain(v7);
v8 = cocos2d::CCDictionary::create();
*(_QWORD *)(a1 + 328) = v8;
cocos2d::CCObject::retain(v8);
v9 = *(_QWORD *)(a1 + 328);
v10 = sub_100268F4C("%i", 99);
sub_100009900(v19, "not_used");
cocos2d::CCDictionary::setObject_1(v9, v10, v19);
if ( v20 < 0 )
operator delete(v19[0]);
v11 = cocos2d::CCDictionary::create();
*(_QWORD *)(a1 + 336) = v11;
cocos2d::CCObject::retain(v11);
v12 = *(_QWORD *)(a1 + 336);
v13 = sub_100268F4C("%i", 99);
sub_100009900(v19, "not_used");
cocos2d::CCDictionary::setObject_1(v12, v13, v19);
if ( v20 < 0 )
operator delete(v19[0]);
std::string::assign((std::string *)(a1 + 352), "not_used");
std::string::assign((std::string *)(a1 + 400), "not_used");
std::string::assign((std::string *)(a1 + 424), "not_used");
if ( *(char *)(a3 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a3, *(_QWORD *)(a3 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a3;
v18 = *(_QWORD *)(a3 + 16);
}
SpriteAnimationManager::createAnimations(__p);
if ( SHIBYTE(v18) < 0 )
operator delete(__p[0]);
if ( *(char *)(a3 + 23) < 0 )
{
sub_1000097D0(__dst, *(void **)a3, *(_QWORD *)(a3 + 8));
}
else
{
*(_OWORD *)__dst = *(_OWORD *)a3;
v16 = *(_QWORD *)(a3 + 16);
}
SpriteAnimationManager::loadAnimations(a1, __dst);
if ( SHIBYTE(v16) < 0 )
operator delete(__dst[0]);
return 1;
}