//
// CCAnimatedSprite::createWithType from 0x1002fd21c to 0x1002fd2cc (176 bytes)
//
// 1 xrefs:
// > AnimatedGameObject::init @ 0x1003832dc
//
// 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
//
CCAnimatedSprite *__fastcall CCAnimatedSprite::createWithType(const char *a1, cocos2d::CCTexture2D *a2, bool a3)
{
char *v6; // x19
v6 = (char *)operator new(0x2D0u);
cocos2d::CCSprite::CCSprite((__int64)v6);
*(_QWORD *)v6 = &off_1007EA628;
*((_QWORD *)v6 + 40) = off_1007EAB10;
*((_QWORD *)v6 + 43) = off_1007EAB90;
*((_DWORD *)v6 + 170) = 0;
*(_OWORD *)(v6 + 600) = 0u;
*(_OWORD *)(v6 + 616) = 0u;
*(_OWORD *)(v6 + 632) = 0u;
*(_OWORD *)(v6 + 648) = 0u;
*(_OWORD *)(v6 + 664) = 0u;
*((_OWORD *)v6 + 43) = 0u;
*((_OWORD *)v6 + 44) = 0u;
if ( CCAnimatedSprite::initWithType((CCAnimatedSprite *)v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
return (CCAnimatedSprite *)v6;
}