//
// SpriteAnimationManager::createWithOwner from 0x1007ffec0 to 0x1007fff92 (210 bytes)
//
// 1 xrefs:
// > CCAnimatedSprite::loadType @ 0x10033bdc5
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:36:37 +0000
//
_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_100B9E528;
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_10001AD30(&v4, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
__p = *((void **)a2 + 2);
v4 = *a2;
}
SpriteAnimationManager::initWithOwner(v2, a1, &v4);
if ( (v4 & 1) != 0 )
operator delete(__p);
cocos2d::CCObject::autorelease((__int64)v2);
return v2;
}