//
// SpriteAnimationManager::createWithOwner from 0x1003228d0 to 0x100322990 (192 bytes)
//
// 1 xrefs:
// > CCAnimatedSprite::loadType @ 0x1002fd7a0
//
// 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
//
_OWORD *__fastcall SpriteAnimationManager::createWithOwner(__int64 a1, __int64 a2)
{
_OWORD *v4; // x19
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v7; // [xsp+10h] [xbp-30h]
v4 = operator new(0x1C0u);
cocos2d::CCNode::CCNode((__int64)v4);
*(_QWORD *)v4 = off_1007EFC38;
v4[20] = 0u;
v4[21] = 0u;
v4[22] = 0u;
*((_QWORD *)v4 + 46) = 0;
*((_QWORD *)v4 + 55) = 0;
*(_OWORD *)((char *)v4 + 392) = 0u;
*(_OWORD *)((char *)v4 + 408) = 0u;
*(_OWORD *)((char *)v4 + 424) = 0u;
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v7 = *(_QWORD *)(a2 + 16);
}
SpriteAnimationManager::initWithOwner(v4, a1, __p);
if ( SHIBYTE(v7) < 0 )
operator delete(__p[0]);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}