//
// SpriteAnimationManager::createWithOwner from 0x2f3fec to 0x2f4096 (170 bytes)
//
// 1 xrefs:
// > CCAnimatedSprite::loadType @ 0x2e3fd6
//
// 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
//
cocos2d::CCNode *__fastcall SpriteAnimationManager::createWithOwner(int a1, int a2)
{
cocos2d::CCNode *v4; // r4
const char *v5; // r3
int v6; // r6
_DWORD v8[2]; // [sp+0h] [bp-8h] BYREF
v8[0] = a1;
v8[1] = a2;
v4 = (cocos2d::CCNode *)operator new(0x130u);
cocos2d::CCNode::CCNode(v4);
v4[1].__vftable = nullptr;
v4[1].m_uID = 0;
v4->__vftable = (cocos2d::CCNode_vtbl *)&off_A40288;
v4[1].m_nLuaID = 0;
v4[1].m_nTag = 0;
v4[1].m_uIndexInArray = 0;
v4[1].m_uReference = (unsigned int)&unk_ACDDA8;
v4[1].m_uUnknown = (int)&unk_ACDDA8;
v4[1].m_unknown2 = (int)&unk_ACDDA8;
sub_775C20(v8, a2);
v6 = SpriteAnimationManager::initWithOwner(v4, a1, (const char *)v8, v5);
sub_774008(v8);
if ( v6 )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
else
{
v4->~CCNode_0(v4);
return nullptr;
}
}