//
// SpriteAnimationManager::initWithOwner from 0x2f3eb4 to 0x2f3fd2 (286 bytes)
//
// 1 xrefs:
// > SpriteAnimationManager::createWithOwner @ 0x2f4050
//
// 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
//
int __fastcall SpriteAnimationManager::initWithOwner(_DWORD *a1, int a2, const char *a3, const char *a4)
{
cocos2d::CCDictionary *v6; // r0
cocos2d::CCDictionary *v7; // r0
cocos2d::CCDictionary *v8; // r0
cocos2d::CCDictionary *v9; // r0
int v10; // r10
cocos2d::CCObject *v11; // r9
cocos2d::CCDictionary *v12; // r0
int v13; // r10
cocos2d::CCObject *v14; // r9
const char *v16[2]; // [sp+8h] [bp-8h] BYREF
v16[0] = a3;
v16[1] = a4;
a1[66] = a2;
v6 = cocos2d::CCDictionary::create();
a1[73] = v6;
cocos2d::CCObject::retain(v6);
v7 = cocos2d::CCDictionary::create();
a1[69] = v7;
cocos2d::CCObject::retain(v7);
v8 = cocos2d::CCDictionary::create();
a1[72] = v8;
cocos2d::CCObject::retain(v8);
v9 = cocos2d::CCDictionary::create();
a1[67] = v9;
cocos2d::CCObject::retain(v9);
v10 = a1[67];
v11 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)&dword_60 + 3);
sub_776584((int)v16, "not_used");
cocos2d::CCDictionary::setObject(v10, v11);
sub_774008(v16);
v12 = cocos2d::CCDictionary::create();
a1[68] = v12;
cocos2d::CCObject::retain(v12);
v13 = a1[68];
v14 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)&dword_60 + 3);
sub_776584((int)v16, "not_used");
cocos2d::CCDictionary::setObject(v13, v14);
sub_774008(v16);
sub_7753D4((int)(a1 + 70), "not_used");
sub_7753D4((int)(a1 + 74), "not_used");
sub_7753D4((int)(a1 + 75), "not_used");
sub_775C20(v16, a3);
SpriteAnimationManager::createAnimations(v16);
sub_774008(v16);
sub_775C20(v16, a3);
SpriteAnimationManager::loadAnimations(a1, v16);
sub_774008(v16);
return 1;
}