//
// SpriteAnimationManager::createWithOwner from 0x100720fa0 to 0x100721072 (210 bytes)
//
// 1 xrefs:
// > CCAnimatedSprite::loadType @ 0x1003506b5
//
// 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, __int128 *a2)
{
_OWORD *v2; // rbx
__int128 v4; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
v2 = operator new(0x1C0u);
cocos2d::CCNode::CCNode((__int64)v2);
*(_QWORD *)v2 = off_10098A140;
v2[20] = 0;
v2[21] = 0;
v2[22] = 0;
*((_QWORD *)v2 + 46) = 0;
*(_OWORD *)((char *)v2 + 392) = 0;
*(_OWORD *)((char *)v2 + 408) = 0;
*(_OWORD *)((char *)v2 + 424) = 0;
*((_QWORD *)v2 + 55) = 0;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_100006B70(&v4, *((const void **)a2 + 2), *((_QWORD *)a2 + 1), 0.0);
}
else
{
__p = *((void **)a2 + 2);
v4 = *a2;
}
SpriteAnimationManager::initWithOwner(v2, a1, &v4);
if ( (v4 & 1) != 0 )
operator delete(__p);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}